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
7c4b72df2d2012d9d79281852a5cd3bef3ea8e8d
48,507
py
Python
tensorflow/tools/compatibility/renames_v2.py
junjun315/tensorflow
40b800fc24e1eea8642b79087925939121e8e25f
[ "Apache-2.0" ]
null
null
null
tensorflow/tools/compatibility/renames_v2.py
junjun315/tensorflow
40b800fc24e1eea8642b79087925939121e8e25f
[ "Apache-2.0" ]
null
null
null
tensorflow/tools/compatibility/renames_v2.py
junjun315/tensorflow
40b800fc24e1eea8642b79087925939121e8e25f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== # pylint: disable=line-too-long """List of renames to apply when converting from TF 1.0 to TF 2.0. THIS FILE IS AUTOGENERATED: To update, please run: bazel build tensorflow/tools/compatibility/update:generate_v2_renames_map bazel-bin/tensorflow/tools/compatibility/update/generate_v2_renames_map This file should be updated whenever endpoints are deprecated. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function renames = { 'tf.AUTO_REUSE': 'tf.compat.v1.AUTO_REUSE', 'tf.AttrValue': 'tf.compat.v1.AttrValue', 'tf.COMPILER_VERSION': 'tf.version.COMPILER_VERSION', 'tf.CXX11_ABI_FLAG': 'tf.sysconfig.CXX11_ABI_FLAG', 'tf.ConditionalAccumulator': 'tf.compat.v1.ConditionalAccumulator', 'tf.ConditionalAccumulatorBase': 'tf.compat.v1.ConditionalAccumulatorBase', 'tf.ConfigProto': 'tf.compat.v1.ConfigProto', 'tf.DeviceSpec': 'tf.compat.v1.DeviceSpec', 'tf.Dimension': 'tf.compat.v1.Dimension', 'tf.Event': 'tf.compat.v1.Event', 'tf.FIFOQueue': 'tf.queue.FIFOQueue', 'tf.FixedLenFeature': 'tf.io.FixedLenFeature', 'tf.FixedLenSequenceFeature': 'tf.io.FixedLenSequenceFeature', 'tf.FixedLengthRecordReader': 'tf.compat.v1.FixedLengthRecordReader', 'tf.GIT_VERSION': 'tf.version.GIT_VERSION', 'tf.GPUOptions': 'tf.compat.v1.GPUOptions', 'tf.GRAPH_DEF_VERSION': 'tf.version.GRAPH_DEF_VERSION', 'tf.GRAPH_DEF_VERSION_MIN_CONSUMER': 'tf.version.GRAPH_DEF_VERSION_MIN_CONSUMER', 'tf.GRAPH_DEF_VERSION_MIN_PRODUCER': 'tf.version.GRAPH_DEF_VERSION_MIN_PRODUCER', 'tf.GraphDef': 'tf.compat.v1.GraphDef', 'tf.GraphKeys': 'tf.compat.v1.GraphKeys', 'tf.GraphOptions': 'tf.compat.v1.GraphOptions', 'tf.HistogramProto': 'tf.compat.v1.HistogramProto', 'tf.IdentityReader': 'tf.compat.v1.IdentityReader', 'tf.InteractiveSession': 'tf.compat.v1.InteractiveSession', 'tf.LMDBReader': 'tf.compat.v1.LMDBReader', 'tf.LogMessage': 'tf.compat.v1.LogMessage', 'tf.MONOLITHIC_BUILD': 'tf.sysconfig.MONOLITHIC_BUILD', 'tf.MetaGraphDef': 'tf.compat.v1.MetaGraphDef', 'tf.NameAttrList': 'tf.compat.v1.NameAttrList', 'tf.NoGradient': 'tf.no_gradient', 'tf.NodeDef': 'tf.compat.v1.NodeDef', 'tf.NotDifferentiable': 'tf.no_gradient', 'tf.OpError': 'tf.errors.OpError', 'tf.OptimizerOptions': 'tf.compat.v1.OptimizerOptions', 'tf.PaddingFIFOQueue': 'tf.queue.PaddingFIFOQueue', 'tf.Print': 'tf.compat.v1.Print', 'tf.PriorityQueue': 'tf.queue.PriorityQueue', 'tf.QUANTIZED_DTYPES': 'tf.dtypes.QUANTIZED_DTYPES', 'tf.QueueBase': 'tf.queue.QueueBase', 'tf.RandomShuffleQueue': 'tf.queue.RandomShuffleQueue', 'tf.ReaderBase': 'tf.compat.v1.ReaderBase', 'tf.RunMetadata': 'tf.compat.v1.RunMetadata', 'tf.RunOptions': 'tf.compat.v1.RunOptions', 'tf.Session': 'tf.compat.v1.Session', 'tf.SessionLog': 'tf.compat.v1.SessionLog', 'tf.SparseConditionalAccumulator': 'tf.sparse.SparseConditionalAccumulator', 'tf.SparseFeature': 'tf.io.SparseFeature', 'tf.SparseTensorValue': 'tf.compat.v1.SparseTensorValue', 'tf.Summary': 'tf.compat.v1.Summary', 'tf.SummaryMetadata': 'tf.compat.v1.SummaryMetadata', 'tf.TFRecordReader': 'tf.compat.v1.TFRecordReader', 'tf.TensorInfo': 'tf.compat.v1.TensorInfo', 'tf.TextLineReader': 'tf.compat.v1.TextLineReader', 'tf.VERSION': 'tf.version.VERSION', 'tf.VarLenFeature': 'tf.io.VarLenFeature', 'tf.VariableScope': 'tf.compat.v1.VariableScope', 'tf.WholeFileReader': 'tf.compat.v1.WholeFileReader', 'tf.accumulate_n': 'tf.math.accumulate_n', 'tf.add_check_numerics_ops': 'tf.compat.v1.add_check_numerics_ops', 'tf.add_to_collection': 'tf.compat.v1.add_to_collection', 'tf.add_to_collections': 'tf.compat.v1.add_to_collections', 'tf.all_variables': 'tf.compat.v1.all_variables', 'tf.angle': 'tf.math.angle', 'tf.app.run': 'tf.compat.v1.app.run', 'tf.assert_greater_equal': 'tf.compat.v1.assert_greater_equal', 'tf.assert_integer': 'tf.compat.v1.assert_integer', 'tf.assert_less_equal': 'tf.compat.v1.assert_less_equal', 'tf.assert_near': 'tf.compat.v1.assert_near', 'tf.assert_negative': 'tf.compat.v1.assert_negative', 'tf.assert_non_negative': 'tf.compat.v1.assert_non_negative', 'tf.assert_non_positive': 'tf.compat.v1.assert_non_positive', 'tf.assert_none_equal': 'tf.compat.v1.assert_none_equal', 'tf.assert_positive': 'tf.compat.v1.assert_positive', 'tf.assert_proper_iterable': 'tf.debugging.assert_proper_iterable', 'tf.assert_rank_at_least': 'tf.compat.v1.assert_rank_at_least', 'tf.assert_rank_in': 'tf.compat.v1.assert_rank_in', 'tf.assert_same_float_dtype': 'tf.debugging.assert_same_float_dtype', 'tf.assert_scalar': 'tf.compat.v1.assert_scalar', 'tf.assert_type': 'tf.compat.v1.assert_type', 'tf.assert_variables_initialized': 'tf.compat.v1.assert_variables_initialized', 'tf.assign': 'tf.compat.v1.assign', 'tf.assign_add': 'tf.compat.v1.assign_add', 'tf.assign_sub': 'tf.compat.v1.assign_sub', 'tf.batch_scatter_update': 'tf.compat.v1.batch_scatter_update', 'tf.betainc': 'tf.math.betainc', 'tf.ceil': 'tf.math.ceil', 'tf.check_numerics': 'tf.debugging.check_numerics', 'tf.cholesky': 'tf.linalg.cholesky', 'tf.cholesky_solve': 'tf.linalg.cholesky_solve', 'tf.clip_by_average_norm': 'tf.compat.v1.clip_by_average_norm', 'tf.colocate_with': 'tf.compat.v1.colocate_with', 'tf.conj': 'tf.math.conj', 'tf.container': 'tf.compat.v1.container', 'tf.convert_to_tensor_or_indexed_slices': 'tf.compat.v1.convert_to_tensor_or_indexed_slices', 'tf.convert_to_tensor_or_sparse_tensor': 'tf.compat.v1.convert_to_tensor_or_sparse_tensor', 'tf.count_up_to': 'tf.compat.v1.count_up_to', 'tf.create_partitioned_variables': 'tf.compat.v1.create_partitioned_variables', 'tf.cross': 'tf.linalg.cross', 'tf.cumprod': 'tf.math.cumprod', 'tf.data.make_initializable_iterator': 'tf.compat.v1.data.make_initializable_iterator', 'tf.data.make_one_shot_iterator': 'tf.compat.v1.data.make_one_shot_iterator', 'tf.debugging.is_finite': 'tf.math.is_finite', 'tf.debugging.is_inf': 'tf.math.is_inf', 'tf.debugging.is_nan': 'tf.math.is_nan', 'tf.debugging.is_non_decreasing': 'tf.math.is_non_decreasing', 'tf.debugging.is_strictly_increasing': 'tf.math.is_strictly_increasing', 'tf.decode_base64': 'tf.io.decode_base64', 'tf.decode_compressed': 'tf.io.decode_compressed', 'tf.decode_json_example': 'tf.io.decode_json_example', 'tf.decode_raw': 'tf.io.decode_raw', 'tf.delete_session_tensor': 'tf.compat.v1.delete_session_tensor', 'tf.depth_to_space': 'tf.compat.v1.depth_to_space', 'tf.dequantize': 'tf.quantization.dequantize', 'tf.deserialize_many_sparse': 'tf.io.deserialize_many_sparse', 'tf.diag': 'tf.linalg.tensor_diag', 'tf.diag_part': 'tf.linalg.tensor_diag_part', 'tf.digamma': 'tf.math.digamma', 'tf.dimension_at_index': 'tf.compat.dimension_at_index', 'tf.dimension_value': 'tf.compat.dimension_value', 'tf.disable_eager_execution': 'tf.compat.v1.disable_eager_execution', 'tf.disable_resource_variables': 'tf.compat.v1.disable_resource_variables', 'tf.disable_v2_batch_normalization': 'tf.compat.v1.disable_v2_batch_normalization', 'tf.disable_v2_behavior': 'tf.compat.v1.disable_v2_behavior', 'tf.disable_v2_tensorshape': 'tf.compat.v1.disable_v2_tensorshape', 'tf.distributions.Bernoulli': 'tf.compat.v1.distributions.Bernoulli', 'tf.distributions.Beta': 'tf.compat.v1.distributions.Beta', 'tf.distributions.Categorical': 'tf.compat.v1.distributions.Categorical', 'tf.distributions.Dirichlet': 'tf.compat.v1.distributions.Dirichlet', 'tf.distributions.DirichletMultinomial': 'tf.compat.v1.distributions.DirichletMultinomial', 'tf.distributions.Distribution': 'tf.compat.v1.distributions.Distribution', 'tf.distributions.Exponential': 'tf.compat.v1.distributions.Exponential', 'tf.distributions.FULLY_REPARAMETERIZED': 'tf.compat.v1.distributions.FULLY_REPARAMETERIZED', 'tf.distributions.Gamma': 'tf.compat.v1.distributions.Gamma', 'tf.distributions.Laplace': 'tf.compat.v1.distributions.Laplace', 'tf.distributions.Multinomial': 'tf.compat.v1.distributions.Multinomial', 'tf.distributions.NOT_REPARAMETERIZED': 'tf.compat.v1.distributions.NOT_REPARAMETERIZED', 'tf.distributions.Normal': 'tf.compat.v1.distributions.Normal', 'tf.distributions.RegisterKL': 'tf.compat.v1.distributions.RegisterKL', 'tf.distributions.ReparameterizationType': 'tf.compat.v1.distributions.ReparameterizationType', 'tf.distributions.StudentT': 'tf.compat.v1.distributions.StudentT', 'tf.distributions.Uniform': 'tf.compat.v1.distributions.Uniform', 'tf.distributions.kl_divergence': 'tf.compat.v1.distributions.kl_divergence', 'tf.div': 'tf.compat.v1.div', 'tf.dtypes.as_string': 'tf.strings.as_string', 'tf.enable_eager_execution': 'tf.compat.v1.enable_eager_execution', 'tf.enable_resource_variables': 'tf.compat.v1.enable_resource_variables', 'tf.enable_v2_batch_normalization': 'tf.compat.v1.enable_v2_batch_normalization', 'tf.enable_v2_behavior': 'tf.compat.v1.enable_v2_behavior', 'tf.enable_v2_tensorshape': 'tf.compat.v1.enable_v2_tensorshape', 'tf.encode_base64': 'tf.io.encode_base64', 'tf.erf': 'tf.math.erf', 'tf.erfc': 'tf.math.erfc', 'tf.expm1': 'tf.math.expm1', 'tf.fake_quant_with_min_max_args': 'tf.quantization.fake_quant_with_min_max_args', 'tf.fake_quant_with_min_max_args_gradient': 'tf.quantization.fake_quant_with_min_max_args_gradient', 'tf.fake_quant_with_min_max_vars': 'tf.quantization.fake_quant_with_min_max_vars', 'tf.fake_quant_with_min_max_vars_gradient': 'tf.quantization.fake_quant_with_min_max_vars_gradient', 'tf.fake_quant_with_min_max_vars_per_channel': 'tf.quantization.fake_quant_with_min_max_vars_per_channel', 'tf.fake_quant_with_min_max_vars_per_channel_gradient': 'tf.quantization.fake_quant_with_min_max_vars_per_channel_gradient', 'tf.feature_column.input_layer': 'tf.compat.v1.feature_column.input_layer', 'tf.feature_column.linear_model': 'tf.compat.v1.feature_column.linear_model', 'tf.fft': 'tf.signal.fft', 'tf.fft2d': 'tf.signal.fft2d', 'tf.fft3d': 'tf.signal.fft3d', 'tf.fixed_size_partitioner': 'tf.compat.v1.fixed_size_partitioner', 'tf.floordiv': 'tf.math.floordiv', 'tf.get_collection': 'tf.compat.v1.get_collection', 'tf.get_collection_ref': 'tf.compat.v1.get_collection_ref', 'tf.get_default_graph': 'tf.compat.v1.get_default_graph', 'tf.get_default_session': 'tf.compat.v1.get_default_session', 'tf.get_local_variable': 'tf.compat.v1.get_local_variable', 'tf.get_seed': 'tf.compat.v1.get_seed', 'tf.get_session_handle': 'tf.compat.v1.get_session_handle', 'tf.get_session_tensor': 'tf.compat.v1.get_session_tensor', 'tf.get_variable': 'tf.compat.v1.get_variable', 'tf.get_variable_scope': 'tf.compat.v1.get_variable_scope', 'tf.gfile.FastGFile': 'tf.compat.v1.gfile.FastGFile', 'tf.gfile.GFile': 'tf.io.gfile.GFile', 'tf.gfile.Open': 'tf.io.gfile.GFile', 'tf.global_norm': 'tf.linalg.global_norm', 'tf.global_variables': 'tf.compat.v1.global_variables', 'tf.global_variables_initializer': 'tf.compat.v1.global_variables_initializer', 'tf.glorot_normal_initializer': 'tf.compat.v1.glorot_normal_initializer', 'tf.glorot_uniform_initializer': 'tf.compat.v1.glorot_uniform_initializer', 'tf.graph_util.convert_variables_to_constants': 'tf.compat.v1.graph_util.convert_variables_to_constants', 'tf.graph_util.extract_sub_graph': 'tf.compat.v1.graph_util.extract_sub_graph', 'tf.graph_util.must_run_on_cpu': 'tf.compat.v1.graph_util.must_run_on_cpu', 'tf.graph_util.remove_training_nodes': 'tf.compat.v1.graph_util.remove_training_nodes', 'tf.graph_util.tensor_shape_from_node_def_name': 'tf.compat.v1.graph_util.tensor_shape_from_node_def_name', 'tf.ifft': 'tf.signal.ifft', 'tf.ifft2d': 'tf.signal.ifft2d', 'tf.ifft3d': 'tf.signal.ifft3d', 'tf.igamma': 'tf.math.igamma', 'tf.igammac': 'tf.math.igammac', 'tf.imag': 'tf.math.imag', 'tf.image.resize_area': 'tf.compat.v1.image.resize_area', 'tf.image.resize_bicubic': 'tf.compat.v1.image.resize_bicubic', 'tf.image.resize_bilinear': 'tf.compat.v1.image.resize_bilinear', 'tf.image.resize_nearest_neighbor': 'tf.compat.v1.image.resize_nearest_neighbor', 'tf.image.transpose_image': 'tf.compat.v1.image.transpose_image', 'tf.initialize_all_tables': 'tf.compat.v1.initialize_all_tables', 'tf.initialize_all_variables': 'tf.compat.v1.initialize_all_variables', 'tf.initialize_local_variables': 'tf.compat.v1.initialize_local_variables', 'tf.initialize_variables': 'tf.compat.v1.initialize_variables', 'tf.initializers.constant': 'tf.compat.v1.initializers.constant', 'tf.initializers.global_variables': 'tf.compat.v1.initializers.global_variables', 'tf.initializers.glorot_normal': 'tf.compat.v1.initializers.glorot_normal', 'tf.initializers.glorot_uniform': 'tf.compat.v1.initializers.glorot_uniform', 'tf.initializers.he_normal': 'tf.compat.v1.initializers.he_normal', 'tf.initializers.he_uniform': 'tf.compat.v1.initializers.he_uniform', 'tf.initializers.identity': 'tf.compat.v1.initializers.identity', 'tf.initializers.lecun_normal': 'tf.compat.v1.initializers.lecun_normal', 'tf.initializers.lecun_uniform': 'tf.compat.v1.initializers.lecun_uniform', 'tf.initializers.local_variables': 'tf.compat.v1.initializers.local_variables', 'tf.initializers.ones': 'tf.compat.v1.initializers.ones', 'tf.initializers.orthogonal': 'tf.compat.v1.initializers.orthogonal', 'tf.initializers.random_normal': 'tf.compat.v1.initializers.random_normal', 'tf.initializers.random_uniform': 'tf.compat.v1.initializers.random_uniform', 'tf.initializers.tables_initializer': 'tf.compat.v1.initializers.tables_initializer', 'tf.initializers.truncated_normal': 'tf.compat.v1.initializers.truncated_normal', 'tf.initializers.uniform_unit_scaling': 'tf.compat.v1.initializers.uniform_unit_scaling', 'tf.initializers.variables': 'tf.compat.v1.initializers.variables', 'tf.initializers.variance_scaling': 'tf.compat.v1.initializers.variance_scaling', 'tf.initializers.zeros': 'tf.compat.v1.initializers.zeros', 'tf.invert_permutation': 'tf.math.invert_permutation', 'tf.io.PaddingFIFOQueue': 'tf.queue.PaddingFIFOQueue', 'tf.io.PriorityQueue': 'tf.queue.PriorityQueue', 'tf.io.QueueBase': 'tf.queue.QueueBase', 'tf.io.RandomShuffleQueue': 'tf.queue.RandomShuffleQueue', 'tf.io.tf_record_iterator': 'tf.compat.v1.io.tf_record_iterator', 'tf.is_finite': 'tf.math.is_finite', 'tf.is_inf': 'tf.math.is_inf', 'tf.is_nan': 'tf.math.is_nan', 'tf.is_non_decreasing': 'tf.math.is_non_decreasing', 'tf.is_numeric_tensor': 'tf.debugging.is_numeric_tensor', 'tf.is_strictly_increasing': 'tf.math.is_strictly_increasing', 'tf.is_variable_initialized': 'tf.compat.v1.is_variable_initialized', 'tf.keras.initializers.Identity': 'tf.compat.v1.keras.initializers.Identity', 'tf.keras.initializers.Orthogonal': 'tf.compat.v1.keras.initializers.Orthogonal', 'tf.keras.initializers.TruncatedNormal': 'tf.compat.v1.keras.initializers.TruncatedNormal', 'tf.keras.initializers.VarianceScaling': 'tf.compat.v1.keras.initializers.VarianceScaling', 'tf.keras.initializers.constant': 'tf.compat.v1.keras.initializers.constant', 'tf.keras.initializers.glorot_normal': 'tf.compat.v1.keras.initializers.glorot_normal', 'tf.keras.initializers.glorot_uniform': 'tf.compat.v1.keras.initializers.glorot_uniform', 'tf.keras.initializers.he_normal': 'tf.compat.v1.keras.initializers.he_normal', 'tf.keras.initializers.he_uniform': 'tf.compat.v1.keras.initializers.he_uniform', 'tf.keras.initializers.identity': 'tf.compat.v1.keras.initializers.identity', 'tf.keras.initializers.lecun_normal': 'tf.compat.v1.keras.initializers.lecun_normal', 'tf.keras.initializers.lecun_uniform': 'tf.compat.v1.keras.initializers.lecun_uniform', 'tf.keras.initializers.normal': 'tf.compat.v1.keras.initializers.normal', 'tf.keras.initializers.ones': 'tf.compat.v1.keras.initializers.ones', 'tf.keras.initializers.orthogonal': 'tf.compat.v1.keras.initializers.orthogonal', 'tf.keras.initializers.random_normal': 'tf.compat.v1.keras.initializers.random_normal', 'tf.keras.initializers.random_uniform': 'tf.compat.v1.keras.initializers.random_uniform', 'tf.keras.initializers.truncated_normal': 'tf.compat.v1.keras.initializers.truncated_normal', 'tf.keras.initializers.uniform': 'tf.compat.v1.keras.initializers.uniform', 'tf.keras.initializers.zeros': 'tf.compat.v1.keras.initializers.zeros', 'tf.layers.AveragePooling1D': 'tf.compat.v1.layers.AveragePooling1D', 'tf.layers.AveragePooling2D': 'tf.compat.v1.layers.AveragePooling2D', 'tf.layers.AveragePooling3D': 'tf.compat.v1.layers.AveragePooling3D', 'tf.layers.BatchNormalization': 'tf.compat.v1.layers.BatchNormalization', 'tf.layers.Conv1D': 'tf.compat.v1.layers.Conv1D', 'tf.layers.Conv2D': 'tf.compat.v1.layers.Conv2D', 'tf.layers.Conv2DTranspose': 'tf.compat.v1.layers.Conv2DTranspose', 'tf.layers.Conv3D': 'tf.compat.v1.layers.Conv3D', 'tf.layers.Conv3DTranspose': 'tf.compat.v1.layers.Conv3DTranspose', 'tf.layers.Dense': 'tf.compat.v1.layers.Dense', 'tf.layers.Dropout': 'tf.compat.v1.layers.Dropout', 'tf.layers.Flatten': 'tf.compat.v1.layers.Flatten', 'tf.layers.InputSpec': 'tf.keras.layers.InputSpec', 'tf.layers.Layer': 'tf.compat.v1.layers.Layer', 'tf.layers.MaxPooling1D': 'tf.compat.v1.layers.MaxPooling1D', 'tf.layers.MaxPooling2D': 'tf.compat.v1.layers.MaxPooling2D', 'tf.layers.MaxPooling3D': 'tf.compat.v1.layers.MaxPooling3D', 'tf.layers.SeparableConv1D': 'tf.compat.v1.layers.SeparableConv1D', 'tf.layers.SeparableConv2D': 'tf.compat.v1.layers.SeparableConv2D', 'tf.layers.average_pooling1d': 'tf.compat.v1.layers.average_pooling1d', 'tf.layers.average_pooling2d': 'tf.compat.v1.layers.average_pooling2d', 'tf.layers.average_pooling3d': 'tf.compat.v1.layers.average_pooling3d', 'tf.layers.batch_normalization': 'tf.compat.v1.layers.batch_normalization', 'tf.layers.conv1d': 'tf.compat.v1.layers.conv1d', 'tf.layers.conv2d': 'tf.compat.v1.layers.conv2d', 'tf.layers.conv2d_transpose': 'tf.compat.v1.layers.conv2d_transpose', 'tf.layers.conv3d': 'tf.compat.v1.layers.conv3d', 'tf.layers.conv3d_transpose': 'tf.compat.v1.layers.conv3d_transpose', 'tf.layers.dense': 'tf.compat.v1.layers.dense', 'tf.layers.dropout': 'tf.compat.v1.layers.dropout', 'tf.layers.experimental.keras_style_scope': 'tf.compat.v1.layers.experimental.keras_style_scope', 'tf.layers.experimental.set_keras_style': 'tf.compat.v1.layers.experimental.set_keras_style', 'tf.layers.flatten': 'tf.compat.v1.layers.flatten', 'tf.layers.max_pooling1d': 'tf.compat.v1.layers.max_pooling1d', 'tf.layers.max_pooling2d': 'tf.compat.v1.layers.max_pooling2d', 'tf.layers.max_pooling3d': 'tf.compat.v1.layers.max_pooling3d', 'tf.layers.separable_conv1d': 'tf.compat.v1.layers.separable_conv1d', 'tf.layers.separable_conv2d': 'tf.compat.v1.layers.separable_conv2d', 'tf.lbeta': 'tf.math.lbeta', 'tf.lgamma': 'tf.math.lgamma', 'tf.lin_space': 'tf.linspace', 'tf.local_variables': 'tf.compat.v1.local_variables', 'tf.local_variables_initializer': 'tf.compat.v1.local_variables_initializer', 'tf.log': 'tf.math.log', 'tf.log1p': 'tf.math.log1p', 'tf.log_sigmoid': 'tf.math.log_sigmoid', 'tf.logging.DEBUG': 'tf.compat.v1.logging.DEBUG', 'tf.logging.ERROR': 'tf.compat.v1.logging.ERROR', 'tf.logging.FATAL': 'tf.compat.v1.logging.FATAL', 'tf.logging.INFO': 'tf.compat.v1.logging.INFO', 'tf.logging.TaskLevelStatusMessage': 'tf.compat.v1.logging.TaskLevelStatusMessage', 'tf.logging.WARN': 'tf.compat.v1.logging.WARN', 'tf.logging.debug': 'tf.compat.v1.logging.debug', 'tf.logging.error': 'tf.compat.v1.logging.error', 'tf.logging.fatal': 'tf.compat.v1.logging.fatal', 'tf.logging.flush': 'tf.compat.v1.logging.flush', 'tf.logging.get_verbosity': 'tf.compat.v1.logging.get_verbosity', 'tf.logging.info': 'tf.compat.v1.logging.info', 'tf.logging.log': 'tf.compat.v1.logging.log', 'tf.logging.log_every_n': 'tf.compat.v1.logging.log_every_n', 'tf.logging.log_first_n': 'tf.compat.v1.logging.log_first_n', 'tf.logging.log_if': 'tf.compat.v1.logging.log_if', 'tf.logging.set_verbosity': 'tf.compat.v1.logging.set_verbosity', 'tf.logging.vlog': 'tf.compat.v1.logging.vlog', 'tf.logging.warn': 'tf.compat.v1.logging.warn', 'tf.logging.warning': 'tf.compat.v1.logging.warning', 'tf.logical_xor': 'tf.math.logical_xor', 'tf.losses.absolute_difference': 'tf.compat.v1.losses.absolute_difference', 'tf.losses.add_loss': 'tf.compat.v1.losses.add_loss', 'tf.losses.compute_weighted_loss': 'tf.compat.v1.losses.compute_weighted_loss', 'tf.losses.cosine_distance': 'tf.compat.v1.losses.cosine_distance', 'tf.losses.get_losses': 'tf.compat.v1.losses.get_losses', 'tf.losses.get_regularization_loss': 'tf.compat.v1.losses.get_regularization_loss', 'tf.losses.get_regularization_losses': 'tf.compat.v1.losses.get_regularization_losses', 'tf.losses.get_total_loss': 'tf.compat.v1.losses.get_total_loss', 'tf.losses.hinge_loss': 'tf.compat.v1.losses.hinge_loss', 'tf.losses.huber_loss': 'tf.compat.v1.losses.huber_loss', 'tf.losses.log_loss': 'tf.compat.v1.losses.log_loss', 'tf.losses.mean_pairwise_squared_error': 'tf.compat.v1.losses.mean_pairwise_squared_error', 'tf.losses.mean_squared_error': 'tf.compat.v1.losses.mean_squared_error', 'tf.losses.sigmoid_cross_entropy': 'tf.compat.v1.losses.sigmoid_cross_entropy', 'tf.losses.softmax_cross_entropy': 'tf.compat.v1.losses.softmax_cross_entropy', 'tf.losses.sparse_softmax_cross_entropy': 'tf.compat.v1.losses.sparse_softmax_cross_entropy', 'tf.make_template': 'tf.compat.v1.make_template', 'tf.make_tensor_proto': 'tf.compat.v1.make_tensor_proto', 'tf.manip.gather_nd': 'tf.gather_nd', 'tf.manip.reshape': 'tf.reshape', 'tf.manip.reverse': 'tf.reverse', 'tf.manip.roll': 'tf.roll', 'tf.manip.scatter_nd': 'tf.scatter_nd', 'tf.manip.space_to_batch_nd': 'tf.space_to_batch_nd', 'tf.manip.tile': 'tf.tile', 'tf.matching_files': 'tf.io.matching_files', 'tf.matrix_band_part': 'tf.linalg.band_part', 'tf.matrix_determinant': 'tf.linalg.det', 'tf.matrix_diag': 'tf.linalg.diag', 'tf.matrix_diag_part': 'tf.linalg.diag_part', 'tf.matrix_inverse': 'tf.linalg.inv', 'tf.matrix_set_diag': 'tf.linalg.set_diag', 'tf.matrix_solve': 'tf.linalg.solve', 'tf.matrix_solve_ls': 'tf.linalg.lstsq', 'tf.matrix_transpose': 'tf.linalg.transpose', 'tf.matrix_triangular_solve': 'tf.linalg.triangular_solve', 'tf.metrics.accuracy': 'tf.compat.v1.metrics.accuracy', 'tf.metrics.auc': 'tf.compat.v1.metrics.auc', 'tf.metrics.average_precision_at_k': 'tf.compat.v1.metrics.average_precision_at_k', 'tf.metrics.false_negatives': 'tf.compat.v1.metrics.false_negatives', 'tf.metrics.false_negatives_at_thresholds': 'tf.compat.v1.metrics.false_negatives_at_thresholds', 'tf.metrics.false_positives': 'tf.compat.v1.metrics.false_positives', 'tf.metrics.false_positives_at_thresholds': 'tf.compat.v1.metrics.false_positives_at_thresholds', 'tf.metrics.mean': 'tf.compat.v1.metrics.mean', 'tf.metrics.mean_absolute_error': 'tf.compat.v1.metrics.mean_absolute_error', 'tf.metrics.mean_cosine_distance': 'tf.compat.v1.metrics.mean_cosine_distance', 'tf.metrics.mean_iou': 'tf.compat.v1.metrics.mean_iou', 'tf.metrics.mean_per_class_accuracy': 'tf.compat.v1.metrics.mean_per_class_accuracy', 'tf.metrics.mean_relative_error': 'tf.compat.v1.metrics.mean_relative_error', 'tf.metrics.mean_squared_error': 'tf.compat.v1.metrics.mean_squared_error', 'tf.metrics.mean_tensor': 'tf.compat.v1.metrics.mean_tensor', 'tf.metrics.percentage_below': 'tf.compat.v1.metrics.percentage_below', 'tf.metrics.precision': 'tf.compat.v1.metrics.precision', 'tf.metrics.precision_at_k': 'tf.compat.v1.metrics.precision_at_k', 'tf.metrics.precision_at_thresholds': 'tf.compat.v1.metrics.precision_at_thresholds', 'tf.metrics.precision_at_top_k': 'tf.compat.v1.metrics.precision_at_top_k', 'tf.metrics.recall': 'tf.compat.v1.metrics.recall', 'tf.metrics.recall_at_k': 'tf.compat.v1.metrics.recall_at_k', 'tf.metrics.recall_at_thresholds': 'tf.compat.v1.metrics.recall_at_thresholds', 'tf.metrics.recall_at_top_k': 'tf.compat.v1.metrics.recall_at_top_k', 'tf.metrics.root_mean_squared_error': 'tf.compat.v1.metrics.root_mean_squared_error', 'tf.metrics.sensitivity_at_specificity': 'tf.compat.v1.metrics.sensitivity_at_specificity', 'tf.metrics.sparse_average_precision_at_k': 'tf.compat.v1.metrics.sparse_average_precision_at_k', 'tf.metrics.sparse_precision_at_k': 'tf.compat.v1.metrics.sparse_precision_at_k', 'tf.metrics.specificity_at_sensitivity': 'tf.compat.v1.metrics.specificity_at_sensitivity', 'tf.metrics.true_negatives': 'tf.compat.v1.metrics.true_negatives', 'tf.metrics.true_negatives_at_thresholds': 'tf.compat.v1.metrics.true_negatives_at_thresholds', 'tf.metrics.true_positives': 'tf.compat.v1.metrics.true_positives', 'tf.metrics.true_positives_at_thresholds': 'tf.compat.v1.metrics.true_positives_at_thresholds', 'tf.min_max_variable_partitioner': 'tf.compat.v1.min_max_variable_partitioner', 'tf.model_variables': 'tf.compat.v1.model_variables', 'tf.moving_average_variables': 'tf.compat.v1.moving_average_variables', 'tf.nn.bidirectional_dynamic_rnn': 'tf.compat.v1.nn.bidirectional_dynamic_rnn', 'tf.nn.conv3d_backprop_filter_v2': 'tf.nn.conv3d_backprop_filter', 'tf.nn.ctc_beam_search_decoder_v2': 'tf.nn.ctc_beam_search_decoder', 'tf.nn.ctc_loss_v2': 'tf.nn.ctc_loss', 'tf.nn.depthwise_conv2d_native': 'tf.compat.v1.nn.depthwise_conv2d_native', 'tf.nn.depthwise_conv2d_native_backprop_filter': 'tf.nn.depthwise_conv2d_backprop_filter', 'tf.nn.depthwise_conv2d_native_backprop_input': 'tf.nn.depthwise_conv2d_backprop_input', 'tf.nn.dynamic_rnn': 'tf.compat.v1.nn.dynamic_rnn', 'tf.nn.log_uniform_candidate_sampler': 'tf.random.log_uniform_candidate_sampler', 'tf.nn.quantized_avg_pool': 'tf.compat.v1.nn.quantized_avg_pool', 'tf.nn.quantized_conv2d': 'tf.compat.v1.nn.quantized_conv2d', 'tf.nn.quantized_max_pool': 'tf.compat.v1.nn.quantized_max_pool', 'tf.nn.quantized_relu_x': 'tf.compat.v1.nn.quantized_relu_x', 'tf.nn.raw_rnn': 'tf.compat.v1.nn.raw_rnn', 'tf.nn.relu_layer': 'tf.compat.v1.nn.relu_layer', 'tf.nn.rnn_cell.BasicLSTMCell': 'tf.compat.v1.nn.rnn_cell.BasicLSTMCell', 'tf.nn.rnn_cell.BasicRNNCell': 'tf.compat.v1.nn.rnn_cell.BasicRNNCell', 'tf.nn.rnn_cell.DropoutWrapper': 'tf.compat.v1.nn.rnn_cell.DropoutWrapper', 'tf.nn.rnn_cell.GRUCell': 'tf.compat.v1.nn.rnn_cell.GRUCell', 'tf.nn.rnn_cell.LSTMCell': 'tf.compat.v1.nn.rnn_cell.LSTMCell', 'tf.nn.rnn_cell.MultiRNNCell': 'tf.compat.v1.nn.rnn_cell.MultiRNNCell', 'tf.nn.static_bidirectional_rnn': 'tf.compat.v1.nn.static_bidirectional_rnn', 'tf.nn.static_rnn': 'tf.compat.v1.nn.static_rnn', 'tf.nn.uniform_candidate_sampler': 'tf.random.uniform_candidate_sampler', 'tf.nn.xw_plus_b': 'tf.compat.v1.nn.xw_plus_b', 'tf.op_scope': 'tf.compat.v1.op_scope', 'tf.orthogonal_initializer': 'tf.compat.v1.orthogonal_initializer', 'tf.parse_single_sequence_example': 'tf.io.parse_single_sequence_example', 'tf.parse_tensor': 'tf.io.parse_tensor', 'tf.placeholder': 'tf.compat.v1.placeholder', 'tf.placeholder_with_default': 'tf.compat.v1.placeholder_with_default', 'tf.polygamma': 'tf.math.polygamma', 'tf.profiler.AdviceProto': 'tf.compat.v1.profiler.AdviceProto', 'tf.profiler.GraphNodeProto': 'tf.compat.v1.profiler.GraphNodeProto', 'tf.profiler.MultiGraphNodeProto': 'tf.compat.v1.profiler.MultiGraphNodeProto', 'tf.profiler.OpLogProto': 'tf.compat.v1.profiler.OpLogProto', 'tf.profiler.ProfileOptionBuilder': 'tf.compat.v1.profiler.ProfileOptionBuilder', 'tf.profiler.Profiler': 'tf.compat.v1.profiler.Profiler', 'tf.profiler.advise': 'tf.compat.v1.profiler.advise', 'tf.profiler.profile': 'tf.compat.v1.profiler.profile', 'tf.profiler.write_op_log': 'tf.compat.v1.profiler.write_op_log', 'tf.py_func': 'tf.compat.v1.py_func', 'tf.python_io.TFRecordCompressionType': 'tf.io.TFRecordCompressionType', 'tf.python_io.TFRecordOptions': 'tf.io.TFRecordOptions', 'tf.python_io.TFRecordWriter': 'tf.io.TFRecordWriter', 'tf.python_io.tf_record_iterator': 'tf.compat.v1.python_io.tf_record_iterator', 'tf.qr': 'tf.linalg.qr', 'tf.quantize': 'tf.quantization.quantize', 'tf.quantized_concat': 'tf.quantization.quantized_concat', 'tf.ragged.RaggedTensorValue': 'tf.compat.v1.ragged.RaggedTensorValue', 'tf.ragged.constant_value': 'tf.compat.v1.ragged.constant_value', 'tf.random.get_seed': 'tf.compat.v1.random.get_seed', 'tf.random.set_random_seed': 'tf.compat.v1.random.set_random_seed', 'tf.random_crop': 'tf.image.random_crop', 'tf.random_gamma': 'tf.random.gamma', 'tf.random_normal': 'tf.random.normal', 'tf.random_shuffle': 'tf.random.shuffle', 'tf.random_uniform': 'tf.random.uniform', 'tf.read_file': 'tf.io.read_file', 'tf.real': 'tf.math.real', 'tf.reciprocal': 'tf.math.reciprocal', 'tf.regex_replace': 'tf.strings.regex_replace', 'tf.report_uninitialized_variables': 'tf.compat.v1.report_uninitialized_variables', 'tf.reset_default_graph': 'tf.compat.v1.reset_default_graph', 'tf.resource_loader.get_data_files_path': 'tf.compat.v1.resource_loader.get_data_files_path', 'tf.resource_loader.get_path_to_datafile': 'tf.compat.v1.resource_loader.get_path_to_datafile', 'tf.resource_loader.get_root_dir_with_all_resources': 'tf.compat.v1.resource_loader.get_root_dir_with_all_resources', 'tf.resource_loader.load_resource': 'tf.compat.v1.resource_loader.load_resource', 'tf.resource_loader.readahead_file_path': 'tf.compat.v1.resource_loader.readahead_file_path', 'tf.reverse_v2': 'tf.reverse', 'tf.rint': 'tf.math.rint', 'tf.rsqrt': 'tf.math.rsqrt', 'tf.saved_model.Builder': 'tf.compat.v1.saved_model.Builder', 'tf.saved_model.LEGACY_INIT_OP_KEY': 'tf.compat.v1.saved_model.LEGACY_INIT_OP_KEY', 'tf.saved_model.MAIN_OP_KEY': 'tf.compat.v1.saved_model.MAIN_OP_KEY', 'tf.saved_model.build_tensor_info': 'tf.compat.v1.saved_model.build_tensor_info', 'tf.saved_model.builder.SavedModelBuilder': 'tf.compat.v1.saved_model.builder.SavedModelBuilder', 'tf.saved_model.constants.ASSETS_DIRECTORY': 'tf.saved_model.ASSETS_DIRECTORY', 'tf.saved_model.constants.ASSETS_KEY': 'tf.saved_model.ASSETS_KEY', 'tf.saved_model.constants.LEGACY_INIT_OP_KEY': 'tf.compat.v1.saved_model.constants.LEGACY_INIT_OP_KEY', 'tf.saved_model.constants.MAIN_OP_KEY': 'tf.compat.v1.saved_model.constants.MAIN_OP_KEY', 'tf.saved_model.constants.SAVED_MODEL_FILENAME_PB': 'tf.saved_model.SAVED_MODEL_FILENAME_PB', 'tf.saved_model.constants.SAVED_MODEL_FILENAME_PBTXT': 'tf.saved_model.SAVED_MODEL_FILENAME_PBTXT', 'tf.saved_model.constants.SAVED_MODEL_SCHEMA_VERSION': 'tf.saved_model.SAVED_MODEL_SCHEMA_VERSION', 'tf.saved_model.constants.VARIABLES_DIRECTORY': 'tf.saved_model.VARIABLES_DIRECTORY', 'tf.saved_model.constants.VARIABLES_FILENAME': 'tf.saved_model.VARIABLES_FILENAME', 'tf.saved_model.experimental.save': 'tf.saved_model.save', 'tf.saved_model.get_tensor_from_tensor_info': 'tf.compat.v1.saved_model.get_tensor_from_tensor_info', 'tf.saved_model.load': 'tf.compat.v1.saved_model.load', 'tf.saved_model.loader.load': 'tf.compat.v1.saved_model.loader.load', 'tf.saved_model.loader.maybe_saved_model_directory': 'tf.compat.v1.saved_model.loader.maybe_saved_model_directory', 'tf.saved_model.main_op.main_op': 'tf.compat.v1.saved_model.main_op.main_op', 'tf.saved_model.main_op.main_op_with_restore': 'tf.compat.v1.saved_model.main_op.main_op_with_restore', 'tf.saved_model.main_op_with_restore': 'tf.compat.v1.saved_model.main_op_with_restore', 'tf.saved_model.maybe_saved_model_directory': 'tf.compat.v1.saved_model.maybe_saved_model_directory', 'tf.saved_model.signature_constants.CLASSIFY_INPUTS': 'tf.saved_model.CLASSIFY_INPUTS', 'tf.saved_model.signature_constants.CLASSIFY_METHOD_NAME': 'tf.saved_model.CLASSIFY_METHOD_NAME', 'tf.saved_model.signature_constants.CLASSIFY_OUTPUT_CLASSES': 'tf.saved_model.CLASSIFY_OUTPUT_CLASSES', 'tf.saved_model.signature_constants.CLASSIFY_OUTPUT_SCORES': 'tf.saved_model.CLASSIFY_OUTPUT_SCORES', 'tf.saved_model.signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY': 'tf.saved_model.DEFAULT_SERVING_SIGNATURE_DEF_KEY', 'tf.saved_model.signature_constants.PREDICT_INPUTS': 'tf.saved_model.PREDICT_INPUTS', 'tf.saved_model.signature_constants.PREDICT_METHOD_NAME': 'tf.saved_model.PREDICT_METHOD_NAME', 'tf.saved_model.signature_constants.PREDICT_OUTPUTS': 'tf.saved_model.PREDICT_OUTPUTS', 'tf.saved_model.signature_constants.REGRESS_INPUTS': 'tf.saved_model.REGRESS_INPUTS', 'tf.saved_model.signature_constants.REGRESS_METHOD_NAME': 'tf.saved_model.REGRESS_METHOD_NAME', 'tf.saved_model.signature_constants.REGRESS_OUTPUTS': 'tf.saved_model.REGRESS_OUTPUTS', 'tf.saved_model.signature_def_utils.build_signature_def': 'tf.saved_model.build_signature_def', 'tf.saved_model.signature_def_utils.classification_signature_def': 'tf.saved_model.classification_signature_def', 'tf.saved_model.signature_def_utils.is_valid_signature': 'tf.saved_model.is_valid_signature', 'tf.saved_model.signature_def_utils.predict_signature_def': 'tf.saved_model.predict_signature_def', 'tf.saved_model.signature_def_utils.regression_signature_def': 'tf.saved_model.regression_signature_def', 'tf.saved_model.simple_save': 'tf.compat.v1.saved_model.simple_save', 'tf.saved_model.tag_constants.GPU': 'tf.saved_model.GPU', 'tf.saved_model.tag_constants.SERVING': 'tf.saved_model.SERVING', 'tf.saved_model.tag_constants.TPU': 'tf.saved_model.TPU', 'tf.saved_model.tag_constants.TRAINING': 'tf.saved_model.TRAINING', 'tf.saved_model.utils.build_tensor_info': 'tf.compat.v1.saved_model.utils.build_tensor_info', 'tf.saved_model.utils.get_tensor_from_tensor_info': 'tf.compat.v1.saved_model.utils.get_tensor_from_tensor_info', 'tf.scatter_add': 'tf.compat.v1.scatter_add', 'tf.scatter_nd_add': 'tf.compat.v1.scatter_nd_add', 'tf.scatter_nd_sub': 'tf.compat.v1.scatter_nd_sub', 'tf.scatter_nd_update': 'tf.compat.v1.scatter_nd_update', 'tf.scatter_sub': 'tf.compat.v1.scatter_sub', 'tf.scatter_update': 'tf.compat.v1.scatter_update', 'tf.segment_max': 'tf.math.segment_max', 'tf.segment_mean': 'tf.math.segment_mean', 'tf.segment_min': 'tf.math.segment_min', 'tf.segment_prod': 'tf.math.segment_prod', 'tf.segment_sum': 'tf.math.segment_sum', 'tf.self_adjoint_eig': 'tf.linalg.eigh', 'tf.self_adjoint_eigvals': 'tf.linalg.eigvalsh', 'tf.serialize_many_sparse': 'tf.compat.v1.serialize_many_sparse', 'tf.serialize_sparse': 'tf.compat.v1.serialize_sparse', 'tf.serialize_tensor': 'tf.io.serialize_tensor', 'tf.set_random_seed': 'tf.compat.v1.set_random_seed', 'tf.setdiff1d': 'tf.compat.v1.setdiff1d', 'tf.sets.set_difference': 'tf.sets.difference', 'tf.sets.set_intersection': 'tf.sets.intersection', 'tf.sets.set_size': 'tf.sets.size', 'tf.sets.set_union': 'tf.sets.union', 'tf.space_to_depth': 'tf.compat.v1.space_to_depth', 'tf.sparse.matmul': 'tf.sparse.sparse_dense_matmul', 'tf.sparse.merge': 'tf.compat.v1.sparse.merge', 'tf.sparse.placeholder': 'tf.compat.v1.sparse.placeholder', 'tf.sparse.reduce_max_sparse': 'tf.compat.v1.sparse.reduce_max_sparse', 'tf.sparse.reduce_sum_sparse': 'tf.compat.v1.sparse.reduce_sum_sparse', 'tf.sparse_fill_empty_rows': 'tf.sparse.fill_empty_rows', 'tf.sparse_mask': 'tf.sparse.mask', 'tf.sparse_maximum': 'tf.sparse.maximum', 'tf.sparse_merge': 'tf.compat.v1.sparse_merge', 'tf.sparse_minimum': 'tf.sparse.minimum', 'tf.sparse_placeholder': 'tf.compat.v1.sparse_placeholder', 'tf.sparse_reduce_max_sparse': 'tf.compat.v1.sparse_reduce_max_sparse', 'tf.sparse_reduce_sum_sparse': 'tf.compat.v1.sparse_reduce_sum_sparse', 'tf.sparse_reorder': 'tf.sparse.reorder', 'tf.sparse_reset_shape': 'tf.sparse.reset_shape', 'tf.sparse_reshape': 'tf.sparse.reshape', 'tf.sparse_retain': 'tf.sparse.retain', 'tf.sparse_segment_mean': 'tf.compat.v1.sparse_segment_mean', 'tf.sparse_segment_sqrt_n': 'tf.compat.v1.sparse_segment_sqrt_n', 'tf.sparse_segment_sum': 'tf.compat.v1.sparse_segment_sum', 'tf.sparse_slice': 'tf.sparse.slice', 'tf.sparse_softmax': 'tf.sparse.softmax', 'tf.sparse_tensor_dense_matmul': 'tf.sparse.sparse_dense_matmul', 'tf.sparse_tensor_to_dense': 'tf.sparse.to_dense', 'tf.sparse_to_dense': 'tf.compat.v1.sparse_to_dense', 'tf.sparse_to_indicator': 'tf.sparse.to_indicator', 'tf.sparse_transpose': 'tf.sparse.transpose', 'tf.spectral.dct': 'tf.signal.dct', 'tf.spectral.fft': 'tf.signal.fft', 'tf.spectral.fft2d': 'tf.signal.fft2d', 'tf.spectral.fft3d': 'tf.signal.fft3d', 'tf.spectral.idct': 'tf.signal.idct', 'tf.spectral.ifft': 'tf.signal.ifft', 'tf.spectral.ifft2d': 'tf.signal.ifft2d', 'tf.spectral.ifft3d': 'tf.signal.ifft3d', 'tf.spectral.irfft': 'tf.signal.irfft', 'tf.spectral.irfft2d': 'tf.signal.irfft2d', 'tf.spectral.irfft3d': 'tf.signal.irfft3d', 'tf.spectral.rfft': 'tf.signal.rfft', 'tf.spectral.rfft2d': 'tf.signal.rfft2d', 'tf.spectral.rfft3d': 'tf.signal.rfft3d', 'tf.squared_difference': 'tf.math.squared_difference', 'tf.string_join': 'tf.strings.join', 'tf.string_strip': 'tf.strings.strip', 'tf.string_to_hash_bucket_fast': 'tf.strings.to_hash_bucket_fast', 'tf.string_to_hash_bucket_strong': 'tf.strings.to_hash_bucket_strong', 'tf.summary.Event': 'tf.compat.v1.summary.Event', 'tf.summary.FileWriter': 'tf.compat.v1.summary.FileWriter', 'tf.summary.FileWriterCache': 'tf.compat.v1.summary.FileWriterCache', 'tf.summary.SessionLog': 'tf.compat.v1.summary.SessionLog', 'tf.summary.Summary': 'tf.compat.v1.summary.Summary', 'tf.summary.SummaryDescription': 'tf.compat.v1.summary.SummaryDescription', 'tf.summary.TaggedRunMetadata': 'tf.compat.v1.summary.TaggedRunMetadata', 'tf.summary.audio': 'tf.compat.v1.summary.audio', 'tf.summary.get_summary_description': 'tf.compat.v1.summary.get_summary_description', 'tf.summary.histogram': 'tf.compat.v1.summary.histogram', 'tf.summary.image': 'tf.compat.v1.summary.image', 'tf.summary.merge': 'tf.compat.v1.summary.merge', 'tf.summary.merge_all': 'tf.compat.v1.summary.merge_all', 'tf.summary.scalar': 'tf.compat.v1.summary.scalar', 'tf.summary.tensor_summary': 'tf.compat.v1.summary.tensor_summary', 'tf.summary.text': 'tf.compat.v1.summary.text', 'tf.svd': 'tf.linalg.svd', 'tf.tables_initializer': 'tf.compat.v1.tables_initializer', 'tf.test.StubOutForTesting': 'tf.compat.v1.test.StubOutForTesting', 'tf.test.compute_gradient': 'tf.compat.v1.test.compute_gradient', 'tf.test.compute_gradient_error': 'tf.compat.v1.test.compute_gradient_error', 'tf.test.get_temp_dir': 'tf.compat.v1.test.get_temp_dir', 'tf.test.mock': 'tf.compat.v1.test.mock', 'tf.test.test_src_dir_path': 'tf.compat.v1.test.test_src_dir_path', 'tf.to_bfloat16': 'tf.compat.v1.to_bfloat16', 'tf.to_complex128': 'tf.compat.v1.to_complex128', 'tf.to_complex64': 'tf.compat.v1.to_complex64', 'tf.to_double': 'tf.compat.v1.to_double', 'tf.to_float': 'tf.compat.v1.to_float', 'tf.to_int32': 'tf.compat.v1.to_int32', 'tf.to_int64': 'tf.compat.v1.to_int64', 'tf.trace': 'tf.linalg.trace', 'tf.train.AdadeltaOptimizer': 'tf.compat.v1.train.AdadeltaOptimizer', 'tf.train.AdagradDAOptimizer': 'tf.compat.v1.train.AdagradDAOptimizer', 'tf.train.AdagradOptimizer': 'tf.compat.v1.train.AdagradOptimizer', 'tf.train.AdamOptimizer': 'tf.compat.v1.train.AdamOptimizer', 'tf.train.CheckpointSaverHook': 'tf.estimator.CheckpointSaverHook', 'tf.train.CheckpointSaverListener': 'tf.estimator.CheckpointSaverListener', 'tf.train.ChiefSessionCreator': 'tf.compat.v1.train.ChiefSessionCreator', 'tf.train.FeedFnHook': 'tf.estimator.FeedFnHook', 'tf.train.FinalOpsHook': 'tf.estimator.FinalOpsHook', 'tf.train.FtrlOptimizer': 'tf.compat.v1.train.FtrlOptimizer', 'tf.train.GlobalStepWaiterHook': 'tf.estimator.GlobalStepWaiterHook', 'tf.train.GradientDescentOptimizer': 'tf.compat.v1.train.GradientDescentOptimizer', 'tf.train.LoggingTensorHook': 'tf.estimator.LoggingTensorHook', 'tf.train.LooperThread': 'tf.compat.v1.train.LooperThread', 'tf.train.MomentumOptimizer': 'tf.compat.v1.train.MomentumOptimizer', 'tf.train.MonitoredSession': 'tf.compat.v1.train.MonitoredSession', 'tf.train.MonitoredTrainingSession': 'tf.compat.v1.train.MonitoredTrainingSession', 'tf.train.NanLossDuringTrainingError': 'tf.estimator.NanLossDuringTrainingError', 'tf.train.NanTensorHook': 'tf.estimator.NanTensorHook', 'tf.train.NewCheckpointReader': 'tf.compat.v1.train.NewCheckpointReader', 'tf.train.Optimizer': 'tf.compat.v1.train.Optimizer', 'tf.train.ProfilerHook': 'tf.estimator.ProfilerHook', 'tf.train.ProximalAdagradOptimizer': 'tf.compat.v1.train.ProximalAdagradOptimizer', 'tf.train.ProximalGradientDescentOptimizer': 'tf.compat.v1.train.ProximalGradientDescentOptimizer', 'tf.train.QueueRunner': 'tf.compat.v1.train.QueueRunner', 'tf.train.RMSPropOptimizer': 'tf.compat.v1.train.RMSPropOptimizer', 'tf.train.Saver': 'tf.compat.v1.train.Saver', 'tf.train.SaverDef': 'tf.compat.v1.train.SaverDef', 'tf.train.Scaffold': 'tf.compat.v1.train.Scaffold', 'tf.train.SecondOrStepTimer': 'tf.estimator.SecondOrStepTimer', 'tf.train.Server': 'tf.distribute.Server', 'tf.train.SessionCreator': 'tf.compat.v1.train.SessionCreator', 'tf.train.SessionManager': 'tf.compat.v1.train.SessionManager', 'tf.train.SessionRunArgs': 'tf.estimator.SessionRunArgs', 'tf.train.SessionRunContext': 'tf.estimator.SessionRunContext', 'tf.train.SessionRunHook': 'tf.estimator.SessionRunHook', 'tf.train.SessionRunValues': 'tf.estimator.SessionRunValues', 'tf.train.SingularMonitoredSession': 'tf.compat.v1.train.SingularMonitoredSession', 'tf.train.StepCounterHook': 'tf.estimator.StepCounterHook', 'tf.train.StopAtStepHook': 'tf.estimator.StopAtStepHook', 'tf.train.SummarySaverHook': 'tf.estimator.SummarySaverHook', 'tf.train.Supervisor': 'tf.compat.v1.train.Supervisor', 'tf.train.SyncReplicasOptimizer': 'tf.compat.v1.train.SyncReplicasOptimizer', 'tf.train.VocabInfo': 'tf.estimator.VocabInfo', 'tf.train.WorkerSessionCreator': 'tf.compat.v1.train.WorkerSessionCreator', 'tf.train.add_queue_runner': 'tf.compat.v1.train.add_queue_runner', 'tf.train.assert_global_step': 'tf.compat.v1.train.assert_global_step', 'tf.train.basic_train_loop': 'tf.compat.v1.train.basic_train_loop', 'tf.train.batch': 'tf.compat.v1.train.batch', 'tf.train.batch_join': 'tf.compat.v1.train.batch_join', 'tf.train.checkpoint_exists': 'tf.compat.v1.train.checkpoint_exists', 'tf.train.create_global_step': 'tf.compat.v1.train.create_global_step', 'tf.train.do_quantize_training_on_graphdef': 'tf.compat.v1.train.do_quantize_training_on_graphdef', 'tf.train.export_meta_graph': 'tf.compat.v1.train.export_meta_graph', 'tf.train.generate_checkpoint_state_proto': 'tf.compat.v1.train.generate_checkpoint_state_proto', 'tf.train.get_checkpoint_mtimes': 'tf.compat.v1.train.get_checkpoint_mtimes', 'tf.train.get_global_step': 'tf.compat.v1.train.get_global_step', 'tf.train.get_or_create_global_step': 'tf.compat.v1.train.get_or_create_global_step', 'tf.train.global_step': 'tf.compat.v1.train.global_step', 'tf.train.import_meta_graph': 'tf.compat.v1.train.import_meta_graph', 'tf.train.init_from_checkpoint': 'tf.compat.v1.train.init_from_checkpoint', 'tf.train.input_producer': 'tf.compat.v1.train.input_producer', 'tf.train.limit_epochs': 'tf.compat.v1.train.limit_epochs', 'tf.train.match_filenames_once': 'tf.io.match_filenames_once', 'tf.train.maybe_batch': 'tf.compat.v1.train.maybe_batch', 'tf.train.maybe_batch_join': 'tf.compat.v1.train.maybe_batch_join', 'tf.train.maybe_shuffle_batch': 'tf.compat.v1.train.maybe_shuffle_batch', 'tf.train.maybe_shuffle_batch_join': 'tf.compat.v1.train.maybe_shuffle_batch_join', 'tf.train.piecewise_constant': 'tf.compat.v1.train.piecewise_constant', 'tf.train.queue_runner.QueueRunner': 'tf.compat.v1.train.queue_runner.QueueRunner', 'tf.train.queue_runner.add_queue_runner': 'tf.compat.v1.train.queue_runner.add_queue_runner', 'tf.train.queue_runner.start_queue_runners': 'tf.compat.v1.train.queue_runner.start_queue_runners', 'tf.train.range_input_producer': 'tf.compat.v1.train.range_input_producer', 'tf.train.remove_checkpoint': 'tf.compat.v1.train.remove_checkpoint', 'tf.train.replica_device_setter': 'tf.compat.v1.train.replica_device_setter', 'tf.train.shuffle_batch': 'tf.compat.v1.train.shuffle_batch', 'tf.train.shuffle_batch_join': 'tf.compat.v1.train.shuffle_batch_join', 'tf.train.slice_input_producer': 'tf.compat.v1.train.slice_input_producer', 'tf.train.start_queue_runners': 'tf.compat.v1.train.start_queue_runners', 'tf.train.string_input_producer': 'tf.compat.v1.train.string_input_producer', 'tf.train.summary_iterator': 'tf.compat.v1.train.summary_iterator', 'tf.train.update_checkpoint_state': 'tf.compat.v1.train.update_checkpoint_state', 'tf.train.warm_start': 'tf.compat.v1.train.warm_start', 'tf.train.write_graph': 'tf.io.write_graph', 'tf.trainable_variables': 'tf.compat.v1.trainable_variables', 'tf.truncated_normal': 'tf.random.truncated_normal', 'tf.uniform_unit_scaling_initializer': 'tf.compat.v1.uniform_unit_scaling_initializer', 'tf.unsorted_segment_max': 'tf.math.unsorted_segment_max', 'tf.unsorted_segment_mean': 'tf.math.unsorted_segment_mean', 'tf.unsorted_segment_min': 'tf.math.unsorted_segment_min', 'tf.unsorted_segment_prod': 'tf.math.unsorted_segment_prod', 'tf.unsorted_segment_sqrt_n': 'tf.math.unsorted_segment_sqrt_n', 'tf.unsorted_segment_sum': 'tf.math.unsorted_segment_sum', 'tf.variable_axis_size_partitioner': 'tf.compat.v1.variable_axis_size_partitioner', 'tf.variable_op_scope': 'tf.compat.v1.variable_op_scope', 'tf.variable_scope': 'tf.compat.v1.variable_scope', 'tf.variables_initializer': 'tf.compat.v1.variables_initializer', 'tf.variance_scaling_initializer': 'tf.compat.v1.variance_scaling_initializer', 'tf.verify_tensor_all_finite': 'tf.compat.v1.verify_tensor_all_finite', 'tf.wrap_function': 'tf.compat.v1.wrap_function', 'tf.write_file': 'tf.io.write_file', 'tf.zeta': 'tf.math.zeta' }
64.935743
128
0.744284
6,756
48,507
5.092362
0.10894
0.110452
0.137484
0.027468
0.536595
0.297465
0.172393
0.103593
0.07534
0.055517
0
0.014284
0.092213
48,507
746
129
65.022788
0.767021
0.021028
0
0
0
0
0.815552
0.672039
0
0
0
0
0.023513
1
0
false
0
0.005533
0
0.005533
0.001383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7c4c786476fcedafe44d921c5dfd79a0be6d09a1
1,093
py
Python
PyLeague/logger.py
Ahuge/PyLeague
ee8a14061c44c1c26a5102a05e33ad820f2b1b63
[ "MIT" ]
null
null
null
PyLeague/logger.py
Ahuge/PyLeague
ee8a14061c44c1c26a5102a05e33ad820f2b1b63
[ "MIT" ]
null
null
null
PyLeague/logger.py
Ahuge/PyLeague
ee8a14061c44c1c26a5102a05e33ad820f2b1b63
[ "MIT" ]
null
null
null
import sys def color(text, color): if color == "blue": color = "0;34m" elif color == "green": color = "0;32m" elif color == "red": color = "0;31m" elif color == "yellow": color = "0;33m" else: return text return "\033[%s%s\033[0m\n" % (color, text) class NotALogger(object): def info(self, msg): sys.stdout.write( color(msg, "blue") ) def error(self, msg): sys.stdout.write( color(msg, "red") ) def warning(self, msg): sys.stdout.write( color(msg, "yellow") ) def success(self, msg): sys.stdout.write( color(msg, "green") ) def header(self): msg = "=" * 50 msg += "\n" + "=" + (" " * 48) + "=" msg += "\n" + "=" + (" " * 48) + "=" msg += "\n" + ("=" * 50) sys.stdout.write( color(msg, "green") ) def line(self): sys.stdout.write( color("-" * 50, "blue") ) log = NotALogger() __all__ = ["log"]
19.175439
47
0.426349
118
1,093
3.915254
0.330508
0.116883
0.181818
0.246753
0.367965
0.333333
0.333333
0
0
0
0
0.043544
0.390668
1,093
56
48
19.517857
0.65015
0
0
0.227273
0
0
0.092406
0
0.045455
0
0
0
0
1
0.159091
false
0
0.022727
0
0.25
0
0
0
0
null
0
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
0
0
0
0
0
0
0
0
0
0
0
2
7c4e547145402a4cf7056e9aeb596f38cf59e239
173
py
Python
nightlightpi/errorstrings.py
jmb/NightLightPi
82f5d37a35e3457e31ca100524011908e5b33c4d
[ "MIT" ]
2
2018-10-01T21:45:22.000Z
2020-07-26T09:07:09.000Z
nightlightpi/errorstrings.py
jmb/NightLightPi
82f5d37a35e3457e31ca100524011908e5b33c4d
[ "MIT" ]
4
2017-09-29T19:19:07.000Z
2019-10-08T05:15:29.000Z
nightlightpi/errorstrings.py
jmb/NightLightPi
82f5d37a35e3457e31ca100524011908e5b33c4d
[ "MIT" ]
4
2017-10-08T22:08:25.000Z
2019-10-20T06:03:47.000Z
# -*- coding: utf-8; -*- """Define error strings raised by the application.""" MISSING_CONFIG_VALUE = """ '{0}' is not specified or invalid in the config file! """.strip()
24.714286
53
0.65896
24
173
4.666667
0.916667
0
0
0
0
0
0
0
0
0
0
0.013699
0.156069
173
6
54
28.833333
0.753425
0.410405
0
0
0
0
0.572917
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
2
7c51d040f9ea88aa996e0a5f03d0e36f5bd442f2
1,692
py
Python
cmdb-compliance/biz/handlers/asset_hipaa_data.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
cmdb-compliance/biz/handlers/asset_hipaa_data.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
1
2022-01-04T13:53:16.000Z
2022-01-04T13:53:16.000Z
cmdb-compliance/biz/handlers/asset_hipaa_data.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import or_ from websdk.db_context import DBContext from libs.base_handler import BaseHandler from libs.pagination import pagination_util from models.hipaa_data import HipaaData, model_to_dict class HipaaDataHandler(BaseHandler): @pagination_util def get(self, *args, **kwargs): key = self.get_argument('key', default=None, strip=True) hipaa_data_list = [] with DBContext('r') as session: if key: # 模糊查所有 hipaa_data_info = session.query(HipaaData).filter( or_(HipaaData.profile.like('%{}%'.format(key)), HipaaData.result.like('%{}%'.format(key)), HipaaData.level.like('%{}%'.format(key)), HipaaData.region.like('%{}%'.format(key)), HipaaData.account_id.like('%{}%'.format(key)), HipaaData.group.like('%{}%'.format(key)), HipaaData.group.like('%{}%'.format(key)), HipaaData.check_title.like('%{}%'.format(key)), HipaaData.check_output.like('%{}%'.format(key))) ).filter( HipaaData.result != "PASS" ).all() else: hipaa_data_info = session.query(HipaaData).filter( HipaaData.result != "PASS" ).all() for data in hipaa_data_info: data_dict = model_to_dict(data) hipaa_data_list.append(data_dict) return hipaa_data_list hipaa_data_host_urls = [ (r"/v1/cmdb/hipaa_data/", HipaaDataHandler), ] if __name__ == '__main__': pass
36.782609
72
0.544326
170
1,692
5.176471
0.405882
0.092045
0.132955
0.2
0.270455
0.177273
0.177273
0.086364
0.086364
0
0
0.000874
0.323877
1,692
46
73
36.782609
0.768357
0.002955
0
0.210526
0
0
0.045077
0
0
0
0
0
0
1
0.026316
false
0.078947
0.131579
0
0.210526
0
0
0
0
null
0
0
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
0
0
0
0
0
1
0
0
0
0
0
2
7c5d7a1fdf2039a9a74d4beb4a72efeb34b5199f
201
py
Python
tests/test_update.py
en0/pyavl3
c9dad3189da1f18e935e61d13d7c971aceafd895
[ "MIT" ]
null
null
null
tests/test_update.py
en0/pyavl3
c9dad3189da1f18e935e61d13d7c971aceafd895
[ "MIT" ]
null
null
null
tests/test_update.py
en0/pyavl3
c9dad3189da1f18e935e61d13d7c971aceafd895
[ "MIT" ]
null
null
null
import unittest from pyavl3 import AVLTree class AVLTreeUpdateTest(unittest.TestCase): def test_add_one(self): a = AVLTree() a.update({1:'a'}) self.assertEqual(len(a), 1)
20.1
43
0.651741
26
201
4.961538
0.692308
0
0
0
0
0
0
0
0
0
0
0.019355
0.228856
201
9
44
22.333333
0.812903
0
0
0
0
0
0.004975
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.571429
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
0
0
0
0
0
0
0
0
2
7c5e5eb731f86fd4dc537483a440f05753a38fab
600
py
Python
custom_stocks_py/base.py
baramsalem/Custom-stocks-py
5beeb7b6f93755ec7c00c25763accf6a52f8bbaf
[ "Unlicense" ]
null
null
null
custom_stocks_py/base.py
baramsalem/Custom-stocks-py
5beeb7b6f93755ec7c00c25763accf6a52f8bbaf
[ "Unlicense" ]
null
null
null
custom_stocks_py/base.py
baramsalem/Custom-stocks-py
5beeb7b6f93755ec7c00c25763accf6a52f8bbaf
[ "Unlicense" ]
null
null
null
""" custom_stocks_py base module. This is the principal module of the custom_stocks_py project. here you put your main classes and objects. Be creative! do whatever you want! If you want to replace this with a Flask application run: $ make init and then choose `flask` as template. """ class BaseClass: def base_method(self) -> str: """ Base method. """ return "hello from BaseClass" def __call__(self) -> str: return self.base_method() def base_function() -> str: """ Base function. """ return "hello from base function"
18.181818
61
0.646667
81
600
4.654321
0.604938
0.079576
0.074271
0
0
0
0
0
0
0
0
0
0.265
600
32
62
18.75
0.854875
0.523333
0
0
0
0
0.183333
0
0
0
0
0
0
1
0.428571
false
0
0
0.142857
1
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
7c5ff08483bb708102f0397eb8e76c57f5a75cff
59
py
Python
cimsparql/__init__.py
nalu-svk/cimsparql
e69b0799a2bbd70027e2c8bb9970574991597ca5
[ "MIT" ]
null
null
null
cimsparql/__init__.py
nalu-svk/cimsparql
e69b0799a2bbd70027e2c8bb9970574991597ca5
[ "MIT" ]
null
null
null
cimsparql/__init__.py
nalu-svk/cimsparql
e69b0799a2bbd70027e2c8bb9970574991597ca5
[ "MIT" ]
null
null
null
"""Library for CIM sparql queries""" __version__ = "1.9.0"
19.666667
36
0.677966
9
59
4
1
0
0
0
0
0
0
0
0
0
0
0.058824
0.135593
59
2
37
29.5
0.647059
0.508475
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
2
7c7a936052804b42678eb433f6f64454107e4317
450
py
Python
app1.py
FreakX23/EBook_Training
de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6
[ "MIT" ]
null
null
null
app1.py
FreakX23/EBook_Training
de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6
[ "MIT" ]
null
null
null
app1.py
FreakX23/EBook_Training
de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6
[ "MIT" ]
null
null
null
# This Part will gather Infos and demonstrate the use of Variables. usrName = input("What is your Name?") usrAge = int(input("What is your Age?")) usrGPA = float(input("What is your GPA?")) print () #cheap way to get a new line print ("Hello, %s" % (usrName)) print ("Did you know that in two years you will be %d years old? " % (usrAge +2)) print ("Also you need to improve your GPA by %f points to have a perfect score." % (4.0 - usrGPA)) print ()
45
98
0.682222
79
450
3.886076
0.696203
0.087948
0.107492
0.14658
0
0
0
0
0
0
0
0.008197
0.186667
450
9
99
50
0.830601
0.204444
0
0.25
0
0
0.532394
0
0
0
0
0
0
1
0
false
0
0
0
0
0.625
0
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
0
0
0
0
0
0
1
0
2
7c7ce13176c091aaa43308e8a58ace22a4dd604d
684
py
Python
distalg/message.py
charlesemurray/DistributedProgramming
f7b5001a6acb0583cd6b7bb611f27893b830c296
[ "MIT" ]
null
null
null
distalg/message.py
charlesemurray/DistributedProgramming
f7b5001a6acb0583cd6b7bb611f27893b830c296
[ "MIT" ]
null
null
null
distalg/message.py
charlesemurray/DistributedProgramming
f7b5001a6acb0583cd6b7bb611f27893b830c296
[ "MIT" ]
null
null
null
class Message: def __init__(self, from_channel=None, **kwargs): self._channel = from_channel if kwargs is not None: for key, value in kwargs.items(): setattr(self, key, value) @property def carrier(self): return self._channel def sender(self): return self._channel.sender def receiver(self): return self._channel.receiver class CallbackMessage(Message): def __init__(self, function): super(CallbackMessage, self).__init__(function=function) if __name__ == "__main__": msg = Message(sender="A", receiver="B") assert msg.sender is "A" assert msg.receiver is "B"
23.586207
64
0.630117
81
684
5
0.395062
0.108642
0.103704
0.155556
0
0
0
0
0
0
0
0
0.266082
684
28
65
24.428571
0.806773
0
0
0
0
0
0.017544
0
0
0
0
0
0.1
1
0.25
false
0
0
0.15
0.5
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
7ca4f5192c61086f4f74975da17d1bf4fd80a81d
184
py
Python
prgm6.py
pooja-bs-3003/Project_21
dc46e66ccf10937be6f2f8369ef02eb52e139eff
[ "MIT" ]
null
null
null
prgm6.py
pooja-bs-3003/Project_21
dc46e66ccf10937be6f2f8369ef02eb52e139eff
[ "MIT" ]
null
null
null
prgm6.py
pooja-bs-3003/Project_21
dc46e66ccf10937be6f2f8369ef02eb52e139eff
[ "MIT" ]
1
2021-01-22T15:15:02.000Z
2021-01-22T15:15:02.000Z
str1= input("enter a string :") l1 ="" for i in str1 [::-1]: l1 = i+l1 print(l1) if str1 == l1: print("string is a palindrome") else : print("string is not a palindrome")
18.4
40
0.592391
31
184
3.516129
0.516129
0.12844
0.238532
0
0
0
0
0
0
0
0
0.064286
0.23913
184
9
41
20.444444
0.714286
0
0
0
0
0
0.347826
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
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
0
0
0
0
0
0
0
2
7cb376c84e1d9faf8d7802d4ab0284c278818e8c
441
py
Python
FPRun11.py
yecfly/DEPRESSIONEST
21b72906aac9f310e264f7a5eea348480a647197
[ "Unlicense" ]
null
null
null
FPRun11.py
yecfly/DEPRESSIONEST
21b72906aac9f310e264f7a5eea348480a647197
[ "Unlicense" ]
null
null
null
FPRun11.py
yecfly/DEPRESSIONEST
21b72906aac9f310e264f7a5eea348480a647197
[ "Unlicense" ]
null
null
null
from Facepatchindependenttrain import runPatch import sys if len(sys.argv)==6: runPatch(GPU_Device_ID=1, FacePatchID=int(sys.argv[1]), trainpklID=int(sys.argv[2]), testpklID=int(sys.argv[3]), NetworkType=int(sys.argv[4]), runs=int(sys.argv[5])) else: print("argument errors, try\npython runfile.py <FacePatchID> <trainpklID> <testpklID> <NetworkType> <runs>")
40.090909
113
0.621315
54
441
5.037037
0.574074
0.154412
0.183824
0
0
0
0
0
0
0
0
0.020833
0.238095
441
10
114
44.1
0.78869
0
0
0
0
0.111111
0.229698
0
0
0
0
0
0
1
0
true
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
1
0
0
0
0
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
1
0
0
0
0
0
0
2
7cbd753ba4fba3e640a8395f823b9af2ba40868f
400
py
Python
triangle.py
montyshyama/python-basics
d71156d70fdadc722a192b984e9bff66401ab894
[ "MIT" ]
null
null
null
triangle.py
montyshyama/python-basics
d71156d70fdadc722a192b984e9bff66401ab894
[ "MIT" ]
null
null
null
triangle.py
montyshyama/python-basics
d71156d70fdadc722a192b984e9bff66401ab894
[ "MIT" ]
1
2020-04-05T20:06:08.000Z
2020-04-05T20:06:08.000Z
side_a=int(input("Enter the first side(a):")) side_b=int(input("Enter the second side(b):")) side_c=int(input("Enter the third side(c):")) if side_a==side_b and side_a==side_c: print("The triangle is an equilateral triangle.") elif side_a==side_b or side_a==side_c or side_b==side_c: print("The triangle is an isosceles triangle.") else: print("The triangle is scalene triangle.")
44.444444
57
0.7075
73
400
3.69863
0.315068
0.111111
0.166667
0.177778
0.185185
0.185185
0.185185
0
0
0
0
0
0.1475
400
9
58
44.444444
0.791789
0
0
0
0
0
0.468193
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
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
0
0
0
0
0
0
0
0
2
7cdbf4b64b3ba075f66b013f73d0f70e791b05ee
52,272
py
Python
src/skim/modeling/skim_attention/modeling_skim.py
recitalAI/skim-attention
a37a277072d1f70ea615cfd19e5b84a6effd2464
[ "Apache-2.0" ]
4
2021-09-08T17:20:59.000Z
2021-12-08T07:49:24.000Z
src/skim/modeling/skim_attention/modeling_skim.py
recitalAI/skim-attention
a37a277072d1f70ea615cfd19e5b84a6effd2464
[ "Apache-2.0" ]
null
null
null
src/skim/modeling/skim_attention/modeling_skim.py
recitalAI/skim-attention
a37a277072d1f70ea615cfd19e5b84a6effd2464
[ "Apache-2.0" ]
1
2021-12-09T00:02:23.000Z
2021-12-09T00:02:23.000Z
from collections import namedtuple import logging from dataclasses import dataclass from typing import Optional, Tuple import math import torch from torch import nn from torch.nn import CrossEntropyLoss, LayerNorm from torch.autograd.function import Function from transformers.file_utils import ( ModelOutput, ) from transformers.modeling_utils import ( PreTrainedModel, apply_chunking_to_forward, find_pruneable_heads_and_indices, prune_linear_layer, ) from transformers.modeling_outputs import ( BaseModelOutputWithPoolingAndCrossAttentions, MaskedLMOutput, TokenClassifierOutput, ) from transformers.models.bert.modeling_bert import ( BertConfig, BertEmbeddings, BertIntermediate, BertOutput, BertPooler, BertEncoder, BertOnlyMLMHead, ) from transformers.models.layoutlm.modeling_layoutlm import LayoutLMEmbeddings from .configuration_skim import ( SkimformerConfig, BertWithSkimEmbedConfig, SkimmingMaskConfig, ) logger = logging.getLogger(__name__) SkimformerEncoderOutput = namedtuple( "SkimformerEncoderOutput", ["hidden_states", "all_hidden_states"], ) class SkimformerTextEmbeddings(nn.Module): """Construct the text embeddings from word and token_type embeddings.""" def __init__(self, config): super().__init__() self.max_position_embeddings = config.max_position_embeddings self.word_embeddings = nn.Embedding(config.vocab_size, config.hidden_size, padding_idx=config.pad_token_id) self.token_type_embeddings = nn.Embedding(config.type_vocab_size, config.hidden_size) self.LayerNorm = nn.LayerNorm(config.hidden_size, eps=config.layer_norm_eps) self.dropout = nn.Dropout(config.hidden_dropout_prob) def forward(self, input_ids=None, token_type_ids=None, inputs_embeds=None): if input_ids is not None: input_shape = input_ids.size() device = input_ids.device else: input_shape = inputs_embeds.size()[:-1] device = inputs_embeds.device device = input_ids.device if input_ids is not None else inputs_embeds.device if token_type_ids is None: token_type_ids = torch.zeros(input_shape, dtype=torch.long, device=device) if inputs_embeds is None: inputs_embeds = self.word_embeddings(input_ids) token_type_embeddings = self.token_type_embeddings(token_type_ids) embeddings = inputs_embeds + token_type_embeddings embeddings = self.LayerNorm(embeddings) embeddings = self.dropout(embeddings) return embeddings class Skimformer1DPositionEmbeddings(nn.Module): """Construct sequential position embeddings.""" def __init__(self, config): super().__init__() self.position_embeddings = nn.Embedding(config.max_position_embeddings, config.hidden_layout_size) self.position_embedding_type = getattr(config, "position_embedding_type", "absolute") self.LayerNorm = LayerNorm(config.hidden_layout_size, eps=config.layer_norm_eps) self.dropout = nn.Dropout(config.hidden_dropout_prob) def forward(self, input_shape, device, position_ids=None): seq_length = input_shape[1] if position_ids is None: position_ids = torch.arange( 0, seq_length, dtype=torch.long, device=device ) position_ids = position_ids.unsqueeze(0).expand(input_shape) position_embeddings = self.position_embeddings(position_ids) position_embeddings = self.LayerNorm(position_embeddings) position_embeddings = self.dropout(position_embeddings) return position_embeddings class Skimformer2DPositionEmbeddings(nn.Module): """Construct the layout embeddings from the bounding box coordinates.""" def __init__(self, config): super().__init__() self.x_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.y_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.h_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.w_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.degrade_2d_positions = config.degrade_2d_positions if hasattr(config, "degrade_2d_positions") else False self.LayerNorm = LayerNorm(config.hidden_layout_size, eps=config.layer_norm_eps) self.dropout = nn.Dropout(config.hidden_dropout_prob) def forward(self, bbox=None): if self.degrade_2d_positions: try: x_center = (bbox[:, :, 0] + bbox[:, :, 2]) // 2 y_center = (bbox[:, :, 1] + bbox[:, :, 3]) // 2 x_center_position_embeddings = self.x_position_embeddings(x_center) y_center_position_embeddings = self.y_position_embeddings(y_center) except IndexError as e: raise IndexError("The :obj:`bbox` coordinate values should be within 0-1000 range.") from e embeddings = x_center_position_embeddings + y_center_position_embeddings else: try: left_position_embeddings = self.x_position_embeddings(bbox[:, :, 0]) upper_position_embeddings = self.y_position_embeddings(bbox[:, :, 1]) right_position_embeddings = self.x_position_embeddings(bbox[:, :, 2]) lower_position_embeddings = self.y_position_embeddings(bbox[:, :, 3]) except IndexError as e: raise IndexError("The :obj:`bbox` coordinate values should be within 0-1000 range.") from e h_position_embeddings = self.h_position_embeddings(bbox[:, :, 3] - bbox[:, :, 1]) w_position_embeddings = self.w_position_embeddings(bbox[:, :, 2] - bbox[:, :, 0]) embeddings = ( left_position_embeddings + upper_position_embeddings + right_position_embeddings + lower_position_embeddings + h_position_embeddings + w_position_embeddings ) embeddings = self.LayerNorm(embeddings) embeddings = self.dropout(embeddings) return embeddings class BertWithSkimEmbedEmbeddings(nn.Module): """Construct the embeddings from word, position and token_type embeddings.""" def __init__(self, config): super().__init__() self.word_embeddings = nn.Embedding(config.vocab_size, config.hidden_size, padding_idx=config.pad_token_id) self.position_embeddings = nn.Embedding(config.max_position_embeddings, config.hidden_size) self.token_type_embeddings = nn.Embedding(config.type_vocab_size, config.hidden_size) self.x_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.y_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.h_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.w_position_embeddings = nn.Embedding(config.max_2d_position_embeddings, config.hidden_layout_size) self.x_position_projection = nn.Linear(config.hidden_layout_size, config.hidden_size) self.y_position_projection = nn.Linear(config.hidden_layout_size, config.hidden_size) self.h_position_projection = nn.Linear(config.hidden_layout_size, config.hidden_size) self.w_position_projection = nn.Linear(config.hidden_layout_size, config.hidden_size) self.LayerNorm = LayerNorm(config.hidden_size, eps=config.layer_norm_eps) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.register_buffer("position_ids", torch.arange(config.max_position_embeddings).expand((1, -1))) def forward( self, input_ids=None, bbox=None, token_type_ids=None, position_ids=None, inputs_embeds=None, ): if input_ids is not None: input_shape = input_ids.size() else: input_shape = inputs_embeds.size()[:-1] seq_length = input_shape[1] device = input_ids.device if input_ids is not None else inputs_embeds.device if position_ids is None: position_ids = self.position_ids[:, :seq_length] if token_type_ids is None: token_type_ids = torch.zeros(input_shape, dtype=torch.long, device=device) if inputs_embeds is None: inputs_embeds = self.word_embeddings(input_ids) words_embeddings = inputs_embeds position_embeddings = self.position_embeddings(position_ids) try: left_position_embeddings = self.x_position_embeddings(bbox[:, :, 0]) upper_position_embeddings = self.y_position_embeddings(bbox[:, :, 1]) right_position_embeddings = self.x_position_embeddings(bbox[:, :, 2]) lower_position_embeddings = self.y_position_embeddings(bbox[:, :, 3]) except IndexError as e: raise IndexError("The :obj:`bbox`coordinate values should be within 0-1000 range.") from e h_position_embeddings = self.h_position_embeddings(bbox[:, :, 3] - bbox[:, :, 1]) w_position_embeddings = self.w_position_embeddings(bbox[:, :, 2] - bbox[:, :, 0]) # project into same dimension as text embeddings left_position_embeddings = self.x_position_projection(left_position_embeddings) upper_position_embeddings = self.y_position_projection(upper_position_embeddings) right_position_embeddings = self.x_position_projection(right_position_embeddings) lower_position_embeddings = self.y_position_projection(lower_position_embeddings) h_position_embeddings = self.h_position_projection(h_position_embeddings) w_position_embeddings = self.w_position_projection(w_position_embeddings) two_dim_pos_embeddings = ( left_position_embeddings + upper_position_embeddings + right_position_embeddings + lower_position_embeddings + h_position_embeddings + w_position_embeddings ) token_type_embeddings = self.token_type_embeddings(token_type_ids) embeddings = ( words_embeddings + position_embeddings + two_dim_pos_embeddings + token_type_embeddings ) embeddings = self.LayerNorm(embeddings) embeddings = self.dropout(embeddings) return embeddings class SkimAttention(nn.Module): def __init__(self, config): super().__init__() self.num_attention_heads = config.num_attention_heads self.attention_head_size = config.skim_attention_head_size self.all_head_size = self.num_attention_heads * self.attention_head_size self.query = nn.Linear(config.hidden_layout_size, self.all_head_size) self.key = nn.Linear(config.hidden_layout_size, self.all_head_size) self.dropout = nn.Dropout(config.attention_probs_dropout_prob) self.position_embedding_type = getattr(config, "position_embedding_type", "absolute") def transpose_for_scores(self, x): new_x_shape = x.size()[:-1] + (self.num_attention_heads, self.attention_head_size) x = x.view(*new_x_shape) return x.permute(0, 2, 1, 3) def forward( self, hidden_layout_states, attention_mask=None, ): key_layer = self.transpose_for_scores(self.key(hidden_layout_states)) query_layer = self.transpose_for_scores(self.query(hidden_layout_states)) # Take the dot product between "query" and "key" to get the raw attention scores. attention_scores = torch.matmul(query_layer, key_layer.transpose(-1, -2)) attention_scores = attention_scores / math.sqrt(self.attention_head_size) if attention_mask is not None: # Apply the attention mask is (precomputed for all layers in BertModel forward() function) attention_scores = attention_scores + attention_mask # Normalize the attention scores to probabilities. attention_probs = nn.Softmax(dim=-1)(attention_scores) # This is actually dropping out entire tokens to attend to, which might # seem a bit unusual, but is taken from the original Transformer paper. attention_probs = self.dropout(attention_probs) # return the attention probabilities only: Softmax(QK^T/sqrt(d)) return attention_probs class SkimformerSelfAttention(nn.Module): def __init__(self, config): super().__init__() self.num_attention_heads = config.num_attention_heads self.attention_head_size = config.attention_head_size self.all_head_size = self.num_attention_heads * self.attention_head_size self.value = nn.Linear(config.hidden_size, self.all_head_size) def transpose_for_scores(self, x): new_x_shape = x.size()[:-1] + (self.num_attention_heads, self.attention_head_size) x = x.view(*new_x_shape) return x.permute(0, 2, 1, 3) def forward( self, hidden_states, attention_probs, head_mask=None, ): value_layer = self.transpose_for_scores(self.value(hidden_states)) # Mask heads if we want to if head_mask is not None: attention_probs = attention_probs * head_mask # Softmax(QK^T/sqrt(d)) . V context_layer = torch.matmul(attention_probs, value_layer) context_layer = context_layer.permute(0, 2, 1, 3).contiguous() new_context_layer_shape = context_layer.size()[:-2] + (self.all_head_size,) context_layer = context_layer.view(*new_context_layer_shape) return context_layer class SkimformerSelfOutput(nn.Module): def __init__(self, config): super().__init__() all_head_size = config.num_attention_heads * config.attention_head_size self.dense = nn.Linear(all_head_size, config.hidden_size) self.LayerNorm = nn.LayerNorm(config.hidden_size, eps=config.layer_norm_eps) self.dropout = nn.Dropout(config.hidden_dropout_prob) def forward(self, hidden_states, input_tensor): hidden_states = self.dense(hidden_states) hidden_states = self.dropout(hidden_states) hidden_states = self.LayerNorm(hidden_states + input_tensor) return hidden_states class SkimformerAttention(nn.Module): def __init__(self, config): super().__init__() self.self = SkimformerSelfAttention(config) self.output = SkimformerSelfOutput(config) self.pruned_heads = set() def prune_heads(self, heads): if len(heads) == 0: return heads, index = find_pruneable_heads_and_indices( heads, self.self.num_attention_heads, self.self.attention_head_size, self.pruned_heads ) # Prune linear layers self.self.value = prune_linear_layer(self.self.value, index) self.output.dense = prune_linear_layer(self.output.dense, index, dim=1) # Update hyper params and store pruned heads self.self.num_attention_heads = self.self.num_attention_heads - len(heads) self.self.all_head_size = self.self.attention_head_size * self.self.num_attention_heads self.pruned_heads = self.pruned_heads.union(heads) def forward( self, hidden_states, attention_probs, head_mask=None, ): if len(self.pruned_heads) > 0: num_attention_heads = attention_probs.shape[1] indices = [idx for idx in range(num_attention_heads) if idx not in self.pruned_heads] attention_probs = torch.index_select(attention_probs, 1, indices) self_output = self.self( hidden_states, attention_probs, head_mask, ) attention_output = self.output(self_output, hidden_states) return attention_output class SkimformerLayer(nn.Module): def __init__(self, config): super().__init__() self.chunk_size_feed_forward = config.chunk_size_feed_forward self.seq_len_dim = 1 self.attention = SkimformerAttention(config) self.intermediate = BertIntermediate(config) self.output = BertOutput(config) def forward( self, hidden_states, attention_probs, head_mask=None, ): attention_output = self.attention( hidden_states, attention_probs, head_mask, ) layer_output = apply_chunking_to_forward( self.feed_forward_chunk, self.chunk_size_feed_forward, self.seq_len_dim, attention_output ) return layer_output def feed_forward_chunk(self, attention_output): intermediate_output = self.intermediate(attention_output) layer_output = self.output(intermediate_output, attention_output) return layer_output class SkimformerEncoder(nn.Module): def __init__(self, config): super().__init__() self.config = config self.layer = nn.ModuleList([SkimformerLayer(config) for _ in range(config.num_hidden_layers)]) def forward( self, hidden_states, attention_probs, head_mask=None, output_hidden_states=False, return_dict=None, ): all_hidden_states = () if output_hidden_states else None for i, layer_module in enumerate(self.layer): if output_hidden_states: all_hidden_states = all_hidden_states + (hidden_states,) layer_head_mask = head_mask[i] if head_mask is not None else None if getattr(self.config, "gradient_checkpointing", False): def create_custom_forward(module): def custom_forward(*inputs): return module(*inputs) return custom_forward layer_output = torch.utils.checkpoint.checkpoint( create_custom_forward(layer_module), hidden_states, attention_probs, layer_head_mask, ) else: layer_output = layer_module( hidden_states, attention_probs, layer_head_mask, ) hidden_states = layer_output if output_hidden_states: all_hidden_states = all_hidden_states + (hidden_states,) if not return_dict: return tuple( v for v in [ hidden_states, all_hidden_states, ] if v is not None ) return SkimformerEncoderOutput( hidden_states=hidden_states, all_hidden_states=all_hidden_states, ) class SkimformerPreTrainedModel(PreTrainedModel): """ An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models. """ config_class = SkimformerConfig base_model_prefix = "skimformer" def _init_weights(self, module): """ Initialize the weights """ if isinstance(module, (nn.Linear, nn.Embedding)): # Slightly different from the TF version which uses truncated_normal for initialization # cf https://github.com/pytorch/pytorch/pull/5617 module.weight.data.normal_(mean=0.0, std=self.config.initializer_range) elif isinstance(module, nn.LayerNorm): module.bias.data.zero_() module.weight.data.fill_(1.0) if isinstance(module, nn.Linear) and module.bias is not None: module.bias.data.zero_() class BertWithSkimEmbedPreTrainedModel(PreTrainedModel): """ An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models. """ config_class = BertWithSkimEmbedConfig base_model_prefix = "bertwithskimembed" _keys_to_ignore_on_load_missing = [r"position_ids"] def _init_weights(self, module): """ Initialize the weights """ if isinstance(module, (nn.Linear, nn.Embedding)): # Slightly different from the TF version which uses truncated_normal for initialization # cf https://github.com/pytorch/pytorch/pull/5617 module.weight.data.normal_(mean=0.0, std=self.config.initializer_range) elif isinstance(module, nn.LayerNorm): module.bias.data.zero_() module.weight.data.fill_(1.0) if isinstance(module, nn.Linear) and module.bias is not None: module.bias.data.zero_() class SkimmingMaskPreTrainedModel(PreTrainedModel): """ An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models. """ config_class = SkimmingMaskConfig base_model_prefix = "skimmingmask" _keys_to_ignore_on_load_missing = [r"position_ids"] def _init_weights(self, module): """ Initialize the weights """ if isinstance(module, (nn.Linear, nn.Embedding)): # Slightly different from the TF version which uses truncated_normal for initialization # cf https://github.com/pytorch/pytorch/pull/5617 module.weight.data.normal_(mean=0.0, std=self.config.initializer_range) elif isinstance(module, nn.LayerNorm): module.bias.data.zero_() module.weight.data.fill_(1.0) if isinstance(module, nn.Linear) and module.bias is not None: module.bias.data.zero_() @dataclass class SkimformerModelOutput(ModelOutput): """ Output type of :class:`~SkimformerModel`. Args: last_hidden_state (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, num_predict, hidden_size)`): Sequence of hidden-states at the last layer of the model. ``num_predict`` corresponds to ``target_mapping.shape[1]``. If ``target_mapping`` is ``None``, then ``num_predict`` corresponds to ``sequence_length``. pooler_output (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, hidden_size)`): Last layer hidden-state of the first token of the sequence (classification token) further processed by a Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence prediction (classification) objective during pretraining. hidden_states (:obj:`tuple(torch.FloatTensor)`, `optional`, returned when ``output_hidden_states=True`` is passed or when ``config.output_hidden_states=True``): Tuple of :obj:`torch.FloatTensor` (one for the output of the embeddings and one for the output of each layer) of shape :obj:`(batch_size, sequence_length, hidden_size)`. Hidden-states of the model at the output of each layer plus the initial embedding outputs. attentions (:obj:`tuple(torch.FloatTensor)`, `optional`, returned when ``output_attentions=True`` is passed or when ``config.output_attentions=True``): :obj:`torch.FloatTensor` of shape :obj:`(batch_size, num_heads, sequence_length, sequence_length)`. Attentions weights after the attention softmax, used to compute the weighted average in the self-attention heads. """ last_hidden_state: torch.FloatTensor = None pooler_output: torch.FloatTensor = None attentions: Optional[torch.FloatTensor] = None hidden_states: Optional[Tuple[torch.FloatTensor]] = None class SkimformerModel(SkimformerPreTrainedModel): def __init__(self, config, add_pooling_layer=True): super().__init__(config) self.config = config self.use_1d_positions = config.use_1d_positions self.text_embeddings = SkimformerTextEmbeddings(config) if self.use_1d_positions: self.one_dim_pos_embeddings = Skimformer1DPositionEmbeddings(config) else: self.two_dim_pos_embeddings = Skimformer2DPositionEmbeddings(config) self.contextualize_2d_positions = config.contextualize_2d_positions if self.contextualize_2d_positions: self.layout_encoder = BertEncoder( BertConfig( hidden_size=config.hidden_layout_size, num_hidden_layers=config.num_hidden_layers_layout_encoder, num_attention_heads=config.num_attention_heads_layout_encoder, intermediate_size=config.intermediate_size, hidden_act=config.hidden_act, hidden_dropout_prob=config.hidden_dropout_prob, attention_probs_dropout_prob=config.attention_probs_dropout_prob, max_position_embeddings=config.max_2d_position_embeddings, initializer_range=config.initializer_range, layer_norm_eps=config.layer_norm_eps, gradient_checkpointing=config.gradient_checkpointing, ) ) self.skim_attention = SkimAttention(config) self.encoder = SkimformerEncoder(config) self.pooler = BertPooler(config) if add_pooling_layer else None self.init_weights() def get_input_embeddings(self): return self.text_embeddings.word_embeddings def set_input_embeddings(self, value): self.text_embeddings.word_embeddings = value def _prune_heads(self, heads_to_prune): """ Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel """ for layer, heads in heads_to_prune.items(): self.encoder.layer[layer].attention.prune_heads(heads) def forward( self, input_ids=None, bbox=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None, output_attentions=None, output_hidden_states=None, return_dict=None, ): output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions output_hidden_states = ( output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states ) return_dict = return_dict if return_dict is not None else self.config.use_return_dict if input_ids is not None and inputs_embeds is not None: raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time") elif input_ids is not None: input_shape = input_ids.size() batch_size, seq_length = input_shape elif inputs_embeds is not None: input_shape = inputs_embeds.size()[:-1] batch_size, seq_length = input_shape else: raise ValueError("You have to specify either input_ids or inputs_embeds") assert ( len(input_shape) == 2 ), "`input_ids` has to be of shape `[batch_size, sequence_length]`, but got shape: {}".format(input_shape) if bbox is not None: bbox_shape = bbox.size() assert ( len(bbox_shape) == 3 ), "`bbox` has to be of shape `[batch_size, sequence_length, 4]`, but got shape: {}".format(bbox_shape) device = input_ids.device if input_ids is not None else inputs_embeds.device if attention_mask is None: attention_mask = torch.ones(((batch_size, seq_length)), device=device) if token_type_ids is None: token_type_ids = torch.zeros(input_shape, dtype=torch.long, device=device) if bbox is None: bbox = torch.zeros(tuple(list(input_shape) + [4]), dtype=torch.long, device=device) # We can provide a self-attention mask of dimensions [batch_size, from_seq_length, to_seq_length] # ourselves in which case we just need to make it broadcastable to all heads. extended_attention_mask: torch.Tensor = self.get_extended_attention_mask(attention_mask, input_shape, device) # Prepare head mask if needed # 1.0 in head_mask indicate we keep the head # attention_probs has shape bsz x n_heads x N x N # input head_mask has shape [num_heads] or [num_hidden_layers x num_heads] # and head_mask is converted to shape [num_hidden_layers x batch x num_heads x seq_length x seq_length] head_mask = self.get_head_mask(head_mask, self.config.num_hidden_layers) text_embedding_output = self.text_embeddings( input_ids=input_ids, token_type_ids=token_type_ids, inputs_embeds=inputs_embeds, ) if self.use_1d_positions: pos_embedding_output = self.one_dim_pos_embeddings( input_shape=input_shape, device=device, position_ids=position_ids, ) else: pos_embedding_output = self.two_dim_pos_embeddings( bbox=bbox, ) if self.contextualize_2d_positions: pos_embedding_output = self.layout_encoder( hidden_states=pos_embedding_output, )[0] skim_attention_output = self.skim_attention( pos_embedding_output, attention_mask=extended_attention_mask, ) encoder_outputs = self.encoder( text_embedding_output, skim_attention_output, head_mask=head_mask, output_hidden_states=output_hidden_states, return_dict=return_dict, ) sequence_output = encoder_outputs[0] pooled_output = self.pooler(sequence_output) if self.pooler is not None else None if not return_dict: outputs = (sequence_output, pooled_output) if output_attentions: outputs = outputs + (skim_attention_output, ) if output_hidden_states: outputs = outputs + encoder_outputs[1:] return outputs return SkimformerModelOutput( last_hidden_state=sequence_output, pooler_output=pooled_output, attentions=skim_attention_output if output_attentions else None, hidden_states=encoder_outputs.all_hidden_states, ) class BertWithSkimEmbedModel(BertWithSkimEmbedPreTrainedModel): def __init__(self, config, add_pooling_layer=True): super().__init__(config) self.config = config self.embeddings = BertWithSkimEmbedEmbeddings(config) self.encoder = BertEncoder(config) self.pooler = BertPooler(config) if add_pooling_layer else None self.init_weights() def get_input_embeddings(self): return self.embeddings.word_embeddings def set_input_embeddings(self, value): self.embeddings.word_embeddings = value def _prune_heads(self, heads_to_prune): """ Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel """ for layer, heads in heads_to_prune.items(): self.encoder.layer[layer].attention.prune_heads(heads) def forward( self, input_ids=None, bbox=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None, output_attentions=None, output_hidden_states=None, return_dict=None, ): output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions output_hidden_states = ( output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states ) return_dict = return_dict if return_dict is not None else self.config.use_return_dict if input_ids is not None and inputs_embeds is not None: raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time") elif input_ids is not None: input_shape = input_ids.size() elif inputs_embeds is not None: input_shape = inputs_embeds.size()[:-1] else: raise ValueError("You have to specify either input_ids or inputs_embeds") device = input_ids.device if input_ids is not None else inputs_embeds.device if attention_mask is None: attention_mask = torch.ones(input_shape, device=device) if token_type_ids is None: token_type_ids = torch.zeros(input_shape, dtype=torch.long, device=device) if bbox is None: bbox = torch.zeros(tuple(list(input_shape) + [4]), dtype=torch.long, device=device) extended_attention_mask = attention_mask.unsqueeze(1).unsqueeze(2) extended_attention_mask = extended_attention_mask.to(dtype=self.dtype) extended_attention_mask = (1.0 - extended_attention_mask) * -10000.0 if head_mask is not None: if head_mask.dim() == 1: head_mask = head_mask.unsqueeze(0).unsqueeze(0).unsqueeze(-1).unsqueeze(-1) head_mask = head_mask.expand(self.config.num_hidden_layers, -1, -1, -1, -1) elif head_mask.dim() == 2: head_mask = head_mask.unsqueeze(1).unsqueeze(-1).unsqueeze(-1) head_mask = head_mask.to(dtype=next(self.parameters()).dtype) else: head_mask = [None] * self.config.num_hidden_layers embedding_output = self.embeddings( input_ids=input_ids, bbox=bbox, position_ids=position_ids, token_type_ids=token_type_ids, inputs_embeds=inputs_embeds, ) encoder_outputs = self.encoder( embedding_output, extended_attention_mask, head_mask=head_mask, output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict, ) sequence_output = encoder_outputs[0] pooled_output = self.pooler(sequence_output) if self.pooler is not None else None if not return_dict: return (sequence_output, pooled_output) + encoder_outputs[1:] return BaseModelOutputWithPoolingAndCrossAttentions( last_hidden_state=sequence_output, pooler_output=pooled_output, hidden_states=encoder_outputs.hidden_states, attentions=encoder_outputs.attentions, cross_attentions=encoder_outputs.cross_attentions, ) class SkimmingMaskModel(SkimmingMaskPreTrainedModel): def __init__(self, config, add_pooling_layer=True): super().__init__(config) self.config = config self.core_model_type = config.core_model_type self.embeddings = BertEmbeddings(config) if self.core_model_type == "bert" else LayoutLMEmbeddings(config) self.two_dim_pos_embeddings = Skimformer2DPositionEmbeddings(config) self.contextualize_2d_positions = config.contextualize_2d_positions if config.contextualize_2d_positions: self.layout_encoder = BertEncoder( BertConfig( hidden_size=config.hidden_layout_size, num_hidden_layers=config.num_hidden_layers_layout_encoder, num_attention_heads=config.num_attention_heads_layout_encoder, intermediate_size=config.intermediate_size, hidden_act=config.hidden_act, hidden_dropout_prob=config.hidden_dropout_prob, attention_probs_dropout_prob=config.attention_probs_dropout_prob, max_position_embeddings=config.max_2d_position_embeddings, initializer_range=config.initializer_range, layer_norm_eps=config.layer_norm_eps, gradient_checkpointing=config.gradient_checkpointing, ) ) self.skim_attention = SkimAttention(config) self.top_k = config.top_k self.encoder = BertEncoder(config) self.pooler = BertPooler(config) if add_pooling_layer else None self.init_weights() def get_input_embeddings(self): return self.embeddings.word_embeddings def set_input_embeddings(self, value): self.embeddings.word_embeddings = value def _prune_heads(self, heads_to_prune): """ Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel """ for layer, heads in heads_to_prune.items(): self.encoder.layer[layer].attention.prune_heads(heads) def forward( self, input_ids=None, bbox=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None, output_attentions=None, output_hidden_states=None, return_dict=None, ): output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions output_hidden_states = ( output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states ) return_dict = return_dict if return_dict is not None else self.config.use_return_dict if input_ids is not None and inputs_embeds is not None: raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time") elif input_ids is not None: input_shape = input_ids.size() elif inputs_embeds is not None: input_shape = inputs_embeds.size()[:-1] else: raise ValueError("You have to specify either input_ids or inputs_embeds") device = input_ids.device if input_ids is not None else inputs_embeds.device if attention_mask is None: attention_mask = torch.ones(input_shape, device=device) if token_type_ids is None: token_type_ids = torch.zeros(input_shape, dtype=torch.long, device=device) if bbox is None: bbox = torch.zeros(tuple(list(input_shape) + [4]), dtype=torch.long, device=device) # We can provide a self-attention mask of dimensions [batch_size, from_seq_length, to_seq_length] # ourselves in which case we just need to make it broadcastable to all heads. extended_attention_mask: torch.Tensor = self.get_extended_attention_mask(attention_mask, input_shape, device) # Prepare head mask if needed # 1.0 in head_mask indicate we keep the head # attention_probs has shape bsz x n_heads x N x N # input head_mask has shape [num_heads] or [num_hidden_layers x num_heads] # and head_mask is converted to shape [num_hidden_layers x batch x num_heads x seq_length x seq_length] head_mask = self.get_head_mask(head_mask, self.config.num_hidden_layers) if self.core_model_type == "bert": text_embedding_output = self.embeddings( input_ids=input_ids, position_ids=position_ids, token_type_ids=token_type_ids, inputs_embeds=inputs_embeds, ) else: text_embedding_output = self.embeddings( input_ids=input_ids, bbox=bbox, position_ids=position_ids, token_type_ids=token_type_ids, inputs_embeds=inputs_embeds, ) spatial_pos_embedding_output = self.two_dim_pos_embeddings(bbox=bbox) if self.contextualize_2d_positions: spatial_pos_embedding_output = self.layout_encoder(hidden_states=spatial_pos_embedding_output)[0] skim_attention_output = self.skim_attention( spatial_pos_embedding_output, attention_mask=extended_attention_mask, ) topk_idx = torch.topk(skim_attention_output, self.top_k, -1).indices skim_attention_mask = torch.zeros(skim_attention_output.shape, device=device) skim_attention_mask = skim_attention_mask.scatter(-1, topk_idx, 1) skim_attention_mask = skim_attention_mask * attention_mask[:, None, :, :] skim_attention_mask = (1.0 - skim_attention_mask) * -10000.0 encoder_outputs = self.encoder( text_embedding_output, skim_attention_mask, head_mask=head_mask, output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict, ) sequence_output = encoder_outputs[0] pooled_output = self.pooler(sequence_output) if self.pooler is not None else None if not return_dict: return (sequence_output, pooled_output) + encoder_outputs[1:] return BaseModelOutputWithPoolingAndCrossAttentions( last_hidden_state=sequence_output, pooler_output=pooled_output, hidden_states=encoder_outputs.hidden_states, attentions=encoder_outputs.attentions, cross_attentions=encoder_outputs.cross_attentions, ) class SkimformerForMaskedLM(SkimformerPreTrainedModel): _keys_to_ignore_on_load_unexpected = [r"pooler"] _keys_to_ignore_on_load_missing = [r"position_ids", r"predictions.decoder.bias"] def __init__(self, config): super().__init__(config) self.skimformer = SkimformerModel(config, add_pooling_layer=False) self.cls = BertOnlyMLMHead(config) self.init_weights() def get_output_embeddings(self): return self.cls.predictions.decoder def set_output_embeddings(self, new_embeddings): self.cls.predictions.decoder = new_embeddings def forward( self, input_ids=None, bbox=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None, labels=None, output_attentions=None, output_hidden_states=None, return_dict=None, ): r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked language modeling loss. Indices should be in ``[-100, 0, ..., config.vocab_size]`` (see ``input_ids`` docstring) Tokens with indices set to ``-100`` are ignored (masked), the loss is only computed for the tokens with labels in ``[0, ..., config.vocab_size]`` """ return_dict = return_dict if return_dict is not None else self.config.use_return_dict outputs = self.skimformer( input_ids, bbox, attention_mask=attention_mask, token_type_ids=token_type_ids, position_ids=position_ids, head_mask=head_mask, inputs_embeds=inputs_embeds, output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict, ) sequence_output = outputs[0] prediction_scores = self.cls(sequence_output) masked_lm_loss = None if labels is not None: loss_fct = CrossEntropyLoss() # -100 index = padding token masked_lm_loss = loss_fct(prediction_scores.view(-1, self.config.vocab_size), labels.view(-1)) if not return_dict: output = (prediction_scores,) + outputs[2:] return ((masked_lm_loss,) + output) if masked_lm_loss is not None else output return MaskedLMOutput( loss=masked_lm_loss, logits=prediction_scores, hidden_states=outputs.hidden_states, attentions=outputs.attentions, ) class SkimformerForTokenClassification(SkimformerPreTrainedModel): _keys_to_ignore_on_load_unexpected = [r"pooler"] def __init__(self, config): super().__init__(config) self.num_labels = config.num_labels self.skimformer = SkimformerModel(config, add_pooling_layer=False) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.classifier = nn.Linear(config.hidden_size, config.num_labels) self.init_weights() def forward( self, input_ids=None, bbox=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None, labels=None, output_attentions=None, output_hidden_states=None, return_dict=None, ): r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the token classification loss. Indices should be in ``[0, ..., config.num_labels - 1]``. """ return_dict = return_dict if return_dict is not None else self.config.use_return_dict outputs = self.skimformer( input_ids, bbox, attention_mask=attention_mask, token_type_ids=token_type_ids, position_ids=position_ids, head_mask=head_mask, inputs_embeds=inputs_embeds, output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict, ) sequence_output = outputs[0] sequence_output = self.dropout(sequence_output) logits = self.classifier(sequence_output) loss = None if labels is not None: loss_fct = CrossEntropyLoss() # Only keep active parts of the loss if attention_mask is not None: active_loss = attention_mask.view(-1) == 1 active_logits = logits.view(-1, self.num_labels) active_labels = torch.where( active_loss, labels.view(-1), torch.tensor(loss_fct.ignore_index).type_as(labels) ) loss = loss_fct(active_logits, active_labels) else: loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1)) if not return_dict: output = (logits,) + outputs[2:] return ((loss,) + output) if loss is not None else output return TokenClassifierOutput( loss=loss, logits=logits, hidden_states=outputs.hidden_states, attentions=outputs.attentions, ) class BertWithSkimEmbedForTokenClassification(BertWithSkimEmbedPreTrainedModel): _keys_to_ignore_on_load_unexpected = [r"pooler"] def __init__(self, config): super().__init__(config) self.num_labels = config.num_labels self.bert_with_skim_embed = BertWithSkimEmbedModel(config, add_pooling_layer=False) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.classifier = nn.Linear(config.hidden_size, config.num_labels) self.init_weights() def get_input_embeddings(self): return self.bert_with_skim_embed.embeddings.word_embeddings def set_input_embeddings(self, value): self.bert_with_skim_embed.embeddings.word_embeddings = value def forward( self, input_ids=None, bbox=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None, labels=None, output_attentions=None, output_hidden_states=None, return_dict=None, ): return_dict = return_dict if return_dict is not None else self.config.use_return_dict outputs = self.bert_with_skim_embed( input_ids=input_ids, bbox=bbox, attention_mask=attention_mask, token_type_ids=token_type_ids, position_ids=position_ids, head_mask=head_mask, inputs_embeds=inputs_embeds, output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict, ) sequence_output = outputs[0] sequence_output = self.dropout(sequence_output) logits = self.classifier(sequence_output) loss = None if labels is not None: loss_fct = CrossEntropyLoss() if attention_mask is not None: active_loss = attention_mask.view(-1) == 1 active_logits = logits.view(-1, self.num_labels)[active_loss] active_labels = labels.view(-1)[active_loss] loss = loss_fct(active_logits, active_labels) else: loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1)) if not return_dict: output = (logits,) + outputs[2:] return ((loss,) + output) if loss is not None else output return TokenClassifierOutput( loss=loss, logits=logits, hidden_states=outputs.hidden_states, attentions=outputs.attentions, ) class SkimmingMaskForTokenClassification(SkimmingMaskPreTrainedModel): _keys_to_ignore_on_load_unexpected = [r"pooler"] def __init__(self, config): super().__init__(config) self.num_labels = config.num_labels self.skimming_mask_model = SkimmingMaskModel(config, add_pooling_layer=False) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.classifier = nn.Linear(config.hidden_size, config.num_labels) self.init_weights() def get_input_embeddings(self): return self.skimming_mask_model.embeddings.word_embeddings def set_input_embeddings(self, value): self.skimming_mask_model.embeddings.word_embeddings = value def forward( self, input_ids=None, bbox=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None, labels=None, output_attentions=None, output_hidden_states=None, return_dict=None, ): return_dict = return_dict if return_dict is not None else self.config.use_return_dict outputs = self.skimming_mask_model( input_ids=input_ids, bbox=bbox, attention_mask=attention_mask, token_type_ids=token_type_ids, position_ids=position_ids, head_mask=head_mask, inputs_embeds=inputs_embeds, output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict, ) sequence_output = outputs[0] sequence_output = self.dropout(sequence_output) logits = self.classifier(sequence_output) loss = None if labels is not None: loss_fct = CrossEntropyLoss() if attention_mask is not None: if attention_mask.dim() == 3: active_loss = (torch.sum(attention_mask, dim=-1)).view(-1) > 0 else: active_loss = attention_mask.view(-1) == 1 active_logits = logits.view(-1, self.num_labels)[active_loss] active_labels = labels.view(-1)[active_loss] loss = loss_fct(active_logits, active_labels) else: loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1)) if not return_dict: output = (logits,) + outputs[2:] return ((loss,) + output) if loss is not None else output return TokenClassifierOutput( loss=loss, logits=logits, hidden_states=outputs.hidden_states, attentions=outputs.attentions, )
39.540091
168
0.661674
6,134
52,272
5.32165
0.070264
0.034556
0.015164
0.010354
0.754986
0.720736
0.685936
0.672089
0.64703
0.620868
0
0.005837
0.26255
52,272
1,322
169
39.540091
0.840977
0.100953
0
0.668012
0
0
0.021757
0.002918
0
0
0
0
0.002018
1
0.058527
false
0
0.015136
0.007064
0.149344
0
0
0
0
null
0
0
0
0
1
0
0
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
2
7cf6644c8071f50f1d98ec6acd6e40c622a3ce59
12,540
py
Python
pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ENTERASYS-NAC-APPLIANCE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-NAC-APPLIANCE-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:04:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") etsysModules, = mibBuilder.importSymbols("ENTERASYS-MIB-NAMES", "etsysModules") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") Bits, ObjectIdentity, MibIdentifier, Counter64, iso, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, IpAddress, Unsigned32, TimeTicks, Gauge32, Integer32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "ObjectIdentity", "MibIdentifier", "Counter64", "iso", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "IpAddress", "Unsigned32", "TimeTicks", "Gauge32", "Integer32", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") etsysNacApplianceMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73)) etsysNacApplianceMIB.setRevisions(('2010-03-09 13:03',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: etsysNacApplianceMIB.setRevisionsDescriptions(('The initial version of this MIB module.',)) if mibBuilder.loadTexts: etsysNacApplianceMIB.setLastUpdated('201003091303Z') if mibBuilder.loadTexts: etsysNacApplianceMIB.setOrganization('Enterasys Networks, Inc') if mibBuilder.loadTexts: etsysNacApplianceMIB.setContactInfo('Postal: Enterasys Networks 50 Minuteman Rd. Andover, MA 01810-1008 USA Phone: +1 978 684 1000 E-mail: [email protected] WWW: http://www.enterasys.com') if mibBuilder.loadTexts: etsysNacApplianceMIB.setDescription("This MIB module defines a portion of the SNMP enterprise MIBs under Enterasys Networks' enterprise OID pertaining to NAC Appliance Status.") etsysNacApplianceObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1)) etsysNacApplAuthenticationRequests = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationRequests.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationRequests.setDescription('Represents the number of authentication requests made since the NAC was started.') etsysNacApplAuthenticationSuccesses = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationSuccesses.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationSuccesses.setDescription('Represents the number of successful authentication requests made since the NAC was started.') etsysNacApplAuthenticationFailures = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationFailures.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationFailures.setDescription('Represents the number of failed authentication requests made since the NAC was started.') etsysNacApplRadiusChallenges = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplRadiusChallenges.setStatus('current') if mibBuilder.loadTexts: etsysNacApplRadiusChallenges.setDescription('Represents the number of Radius challenges made since the NAC was started.') etsysNacApplAuthenticationInvalidRequests = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationInvalidRequests.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationInvalidRequests.setDescription('Represents the number of invalid authentication requests made since the NAC was started.') etsysNacApplAuthenticationDuplicateRequests = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationDuplicateRequests.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationDuplicateRequests.setDescription('Represents the number of duplicate authentication requests made since the NAC was started.') etsysNacApplAuthenticationMalformedRequests = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationMalformedRequests.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationMalformedRequests.setDescription('Represents the number of malformed authentication requests made since the NAC was started.') etsysNacApplAuthenticationBadRequests = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationBadRequests.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationBadRequests.setDescription('Represents the number of bad authentication requests made since the NAC was started.') etsysNacApplAuthenticationDroppedPackets = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationDroppedPackets.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationDroppedPackets.setDescription('Represents the number of dropped authentication packets since the NAC was started.') etsysNacApplAuthenticationUnknownTypes = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAuthenticationUnknownTypes.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAuthenticationUnknownTypes.setDescription('Represents the number of unknown authentication types since the NAC was started.') etsysNacApplAssessmentRequests = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplAssessmentRequests.setStatus('current') if mibBuilder.loadTexts: etsysNacApplAssessmentRequests.setDescription('Represents the number of assessment requests made since the NAC was started.') etsysNacApplCaptivePortalRequests = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplCaptivePortalRequests.setStatus('current') if mibBuilder.loadTexts: etsysNacApplCaptivePortalRequests.setDescription('Represents the number of captive portal requests made since the NAC was started.') etsysNacApplContactLostSwitches = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplContactLostSwitches.setStatus('current') if mibBuilder.loadTexts: etsysNacApplContactLostSwitches.setDescription('Represents the number of configured switches with which the NAC has lost SNMP contact.') etsysNacApplIPResolutionFailures = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplIPResolutionFailures.setStatus('current') if mibBuilder.loadTexts: etsysNacApplIPResolutionFailures.setDescription('Represents the number of failed IP Resolution attempts made since the NAC was started.') etsysNacApplIPResolutionTimeouts = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplIPResolutionTimeouts.setStatus('current') if mibBuilder.loadTexts: etsysNacApplIPResolutionTimeouts.setDescription('Represents the number of IP Resolution attempts that timed out since the NAC was started.') etsysNacApplConnectedAgents = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysNacApplConnectedAgents.setStatus('current') if mibBuilder.loadTexts: etsysNacApplConnectedAgents.setDescription('Represents the number of End-System Assessment Agents currently connected to the NAC.') etsysNacApplianceMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 2)) etsysNacApplianceMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 2, 1)) etsysNacApplianceMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 2, 2)) etsysNacApplianceMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 2, 1, 1)).setObjects(("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationRequests"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationSuccesses"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationFailures"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplRadiusChallenges"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationInvalidRequests"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationDuplicateRequests"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationMalformedRequests"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationBadRequests"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationDroppedPackets"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAuthenticationUnknownTypes"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplAssessmentRequests"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplCaptivePortalRequests"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplContactLostSwitches"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplIPResolutionFailures"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplIPResolutionTimeouts"), ("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplConnectedAgents")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysNacApplianceMIBGroup = etsysNacApplianceMIBGroup.setStatus('current') if mibBuilder.loadTexts: etsysNacApplianceMIBGroup.setDescription('The basic collection of objects providing status information about the NAC Appliance.') etsysNacApplianceMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 73, 2, 2, 1)).setObjects(("ENTERASYS-NAC-APPLIANCE-MIB", "etsysNacApplianceMIBGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysNacApplianceMIBCompliance = etsysNacApplianceMIBCompliance.setStatus('current') if mibBuilder.loadTexts: etsysNacApplianceMIBCompliance.setDescription('The compliance statement for clients implementing the NAC Appliance Status MIB.') mibBuilder.exportSymbols("ENTERASYS-NAC-APPLIANCE-MIB", etsysNacApplianceMIBCompliance=etsysNacApplianceMIBCompliance, etsysNacApplAuthenticationDuplicateRequests=etsysNacApplAuthenticationDuplicateRequests, etsysNacApplIPResolutionTimeouts=etsysNacApplIPResolutionTimeouts, etsysNacApplianceObjects=etsysNacApplianceObjects, etsysNacApplAuthenticationInvalidRequests=etsysNacApplAuthenticationInvalidRequests, etsysNacApplAuthenticationUnknownTypes=etsysNacApplAuthenticationUnknownTypes, etsysNacApplianceMIBCompliances=etsysNacApplianceMIBCompliances, etsysNacApplAssessmentRequests=etsysNacApplAssessmentRequests, etsysNacApplAuthenticationBadRequests=etsysNacApplAuthenticationBadRequests, etsysNacApplAuthenticationRequests=etsysNacApplAuthenticationRequests, etsysNacApplRadiusChallenges=etsysNacApplRadiusChallenges, etsysNacApplAuthenticationMalformedRequests=etsysNacApplAuthenticationMalformedRequests, etsysNacApplContactLostSwitches=etsysNacApplContactLostSwitches, etsysNacApplAuthenticationDroppedPackets=etsysNacApplAuthenticationDroppedPackets, etsysNacApplCaptivePortalRequests=etsysNacApplCaptivePortalRequests, etsysNacApplAuthenticationSuccesses=etsysNacApplAuthenticationSuccesses, etsysNacApplIPResolutionFailures=etsysNacApplIPResolutionFailures, etsysNacApplianceMIBConformance=etsysNacApplianceMIBConformance, PYSNMP_MODULE_ID=etsysNacApplianceMIB, etsysNacApplianceMIBGroups=etsysNacApplianceMIBGroups, etsysNacApplianceMIB=etsysNacApplianceMIB, etsysNacApplAuthenticationFailures=etsysNacApplAuthenticationFailures, etsysNacApplianceMIBGroup=etsysNacApplianceMIBGroup, etsysNacApplConnectedAgents=etsysNacApplConnectedAgents)
145.813953
1,653
0.817384
1,214
12,540
8.441516
0.187809
0.045667
0.079918
0.008977
0.369828
0.231557
0.133782
0.127342
0.095238
0.095238
0
0.046301
0.07512
12,540
85
1,654
147.529412
0.8373
0.027751
0
0.039474
0
0.026316
0.305344
0.093081
0
0
0
0
0
1
0
false
0
0.092105
0
0.092105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7cf872b37fe89e4b5c0f3a287b43439b1d433523
2,923
py
Python
burp-filter-options/filter-options.py
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
21
2018-09-10T03:09:17.000Z
2022-02-07T09:20:03.000Z
burp-filter-options/filter-options.py
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
1
2019-11-10T21:17:23.000Z
2020-01-19T04:36:19.000Z
burp-filter-options/filter-options.py
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
8
2019-10-11T23:29:58.000Z
2021-05-26T12:11:43.000Z
# modified "example traffic redirector" # https://raw.githubusercontent.com/PortSwigger/example-traffic-redirector/master/python/TrafficRedirector.py # Idea: https://github.com/pajswigger/filter-options/blob/master/src/filter-options.kt # Usage: Put both files in a directory and add filter-options.py to Burp. Nees Jython. # Blog post: https://parsiya.net/blog/2019-04-06-hiding-options-an-adventure-in-dealing-with-burp-proxy-in-an-extension/ # support for burp-exceptions - see https://github.com/securityMB/burp-exceptions try: from exceptions_fix import FixBurpExceptions import sys except ImportError: pass # support for burputils - https://github.com/parsiya/burputils try: from burputils import BurpUtils except ImportError: pass from burp import IBurpExtender from burp import IHttpListener class BurpExtender(IBurpExtender, IHttpListener): # implement IBurpExtender # set everything up def registerExtenderCallbacks(self, callbacks): # obtain an extension helpers object self.utils = BurpUtils(callbacks.getHelpers()) # support for burp-exceptions try: sys.stdout = callbacks.getStdout() except: pass # set our extension name callbacks.setExtensionName("Filter OPTIONS") # register an HTTP listener callbacks.registerHttpListener(self) # # implement IHttpListener # def processHttpMessage(self, toolFlag, messageIsRequest, messageInfo): # only process responses if messageIsRequest: return # now we only have responses # get the request associated with the response requestInfo = self.utils.getInfo(True, messageInfo) # return if the request method was not OPTIONS if requestInfo.getMethod() != "OPTIONS": return # get response info responseInfo = self.utils.getInfo(False, messageInfo) # get headers using utils headers = self.utils.getHeaders(responseInfo) # overwrite the Content-Type header. Overwrite adds the header if it # does not exist. headers.overwrite("Content-Type", "text/css; charset=UTF-8") # put everything back together bodyBytes = self.utils.getBody(messageIsRequest, messageInfo) # Debug # rawHeaders = headers.exportRaw() # build message modifiedmsg = self.utils.burpHelper.buildHttpMessage(headers.exportRaw(), bodyBytes) # set modified message response self.utils.setRequestResponse(messageIsRequest, modifiedmsg, messageInfo) # this should be reflected in response tab # done print "--------" return # support for burp-exceptions try: FixBurpExceptions() except: pass
31.095745
121
0.659254
299
2,923
6.441472
0.508361
0.03271
0.021807
0.037383
0.028037
0
0
0
0
0
0
0.004176
0.262744
2,923
94
122
31.095745
0.889559
0.412248
0
0.394737
0
0
0.040176
0
0
0
0
0
0
0
null
null
0.105263
0.184211
null
null
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
6b0a3fda038a685ade7b25955f97976cdafc44a7
787
py
Python
var/spack/repos/builtin/packages/r-viridislite/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/r-viridislite/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/r-viridislite/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RViridislite(RPackage): """viridisLite: Default Color Maps from 'matplotlib' (Lite Version)""" homepage = "https://github.com/sjmgarnier/viridisLite" url = "https://cloud.r-project.org/src/contrib/viridisLite_0.2.0.tar.gz" list_url = "https://cloud.r-project.org/src/contrib/Archive/viridisLite" version('0.3.0', sha256='780ea12e7c4024d5ba9029f3a107321c74b8d6d9165262f6e64b79e00aa0c2af') version('0.2.0', sha256='2d4d909f21c51e720bd685f05041ba158294e0a4064e0946d0bd916709818694') depends_on('[email protected]:', type=('build', 'run'))
39.35
95
0.7446
94
787
6.202128
0.691489
0.010292
0.044597
0.048027
0.116638
0.116638
0.116638
0.116638
0
0
0
0.170767
0.121982
787
19
96
41.421053
0.672938
0.322745
0
0
0
0.125
0.604962
0.244275
0
0
0
0
0
1
0
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
6b147a9cf7116a1a4434ef19b42cc9c65f9ba8e8
1,536
py
Python
app/core/model/routine.py
MauricioAntonioMartinez/django-workout-tracker-api
82f9499f172bd6d4b861f072948949dd6f8f6ec1
[ "MIT" ]
null
null
null
app/core/model/routine.py
MauricioAntonioMartinez/django-workout-tracker-api
82f9499f172bd6d4b861f072948949dd6f8f6ec1
[ "MIT" ]
null
null
null
app/core/model/routine.py
MauricioAntonioMartinez/django-workout-tracker-api
82f9499f172bd6d4b861f072948949dd6f8f6ec1
[ "MIT" ]
null
null
null
import os import uuid from django.conf import settings # this is how we can retrive variables # for the settings file from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager, PermissionsMixin) from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from django.utils.translation import gettext_lazy as _ from multiselectfield import MultiSelectField # Maneger User class is the class that provides the creation # of user or admin and all methods out of the box from rest_framework import exceptions from rest_framework.authentication import TokenAuthentication from user.custom_token import ExpiringToken from .exercise import BaseSerie class RoutineDay(models.Model): name = models.CharField(max_length=255, blank=True) routine = models.ForeignKey( 'Routine', related_name='routines', on_delete=models.CASCADE) def sets(self): return SetRoutine.objects.filter(routine=self) class Routine(models.Model): name = models.CharField(max_length=255) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) class SerieRoutine(BaseSerie): father_set = models.ForeignKey( 'SetRoutine', on_delete=models.CASCADE, related_name='series') class SetRoutine(models.Model): exercise = models.ForeignKey( 'Exercise', on_delete=models.CASCADE) routine = models.ForeignKey( 'RoutineDay', on_delete=models.CASCADE)
30.72
74
0.742839
183
1,536
6.142077
0.464481
0.044484
0.062278
0.093416
0.074733
0.074733
0.074733
0.074733
0
0
0
0.004804
0.186849
1,536
50
75
30.72
0.895116
0.107422
0
0.064516
0
0
0.035871
0
0
0
0
0
0
1
0.032258
false
0
0.387097
0.032258
0.806452
0
0
0
0
null
0
0
0
0
0
0
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
0
1
0
1
0
0
2
6b3b2f253f3b9ff3bee85537636c322b9a7a1ad0
8,617
py
Python
src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from .available_operation_display import AvailableOperationDisplay from .error_details_model import ErrorDetailsModel from .error_error_model import ErrorErrorModel from .error_model import ErrorModel, ErrorModelException from .operation_result import OperationResult from .provisioned_resource_properties import ProvisionedResourceProperties from .proxy_resource import ProxyResource from .managed_proxy_resource import ManagedProxyResource from .resource import Resource from .tracked_resource import TrackedResource from .secret_resource_properties import SecretResourceProperties from .inlined_value_secret_resource_properties import InlinedValueSecretResourceProperties from .secret_resource_properties_base import SecretResourcePropertiesBase from .secret_resource_description import SecretResourceDescription from .secret_value import SecretValue from .secret_value_properties import SecretValueProperties from .secret_value_resource_description import SecretValueResourceDescription from .volume_provider_parameters_azure_file import VolumeProviderParametersAzureFile from .volume_properties import VolumeProperties from .volume_reference import VolumeReference from .application_scoped_volume_creation_parameters import ApplicationScopedVolumeCreationParameters from .application_scoped_volume import ApplicationScopedVolume from .application_scoped_volume_creation_parameters_service_fabric_volume_disk import ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk from .volume_resource_description import VolumeResourceDescription from .network_resource_properties import NetworkResourceProperties from .local_network_resource_properties import LocalNetworkResourceProperties from .endpoint_ref import EndpointRef from .network_ref import NetworkRef from .network_resource_properties_base import NetworkResourcePropertiesBase from .network_resource_description import NetworkResourceDescription from .gateway_destination import GatewayDestination from .tcp_config import TcpConfig from .http_route_match_path import HttpRouteMatchPath from .http_route_match_header import HttpRouteMatchHeader from .http_route_match_rule import HttpRouteMatchRule from .http_route_config import HttpRouteConfig from .http_host_config import HttpHostConfig from .http_config import HttpConfig from .gateway_properties import GatewayProperties from .gateway_resource_description import GatewayResourceDescription from .image_registry_credential import ImageRegistryCredential from .environment_variable import EnvironmentVariable from .setting import Setting from .container_label import ContainerLabel from .endpoint_properties import EndpointProperties from .resource_requests import ResourceRequests from .resource_limits import ResourceLimits from .resource_requirements import ResourceRequirements from .diagnostics_ref import DiagnosticsRef from .reliable_collections_ref import ReliableCollectionsRef from .container_state import ContainerState from .container_event import ContainerEvent from .container_instance_view import ContainerInstanceView from .container_code_package_properties import ContainerCodePackageProperties from .auto_scaling_trigger import AutoScalingTrigger from .auto_scaling_mechanism import AutoScalingMechanism from .auto_scaling_policy import AutoScalingPolicy from .service_resource_description import ServiceResourceDescription from .diagnostics_sink_properties import DiagnosticsSinkProperties from .diagnostics_description import DiagnosticsDescription from .application_properties import ApplicationProperties from .azure_internal_monitoring_pipeline_sink_description import AzureInternalMonitoringPipelineSinkDescription from .application_resource_description import ApplicationResourceDescription from .add_remove_replica_scaling_mechanism import AddRemoveReplicaScalingMechanism from .auto_scaling_metric import AutoScalingMetric from .auto_scaling_resource_metric import AutoScalingResourceMetric from .service_properties import ServiceProperties from .service_replica_properties import ServiceReplicaProperties from .service_replica_description import ServiceReplicaDescription from .average_load_scaling_trigger import AverageLoadScalingTrigger from .container_logs import ContainerLogs from .operation_result_paged import OperationResultPaged from .secret_resource_description_paged import SecretResourceDescriptionPaged from .secret_value_resource_description_paged import SecretValueResourceDescriptionPaged from .volume_resource_description_paged import VolumeResourceDescriptionPaged from .network_resource_description_paged import NetworkResourceDescriptionPaged from .gateway_resource_description_paged import GatewayResourceDescriptionPaged from .application_resource_description_paged import ApplicationResourceDescriptionPaged from .service_resource_description_paged import ServiceResourceDescriptionPaged from .service_replica_description_paged import ServiceReplicaDescriptionPaged from .service_fabric_mesh_management_client_enums import ( ResourceStatus, HealthState, SecretKind, VolumeProvider, SizeTypes, ApplicationScopedVolumeKind, NetworkKind, HeaderMatchType, OperatingSystemType, DiagnosticsSinkKind, AutoScalingMechanismKind, AutoScalingMetricKind, AutoScalingResourceMetricName, AutoScalingTriggerKind, ) __all__ = [ 'AvailableOperationDisplay', 'ErrorDetailsModel', 'ErrorErrorModel', 'ErrorModel', 'ErrorModelException', 'OperationResult', 'ProvisionedResourceProperties', 'ProxyResource', 'ManagedProxyResource', 'Resource', 'TrackedResource', 'SecretResourceProperties', 'InlinedValueSecretResourceProperties', 'SecretResourcePropertiesBase', 'SecretResourceDescription', 'SecretValue', 'SecretValueProperties', 'SecretValueResourceDescription', 'VolumeProviderParametersAzureFile', 'VolumeProperties', 'VolumeReference', 'ApplicationScopedVolumeCreationParameters', 'ApplicationScopedVolume', 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk', 'VolumeResourceDescription', 'NetworkResourceProperties', 'LocalNetworkResourceProperties', 'EndpointRef', 'NetworkRef', 'NetworkResourcePropertiesBase', 'NetworkResourceDescription', 'GatewayDestination', 'TcpConfig', 'HttpRouteMatchPath', 'HttpRouteMatchHeader', 'HttpRouteMatchRule', 'HttpRouteConfig', 'HttpHostConfig', 'HttpConfig', 'GatewayProperties', 'GatewayResourceDescription', 'ImageRegistryCredential', 'EnvironmentVariable', 'Setting', 'ContainerLabel', 'EndpointProperties', 'ResourceRequests', 'ResourceLimits', 'ResourceRequirements', 'DiagnosticsRef', 'ReliableCollectionsRef', 'ContainerState', 'ContainerEvent', 'ContainerInstanceView', 'ContainerCodePackageProperties', 'AutoScalingTrigger', 'AutoScalingMechanism', 'AutoScalingPolicy', 'ServiceResourceDescription', 'DiagnosticsSinkProperties', 'DiagnosticsDescription', 'ApplicationProperties', 'AzureInternalMonitoringPipelineSinkDescription', 'ApplicationResourceDescription', 'AddRemoveReplicaScalingMechanism', 'AutoScalingMetric', 'AutoScalingResourceMetric', 'ServiceProperties', 'ServiceReplicaProperties', 'ServiceReplicaDescription', 'AverageLoadScalingTrigger', 'ContainerLogs', 'OperationResultPaged', 'SecretResourceDescriptionPaged', 'SecretValueResourceDescriptionPaged', 'VolumeResourceDescriptionPaged', 'NetworkResourceDescriptionPaged', 'GatewayResourceDescriptionPaged', 'ApplicationResourceDescriptionPaged', 'ServiceResourceDescriptionPaged', 'ServiceReplicaDescriptionPaged', 'ResourceStatus', 'HealthState', 'SecretKind', 'VolumeProvider', 'SizeTypes', 'ApplicationScopedVolumeKind', 'NetworkKind', 'HeaderMatchType', 'OperatingSystemType', 'DiagnosticsSinkKind', 'AutoScalingMechanismKind', 'AutoScalingMetricKind', 'AutoScalingResourceMetricName', 'AutoScalingTriggerKind', ]
42.034146
150
0.82755
652
8,617
10.668712
0.337423
0.032202
0.025302
0.03019
0.093157
0.083381
0.070443
0.070443
0.070443
0.070443
0
0.00013
0.10781
8,617
204
151
42.240196
0.904657
0.052454
0
0
0
0
0.250307
0.161025
0
0
0
0
0
1
0
false
0
0.421875
0
0.421875
0
0
0
1
null
0
0
0
0
0
0
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
0
1
0
0
0
0
2
860d13de1aea5d89a236db351b3f802f70a454be
815
py
Python
lampara/lamp.py
gventuraagramonte/python
d96796c302f2f423a8e949f9c7d33a3bfabf8a0f
[ "MIT" ]
null
null
null
lampara/lamp.py
gventuraagramonte/python
d96796c302f2f423a8e949f9c7d33a3bfabf8a0f
[ "MIT" ]
null
null
null
lampara/lamp.py
gventuraagramonte/python
d96796c302f2f423a8e949f9c7d33a3bfabf8a0f
[ "MIT" ]
null
null
null
#Definicion de la clase #antes de empezar una clase se declara de la siguiente manera class Lamp: _LAMPS = [''' . . | , \ ' / ` ,-. ' --- ( ) --- \ / _|=|_ |_____| ''', ''' ,-. ( ) \ / _|=|_ |_____| '''] def __init__(self, is_turned_on): #metodo instancia e init es el constructar osea es el primero que se ejecuta self._is_turned_on = is_turned_on def turn_on(self): self._is_turned_on = True self._display_image() def turn_off(self): self._is_turned_on = False self._display_image() def _display_image(self): if self._is_turned_on: print(self._LAMPS[0]) else: print(self._LAMPS[1])
19.404762
114
0.490798
87
815
4.08046
0.471264
0.135211
0.169014
0.197183
0.101408
0
0
0
0
0
0
0.004024
0.390184
815
41
115
19.878049
0.710262
0.192638
0
0.08
0
0
0.218531
0
0
0
0
0.02439
0
1
0.16
false
0
0
0
0.24
0.08
0
0
0
null
0
0
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
0
0
0
0
0
0
0
0
2
860efe37f66eefaa650bbcf92ef4ff07b3bc6d05
1,844
py
Python
abtest/views.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
null
null
null
abtest/views.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
null
null
null
abtest/views.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
null
null
null
# The Topical Guide # Copyright 2010-2011 Brigham Young University # # This file is part of the Topical Guide <http://nlp.cs.byu.edu/topic_browser>. # # The Topical Guide is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # The Topical Guide is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License # for more details. # # You should have received a copy of the GNU Affero General Public License # along with the Topical Guide. If not, see <http://www.gnu.org/licenses/>. # # If you have inquiries regarding any further use of the Topical Guide, please # contact the Copyright Licensing Office, Brigham Young University, 3760 HBLL, # Provo, UT 84602, (801) 422-9339 or 422-3821, e-mail [email protected]. from __future__ import print_function from django.shortcuts import render, redirect from django.http import HttpResponse import abtest from abtest.settings import TEST_LIST from visualize import root # Create your views here. def test(request, arg, *args, **kwargs): if arg not in TEST_LIST: print("Error! Unknown view should have been hit instead") package_list = TEST_LIST[arg]['VIEW_PACKAGE'].split('.') view_package = package_list.pop() package = ".".join(package_list) view = getattr(__import__(package, fromlist=[view_package]), view_package) return view(request, args, kwargs) # This view is called when the given url does not match anything def unknown(request, arg, *args, **kwargs): # redirect to the root view return redirect('/')
37.632653
79
0.750542
280
1,844
4.871429
0.517857
0.043988
0.065982
0.041789
0.073314
0.073314
0.049853
0
0
0
0
0.022891
0.170824
1,844
48
80
38.416667
0.869196
0.609544
0
0
0
0
0.090647
0
0
0
0
0
0
1
0.125
false
0
0.4375
0.0625
0.6875
0.125
0
0
0
null
0
0
0
0
0
0
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
0
1
0
1
0
0
2
8611c5caf6cad3b09e4113e9f2732c41ec4305ae
992
py
Python
tests/conftest.py
AlanRosenthal/virtual-dealer
5c5689172b38b122a69e5ca244497646bf9d8fa8
[ "MIT" ]
1
2020-03-23T21:03:46.000Z
2020-03-23T21:03:46.000Z
tests/conftest.py
AlanRosenthal/virtual-dealer
5c5689172b38b122a69e5ca244497646bf9d8fa8
[ "MIT" ]
null
null
null
tests/conftest.py
AlanRosenthal/virtual-dealer
5c5689172b38b122a69e5ca244497646bf9d8fa8
[ "MIT" ]
null
null
null
""" pytest fixtures """ import unittest.mock as mock import pytest import virtual_dealer.api @pytest.fixture(name="client") def fixture_client(): """ Client test fixture for testing flask APIs """ return virtual_dealer.api.app.test_client() @pytest.fixture(name="store") def fixture_store(): """ Mock for store::Store """ with mock.patch("virtual_dealer.api.store", autospec=True) as mock_store: yield mock_store @pytest.fixture(name="datastore") def fixture_datastore(): """ Client test fixture for testing Google's datastore APIs """ with mock.patch("virtual_dealer.store.datastore", autospec=True) as mock_datastore: yield mock_datastore @pytest.fixture(name="datastore_key") def fixture_datastore_key(): """ Datastore Key Mock """ return mock.MagicMock() @pytest.fixture(name="datastore_entity") def fixture_datastore_entity(): """ Datastore Entity Mock """ return mock.MagicMock()
20.244898
87
0.688508
121
992
5.495868
0.264463
0.097744
0.12782
0.117293
0.159399
0
0
0
0
0
0
0
0.188508
992
48
88
20.666667
0.826087
0.178427
0
0.1
0
0
0.14071
0.07377
0
0
0
0
0
1
0.25
true
0
0.15
0
0.55
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
0
2
8621222cce83ccae2b5fe5d557b5c9ece5f258f8
604
py
Python
samples/abp/test_graphics.py
jproudlo/PyModel
2ab0e2cf821807206725adaa425409b0c28929b7
[ "BSD-3-Clause" ]
61
2015-01-29T16:18:51.000Z
2021-09-28T10:14:02.000Z
samples/abp/test_graphics.py
vikstr/PyModel
4fff616fe0fd8342c91a42d9db5d4097a179dff8
[ "BSD-3-Clause" ]
2
2015-02-04T11:57:53.000Z
2021-07-18T20:59:55.000Z
samples/abp/test_graphics.py
vikstr/PyModel
4fff616fe0fd8342c91a42d9db5d4097a179dff8
[ "BSD-3-Clause" ]
34
2015-02-04T12:00:29.000Z
2022-03-14T07:41:25.000Z
""" ABP analyzer and graphics tests """ cases = [ ('Run Pymodel Graphics to generate dot file from FSM model, no need use pma', 'pmg ABP'), ('Generate SVG file from dot', 'dotsvg ABP'), # Now display ABP.dot in browser ('Run PyModel Analyzer to generate FSM from original FSM, should be the same', 'pma ABP'), ('Run PyModel Graphics to generate a file of graphics commands from new FSM', 'pmg ABPFSM'), ('Generate an svg file from the graphics commands', 'dotsvg ABPFSM'), # Now display ABPFSM.svg in browser, should look the same as ABP.svg ]
24.16
82
0.653974
88
604
4.488636
0.443182
0.075949
0.091139
0.101266
0.141772
0
0
0
0
0
0
0
0.251656
604
24
83
25.166667
0.873894
0.215232
0
0
1
0
0.731183
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8627e459bffff8a71e23af3dc3f940f880264aa8
65
py
Python
scripts/apic.py
nicmatth/APIC-EM-HelloWorldv3
c0645e6decf57dbd87c5a239b6fce36f3dcbef41
[ "Apache-2.0" ]
null
null
null
scripts/apic.py
nicmatth/APIC-EM-HelloWorldv3
c0645e6decf57dbd87c5a239b6fce36f3dcbef41
[ "Apache-2.0" ]
null
null
null
scripts/apic.py
nicmatth/APIC-EM-HelloWorldv3
c0645e6decf57dbd87c5a239b6fce36f3dcbef41
[ "Apache-2.0" ]
null
null
null
APIC_IP="sandboxapic.cisco.com" APIC_PORT="443" GROUP='group-xx'
16.25
31
0.769231
11
65
4.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0.048387
0.046154
65
3
32
21.666667
0.725806
0
0
0
0
0
0.492308
0.323077
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
2
8627f95ead1f5387af07178d55a37d9519bc58b3
1,205
py
Python
stella/test/external_func.py
squisher/stella
d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9
[ "Apache-2.0" ]
11
2015-08-03T17:37:46.000Z
2021-05-26T07:29:36.000Z
stella/test/external_func.py
squisher/stella
d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9
[ "Apache-2.0" ]
1
2016-09-17T01:46:13.000Z
2016-09-17T01:46:13.000Z
stella/test/external_func.py
squisher/stella
d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9
[ "Apache-2.0" ]
3
2016-05-21T19:17:16.000Z
2019-05-10T17:35:37.000Z
# Copyright 2013-2015 David Mohr # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from random import randint import mtpy from . import * # noqa def seed_const(): mtpy.mt_seed32new(42) def seed(s): mtpy.mt_seed32new(s) def drand_const(): mtpy.mt_seed32new(42) return mtpy.mt_drand() def drand(s): mtpy.mt_seed32new(s) return mtpy.mt_drand() + mtpy.mt_drand() @mark.parametrize('f', [seed_const, drand_const]) def test1(f): make_eq_test(f, ()) @mark.parametrize('arg', single_args([1, 2, 42, 1823828, randint(1, 10000000), randint(1, 10000000)])) @mark.parametrize('f', [seed, drand]) def test2(f, arg): make_eq_test(f, arg)
24.591837
78
0.692946
182
1,205
4.5
0.510989
0.051282
0.07326
0.039072
0.095238
0
0
0
0
0
0
0.056877
0.19751
1,205
48
79
25.104167
0.790072
0.462241
0
0.190476
0
0
0.007899
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.52381
0
0
0
0
null
0
0
0
0
0
0
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
2
8630212a84fb76678a871b47fba5eab501615806
1,658
py
Python
292-nim-game.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
292-nim-game.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
292-nim-game.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
""" Question: Nim Game My Submissions Question You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones. Both of you are very clever and have optimal strategies for the game. Write a function to determine whether you can win the game given the number of stones in the heap. For example, if there are 4 stones in the heap, then you will never win the game: no matter 1, 2, or 3 stones you remove, the last stone will always be removed by your friend. Hint: If there are 5 stones in the heap, could you figure out a way to remove the stones such that you will always be the winner? Credits: Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases. Performance: 1. Total Accepted: 31755 Total Submissions: 63076 Difficulty: Easy 2. Your runtime beats 43.52% of python submissions. """ class Solution(object): def canWinNim(self, n): """ :type n: int :rtype: bool """ if n <= 3: return True if n % 4 == 0: return False else: return True assert Solution().canWinNim(0) is True assert Solution().canWinNim(1) is True assert Solution().canWinNim(2) is True assert Solution().canWinNim(3) is True assert Solution().canWinNim(4) is False assert Solution().canWinNim(5) is True assert Solution().canWinNim(6) is True assert Solution().canWinNim(7) is True assert Solution().canWinNim(8) is False
36.043478
263
0.700844
269
1,658
4.319703
0.449814
0.108434
0.178141
0.185886
0.174699
0
0
0
0
0
0
0.027559
0.234017
1,658
45
264
36.844444
0.887402
0.645356
0
0.117647
0
0
0
0
0
0
0
0
0.529412
1
0.058824
false
0
0
0
0.294118
0
0
0
0
null
0
0
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
0
1
0
0
0
0
0
0
0
0
0
2
863da6290f58b36a91968cc8314fc22813d11b6c
210
py
Python
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
14
2020-03-26T18:35:50.000Z
2022-03-20T14:49:54.000Z
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
1
2021-11-23T01:20:13.000Z
2021-11-23T01:20:13.000Z
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
14
2020-04-15T12:30:14.000Z
2022-03-26T20:47:35.000Z
#!/usr/bin/env python3 from aws_cdk import core from fagate_serverless.fagate_serverless_stack import FagateServerlessStack app = core.App() FagateServerlessStack(app, "serverless-xray-stack") app.synth()
17.5
75
0.804762
27
210
6.111111
0.592593
0.193939
0
0
0
0
0
0
0
0
0
0.005291
0.1
210
11
76
19.090909
0.867725
0.1
0
0
0
0
0.111702
0.111702
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
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
0
1
0
0
0
0
2
8640b1d90a7dd7eb0d598131b239f974e433d2eb
1,121
py
Python
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, ForeignKey, Float from sqlalchemy.orm import relationship from .database import Base class Post(Base): __tablename__ = "posts" id = Column(Integer, primary_key=True, nullable=False, index=True) full_name = Column(String, nullable=False) last_place = Column(String, nullable=False) description = Column(String, nullable=False) percentage = Column(Float, default=0.0) image = Column(String) owner_id = Column(Integer, ForeignKey("users.id")) creator = relationship("User", back_populates="posts") class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True, nullable=False, index=True) name = Column(String, nullable=False) email = Column(String, nullable=False, unique=True) password = Column(String, nullable=False) phone_number = Column(String, nullable=False) posts = relationship("Post", back_populates="creator") class Code(Base): __tablename__ = "codes" id = Column(Integer, primary_key=True, nullable=False, index=True) code = Column(Integer, nullable=False)
29.5
70
0.716325
135
1,121
5.792593
0.333333
0.182864
0.179028
0.223785
0.269821
0.195652
0.195652
0.195652
0.195652
0.195652
0
0.002146
0.168599
1,121
37
71
30.297297
0.83691
0
0
0.12
0
0
0.038359
0
0
0
0
0
0
1
0
false
0.04
0.12
0
1
0
0
0
0
null
0
0
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
0
0
0
0
0
0
0
0
1
0
0
2
864be7bfbe0cf81e1b82f46620ffbb10dcc091db
108
py
Python
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
22
2015-05-10T10:32:47.000Z
2021-08-21T17:29:09.000Z
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
2
2016-05-06T20:09:17.000Z
2020-01-23T02:29:18.000Z
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
4
2016-04-17T23:38:11.000Z
2019-03-06T02:28:48.000Z
import _dictdraw, sys d = {} surface = _dictdraw.draw_dictionary(d, [4]) surface.write_to_png(sys.argv[1])
18
43
0.731481
17
108
4.352941
0.764706
0
0
0
0
0
0
0
0
0
0
0.020833
0.111111
108
5
44
21.6
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
0
0
0
2
8654bfcdcac1a02c8bb6c10945f68a8c090f869f
27,781
py
Python
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-DOT11-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DOT11-QOS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:55:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint") CDot11IfVlanIdOrZero, = mibBuilder.importSymbols("CISCO-DOT11-IF-MIB", "CDot11IfVlanIdOrZero") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") Bits, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Counter64, Counter32, ModuleIdentity, NotificationType, Unsigned32, IpAddress, MibIdentifier, iso, TimeTicks, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Counter64", "Counter32", "ModuleIdentity", "NotificationType", "Unsigned32", "IpAddress", "MibIdentifier", "iso", "TimeTicks", "Integer32") TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TruthValue") ciscoDot11QosMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 416)) ciscoDot11QosMIB.setRevisions(('2006-05-09 00:00', '2003-11-24 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoDot11QosMIB.setRevisionsDescriptions(('The DEFVAL clauses have been removed from the definition of the objects cdot11QosCWmin, cdot11QosCWmax, cdot11QosMaxRetry and cdot11QosBackoffOffset, as the default values for these objects depend on the different traffic classes and that there are no common default values across the different traffic classes. ', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: ciscoDot11QosMIB.setLastUpdated('200605090000Z') if mibBuilder.loadTexts: ciscoDot11QosMIB.setOrganization('Cisco Systems Inc.') if mibBuilder.loadTexts: ciscoDot11QosMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 West Tasman Drive, San Jose CA 95134-1706. USA Tel: +1 800 553-NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoDot11QosMIB.setDescription('This MIB module provides network management support for QoS on wireless LAN devices. The objects defined in this MIB provide equivalent support as the objects in the IEEE 802.11E Standard draft. The original names of the objects in the standard are included in the REFERENCE clauses. GLOSSARY and ACRONYMS Access point (AP) Transmitter/receiver (transceiver) device that commonly connects and transports data between a wireless network and a wired network. AIFS Arbitration Interframe Space. It is one of the five different IFSs defined to provide priority levels for access to the wireless media. It shall be used by QSTAs to transmit data type frames (MPDUs) and management type frames (MMPDUs). BSS IEEE 802.11 Basic Service Set (Radio Cell). The BSS of an AP comprises of the stations directly associating with the AP. CW Contention Window. It is the time period between radio signal collisions caused by simultaneous broadcast from multiple wireless stations. The contention window is used to compute the random backoff of the radio broadcast. The IEEE 802.11b does not specify the unit for the time period. CWP Factor Contention Window Persistence Factor. It indicates the factor used in computing new CW values on every 15 unsuccessful attempt to transmit an MPDU or an MMPDU of a traffic class. It is a scaling factor in units of 1/16ths. IFS Inter-Frame Space is the time interval between frames. A STA shall determine that the medium is idle through the use of the carrier sense function for the interval specified. In other words, the size of the IFS determines the length of the backoff time interval of a device to the medium. In this case, the medium is the radio wave spectrum. The IEEE 802.11b standard does not specify any unit for the time interval. BSS IEEE 802.11 Basic Service Set (Radio Cell). The MAC Medium Access Control. Layer 2 in the network model. MPDU MAC protocol data unit. The unit of data exchanged between two peer MAC entities using the services of the physical layer (PHY). MMPDU Management type MAC protocol data unit. MSDU MAC service data unit. Information that is delivered as a unit between MAC service access points. QBSS Quality of service basic service set. QSTA QoS station. STA (WSTA) A non-AP IEEE 802.11 wireless station.') ciscoDot11QosMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 0)) ciscoDot11QosMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 1)) ciscoDot11QosMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 2)) ciscoDot11QosConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1)) ciscoDot11QosQueue = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 2)) ciscoDot11QosStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3)) ciscoDot11QosNotifControl = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 4)) class Cdot11QosTrafficClass(TextualConvention, Integer32): reference = 'IEEE 802.1D-1998, Annex H.2.10 and IEEE 802.11E-2001, section 7.5.1.' description = 'This textual convention defines the 802.11E traffic classes: background(0) - background traffic, lowest priority bestEffort(1) - best effort delivery, default priority class for all traffic video(2) - video traffic, 2nd highest priority voice(3) - voice traffic, highest priority.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("background", 0), ("bestEffort", 1), ("video", 2), ("voice", 3)) cdot11QosConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1), ) if mibBuilder.loadTexts: cdot11QosConfigTable.setStatus('current') if mibBuilder.loadTexts: cdot11QosConfigTable.setDescription('This table contains the basic set of attributes to configure QoS queues for radio interfaces of a wireless LAN device. This table has an expansion dependent relationship with the ifTable. Each IEEE 802.11 wireless interface has different outbound queues for different network traffic class. For each entry in this table, there exists an entry in the ifTable of ifType ieee80211(71).') cdot11QosConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-DOT11-QOS-MIB", "cdot11TrafficQueue")) if mibBuilder.loadTexts: cdot11QosConfigEntry.setStatus('current') if mibBuilder.loadTexts: cdot11QosConfigEntry.setDescription('Each entry contains parameters to configure traffic contention window, AIFS, priority and MSDU lifetime for each traffic queue on an IEEE 802.11 interface.') cdot11TrafficQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: cdot11TrafficQueue.setStatus('current') if mibBuilder.loadTexts: cdot11TrafficQueue.setDescription('This is the index to the outbound traffic queue on the radio interface.') cdot11TrafficClass = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1, 1, 2), Cdot11QosTrafficClass()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11TrafficClass.setStatus('current') if mibBuilder.loadTexts: cdot11TrafficClass.setDescription('This object specifies the traffic class and priority for the traffic on this queue.') cdot11QosCWmin = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdot11QosCWmin.setReference('dot11CWmin, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosCWmin.setStatus('current') if mibBuilder.loadTexts: cdot11QosCWmin.setDescription('This object defines the minimum contention window value for a traffic class. The minimum contention window is 2 to the power of cdot11QosCWmin minus 1, and that is from 0 to 1023. The cdot11QosCWmin value must be less than or equal to cdot11QosCWmax.') cdot11QosCWmax = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdot11QosCWmax.setReference('dot11CWmax, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosCWmax.setStatus('current') if mibBuilder.loadTexts: cdot11QosCWmax.setDescription('This object defines the maximum contention window value for a traffic class. The maximum contention window is 2 to the power of cdot11QosCWmax minus 1, and that is from 0 to 1023. The cdot11QosCWmax value must be greater than or equal to cdot11QosCWmin.') cdot11QosBackoffOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdot11QosBackoffOffset.setStatus('current') if mibBuilder.loadTexts: cdot11QosBackoffOffset.setDescription('This specifies the offset of the radio backoff from the transmission media for this traffic class. The backoff interval of a radio is calculated from a pseudo random integer drawn from a uniform distribution over the interval determined by the maximum and minimum of the contention window.') cdot11QosMaxRetry = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 1, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdot11QosMaxRetry.setStatus('current') if mibBuilder.loadTexts: cdot11QosMaxRetry.setDescription('This specifies the number of times the radio retries for a particular transmission if there is a collision for the media.') cdot11QosSupportTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 2), ) if mibBuilder.loadTexts: cdot11QosSupportTable.setStatus('current') if mibBuilder.loadTexts: cdot11QosSupportTable.setDescription('This table contains the attributes indicating QoS support information on the IEEE 802.11 interfaces of this device. This table has a sparse dependent relationship with the ifTable. For each entry in this table, there exists an entry in the ifTable of ifType ieee80211(71).') cdot11QosSupportEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cdot11QosSupportEntry.setStatus('current') if mibBuilder.loadTexts: cdot11QosSupportEntry.setDescription('Each entry contains attributes to indicate if QoS and priority queue are supported for an IEEE 802.11 interface.') cdot11QosOptionImplemented = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 2, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosOptionImplemented.setReference('dot11QosOptionImplemented, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosOptionImplemented.setStatus('current') if mibBuilder.loadTexts: cdot11QosOptionImplemented.setDescription('This object indicates if QoS is implemented on this IEEE 802.11 network interface.') cdot11QosOptionEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 2, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosOptionEnabled.setStatus('current') if mibBuilder.loadTexts: cdot11QosOptionEnabled.setDescription("This object indicates if QoS is enabled on this IEEE 802.11 network interface. If it is 'true', QoS queuing is ON and traffic are prioritized according to their traffic class. If it is 'false', there is no QoS queuing and traffic are not prioritized.") cdot11QosQueuesAvailable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(4, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosQueuesAvailable.setReference('dot11QueuesAvailable, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosQueuesAvailable.setStatus('current') if mibBuilder.loadTexts: cdot11QosQueuesAvailable.setDescription('This object shows the number of QoS priority queues are available on this IEEE 802.11 network interface. That is the number of queue per interface in the cdot11QosConfigTable.') cdot11QosQueueTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 2, 1), ) if mibBuilder.loadTexts: cdot11QosQueueTable.setStatus('current') if mibBuilder.loadTexts: cdot11QosQueueTable.setDescription('This table contains the queue weight and size information and statistics for each traffic queue on each the IEEE 802.11 interface. This table has a sparse dependent relationship with the ifTable. For each entry in this table, there exists an entry in the ifTable of ifType ieee80211(71).') cdot11QosQueueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-DOT11-QOS-MIB", "cdot11TrafficQueue")) if mibBuilder.loadTexts: cdot11QosQueueEntry.setStatus('current') if mibBuilder.loadTexts: cdot11QosQueueEntry.setDescription('Each entry contains the current queue weight, size, and peak size information for each traffic queue on an IEEE 802.11 interface.') cdot11QosQueueQuota = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosQueueQuota.setStatus('current') if mibBuilder.loadTexts: cdot11QosQueueQuota.setDescription('This is the current QoS priority queue packet quota for this queue on the overall bandwidth. The total available quota is platform dependent and is shared among all the transmitting queues. The queue with the largest quota value has the largest share of the overall bandwidth of the radio. The quota is allocated by the radio driver dynamically.') cdot11QosQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 2, 1, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosQueueSize.setReference('dot11QueueSizeTC, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosQueueSize.setStatus('current') if mibBuilder.loadTexts: cdot11QosQueueSize.setDescription('This is the current QoS priority queue size for this queue.') cdot11QosQueuePeakSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosQueuePeakSize.setReference('dot11QueuePeakSizeTC, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosQueuePeakSize.setStatus('current') if mibBuilder.loadTexts: cdot11QosQueuePeakSize.setDescription('This is the peak QoS priority queue size for this queue.') cdot11QosStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 1), ) if mibBuilder.loadTexts: cdot11QosStatisticsTable.setStatus('current') if mibBuilder.loadTexts: cdot11QosStatisticsTable.setDescription('This table contains the QoS statistics by traffic queue on each the IEEE 802.11 network interface. This table has a expansion dependent relationship with the ifTable. For each entry in this table, there exists an entry in the ifTable of ifType ieee80211(71).') cdot11QosStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-DOT11-QOS-MIB", "cdot11TrafficQueue")) if mibBuilder.loadTexts: cdot11QosStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: cdot11QosStatisticsEntry.setDescription('Each entry contain QoS statistics for data transmission and receive for each traffic queue on an IEEE 802.11 interface.') cdot11QosDiscardedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 1, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosDiscardedFrames.setReference('dot11QosDiscardedFrameCountTC, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosDiscardedFrames.setStatus('current') if mibBuilder.loadTexts: cdot11QosDiscardedFrames.setDescription('This is the counter for QoS discarded frames transmitting from this IEEE 802.11 interface for the traffic queue.') cdot11QosFails = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosFails.setReference('dot11QosFailedCountTC, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosFails.setStatus('current') if mibBuilder.loadTexts: cdot11QosFails.setDescription('This is the counter for QoS failures on this IEEE 802.11 interface for the traffic queue.') cdot11QosRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosRetries.setReference('dot11QosRetryCountTC, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosRetries.setStatus('current') if mibBuilder.loadTexts: cdot11QosRetries.setDescription('This is the counter for QoS retries performed on this IEEE 802.11 interface for the traffic queue.') cdot11QosMutipleRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosMutipleRetries.setReference('dot11QosMutipleRetryCountTC, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosMutipleRetries.setStatus('current') if mibBuilder.loadTexts: cdot11QosMutipleRetries.setDescription('This is the counter for QoS multiple retries performed on this IEEE 802.11 interface for the traffic queue.') cdot11QosTransmittedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosTransmittedFrames.setReference('dot11QosTransmittedFrameCountTC, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosTransmittedFrames.setStatus('current') if mibBuilder.loadTexts: cdot11QosTransmittedFrames.setDescription('This is the counter for QoS frames transmitted from this IEEE 802.11 interface for the traffic queue.') cdot11QosIfStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 2), ) if mibBuilder.loadTexts: cdot11QosIfStatisticsTable.setStatus('current') if mibBuilder.loadTexts: cdot11QosIfStatisticsTable.setDescription('This table contains the attributes indicating QoS statistics on the IEEE 802.11 interfaces of the device. This table has a sparse dependent relationship with the ifTable. For each entry in this table, there exists an entry in the ifTable of ifType ieee80211(71).') cdot11QosIfStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cdot11QosIfStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: cdot11QosIfStatisticsEntry.setDescription('Each entry contains attributes to support QoS statistics on an IEEE 802.11 interface.') cdot11QosIfDiscardedFragments = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 3, 2, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosIfDiscardedFragments.setReference('dot11QosDiscardedFragments, IEEE 802.11E-2001/D1.') if mibBuilder.loadTexts: cdot11QosIfDiscardedFragments.setStatus('current') if mibBuilder.loadTexts: cdot11QosIfDiscardedFragments.setDescription('This object counts the number of QoS discarded transmitting fragments on this radio interface.') cdot11QosIfVlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 3), ) if mibBuilder.loadTexts: cdot11QosIfVlanTable.setStatus('current') if mibBuilder.loadTexts: cdot11QosIfVlanTable.setDescription('This table maps VLANs to different traffic classes and defines their QoS properties. This table has an expansion dependent relationship with the ifTable. For each entry in this table, there exists an entry in the ifTable of ifType ieee80211(71).') cdot11QosIfVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-DOT11-QOS-MIB", "cdot11QosIfVlanId")) if mibBuilder.loadTexts: cdot11QosIfVlanEntry.setStatus('current') if mibBuilder.loadTexts: cdot11QosIfVlanEntry.setDescription('Each entry defines parameters determining the traffic class and QoS configuration of a VLAN.') cdot11QosIfVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 3, 1, 1), CDot11IfVlanIdOrZero().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))) if mibBuilder.loadTexts: cdot11QosIfVlanId.setStatus('current') if mibBuilder.loadTexts: cdot11QosIfVlanId.setDescription('This object identifies the VLAN (1 to 4095) on this radio interface.') cdot11QosIfVlanTrafficClass = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 1, 3, 1, 2), Cdot11QosTrafficClass()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdot11QosIfVlanTrafficClass.setStatus('current') if mibBuilder.loadTexts: cdot11QosIfVlanTrafficClass.setDescription('This is the QoS traffic class for the traffic transmitting on this VLAN. The traffic class determines the priority for the VLAN.') cdot11QosNotifEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 416, 1, 4, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cdot11QosNotifEnabled.setStatus('current') if mibBuilder.loadTexts: cdot11QosNotifEnabled.setDescription('Indicates whether cdot11QosChangeNotif notification will or will not be sent by the agent when the QoS configuration in the cdot11QosConfigTable is changed.') cdot11QosChangeNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 416, 0, 1)).setObjects(("CISCO-DOT11-QOS-MIB", "cdot11TrafficClass")) if mibBuilder.loadTexts: cdot11QosChangeNotif.setStatus('current') if mibBuilder.loadTexts: cdot11QosChangeNotif.setDescription('This notification will be sent when the QoS configuration in the cdot11QosConfigTable is changed. The object cdot11TrafficClass specifies the traffic class of which a queue is configured. The sending of these notifications can be enabled or disabled via cdot11QosNotifEnabled.') ciscoDot11QosMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 2, 1)) ciscoDot11QosMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 416, 2, 2)) ciscoDot11QosMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 416, 2, 1, 1)).setObjects(("CISCO-DOT11-QOS-MIB", "ciscoDot11QosConfigGroup"), ("CISCO-DOT11-QOS-MIB", "ciscoDot11QosStatsGroup"), ("CISCO-DOT11-QOS-MIB", "ciscoDot11QosNotifControlGroup"), ("CISCO-DOT11-QOS-MIB", "ciscoDot11QosNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoDot11QosMIBCompliance = ciscoDot11QosMIBCompliance.setStatus('current') if mibBuilder.loadTexts: ciscoDot11QosMIBCompliance.setDescription('The compliance statement for the configuration and status groups.') ciscoDot11QosConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 416, 2, 2, 1)).setObjects(("CISCO-DOT11-QOS-MIB", "cdot11TrafficClass"), ("CISCO-DOT11-QOS-MIB", "cdot11QosCWmin"), ("CISCO-DOT11-QOS-MIB", "cdot11QosCWmax"), ("CISCO-DOT11-QOS-MIB", "cdot11QosBackoffOffset"), ("CISCO-DOT11-QOS-MIB", "cdot11QosMaxRetry"), ("CISCO-DOT11-QOS-MIB", "cdot11QosOptionImplemented"), ("CISCO-DOT11-QOS-MIB", "cdot11QosOptionEnabled"), ("CISCO-DOT11-QOS-MIB", "cdot11QosQueuesAvailable"), ("CISCO-DOT11-QOS-MIB", "cdot11QosQueueQuota"), ("CISCO-DOT11-QOS-MIB", "cdot11QosQueueSize"), ("CISCO-DOT11-QOS-MIB", "cdot11QosQueuePeakSize"), ("CISCO-DOT11-QOS-MIB", "cdot11QosIfVlanTrafficClass")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoDot11QosConfigGroup = ciscoDot11QosConfigGroup.setStatus('current') if mibBuilder.loadTexts: ciscoDot11QosConfigGroup.setDescription('Configurations for IEEE 802.11 QoS.') ciscoDot11QosStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 416, 2, 2, 2)).setObjects(("CISCO-DOT11-QOS-MIB", "cdot11QosIfDiscardedFragments"), ("CISCO-DOT11-QOS-MIB", "cdot11QosDiscardedFrames"), ("CISCO-DOT11-QOS-MIB", "cdot11QosFails"), ("CISCO-DOT11-QOS-MIB", "cdot11QosRetries"), ("CISCO-DOT11-QOS-MIB", "cdot11QosMutipleRetries"), ("CISCO-DOT11-QOS-MIB", "cdot11QosTransmittedFrames")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoDot11QosStatsGroup = ciscoDot11QosStatsGroup.setStatus('current') if mibBuilder.loadTexts: ciscoDot11QosStatsGroup.setDescription('Status and statistics for IEEE 802.11 QoS.') ciscoDot11QosNotifControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 416, 2, 2, 3)).setObjects(("CISCO-DOT11-QOS-MIB", "cdot11QosNotifEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoDot11QosNotifControlGroup = ciscoDot11QosNotifControlGroup.setStatus('current') if mibBuilder.loadTexts: ciscoDot11QosNotifControlGroup.setDescription('Notification control configuration for QoS.') ciscoDot11QosNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 416, 2, 2, 4)).setObjects(("CISCO-DOT11-QOS-MIB", "cdot11QosChangeNotif")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoDot11QosNotificationGroup = ciscoDot11QosNotificationGroup.setStatus('current') if mibBuilder.loadTexts: ciscoDot11QosNotificationGroup.setDescription('Notifications for QoS configuration.') mibBuilder.exportSymbols("CISCO-DOT11-QOS-MIB", PYSNMP_MODULE_ID=ciscoDot11QosMIB, cdot11QosQueueTable=cdot11QosQueueTable, cdot11QosCWmin=cdot11QosCWmin, ciscoDot11QosMIBObjects=ciscoDot11QosMIBObjects, cdot11QosIfVlanTable=cdot11QosIfVlanTable, cdot11QosIfVlanId=cdot11QosIfVlanId, cdot11QosStatisticsTable=cdot11QosStatisticsTable, ciscoDot11QosQueue=ciscoDot11QosQueue, ciscoDot11QosStatistics=ciscoDot11QosStatistics, cdot11QosRetries=cdot11QosRetries, cdot11QosQueuesAvailable=cdot11QosQueuesAvailable, cdot11QosFails=cdot11QosFails, cdot11QosOptionEnabled=cdot11QosOptionEnabled, cdot11QosStatisticsEntry=cdot11QosStatisticsEntry, cdot11TrafficQueue=cdot11TrafficQueue, ciscoDot11QosMIBCompliance=ciscoDot11QosMIBCompliance, ciscoDot11QosMIBCompliances=ciscoDot11QosMIBCompliances, cdot11QosIfStatisticsTable=cdot11QosIfStatisticsTable, cdot11QosIfDiscardedFragments=cdot11QosIfDiscardedFragments, cdot11QosMaxRetry=cdot11QosMaxRetry, cdot11QosMutipleRetries=cdot11QosMutipleRetries, ciscoDot11QosMIB=ciscoDot11QosMIB, cdot11QosQueueQuota=cdot11QosQueueQuota, ciscoDot11QosMIBConformance=ciscoDot11QosMIBConformance, cdot11QosConfigTable=cdot11QosConfigTable, cdot11QosCWmax=cdot11QosCWmax, cdot11QosConfigEntry=cdot11QosConfigEntry, cdot11QosQueueSize=cdot11QosQueueSize, cdot11QosIfVlanEntry=cdot11QosIfVlanEntry, cdot11TrafficClass=cdot11TrafficClass, ciscoDot11QosStatsGroup=ciscoDot11QosStatsGroup, ciscoDot11QosConfig=ciscoDot11QosConfig, ciscoDot11QosNotifControl=ciscoDot11QosNotifControl, cdot11QosSupportEntry=cdot11QosSupportEntry, cdot11QosSupportTable=cdot11QosSupportTable, ciscoDot11QosMIBGroups=ciscoDot11QosMIBGroups, cdot11QosBackoffOffset=cdot11QosBackoffOffset, ciscoDot11QosConfigGroup=ciscoDot11QosConfigGroup, cdot11QosTransmittedFrames=cdot11QosTransmittedFrames, cdot11QosQueueEntry=cdot11QosQueueEntry, ciscoDot11QosNotifControlGroup=ciscoDot11QosNotifControlGroup, ciscoDot11QosNotificationGroup=ciscoDot11QosNotificationGroup, ciscoDot11QosMIBNotifs=ciscoDot11QosMIBNotifs, cdot11QosIfStatisticsEntry=cdot11QosIfStatisticsEntry, cdot11QosNotifEnabled=cdot11QosNotifEnabled, cdot11QosChangeNotif=cdot11QosChangeNotif, cdot11QosOptionImplemented=cdot11QosOptionImplemented, cdot11QosIfVlanTrafficClass=cdot11QosIfVlanTrafficClass, Cdot11QosTrafficClass=Cdot11QosTrafficClass, cdot11QosQueuePeakSize=cdot11QosQueuePeakSize, cdot11QosDiscardedFrames=cdot11QosDiscardedFrames)
156.073034
2,406
0.791908
3,456
27,781
6.365162
0.152778
0.049095
0.085917
0.00891
0.375807
0.273161
0.253296
0.222611
0.173516
0.163197
0
0.080347
0.103092
27,781
177
2,407
156.954802
0.802504
0.011951
0
0.035928
0
0.161677
0.433054
0.025911
0
0
0
0
0
1
0
false
0
0.053892
0
0.08982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8657657d7e720812db7b2b5c2b5e580159afbea0
564
py
Python
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
""" Next lexicographical permutation algorithm https://www.nayuki.io/page/next-lexicographical-permutation-algorithm """ def next_lexo(S): b = S[-1] for i, a in enumerate(reversed(S[:-1]), 2): if a < b: # we have the pivot a for j, b in enumerate(reversed(S), 1): if b > a: F = list(S) F[-i], F[-j] = F[-j], F[-i] F = F[: -i + 1] + sorted(F[-i + 1 :]) return "".join(F) else: b = a return "no answer"
25.636364
69
0.439716
76
564
3.25
0.460526
0.032389
0.242915
0.315789
0.17004
0
0
0
0
0
0
0.01791
0.406028
564
21
70
26.857143
0.719403
0.237589
0
0
0
0
0.021327
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
0
null
0
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
0
0
0
0
0
0
0
0
0
0
0
2
865ad1612ffd549ba548de0cbe66876028b4a804
321
py
Python
pycoin/symbols/doge.py
jaschadub/pycoin
1e8d0d9fe20ce0347b97847bb529cd1bd84c7442
[ "MIT" ]
1
2018-01-17T05:08:32.000Z
2018-01-17T05:08:32.000Z
pycoin/symbols/doge.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
null
null
null
pycoin/symbols/doge.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
1
2020-03-10T12:21:51.000Z
2020-03-10T12:21:51.000Z
from pycoin.networks.bitcoinish import create_bitcoinish_network network = create_bitcoinish_network( symbol="DOGE", network_name="Dogecoin", subnet_name="mainnet", wif_prefix_hex="9e", address_prefix_hex="1e", pay_to_script_prefix_hex="16", bip32_prv_prefix_hex="02fd3955", bip32_pub_prefix_hex="02fd3929")
45.857143
80
0.800623
44
321
5.386364
0.636364
0.189873
0.194093
0
0
0
0
0
0
0
0
0.068259
0.087227
321
6
81
53.5
0.740614
0
0
0
0
0
0.127726
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
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
0
0
0
0
0
0
0
2
865c3c1cc62a44e9c288bd3980673e8cb1a26d5e
93
py
Python
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
''' Created on Jan 18, 2018 @author: riteshagarwal ''' java = False rest = False cli = False
11.625
23
0.677419
13
93
4.846154
0.846154
0
0
0
0
0
0
0
0
0
0
0.08
0.193548
93
8
24
11.625
0.76
0.505376
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
2
866961c7ba40ad3796162e785a123e4decd9a074
6,648
py
Python
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
1
2020-11-09T10:32:05.000Z
2020-11-09T10:32:05.000Z
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
null
null
null
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
null
null
null
import os from pathlib import Path from datetime import timedelta from celery.schedules import crontab from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get( 'SECRET_KEY', default='m8/o)3$n^03w)mxgvnrxb46__@6qnte9l0dkb7$6%lpbcox+v!' ) # SECURITY WARNING: don't run with debug turned on in production! DEBUG = int(os.environ.get('DEBUG', default=1)) # 'DJANGO_ALLOWED_HOSTS' should be a single string of hosts with a space between each. # For example: 'DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]' ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", default='*').split(" ") # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_filters', 'rosetta', 'djoser', 'djmoney', 'djmoney.contrib.exchange', 'corsheaders', 'apps.account.apps.AccountConfig', 'apps.transaction.apps.TransactionConfig', 'apps.common.apps.CommonConfig', 'apps.authentication.apps.AuthenticationConfig' ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware' ] ROOT_URLCONF = 'project.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages' ], }, }, ] WSGI_APPLICATION = 'project.wsgi.application' # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': os.environ.get('SQL_ENGINE', 'django.db.backends.sqlite3'), 'NAME': os.environ.get('SQL_DATABASE', os.path.join(BASE_DIR, 'db.sqlite3')), 'USER': os.environ.get('SQL_USER'), 'PASSWORD': os.environ.get('SQL_PASSWORD'), 'HOST': os.environ.get('SQL_HOST'), 'PORT': os.environ.get('SQL_PORT'), } } # Password validation # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] AUTH_USER_MODEL = 'authentication.User' # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'uk' LANGUAGES = [ ('en', _('English')), ('uk', _('Ukrainian')) ] LOCALE_PATHS = ( BASE_DIR / 'locale', ) TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = "/static/" STATIC_ROOT = os.path.join(BASE_DIR, "static") EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # ------------------------------------------ # # django-money # # ------------------------------------------ # DEFAULT_CURRENCY = 'EUR' EXCHANGE_BACKEND = 'djmoney.contrib.exchange.backends.FixerBackend' FIXER_ACCESS_KEY = 'f5a898dbf45d15d8aa6eca7af3f372e1' # ------------------------------------------ # # Celery # # ------------------------------------------ # CELERY_BROKER_URL = os.environ.get('REDIS_LOCATION', 'redis://127.0.0.1:6379') CELERY_RESULT_BACKEND = os.environ.get('REDIS_LOCATION', 'redis://127.0.0.1:6379') CELERY_ACCEPT_CONTENT = ['application/json'] CELERY_RESULT_SERIALIZER = 'json' CELERY_TASK_SERIALIZER = 'json' CELERY_BEAT_SCHEDULE = { 'update_rates': { 'task': 'apps.user.tasks.update_rates', 'schedule': crontab(hour="*/1"), } } # ------------------------------------------ # # Django REST Framework # # ------------------------------------------ # REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework.permissions.IsAuthenticated', ), 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework_simplejwt.authentication.JWTAuthentication', ), 'EXCEPTION_HANDLER': 'apps.common.errors.custom_exception_handler', 'TEST_REQUEST_DEFAULT_FORMAT': 'json', } # ------------------------------------------ # # djoser # # ------------------------------------------ # DJOSER = { # Name of a field in User model to be used as login field 'LOGIN_FIELD': 'email', # If True user will be required to click activation # link sent in email after: # * creating an account # * updating their email 'SEND_ACTIVATION_EMAIL': True, 'ACTIVATION_URL': '/activate/{uid}/{token}', 'PASSWORD_RESET_CONFIRM_URL': 'password/reset/confirm/{uid}/{token}', 'USERNAME_RESET_CONFIRM_URL': 'eamil/reset/confirm/{uid}/{token}', # If True, you need to pass re_password to /users/ # endpoint, to validate password equality. 'USER_CREATE_PASSWORD_RETYPE': True, 'PASSWORD_RESET_CONFIRM_RETYPE': True, # If True, register or activation endpoint # will send confirmation email to user. 'SEND_CONFIRMATION_EMAIL': True, 'SERIALIZERS': { 'user_create': 'apps.user.serializers.UserCreateSerializer' } } # ------------------------------------------ # # Simple JWT # # ------------------------------------------ # SIMPLE_JWT = { 'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5), 'REFRESH_TOKEN_LIFETIME': timedelta(days=1), 'ROTATE_REFRESH_TOKENS': True, 'AUTH_HEADER_TYPES': ('JWT',), 'USER_ID_FIELD': 'id', 'USER_ID_CLAIM': 'id', } CORS_ALLOW_ALL_ORIGINS = True
29.546667
91
0.626203
677
6,648
5.958641
0.401773
0.048339
0.032722
0.02231
0.104115
0.095687
0.057015
0.042638
0.042638
0.022806
0
0.01362
0.182762
6,648
224
92
29.678571
0.728879
0.246089
0
0.013889
0
0
0.519572
0.402341
0
0
0
0
0
1
0
false
0.0625
0.034722
0
0.034722
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
866fc71e2531405289f44f8b89f61a0e57369c55
321
py
Python
checkmate/contrib/plugins/all/progpilot/setup.py
marcinguy/checkmate-ce
fc33c7c27bc640ab4db5dbda274a0edd3b3db218
[ "MIT" ]
null
null
null
checkmate/contrib/plugins/all/progpilot/setup.py
marcinguy/checkmate-ce
fc33c7c27bc640ab4db5dbda274a0edd3b3db218
[ "MIT" ]
null
null
null
checkmate/contrib/plugins/all/progpilot/setup.py
marcinguy/checkmate-ce
fc33c7c27bc640ab4db5dbda274a0edd3b3db218
[ "MIT" ]
null
null
null
from .analyzer import ProgpilotAnalyzer from .issues_data import issues_data analyzers = { 'phpanlyzer' : { 'name' : 'phpanalyzer', 'title' : 'phpanalyzer', 'class' : ProgpilotAnalyzer, 'language' : 'all', 'issues_data' : issues_data, }, }
22.928571
40
0.535826
24
321
7
0.583333
0.238095
0
0
0
0
0
0
0
0
0
0
0.34891
321
13
41
24.692308
0.803828
0
0
0
0
0
0.211838
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
0
0
null
1
0
0
0
0
0
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
0
0
0
0
0
0
2
867a66ae5d5de251f9ea678d34a2cd01a411db2e
443
py
Python
src/ml_final_project/utils/evaluators/default.py
yuvalot/ml_final_project
fefb67c92504ceeb7999e49daa8a8aa5a60f1c61
[ "MIT" ]
null
null
null
src/ml_final_project/utils/evaluators/default.py
yuvalot/ml_final_project
fefb67c92504ceeb7999e49daa8a8aa5a60f1c61
[ "MIT" ]
null
null
null
src/ml_final_project/utils/evaluators/default.py
yuvalot/ml_final_project
fefb67c92504ceeb7999e49daa8a8aa5a60f1c61
[ "MIT" ]
null
null
null
def default_evaluator(model, X_test, y_test): """A simple evaluator that takes in a model, and a test set, and returns the loss. Args: model: The model to evaluate. X_test: The features matrix of the test set. y_test: The one-hot labels matrix of the test set. Returns: The loss on the test set. """ return model.evaluate(X_test, y_test, verbose=0)[0]
31.642857
61
0.598194
67
443
3.850746
0.447761
0.108527
0.116279
0.077519
0.139535
0
0
0
0
0
0
0.006734
0.329571
443
13
62
34.076923
0.861953
0.577878
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
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
2
8687b3a09f22f924b0323932d63831d4c09242d4
3,081
py
Python
tests/requestreply.py
unclechu/py-radio-class
8f96d8bcb398693d18a4ebd732415a879047edee
[ "MIT" ]
null
null
null
tests/requestreply.py
unclechu/py-radio-class
8f96d8bcb398693d18a4ebd732415a879047edee
[ "MIT" ]
null
null
null
tests/requestreply.py
unclechu/py-radio-class
8f96d8bcb398693d18a4ebd732415a879047edee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase, TestLoader from radio import (Radio, ListenerNotFound, ReplyHandlerAlreadyBound, HandlerAlreadyBound) def init_radio(f): def wrap(self, *args): self.radio = Radio() return f(self, *args) return wrap class TestRadioRequestReplyMethods(TestCase): @init_radio def test_request_reply_stop_replying(self): ''' "request", "reply" and "stopReplying" methods work correctly. ''' def foo_handler(): return 'foo' def bar_handler(my_arg=222): return my_arg self.radio.reply('foo', foo_handler) self.radio.reply('bar', bar_handler) self.assertEqual(self.radio.request('foo'), 'foo') self.assertEqual(self.radio.request('bar'), 222) self.assertEqual(self.radio.request('bar', 333), 333) self.assertEqual(self.radio.request('bar', my_arg=444), 444) self.radio.stopReplying('foo') self.radio.stopReplying('bar') with self.assertRaises(ListenerNotFound): self.radio.request('foo') with self.assertRaises(ListenerNotFound): self.radio.request('bar') @init_radio def test_kwargs(self): ''' Keyword arguments works correctly. ''' foo_list = [] def foo_handler(foo, bar): return (foo, bar) self.radio.reply('foo', foo_handler) self.assertEqual(self.radio.request('foo', bar=5, foo=10), (10, 5)) @init_radio def test_on_already_bound(self): ''' "reply" fails when trying to bound handler that is already bounded. ''' def foo_handler(): pass self.radio.reply('foo', foo_handler) self.radio.reply('bar', foo_handler) # General exception with self.assertRaises(HandlerAlreadyBound): self.radio.reply('foo', foo_handler) # Child exception with self.assertRaises(ReplyHandlerAlreadyBound): self.radio.reply('foo', foo_handler) @init_radio def test_off_handler_that_was_not_bounded(self): ''' "stopReplying" fails when trying to unbound handler that was not bounded. ''' def foo_handler(): pass with self.assertRaises(ListenerNotFound): self.radio.stopReplying('foo', foo_handler) @init_radio def test_off_soft_mode(self): ''' "stopReplying" will not fail if safe-argument is set to True. ''' def foo_handler(): pass self.radio.stopReplying('foo', foo_handler, soft=True) self.radio.stopReplying('foo', foo_handler, soft=True) @init_radio def test_trigger_fail_on_incorrect_arguments(self): ''' "request" fails when arguments for handler is incorrect. ''' def foo_handler(required_arg): pass self.radio.reply('foo', foo_handler) with self.assertRaises(TypeError): self.radio.request('foo') suite = TestLoader().loadTestsFromTestCase(TestRadioRequestReplyMethods)
28.794393
75
0.627069
347
3,081
5.417867
0.239193
0.105319
0.062234
0.051064
0.414362
0.376064
0.253723
0.125532
0.046809
0.046809
0
0.010946
0.258682
3,081
106
76
29.066038
0.812172
0.134372
0
0.385965
0
0
0.027403
0
0
0
0
0
0.192982
1
0.263158
false
0.070175
0.035088
0.052632
0.350877
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
8688ffb74b8525b0642bda0ae7e8535617771ade
243
py
Python
tabnine-vim/third_party/ycmd/ycmd/tests/python/testdata/project/settings_extra_conf.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
10
2020-07-21T21:59:54.000Z
2021-07-19T11:01:47.000Z
tabnine-vim/third_party/ycmd/ycmd/tests/python/testdata/project/settings_extra_conf.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
tabnine-vim/third_party/ycmd/ycmd/tests/python/testdata/project/settings_extra_conf.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
1
2021-01-30T18:17:01.000Z
2021-01-30T18:17:01.000Z
import os import sys DIR_OF_THIS_SCRIPT = os.path.abspath( os.path.dirname( __file__ ) ) def Settings( **kwargs ): return { 'interpreter_path': sys.executable, 'sys_path': [ os.path.join( DIR_OF_THIS_SCRIPT, 'third_party' ) ] }
20.25
69
0.691358
34
243
4.558824
0.588235
0.116129
0.116129
0.193548
0
0
0
0
0
0
0
0
0.17284
243
11
70
22.090909
0.771144
0
0
0
0
0
0.144033
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
0.5
0
0
0
0
null
0
0
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
0
0
0
0
0
0
0
1
0
0
0
2
8695dfaa20d2f47de4c76bf66aa5cf33728fae34
3,292
py
Python
tests/python/correctness/simple_test_aux_index.py
dubey/weaver
56a42fd2d0bbb14867ba792ca5461d16310a7387
[ "BSD-3-Clause" ]
163
2015-01-02T03:51:38.000Z
2022-03-21T23:06:39.000Z
tests/python/correctness/simple_test_aux_index.py
dubey/weaver
56a42fd2d0bbb14867ba792ca5461d16310a7387
[ "BSD-3-Clause" ]
1
2015-04-08T23:17:06.000Z
2015-04-24T15:25:26.000Z
tests/python/correctness/simple_test_aux_index.py
dubey/weaver
56a42fd2d0bbb14867ba792ca5461d16310a7387
[ "BSD-3-Clause" ]
20
2015-02-17T19:24:05.000Z
2020-10-29T01:59:18.000Z
#! /usr/bin/env python # # =============================================================== # Description: Sanity check for fresh install. # # Created: 2014-08-12 16:42:52 # # Author: Ayush Dubey, [email protected] # # Copyright (C) 2013, Cornell University, see the LICENSE file # for licensing agreement # =============================================================== # import sys try: import weaver.client as client except ImportError: import client config_file='' if len(sys.argv) > 1: config_file = sys.argv[1] # create client object c = client.Client('128.84.167.220', 2002, config_file) # check aux index assert c.aux_index() # 1. create node for user ayush c.begin_tx() c.create_node('ayush') c.set_node_properties({'type': 'user', 'age': '25'}, 'ayush') c.end_tx() # 2. create node for user egs c.begin_tx() c.create_node('egs') c.set_node_property('type', 'user', 'egs') c.end_tx() # 3. ayush follows egs c.begin_tx() c.create_edge('ayush', 'egs', 'e1') c.set_edge_property(edge='e1', key='type', value='follows') c.create_edge('egs', 'ayush', 'e2') c.set_edge_property(edge='e2', key='type', value='followed_by') c.end_tx() # 4. add a post and restrict visibility to followers only c.begin_tx() c.create_node('post') c.set_node_property('type', 'post', 'post') c.set_node_property('visibility', 'followers', 'post') e3 = c.create_edge('egs', 'post') c.set_edge_property(edge=e3, key='type', value='posted') c.end_tx() # 5. 'like' the post c.begin_tx() e4 = c.create_edge('post', 'ayush') c.set_edge_property(edge=e4, key='type', value='liked_by') c.end_tx() # 6. list all the people who like egs's post return_nodes = c.traverse('egs', {'type': 'user'}).out_edge({'type': 'posted'}).node({'type': 'post'}).out_edge({'type': 'liked_by'}).node({'type': 'user'}).execute() assert len(return_nodes) == 1, 'traversal returned incorrect #nodes' assert 'ayush' in return_nodes, 'traversal returned bad node handle' # 7. try to create node with same handle as before c.begin_tx() c.create_node('ayush') try: c.end_tx() assert False, 'create node passed' except client.WeaverError: pass # 8. try to create edge with same handle as before c.begin_tx() c.create_edge('ayush', 'egs', 'e1') try: c.end_tx() assert False, 'create edge passed' except client.WeaverError: pass # 9. add auxiliary handles to nodes c.begin_tx() c.add_alias('ad688', 'ayush') c.add_alias('el33th4x0r', 'egs') c.end_tx() # 10. list all the people who like egs's post # this time with aliases instead of handles return_nodes = c.traverse('el33th4x0r', {'type': 'user'}).out_edge({'type': 'posted'}).node({'type': 'post'}).out_edge({'type': 'liked_by'}).node({'type': 'user'}).execute() assert len(return_nodes) == 1, 'traversal returned incorrect #nodes' assert 'ayush' in return_nodes, 'traversal returned bad node handle' # 11. get node and check it is valid ad = c.get_node('ayush') assert 'ad688' in ad.aliases assert 'type' in ad.properties assert 'user' in ad.properties['type'] assert 'age' in ad.properties assert '25' in ad.properties['age'] assert 'e1' in ad.out_edges print 'Correctly executed 11 transactions of varying complexity, pass simple_test.' print 'Success, you have a working Weaver setup!'
28.626087
173
0.663123
508
3,292
4.17126
0.299213
0.029731
0.030203
0.029731
0.414346
0.315243
0.294479
0.254365
0.254365
0.204814
0
0.028259
0.140036
3,292
114
174
28.877193
0.72024
0.26853
0
0.455882
0
0
0.274255
0
0
0
0
0
0.191176
0
null
null
0.073529
0.058824
null
null
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
869cca1a77b5e47ef9d5c83e59910c957d0e0eeb
1,145
py
Python
UI/ControlSlider/__init__.py
peerke88/SkinningTools
db761f569ba179231dc64183ebfca1684429ab96
[ "MIT" ]
7
2021-12-16T06:03:18.000Z
2022-02-15T01:49:37.000Z
UI/weightEditor/__init__.py
peerke88/SkinningTools
db761f569ba179231dc64183ebfca1684429ab96
[ "MIT" ]
null
null
null
UI/weightEditor/__init__.py
peerke88/SkinningTools
db761f569ba179231dc64183ebfca1684429ab96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # SkinWeights command and component editor # Copyright (C) 2018 Trevor van Hoof # Website: http://www.trevorius.com # # pyqt attribute sliders # Copyright (C) 2018 Daniele Niero # Website: http://danieleniero.com/ # # neighbour finding algorythm # Copyright (C) 2018 Jan Pijpers # Website: http://www.janpijpers.com/ # # skinningTools and UI # Copyright (C) 2018 Perry Leijten # Website: http://www.perryleijten.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # See http://www.gnu.org/licenses/gpl.html for a copy of the GNU General # Public License. # --------------------------------------------------------------------------------------
36.935484
89
0.672489
154
1,145
5
0.603896
0.051948
0.072727
0.074026
0.106494
0.072727
0
0
0
0
0
0.019007
0.172926
1,145
30
90
38.166667
0.794087
0.920524
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
86a0198d73981242105ec1cd9a6582cfdecf35e4
317
py
Python
tests/test-scripts/threadpools.py
whalesalad/filprofiler
9c12cbe62ad1fed5d59d923013739bb3377bc24c
[ "Apache-2.0" ]
521
2020-06-18T14:27:22.000Z
2022-03-30T08:29:10.000Z
tests/test-scripts/threadpools.py
whalesalad/filprofiler
9c12cbe62ad1fed5d59d923013739bb3377bc24c
[ "Apache-2.0" ]
277
2020-06-18T14:11:36.000Z
2022-03-28T09:51:11.000Z
tests/test-scripts/threadpools.py
sthagen/python-filprofiler
5efe9fcca539d31f5423bbfa39a3f49176925350
[ "Apache-2.0" ]
17
2020-06-26T05:29:43.000Z
2022-03-28T09:57:08.000Z
"""Validate that number of threads in thread pools is set to 1.""" import numexpr import blosc import threadpoolctl # APIs that return previous number of threads: assert numexpr.set_num_threads(2) == 1 assert blosc.set_nthreads(2) == 1 for d in threadpoolctl.threadpool_info(): assert d["num_threads"] == 1, d
24.384615
66
0.747634
50
317
4.64
0.54
0.068966
0.12931
0
0
0
0
0
0
0
0
0.022472
0.157729
317
12
67
26.416667
0.846442
0.334385
0
0
0
0
0.053659
0
0
0
0
0
0.428571
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
1
0
0
0
0
2
86c29a98e5b655839d8db00b70a6a8da9b1ef8d8
388
py
Python
config.py
Rinku92/Mini_Project3
eab11ce3743fddda2ccc158367a37d4522ba1e39
[ "MIT" ]
null
null
null
config.py
Rinku92/Mini_Project3
eab11ce3743fddda2ccc158367a37d4522ba1e39
[ "MIT" ]
null
null
null
config.py
Rinku92/Mini_Project3
eab11ce3743fddda2ccc158367a37d4522ba1e39
[ "MIT" ]
null
null
null
import os ''' user = os.environ['POSTGRES_USER'] password = os.environ['POSTGRES_PASSWORD'] host = os.environ['POSTGRES_HOST'] database = os.environ['POSTGRES_DB'] port = os.environ['POSTGRES_PORT'] ''' user = 'test' password = 'password' host = 'localhost' database = 'example' port = '5432' DATABASE_CONNECTION_URI = f'postgresql+psycopg2://{user}:{password}@{host}:{port}/{database}'
24.25
93
0.716495
48
388
5.645833
0.395833
0.166052
0.313653
0
0
0
0
0
0
0
0
0.014286
0.097938
388
16
93
24.25
0.76
0
0
0
0
0
0.489796
0.326531
0
0
0
0
0
1
0
false
0.285714
0.142857
0
0.142857
0
0
0
0
null
0
1
0
0
0
0
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
2
86c60d6dd1a1d7d8e36a571eddb9e98fee94282b
108
py
Python
HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
def create_array(n): res=[] i=1 while i<=n: res.append(i) i += 1 return res
13.5
21
0.453704
17
108
2.823529
0.588235
0.166667
0
0
0
0
0
0
0
0
0
0.03125
0.407407
108
7
22
15.428571
0.71875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
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
0
0
0
0
0
0
0
0
2
86c9f566a6eb8b7449c2eceeae4f2a4b402b56f5
3,115
py
Python
indico/core/signals/event/core.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/core/signals/event/core.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/core/signals/event/core.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.signals.event import _signals sidemenu = _signals.signal('sidemenu', """ Expected to return ``MenuEntryData`` objects to be added to the event side menu. A single entry can be returned directly, multiple entries must be yielded. """) deleted = _signals.signal('deleted', """ Called when an event is deleted. The *sender* is the event object. The `user` kwarg contains the user performing the deletion if available. """) updated = _signals.signal('updated', """ Called when basic data of an event is updated. The *sender* is the event. A dict of changes is passed in the `changes` kwarg, with ``(old, new)`` tuples for each change. Note than the `person_links` change may happen with `old` and `new` being the same lists for technical reasons. If the key is present, it should be assumed that something changed (usually the order or some data on the person link). """) cloned = _signals.signal('cloned', """ Called when an event is cloned. The *sender* is the `Event` object of the old event, the new event is passed in the `new_event` kwarg. """) type_changed = _signals.signal('type-changed', """ Called when the type of an event is changed. The `sender` is the event, the old type is passed in the `old_type` kwarg. """) moved = _signals.signal('moved', """ Called when an event is moved to a different category. The `sender` is the event, the old category is in the `old_parent` kwarg. """) created = _signals.signal('created', """ Called when a new event is created. The `sender` is the new Event. """) session_updated = _signals.signal('session-updated', """ Called when a session is updated. The *sender* is the session. """) session_deleted = _signals.signal('session-deleted', """ Called when a session is deleted. The *sender* is the session. """) session_block_deleted = _signals.signal('session-block-deleted', """ Called when a session block is deleted. The *sender* is the session block. This signal is called before the ``db.session.delete()`` on the block is executed. """) timetable_buttons = _signals.signal('timetable-buttons', """ Expected to return a list of tuples ('button_name', 'js-call-class'). Called when building the timetable view. """) get_log_renderers = _signals.signal('get-log-renderers', """ Expected to return `EventLogRenderer` classes. """) get_feature_definitions = _signals.signal('get-feature-definitions', """ Expected to return `EventFeature` subclasses. """) metadata_postprocess = _signals.signal('metadata-postprocess', """ Called right after a dict-like representation of an event is created, so that plugins can add their own fields. The *sender* is a string parameter specifying the source of the metadata. The *event* kwarg contains the event object. The metadata is passed in the `data` kwarg. The signal should return a dict that will be used to update the original representation (fields to add or override). """)
35.804598
81
0.741252
473
3,115
4.816068
0.32981
0.079895
0.048288
0.055312
0.159789
0.1036
0.048288
0
0
0
0
0.003031
0.152809
3,115
86
82
36.22093
0.860174
0.064205
0
0.225806
0
0
0.765131
0.02304
0
0
0
0
0
1
0
false
0.064516
0.016129
0
0.016129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
86d3d194e9e0137871f97d1ad57cf24e9f4a90e3
1,672
py
Python
chroma_agent/action_plugins/manage_node.py
whamcloud/iml-agent
fecb2468fd6edc822f3ab37ced444d98d8725730
[ "MIT" ]
1
2020-04-22T16:43:09.000Z
2020-04-22T16:43:09.000Z
chroma_agent/action_plugins/manage_node.py
AlexTalker/iml-agent
5ebcfe96be670912d9a9b7fbb23431af0d54f768
[ "MIT" ]
53
2018-07-07T18:17:50.000Z
2021-03-19T23:15:28.000Z
chroma_agent/action_plugins/manage_node.py
AlexTalker/iml-agent
5ebcfe96be670912d9a9b7fbb23431af0d54f768
[ "MIT" ]
6
2018-06-18T08:51:38.000Z
2019-10-24T12:16:42.000Z
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import os from chroma_agent.lib.shell import AgentShell from chroma_agent.log import console_log from chroma_agent.device_plugins.action_runner import CallbackAfterResponse from chroma_agent.lib.pacemaker import PacemakerConfig def ssi(runlevel): # force a manual failover by failing a node AgentShell.try_run(["sync"]) AgentShell.try_run(["sync"]) AgentShell.try_run(["init", runlevel]) def fail_node(): ssi("0") def stonith(node): p_cfg = PacemakerConfig() # TODO: signal that manager that a STONITH has been done so that it # doesn't treat it as an AWOL console_log.info("Rebooting %s per a STONITH request" % node) p_cfg.get_node(node).fence_reboot() def shutdown_server(halt=True, at_time="now"): def _shutdown(): console_log.info("Initiating server shutdown per manager request") # This will initiate a "nice" shutdown with a wall from root, etc. AgentShell.try_run(["shutdown", "-H" if halt else "-h", at_time]) console_log.info("Terminating") os._exit(0) raise CallbackAfterResponse(None, _shutdown) def reboot_server(at_time="now"): def _reboot(): console_log.info("Initiating server reboot per manager request") # reboot(8) just calls shutdown anyhow. AgentShell.try_run(["shutdown", "-r", at_time]) console_log.info("Terminating") os._exit(0) raise CallbackAfterResponse(None, _reboot) ACTIONS = [reboot_server, shutdown_server, fail_node, stonith]
27.866667
75
0.703947
233
1,672
4.892704
0.472103
0.052632
0.070175
0.031579
0.221053
0.168421
0.168421
0.119298
0.119298
0.119298
0
0.005957
0.19677
1,672
59
76
28.338983
0.842889
0.231459
0
0.2
0
0
0.146552
0
0
0
0
0.016949
0
1
0.233333
false
0
0.166667
0
0.4
0
0
0
0
null
0
0
0
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
0
0
0
0
0
0
0
2
86e7d2f1d51490654abf153935c59b83db56caad
597
py
Python
flasky.py
ZxShane/slam_hospital
302704b3a188cea07dddfb23595dd75f8d3cd636
[ "Apache-2.0" ]
null
null
null
flasky.py
ZxShane/slam_hospital
302704b3a188cea07dddfb23595dd75f8d3cd636
[ "Apache-2.0" ]
1
2020-11-17T16:47:19.000Z
2021-01-26T10:16:33.000Z
flasky.py
ZxShane/slam_hospital
302704b3a188cea07dddfb23595dd75f8d3cd636
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from flask_migrate import Migrate from app import create_app, db from app.models import User, Role, PoseToLocation app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) # migrate 的新建 我们需要扫描到这些文件我们才能创建 @app.shell_context_processor def make_shell_context(): return dict(db=db, User=User, Role=Role, PoseToLocation=PoseToLocation) # 单元测试 @app.cli.command() def test(): """ run the unit tests """ import unittest tests = unittest.TestLoader().discover('tests') unittest.TextTestRunner(verbosity=2).run(tests)
22.111111
75
0.730318
80
597
5.35
0.525
0.03271
0
0
0
0
0
0
0
0
0
0.003929
0.147404
597
26
76
22.961538
0.836935
0.128978
0
0
0
0
0.046967
0
0
0
0
0
0
1
0.142857
false
0
0.357143
0.071429
0.571429
0
0
0
0
null
0
0
0
0
0
0
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
0
1
0
1
0
0
2
86ff60feba2c3198cb1453cbf355794a3010628a
195
py
Python
CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py
fcsiba/Smart-Cart
7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5
[ "MIT" ]
null
null
null
CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py
fcsiba/Smart-Cart
7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5
[ "MIT" ]
null
null
null
CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py
fcsiba/Smart-Cart
7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5
[ "MIT" ]
null
null
null
import tensorflow as tf # Convert the model. converter = tf.lite.TFLiteConverter.from_saved_model('model.py') tflite_model = converter.convert() open("trash_ai.tflite", "wb").write(tflite_model)
32.5
64
0.784615
28
195
5.285714
0.678571
0.189189
0
0
0
0
0
0
0
0
0
0
0.082051
195
6
65
32.5
0.826816
0.092308
0
0
0
0
0.142045
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
0
0
0
2
8102b4059df75e35791f0dfa9ba091b4276e3aff
12,313
py
Python
test/tracerEq/test_steady_adv-diff_mms.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
test/tracerEq/test_steady_adv-diff_mms.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
test/tracerEq/test_steady_adv-diff_mms.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
""" Testing 3D tracer advection-diffusion equation with method of manufactured solution (MMS). """ from thetis import * import numpy from scipy import stats import pytest class Setup1: """ Constant bathymetry and u velocty, zero diffusivity, non-trivial tracer """ def bath(self, x, y, lx, ly): return Constant(40.0) def elev(self, x, y, lx, ly): return Constant(0.0) def uv(self, x, y, z, lx, ly): return as_vector( [ Constant(1.0), Constant(0.0), Constant(0), ]) def w(self, x, y, z, lx, ly): return as_vector( [ Constant(0), Constant(0), Constant(0), ]) def kappa(self, x, y, z, lx, ly): return Constant(0.0) def tracer(self, x, y, z, lx, ly): return sin(0.2*pi*(3.0*x + 1.0*y)/lx) def residual(self, x, y, z, lx, ly): return 0.6*pi*cos(0.2*pi*(3.0*x + 1.0*y)/lx)/lx class Setup2: """ Constant bathymetry, zero velocity, constant kappa, x-varying T """ def bath(self, x, y, lx, ly): return Constant(40.0) def elev(self, x, y, lx, ly): return Constant(0.0) def uv(self, x, y, z, lx, ly): return as_vector( [ Constant(1.0), Constant(0.0), Constant(0), ]) def w(self, x, y, z, lx, ly): return as_vector( [ Constant(0), Constant(0), Constant(0), ]) def kappa(self, x, y, z, lx, ly): return Constant(50.0) def tracer(self, x, y, z, lx, ly): return sin(3*pi*x/lx) def residual(self, x, y, z, lx, ly): return 3.0*pi*cos(3*pi*x/lx)/lx - 450.0*pi**2*sin(3*pi*x/lx)/lx**2 class Setup3: """ Constant bathymetry, zero kappa, non-trivial velocity and T """ def bath(self, x, y, lx, ly): return Constant(40.0) def elev(self, x, y, lx, ly): return Constant(0.0) def uv(self, x, y, z, lx, ly): return as_vector( [ sin(pi*z/40)*sin(pi*(y/ly + 2*x/lx)), sin(pi*z/40)*sin(pi*(0.3*y/ly + 0.3*x/lx)), Constant(0), ]) def w(self, x, y, z, lx, ly): return as_vector( [ Constant(0), Constant(0), 12.0*cos(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 12.0*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 80*cos(pi*z/40)*cos(pi*(y/ly + 2*x/lx))/lx + 80*cos(pi*(y/ly + 2*x/lx))/lx, ]) def kappa(self, x, y, z, lx, ly): return Constant(0.0) def tracer(self, x, y, z, lx, ly): return (0.8*cos(0.0125*pi*z) + 0.2)*cos(pi*(0.75*y/ly + 1.5*x/lx)) def residual(self, x, y, z, lx, ly): return (-0.3*pi*sin(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly - 2*pi*sin(pi*z/40)*cos(pi*(y/ly + 2*x/lx))/lx)*(0.8*cos(0.0125*pi*z) + 0.2)*cos(pi*(0.75*y/ly + 1.5*x/lx)) - 0.01*pi*(12.0*cos(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 12.0*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 80*cos(pi*z/40)*cos(pi*(y/ly + 2*x/lx))/lx + 80*cos(pi*(y/ly + 2*x/lx))/lx)*sin(0.0125*pi*z)*cos(pi*(0.75*y/ly + 1.5*x/lx)) - 0.75*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*sin(pi*(0.3*y/ly + 0.3*x/lx))*sin(pi*(0.75*y/ly + 1.5*x/lx))/ly + 0.3*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))*cos(pi*(0.75*y/ly + 1.5*x/lx))/ly - 1.5*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*sin(pi*(0.75*y/ly + 1.5*x/lx))*sin(pi*(y/ly + 2*x/lx))/lx + 2*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*cos(pi*(0.75*y/ly + 1.5*x/lx))*cos(pi*(y/ly + 2*x/lx))/lx class Setup4: """ Constant bathymetry, constant kappa, non-trivial velocity and T """ def bath(self, x, y, lx, ly): return Constant(40.0) def elev(self, x, y, lx, ly): return Constant(0.0) def uv(self, x, y, z, lx, ly): return as_vector( [ sin(pi*z/40)*sin(pi*(y/ly + 2*x/lx)), sin(pi*z/40)*sin(pi*(0.3*y/ly + 0.3*x/lx)), Constant(0), ]) def w(self, x, y, z, lx, ly): return as_vector( [ Constant(0), Constant(0), 12.0*cos(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 12.0*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 80*cos(pi*z/40)*cos(pi*(y/ly + 2*x/lx))/lx + 80*cos(pi*(y/ly + 2*x/lx))/lx, ]) def kappa(self, x, y, z, lx, ly): return Constant(50.0) def tracer(self, x, y, z, lx, ly): return (0.8*cos(0.0125*pi*z) + 0.2)*cos(pi*(0.75*y/ly + 1.5*x/lx)) def residual(self, x, y, z, lx, ly): return (-0.3*pi*sin(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly - 2*pi*sin(pi*z/40)*cos(pi*(y/ly + 2*x/lx))/lx)*(0.8*cos(0.0125*pi*z) + 0.2)*cos(pi*(0.75*y/ly + 1.5*x/lx)) - 0.01*pi*(12.0*cos(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 12.0*cos(pi*(0.3*y/ly + 0.3*x/lx))/ly + 80*cos(pi*z/40)*cos(pi*(y/ly + 2*x/lx))/lx + 80*cos(pi*(y/ly + 2*x/lx))/lx)*sin(0.0125*pi*z)*cos(pi*(0.75*y/ly + 1.5*x/lx)) - 0.75*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*sin(pi*(0.3*y/ly + 0.3*x/lx))*sin(pi*(0.75*y/ly + 1.5*x/lx))/ly + 0.3*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*cos(pi*(0.3*y/ly + 0.3*x/lx))*cos(pi*(0.75*y/ly + 1.5*x/lx))/ly - 28.125*pi**2*(0.8*cos(0.0125*pi*z) + 0.2)*cos(pi*(0.75*y/ly + 1.5*x/lx))/ly**2 - 1.5*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*sin(pi*(0.75*y/ly + 1.5*x/lx))*sin(pi*(y/ly + 2*x/lx))/lx + 2*pi*(0.8*cos(0.0125*pi*z) + 0.2)*sin(pi*z/40)*cos(pi*(0.75*y/ly + 1.5*x/lx))*cos(pi*(y/ly + 2*x/lx))/lx - 112.5*pi**2*(0.8*cos(0.0125*pi*z) + 0.2)*cos(pi*(0.75*y/ly + 1.5*x/lx))/(lx*ly) - 112.5*pi**2*(0.8*cos(0.0125*pi*z) + 0.2)*cos(pi*(0.75*y/ly + 1.5*x/lx))/lx**2 def run(setup, refinement, order, do_export=True, **options): """Run single test and return L2 error""" print_output('--- running {:} refinement {:}'.format(setup.__name__, refinement)) # domain dimensions lx = 15e3 ly = 10e3 area = lx*ly t_end = 200.0 setup_obj = setup() # mesh n_layers = 4*refinement nx = 4*refinement ny = 4*refinement mesh2d = RectangleMesh(nx, ny, lx, ly) # outputs outputdir = 'outputs' if do_export: out_t = File(os.path.join(outputdir, 'T.pvd')) # bathymetry x_2d, y_2d = SpatialCoordinate(mesh2d) p1_2d = get_functionspace(mesh2d, 'CG', 1) bathymetry_2d = Function(p1_2d, name='Bathymetry') bathymetry_2d.project(setup_obj.bath(x_2d, y_2d, lx, ly)) solver_obj = solver.FlowSolver(mesh2d, bathymetry_2d, n_layers) solver_obj.options.element_family = 'dg-dg' solver_obj.options.polynomial_degree = order solver_obj.options.horizontal_velocity_scale = Constant(1.0) solver_obj.options.use_bottom_friction = False solver_obj.options.no_exports = not do_export solver_obj.options.output_directory = outputdir solver_obj.options.simulation_end_time = t_end solver_obj.options.fields_to_export = ['salt_3d', 'uv_3d', 'w_3d'] solver_obj.options.horizontal_viscosity_scale = Constant(50.0) solver_obj.options.update(options) solver_obj.create_function_spaces() # functions for source terms x, y, z = SpatialCoordinate(solver_obj.mesh) solver_obj.options.salinity_source_3d = setup_obj.residual(x, y, z, lx, ly) # diffusivuty solver_obj.options.horizontal_diffusivity = setup_obj.kappa(x, y, z, lx, ly) # analytical solution trac_ana = setup_obj.tracer(x, y, z, lx, ly) bnd_salt = {'value': trac_ana} solver_obj.bnd_functions['salt'] = {1: bnd_salt, 2: bnd_salt, 3: bnd_salt, 4: bnd_salt} # NOTE use symmetic uv condition to get correct w bnd_mom = {'symm': None} solver_obj.bnd_functions['momentum'] = {1: bnd_mom, 2: bnd_mom, 3: bnd_mom, 4: bnd_mom} solver_obj.create_equations() dt = solver_obj.dt # elevation field solver_obj.fields.elev_2d.project(setup_obj.elev(x_2d, y_2d, lx, ly)) # update mesh and fields solver_obj.mesh_updater.update_mesh_coordinates() # salinity field solver_obj.fields.salt_3d.project(setup_obj.tracer(x, y, z, lx, ly)) # velocity field solver_obj.fields.uv_3d.project(setup_obj.uv(x, y, z, lx, ly)) solver_obj.w_solver.solve() if do_export: out_t.write(trac_ana) solver_obj.export() # solve salinity advection-diffusion equation with residual source term ti = solver_obj.timestepper ti.timesteppers.salt_expl.initialize(ti.fields.salt_3d) t = 0 while t < t_end - 1e-5: ti.timesteppers.salt_expl.advance(t) if ti.options.use_limiter_for_tracers: ti.solver.tracer_limiter.apply(ti.fields.salt_3d) t += dt if do_export: out_t.write(trac_ana) solver_obj.export() l2_err = errornorm(trac_ana, solver_obj.fields.salt_3d)/numpy.sqrt(area) print_output('L2 error {:.12f}'.format(l2_err)) return l2_err def run_convergence(setup, ref_list, order, do_export=False, save_plot=False, **options): """Runs test for a list of refinements and computes error convergence rate""" l2_err = [] for r in ref_list: l2_err.append(run(setup, r, order, do_export=do_export, **options)) x_log = numpy.log10(numpy.array(ref_list, dtype=float)**-1) y_log = numpy.log10(numpy.array(l2_err)) def check_convergence(x_log, y_log, expected_slope, field_str, save_plot): slope_rtol = 0.2 slope, intercept, r_value, p_value, std_err = stats.linregress(x_log, y_log) setup_name = setup.__name__ if save_plot: import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(5, 5)) # plot points ax.plot(x_log, y_log, 'k.') x_min = x_log.min() x_max = x_log.max() offset = 0.05*(x_max - x_min) npoints = 50 xx = numpy.linspace(x_min - offset, x_max + offset, npoints) yy = intercept + slope*xx # plot line ax.plot(xx, yy, linestyle='--', linewidth=0.5, color='k') ax.text(xx[2*int(npoints/3)], yy[2*int(npoints/3)], '{:4.2f}'.format(slope), verticalalignment='top', horizontalalignment='left') ax.set_xlabel('log10(dx)') ax.set_ylabel('log10(L2 error)') ax.set_title('tracer adv-diff MMS DG p={:}'.format(order)) ref_str = 'ref-' + '-'.join([str(r) for r in ref_list]) order_str = 'o{:}'.format(order) imgfile = '_'.join(['convergence', setup_name, field_str, ref_str, order_str]) imgfile += '.png' img_dir = create_directory('plots') imgfile = os.path.join(img_dir, imgfile) print_output('saving figure {:}'.format(imgfile)) plt.savefig(imgfile, dpi=200, bbox_inches='tight') if expected_slope is not None: err_msg = '{:}: Wrong convergence rate {:.4f}, expected {:.4f}'.format(setup_name, slope, expected_slope) assert abs(slope - expected_slope)/expected_slope < slope_rtol, err_msg print_output('{:}: convergence rate {:.4f} PASSED'.format(setup_name, slope)) else: print_output('{:}: {:} convergence rate {:.4f}'.format(setup_name, field_str, slope)) return slope check_convergence(x_log, y_log, order+1, 'tracer', save_plot) # --------------------------- # standard tests for pytest # --------------------------- @pytest.fixture(params=['LeapFrog', 'SSPRK22']) def timestepper_type(request): return request.param @pytest.fixture(params=[Setup1, Setup2, Setup3, Setup4], ids=['setup1', 'setup2', 'setup3', 'setup4']) def setup(request): return request.param def test_convergence(setup, timestepper_type): run_convergence(setup, [1, 2, 3], 1, save_plot=False, timestepper_type=timestepper_type) if __name__ == '__main__': run_convergence(Setup4, [1, 2, 3], 1, save_plot=True, timestepper_type='SSPRK22')
37.769939
1,095
0.559165
2,119
12,313
3.14252
0.134969
0.031837
0.025229
0.018772
0.436702
0.398108
0.384292
0.384292
0.377985
0.377985
0
0.070536
0.252741
12,313
325
1,096
37.886154
0.65319
0.069114
0
0.402655
0
0
0.036333
0
0.004425
0
0
0
0.004425
1
0.150442
false
0.004425
0.022124
0.132743
0.331858
0.022124
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
810ae31f2bd87d1c18d17e372bfc5f6a1cddf8a3
268
py
Python
main.py
KH241/Geohashing
d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1
[ "CC0-1.0" ]
null
null
null
main.py
KH241/Geohashing
d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1
[ "CC0-1.0" ]
null
null
null
main.py
KH241/Geohashing
d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1
[ "CC0-1.0" ]
null
null
null
import webbrowser import config from Generator import Generator def main(): generator = Generator() latitude, longitude = generator.getCoordinates() webbrowser.open(config.api_request.format(latitude, longitude)) if __name__ == '__main__': main()
17.866667
67
0.735075
28
268
6.714286
0.571429
0.180851
0
0
0
0
0
0
0
0
0
0
0.16791
268
14
68
19.142857
0.843049
0
0
0
0
0
0.029851
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
1
0
0
null
0
0
0
0
0
0
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
0
1
0
0
0
0
2
810c8d17b4b4f09855fad0d286b79401e57777c2
307
py
Python
tests/task/manager_test.py
altenia/taskmator
4090d414125614a57649c5c92a017c12a231a2ef
[ "MIT" ]
2
2015-06-06T04:59:53.000Z
2020-08-15T22:45:01.000Z
tests/task/manager_test.py
altenia/taskmator
4090d414125614a57649c5c92a017c12a231a2ef
[ "MIT" ]
1
2015-06-06T05:02:24.000Z
2015-06-06T05:02:24.000Z
tests/task/manager_test.py
altenia/taskmator
4090d414125614a57649c5c92a017c12a231a2ef
[ "MIT" ]
null
null
null
import unittest from testbase import TaskmatorTestBase from taskmator.task import core, util from taskmator import context class ManagerTest(TaskmatorTestBase): def testManager(self): print ("Pending") def main(): unittest.main() if __name__ == '__main__': unittest.main()
17.055556
38
0.710098
33
307
6.363636
0.606061
0.12381
0.152381
0
0
0
0
0
0
0
0
0
0.205212
307
17
39
18.058824
0.860656
0
0
0.181818
0
0
0.04886
0
0
0
0
0
0
1
0.181818
false
0
0.363636
0
0.636364
0.090909
0
0
0
null
0
0
0
0
0
0
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
0
1
0
1
0
0
2
811f8f9936b98c79ae19160b05e347adf2265632
1,131
py
Python
dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or the license accompanying this file. Do not # remove or modify any license notices. This file is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # import os from az_code_gen.base import * from AzReflectionCpp import format_cpp_annotations class AZEBusInline_Driver(TemplateDriver): def apply_transformations(self, json_object): format_cpp_annotations(json_object) def render_templates(self, input_file, **template_kwargs): input_file_name, input_file_ext = os.path.splitext(input_file) self.render_template_to_file( "AzEBusInline.tpl", template_kwargs, '{}.generated.inline'.format(input_file_name)) # Factory function - called from launcher def create_drivers(env): return [AZEBusInline_Driver(env)]
39
95
0.763042
162
1,131
5.166667
0.580247
0.059737
0.028674
0
0
0
0
0
0
0
0
0
0.16534
1,131
28
96
40.392857
0.886653
0.480106
0
0
0
0
0.060764
0
0
0
0
0
0
1
0.25
false
0
0.25
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
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
2
8120d71f9f5dd96debf5a9a973a1d872ce6a5597
561
py
Python
main/rates/migrations/0002_auto_20170625_1510.py
Hawk94/coin_tracker
082909e17308a8dd460225c1b035751d12a27106
[ "MIT" ]
null
null
null
main/rates/migrations/0002_auto_20170625_1510.py
Hawk94/coin_tracker
082909e17308a8dd460225c1b035751d12a27106
[ "MIT" ]
null
null
null
main/rates/migrations/0002_auto_20170625_1510.py
Hawk94/coin_tracker
082909e17308a8dd460225c1b035751d12a27106
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-25 15:10 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rates', '0001_initial'), ] operations = [ migrations.RenameField( model_name='rate', old_name='euro_rate', new_name='eur_rate', ), migrations.RenameField( model_name='rate', old_name='pound_rates', new_name='gbp_rate', ), ]
21.576923
48
0.568627
60
561
5.05
0.633333
0.138614
0.171617
0.19802
0.270627
0.270627
0.270627
0
0
0
0
0.054545
0.313725
561
25
49
22.44
0.732468
0.121212
0
0.333333
1
0
0.12449
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
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
2
8120ff16ad9dc50c24922ea0574196c48067cace
2,357
py
Python
setup.py
dojeda/quetzal-openapi-client
d9d4dc99bb425a3f89dcbb80d5096f554bc42fff
[ "BSD-3-Clause" ]
null
null
null
setup.py
dojeda/quetzal-openapi-client
d9d4dc99bb425a3f89dcbb80d5096f554bc42fff
[ "BSD-3-Clause" ]
1
2019-09-17T09:11:01.000Z
2019-09-17T09:11:01.000Z
setup.py
dojeda/quetzal-openapi-client
d9d4dc99bb425a3f89dcbb80d5096f554bc42fff
[ "BSD-3-Clause" ]
1
2021-04-28T13:06:38.000Z
2021-04-28T13:06:38.000Z
# coding: utf-8 """ Quetzal API Quetzal: an API to manage data files and their associated metadata. OpenAPI spec version: 0.5.0 Contact: [email protected] Generated by: https://openapi-generator.tech """ from setuptools import setup, find_packages # noqa: H301 NAME = "quetzal-openapi-client" VERSION = "0.5.0" # To install the library, run the following # # python setup.py install # # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] setup( name=NAME, version=VERSION, description="Quetzal API auto-generated client", author='David Ojeda', author_email="[email protected]", url="https://github.com/quet.zal/quetzal-openapi-client", project_urls={ "Documentation": "https://quetzal-openapi-client.readthedocs.io", "Code": "https://github.com/quetz-al/quetzal-openapi-client", "Issue tracker": "https://github.com/quetz-al/quetzal-openapi-client/issues", }, license="BSD-3-Clause", keywords=["OpenAPI", "OpenAPI-Generator", "Quetzal API"], install_requires=REQUIRES, packages=find_packages(exclude=['test', 'docs']), namespace_packages=['quetzal'], include_package_data=True, long_description="""\ quetzal-openapi-client ====================== This is an auto-generated package using [openapi-generator](https://github.com/OpenAPITools/openapi-generator) from an OpenAPI specification of the Quetzal API. An improvement layer on this client exists in the quetzal-client package. Quetzal is an API to manage data files and their associated metadata. See more at [quetz.al](https://quetz.al) and its [readthedocs documentation](https://quetzal-api.readthedocs.io). """, long_description_content_type='text/markdown', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Topic :: Database :: Front-Ends', 'Topic :: Internet :: WWW/HTTP', 'Topic :: System :: Archiving', ], )
32.287671
85
0.666101
283
2,357
5.5053
0.477032
0.026958
0.077022
0.050064
0.148909
0.114249
0.114249
0.114249
0.061617
0.061617
0
0.014041
0.184132
2,357
72
86
32.736111
0.796152
0.142554
0
0
1
0
0.646526
0.033233
0
0
0
0
0
1
0
false
0
0.020833
0
0.020833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
812528562760727190e13a89643039e9938a674f
632
py
Python
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
1
2022-02-08T11:12:12.000Z
2022-02-08T11:12:12.000Z
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
1
2022-02-08T11:26:24.000Z
2022-02-08T11:26:24.000Z
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
null
null
null
from python_on_rails.either import as_either, Failure, Success @as_either(TypeError) def add_one(x): return x + 1 @as_either() def times_five(x): return x * 5 def test_success_executes_bindings(): result = Success(1).bind(add_one).bind(times_five) assert isinstance(result, Success) assert result.value == 10 def test_a_failure_stops_the_execution_of_later_bindings(): result = Success("NaN").bind(add_one).bind(times_five) assert isinstance(result, Failure) assert type(result.value) == TypeError assert repr(result.value) == "TypeError('can only concatenate str (not \"int\") to str')"
25.28
93
0.726266
92
632
4.75
0.478261
0.05492
0.036613
0.064073
0.20595
0.20595
0.20595
0.20595
0.20595
0
0
0.009381
0.156646
632
24
94
26.333333
0.810507
0
0
0
0
0
0.087025
0
0
0
0
0
0.3125
1
0.25
false
0
0.0625
0.125
0.4375
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
8129c2d37ff5ea88cc0452e98c6e15446ea19cc4
329
py
Python
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
2
2020-03-25T14:41:53.000Z
2021-04-08T05:38:02.000Z
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
null
null
null
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import parmed as pmd import numpy as np from scipy.spatial import distance if len(sys.argv) < 2: print "Usage: molecular_diameter.py <mymolecule.mol2>" exit(1) mol = pmd.load_file(sys.argv[1]) crds = mol.coordinates dist = distance.cdist(crds, crds, 'euclidean') print np.max(dist) exit(0)
19.352941
55
0.735562
55
329
4.363636
0.690909
0.058333
0
0
0
0
0
0
0
0
0
0.017606
0.136778
329
17
56
19.352941
0.827465
0.06079
0
0
0
0
0.177994
0.067961
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
81388e81430c58269d1e2c8e97af2f8dbcc4ac2d
936
py
Python
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import InputRequired, Email, ValidationError from models import User class RegistrationForm(FlaskForm): email = StringField('Your Email Address', validators=[InputRequired(), Email()]) username = StringField('Enter your username', validators=[InputRequired()]) password = PasswordField('Password', validators=[InputRequired()]) submit = SubmitField('Sign Up') def validate_username(self, username): existing_username = User.query.filter_by(username=username.data).first() if existing_username: raise ValidationError("The username already exists") class LoginForm(FlaskForm): username = StringField("Your email address", validators=[InputRequired()]) password = PasswordField("Your password:", validators=[InputRequired()]) submit = SubmitField("Sign In")
40.695652
84
0.746795
93
936
7.462366
0.44086
0.165706
0.057637
0.07781
0.293948
0.293948
0
0
0
0
0
0
0.147436
936
22
85
42.545455
0.869674
0
0
0
0
0
0.126068
0
0
0
0
0
0
1
0.058824
false
0.176471
0.235294
0
0.823529
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
813f340b009c015cf7a900f2f532f4b131c3414d
1,766
py
Python
main.py
alamin3637k/Searcher
bb948b373d1bd1261930a47c37fa9210a98e9ef3
[ "MIT" ]
1
2021-12-13T06:30:54.000Z
2021-12-13T06:30:54.000Z
main.py
alamin3637k/Searcher
bb948b373d1bd1261930a47c37fa9210a98e9ef3
[ "MIT" ]
null
null
null
main.py
alamin3637k/Searcher
bb948b373d1bd1261930a47c37fa9210a98e9ef3
[ "MIT" ]
null
null
null
import webbrowser import wikipedia import requests def yt_search(search: str): webbrowser.open_new_tab(f"https://www.youtube.com/results?search_query={search}") def google_search(search: str): webbrowser.open_new_tab(f"https://www.google.com/search?q={search}") def bing_search(search: str): webbrowser.open_new_tab(f"https://www.bing.com/search?q={search}") def duck_search(search: str): webbrowser.open_new_tab(f"https://duckduckgo.com/?q={search}") def yahoo_search(search: str): webbrowser.open_new_tab(f"https://search.yahoo.com/search?p={search}") def ask_search(search: str): webbrowser.open_new_tab(f"https://www.ask.com/web?q={search}") def yandex_search(search: str): webbrowser.open_new_tab(f"https://yandex.com/search/?text={search}") def ecosia_search(search: str): webbrowser.open_new_tab(f"https://www.ecosia.org/search?q={search}") def fb_search(search: str): webbrowser.open_new_tab(f"https://www.facebook.com/search/top/?q={search}") def wiki_terminal_search(search: str, lang='en', sentence=1): try: wikipedia.set_lang(lang) print(wikipedia.summary(search, sentences=sentence)) except Exception as error: print(error) return error def mail_search(search: str): webbrowser.open_new_tab(f"https://mail.google.com/mail/u/0/#search/{search}") def wiki_web_search(search: str): webbrowser.open_new_tab(f"https://en.wikipedia.org/wiki/{search}") def test_site(search: str): """please enter site name with http information""" try: r = requests.get(search) except Exception as error: print(error) return "site not working" if r.status_code == 200: print("site working") return "site working"
30.448276
85
0.701586
261
1,766
4.59387
0.264368
0.130108
0.150125
0.229358
0.486239
0.454545
0.454545
0.391159
0.391159
0.220183
0
0.003322
0.147792
1,766
57
86
30.982456
0.793355
0.024915
0
0.146341
0
0
0.289627
0
0
0
0
0
0
1
0.317073
false
0
0.073171
0
0.463415
0.097561
0
0
0
null
0
0
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
0
0
0
1
0
0
0
0
0
0
0
2
d49b6df009b775a63c890cb5c9656357e0580e52
3,532
py
Python
Core/pre.py
Cyber-Dioxide/CyberPhish
bc2e39d8612ef657d481cdd40d676983f7bf190c
[ "Apache-2.0" ]
9
2021-12-28T08:17:41.000Z
2022-03-20T17:49:21.000Z
Core/pre.py
Cyber-Dioxide/CyberPhish
bc2e39d8612ef657d481cdd40d676983f7bf190c
[ "Apache-2.0" ]
null
null
null
Core/pre.py
Cyber-Dioxide/CyberPhish
bc2e39d8612ef657d481cdd40d676983f7bf190c
[ "Apache-2.0" ]
1
2021-12-27T08:13:50.000Z
2021-12-27T08:13:50.000Z
import os import random try: from colorama import Fore, Style except ModuleNotFoundError: os.system("pip install colorama") from urllib.request import urlopen from Core.helper.color import green, white, blue, red, start, alert Version = "2.2" yellow = ("\033[1;33;40m") def connected(host='http://duckduckgo.com'): try: urlopen(host) return True except: return False all_col = [Style.BRIGHT + Fore.RED, Style.BRIGHT + Fore.CYAN, Style.BRIGHT + Fore.LIGHTCYAN_EX, Style.BRIGHT + Fore.LIGHTBLUE_EX, Style.BRIGHT + Fore.LIGHTCYAN_EX, Style.BRIGHT + Fore.LIGHTMAGENTA_EX, Style.BRIGHT + Fore.LIGHTYELLOW_EX] ran = random.choice(all_col) def banner(): print(Style.BRIGHT + Fore.LIGHTCYAN_EX, "\n", "- " * 4, " [+] Follow me on Instagram @cyber_dioxide ", "- " * 4) print(Style.BRIGHT + Fore.LIGHTYELLOW_EX, "\n", "- " * 4, " [+] Coding Instagram @cyber_dioxide_ ", "- " * 4) print(Style.BRIGHT + Fore.LIGHTRED_EX, "\n", "- " * 4, "[+] Github: https://github.com/Cyber-Dioxide/ ", "- " * 3) banner() def menu(): print(blue + " ██████╗██╗ ██╗██████╗ ███████╗██████╗" + white ) print(white +"██╔════╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔══██╗") print(blue + "██║ ╚████╔╝ ██████╔╝█████╗ ██████╔╝") print(green + "██║ ╚██╔╝ ██╔══██╗██╔══╝ ██╔══██╗" + white+ blue + white) print(green + "╚██████╗ ██║ ██████╔╝███████╗██║ ██║") print(red + "██████╗ ██╗ ██╗██╗███████╗██╗ ██╗" ) print(white+ "██╔══██╗██║ ██║██║██╔════╝██║ ██║" + green) print(yellow+"██████╔╝███████║██║███████╗███████║" + blue) print(yellow+"██╔═══╝ ██╔══██║██║╚════██║██╔══██║" + green) print(yellow+"██║ ██║ ██║██║███████║██║ ██║") print(red+ "╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝ ") banner() print(alert + " More Versions Will Come Soon Stay Updated, Follow My Github\n") print(white + "options:") print(green + "[" + white + "1" + green + "]" + white + " Instagram" + green + " [" + white + "12" + green + "]" + white + " Paypal") print(green + "[" + white + "2" + green + "]" + white + " Facebook" + green + " [" + white + "13" + green + "]" + white + " Discord") print(green + "[" + white + "3" + green + "]" + white + " Gmail" + green + " [" + white + "14" + green + "]" + white + " Spotify") print(green + "[" + white + "4" + green + "]" + white + " Gmail (simple)" + green + " [" + white + "15" + green + "]" + white + " Blockchain") print(green + "[" + white + "5" + green + "]" + white + " Twitter" + green + " [" + white + "16" + green + "]" + white + " RiotGames") print(green + "[" + white + "6" + green + "]" + white + " Snapchat" + green + " [" + white + "17" + green + "]" + white + " Rockstar") print(green + "[" + white + "7" + green + "]" + white + " Snapchat (simple)" + green + " [" + white + "18" + green + "]" + white + " AskFM") print(green + "[" + white + "8" + green + "]" + white + " Steam" + green + " [" + white + "19" + green + "]" + white + " 000Webhost") print(green + "[" + white + "9" + green + "]" + white + " Dropbox" + green) print(green + "[" + white + "10" + green + "]" + white + " Linkedin" + green + " [" + white + "21" + green + "]" + white + " Gamehag") print(green + "[" + white + "11" + green + "]" + white + " Playstation" + green + " [" + white + "22" + green + "]" + white + " Mega") print(green + "-----------------------------------------------------------------------") print(green + "[" + white + "00" + green + "]" + red + " EXIT") def Welcome(): os.system("clear")
49.746479
144
0.473386
378
3,532
5.320106
0.375661
0.218797
0.089508
0.033814
0.115863
0.082546
0.082546
0.082546
0
0
0
0.019509
0.216308
3,532
70
145
50.457143
0.579841
0
0
0.072727
0
0
0.304077
0.045583
0
0
0
0
0
1
0.072727
false
0
0.090909
0
0.2
0.527273
0
0
0
null
1
0
0
0
0
0
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
0
0
0
0
1
0
2
d49d0bb7116e3f907afff13646fa7b6a2ac9aa13
66,873
py
Python
viphoneme/T2IPA.py
NoahDrisort/ViSV2TTS
bea6fa1f85527c824c85986d8b7bfa3e3efd120a
[ "MIT" ]
1
2021-09-23T15:46:14.000Z
2021-09-23T15:46:14.000Z
viphoneme/T2IPA.py
v-nhandt21/ViSV2TTS
bea6fa1f85527c824c85986d8b7bfa3e3efd120a
[ "MIT" ]
null
null
null
viphoneme/T2IPA.py
v-nhandt21/ViSV2TTS
bea6fa1f85527c824c85986d8b7bfa3e3efd120a
[ "MIT" ]
null
null
null
#Grapheme Rime_tone=[ "a","ă","â","e","ê","i","o","ô","ơ","u","ư","y","iê","oa","oă","oe","oo","uâ","uê","uô","uơ","uy","ươ","uyê","yê", #blank "á","ắ","ấ","é","ế","í","ó","ố","ớ","ú","ứ","ý","iế","óa","oắ","óe","oó","uấ","uế","uố","ướ","úy","ướ","uyế","yế", #grave "oá", "oé","óo", "uý", "à","ằ","ầ","è","ề","ì","ò","ồ","ờ","ù","ừ","ỳ","iề","òa","oằ","òe","oò","uầ","uề","uồ","ườ","ùy","ườ","uyề","yề", #acute "oà", "oè","òo", "uỳ", "ả","ẳ","ẩ","ẻ","ể","ỉ","ỏ","ổ","ở","ủ","ử","ỷ","iể","ỏa","oẳ","ỏe","oỏ","uẩ","uể","uổ","ưở","ủy","ưở","uyể","yể", #hook "oả", "oẻ","ỏo", "uỷ", "ã","ẵ","ẫ","ẽ","ễ","ĩ","õ","ỗ","ỡ","ũ","ữ","ỹ","iễ","õa","oẵ","õe","oõ","uẫ","uễ","uỗ","ưỡ","ũy","ưỡ","uyễ","yễ", #tilde "oã", "oẽ","õo", "uỹ", "ạ","ặ","ậ","ẹ","ệ","ị","ọ","ộ","ợ","ụ","ự","ỵ","iệ","ọa","oặ","ọe","oọ","uậ","uệ","uệ","ượ","ụy","ượ","uyệ","yệ", #dot "oạ", "oẹ","ọo", "uỵ"] Onset=["b","d","h","l","m","n","p","r","s","t","v","x","đ","p", "tr", "th", "ch", "ph","nh","kh","gi","qu", "ngh","ng","gh","g","k","c"] #coding: utf-8 #Custom phoneme follow the https://vi.wikipedia.org/wiki/%C3%82m_v%E1%BB%8B_h%E1%BB%8Dc_ti%E1%BA%BFng_Vi%E1%BB%87t #Improve pronoune between N C S Cus_onsets = { u'b' : u'b', u't' : u't', u'th' : u'tʰ', u'đ' : u'd', u'ch' : u'c', u'kh' : u'x', u'g' : u'ɣ', u'l' : u'l', u'm' : u'm', u'n': u'n', u'ngh': u'ŋ', u'nh' : u'ɲ', u'ng' : u'ŋ', u'ph' : u'f', u'v' : u'v', u'x' : u's', u'd' : u'z', u'h' : u'h', u'p' : u'p', u'qu' : u'kw', u'gi' : u'j', u'tr' : u'ʈ', u'k' : u'k', u'c' : u'k', u'gh' : u'ɣ', u'r' : u'ʐ', u's' : u'ʂ', u'gi': u'j'} Cus_nuclei = { u'a' : u'a', u'á' : u'a', u'à' : u'a', u'ả' : u'a', u'ã' : u'a', u'ạ' : u'a', u'â' : u'ɤ̆', u'ấ' : u'ɤ̆', u'ầ' : u'ɤ̆', u'ẩ' : u'ɤ̆', u'ẫ' : u'ɤ̆', u'ậ' : u'ɤ̆', u'ă' : u'ă', u'ắ' : u'ă', u'ằ' : u'ă', u'ẳ' : u'ă', u'ẵ' : u'ă', u'ặ' : u'ă', u'e' : u'ɛ', u'é' : u'ɛ', u'è' : u'ɛ', u'ẻ' : u'ɛ', u'ẽ' : u'ɛ', u'ẹ' : u'ɛ', u'ê' : u'e', u'ế' : u'e', u'ề' : u'e', u'ể' : u'e', u'ễ' : u'e', u'ệ' : u'e', u'i' : u'i', u'í' : u'i', u'ì' : u'i', u'ỉ' : u'i', u'ĩ' : u'i', u'ị' : u'i', u'o' : u'ɔ', u'ó' : u'ɔ', u'ò' : u'ɔ', u'ỏ' : u'ɔ', u'õ' : u'ɔ', u'ọ' : u'ɔ', u'ô' : u'o', u'ố' : u'o', u'ồ' : u'o', u'ổ' : u'o', u'ỗ' : u'o', u'ộ' : u'o', u'ơ' : u'ɤ', u'ớ' : u'ɤ', u'ờ' : u'ɤ', u'ở' : u'ɤ', u'ỡ' : u'ɤ', u'ợ' : u'ɤ', u'u' : u'u', u'ú' : u'u', u'ù' : u'u', u'ủ' : u'u', u'ũ' : u'u', u'ụ' : u'u', u'ư' : u'ɯ', u'ứ' : u'ɯ', u'ừ' : u'ɯ', u'ử' : u'ɯ', u'ữ' : u'ɯ', u'ự' : u'ɯ', u'y' : u'i', u'ý' : u'i', u'ỳ' : u'i', u'ỷ' : u'i', u'ỹ' : u'i', u'ỵ' : u'i', u'eo' : u'eo', u'éo' : u'eo', u'èo' : u'eo', u'ẻo' : u'eo', u'ẽo': u'eo', u'ẹo' : u'eo', u'êu' : u'ɛu', u'ếu' : u'ɛu', u'ều' : u'ɛu', u'ểu' : u'ɛu', u'ễu': u'ɛu', u'ệu' : u'ɛu', u'ia' : u'iə', u'ía' : u'iə', u'ìa' : u'iə', u'ỉa' : u'iə', u'ĩa' : u'iə', u'ịa' : u'iə', u'ia' : u'iə', u'iá' : u'iə', u'ià' : u'iə', u'iả' : u'iə', u'iã' : u'iə', u'iạ' : u'iə', u'iê' : u'iə', u'iế' : u'iə', u'iề' : u'iə', u'iể' : u'iə', u'iễ' : u'iə', u'iệ' : u'iə', u'oo' : u'ɔ', u'óo' : u'ɔ', u'òo' : u'ɔ', u'ỏo' : u'ɔ', u'õo' : u'ɔ', u'ọo' : u'ɔ', u'oo' : u'ɔ', u'oó' : u'ɔ', u'oò' : u'ɔ', u'oỏ' : u'ɔ', u'oõ' : u'ɔ', u'oọ' : u'ɔ', u'ôô' : u'o', u'ốô' : u'o', u'ồô' : u'o', u'ổô' : u'o', u'ỗô' : u'o', u'ộô' : u'o', u'ôô' : u'o', u'ôố' : u'o', u'ôồ' : u'o', u'ôổ' : u'o', u'ôỗ' : u'o', u'ôộ' : u'o', u'ua' : u'uə', u'úa' : u'uə', u'ùa' : u'uə', u'ủa' : u'uə', u'ũa' : u'uə', u'ụa' : u'uə', u'uô' : u'uə', u'uố' : u'uə', u'uồ' : u'uə', u'uổ' : u'uə', u'uỗ' : u'uə', u'uộ' : u'uə', u'ưa' : u'ɯə', u'ứa' : u'ɯə', u'ừa' : u'ɯə', u'ửa' : u'ɯə', u'ữa' : u'ɯə', u'ựa' : u'ɯə', u'ươ' : u'ɯə', u'ướ' : u'ɯə', u'ườ' : u'ɯə', u'ưở' : u'ɯə', u'ưỡ' : u'ɯə', u'ượ' : u'ɯə', u'yê' : u'iɛ', u'yế' : u'iɛ', u'yề' : u'iɛ', u'yể' : u'iɛ', u'yễ' : u'iɛ', u'yệ' : u'iɛ', u'uơ' : u'uə', u'uở' : u'uə', u'uờ': u'uə', u'uở' : u'uə', u'uỡ' : u'uə', u'uợ' : u'uə', } Cus_offglides = { u'ai' : u'aj', u'ái' : u'aj', u'ài' : u'aj', u'ải' : u'aj', u'ãi' : u'aj', u'ại' : u'aj', u'ay' : u'ăj', u'áy' : u'ăj', u'ày' : u'ăj', u'ảy' : u'ăj', u'ãy' : u'ăj', u'ạy' : u'ăj', u'ao' : u'aw', u'áo' : u'aw', u'ào' : u'aw', u'ảo' : u'aw', u'ão' : u'aw', u'ạo' : u'aw', u'au' : u'ăw', u'áu' : u'ăw', u'àu' : u'ăw', u'ảu' : u'ăw', u'ãu' : u'ăw', u'ạu' : u'ăw', u'ây' : u'ɤ̆j', u'ấy' : u'ɤ̆j', u'ầy' : u'ɤ̆j', u'ẩy' : u'ɤ̆j', u'ẫy' : u'ɤ̆j', u'ậy' : u'ɤ̆j', u'âu' : u'ɤ̆w', u'ấu' : u'ɤ̆w', u'ầu': u'ɤ̆w', u'ẩu' : u'ɤ̆w', u'ẫu' : u'ɤ̆w', u'ậu' : u'ɤ̆w', u'eo' : u'ew', u'éo' : u'ew', u'èo' : u'ew', u'ẻo' : u'ew', u'ẽo' : u'ew', u'ẹo' : u'ew', u'iu' : u'iw', u'íu' : u'iw', u'ìu' : u'iw', u'ỉu' : u'iw', u'ĩu' : u'iw', u'ịu' : u'iw', u'oi' : u'ɔj', u'ói' : u'ɔj', u'òi' : u'ɔj', u'ỏi' : u'ɔj', u'õi' : u'ɔj', u'ọi' : u'ɔj', u'ôi' : u'oj', u'ối' : u'oj', u'ồi' : u'oj', u'ổi' : u'oj', u'ỗi' : u'oj', u'ội' : u'oj', u'ui' : u'uj', u'úi' : u'uj', u'ùi' : u'uj', u'ủi' : u'uj', u'ũi' : u'uj', u'ụi' : u'uj', #u'uy' : u'uj', u'úy' : u'uj', u'ùy' : u'uj', u'ủy' : u'uj', u'ũy' : u'uj', u'ụy' : u'uj', u'uy' : u'ʷi', u'úy' : u'uj', u'ùy' : u'uj', u'ủy' : u'uj', u'ũy' : u'uj', u'ụy' : u'uj', #thay để hạn chế trùng âm u'uy' : u'ʷi', u'uý' : u'ʷi', u'uỳ' : u'ʷi', u'uỷ' : u'ʷi', u'uỹ' : u'ʷi', u'uỵ' : u'ʷi', u'ơi' : u'ɤj', u'ới' : u'ɤj', u'ời' : u'ɤj', u'ởi' : u'ɤj', u'ỡi' : u'ɤj', u'ợi' : u'ɤj', u'ưi' : u'ɯj', u'ứi' : u'ɯj', u'ừi' : u'ɯj', u'ửi' : u'ɯj', u'ữi' : u'ɯj', u'ựi' : u'ɯj', u'ưu' : u'ɯw', u'ứu' : u'ɯw', u'ừu' : u'ɯw', u'ửu' : u'ɯw', u'ữu' : u'ɯw', u'ựu' : u'ɯw', u'iêu' : u'iəw', u'iếu' : u'iəw', u'iều' : u'iəw', u'iểu' : u'iəw', u'iễu' : u'iəw', u'iệu' : u'iəw', u'yêu' : u'iəw', u'yếu' : u'iəw', u'yều' : u'iəw', u'yểu' : u'iəw', u'yễu' : u'iəw', u'yệu' : u'iəw', u'uôi' : u'uəj', u'uối' : u'uəj', u'uồi' : u'uəj', u'uổi' : u'uəj', u'uỗi' : u'uəj', u'uội' : u'uəj', u'ươi' : u'ɯəj', u'ưới' : u'ɯəj', u'ười' : u'ɯəj', u'ưởi' : u'ɯəj', u'ưỡi' : u'ɯəj', u'ượi' : u'ɯəj', u'ươu' : u'ɯəw', u'ướu' : u'ɯəw', u'ườu' : u'ɯəw', u'ưởu' : u'ɯəw', 'ưỡu' : u'ɯəw', u'ượu' : u'ɯəw' } #Các âm vòng ở đây i chang không vòm: không có w ở trước => Try to add ʷ Cus_onglides = { u'oa' : u'ʷa', u'oá' : u'ʷa', u'oà' : u'ʷa', u'oả' : u'ʷa', u'oã' : u'ʷa', u'oạ' : u'ʷa', u'óa' : u'ʷa', u'òa' : u'ʷa', u'ỏa' : u'ʷa', u'õa' : u'ʷa', u'ọa' : u'ʷa', u'oă' : u'ʷă', u'oắ' : u'ʷă', u'oằ' : u'ʷă', u'oẳ' : u'ʷă', u'oẵ' : u'ʷă', u'oặ' : u'ʷă', u'oe' : u'ʷɛ', u'oé' : u'ʷɛ', u'oè' : u'ʷɛ', u'oẻ' : u'ʷɛ', u'oẽ' : u'ʷɛ', u'oẹ' : u'ʷɛ', u'oe' : u'ʷɛ', u'óe' : u'ʷɛ', u'òe' : u'ʷɛ', u'ỏe' : u'ʷɛ', u'õe' : u'ʷɛ', u'ọe' : u'ʷɛ', u'ua' : u'ʷa', u'uá' : u'ʷa', u'uà' : u'ʷa', u'uả' : u'ʷa', u'uã' : u'ʷa', u'uạ' : u'ʷa', u'uă' : u'ʷă', u'uắ' : u'ʷă', u'uằ' : u'ʷă', u'uẳ' : u'ʷă', u'uẵ' : u'ʷă', u'uặ' : u'ʷă', u'uâ' : u'ʷɤ̆', u'uấ' : u'ʷɤ̆', u'uầ' : u'ʷɤ̆', u'uẩ' : u'ʷɤ̆', u'uẫ' : u'ʷɤ̆', u'uậ' : u'ʷɤ̆', u'ue' : u'ʷɛ', u'ué' : u'ʷɛ', u'uè' : u'ʷɛ', u'uẻ' : u'ʷɛ', u'uẽ' : u'ʷɛ', u'uẹ' : u'ʷɛ', u'uê' : u'ʷe', u'uế' : u'ʷe', u'uề' : u'ʷe', u'uể' : u'ʷe', u'uễ' : u'ʷe', u'uệ' : u'ʷe', u'uơ' : u'ʷɤ', u'uớ' : u'ʷɤ', u'uờ' : u'ʷɤ', u'uở' : u'ʷɤ', u'uỡ' : u'ʷɤ', u'uợ' : u'ʷɤ', u'uy' : u'ʷi', u'uý' : u'ʷi', u'uỳ' : u'ʷi', u'uỷ' : u'ʷi', u'uỹ' : u'ʷi', u'uỵ' : u'ʷi', u'uya' : u'ʷiə', u'uyá' : u'ʷiə', u'uyà' : u'ʷiə', u'uyả' : u'ʷiə', u'uyã' : u'ʷiə', u'uyạ' : u'ʷiə', u'uyê' : u'ʷiə', u'uyế' : u'ʷiə', u'uyề' : u'ʷiə', u'uyể' : u'ʷiə', u'uyễ' : u'ʷiə', u'uyệ' : u'ʷiə', u'uyu' : u'ʷiu', u'uyú' : u'ʷiu', u'uyù' : u'ʷiu', u'uyủ' : u'ʷiu', u'uyũ' : u'ʷiu', u'uyụ' : u'ʷiu', u'uyu' : u'ʷiu', u'uýu' : u'ʷiu', u'uỳu' : u'ʷiu', u'uỷu' : u'ʷiu', u'uỹu' : u'ʷiu', u'uỵu' : u'ʷiu', u'oen' : u'ʷen', u'oén' : u'ʷen', u'oèn' : u'ʷen', u'oẻn' : u'ʷen', u'oẽn' : u'ʷen', u'oẹn' : u'ʷen', u'oet' : u'ʷet', u'oét' : u'ʷet', u'oèt' : u'ʷet', u'oẻt' : u'ʷet', u'oẽt' : u'ʷet', u'oẹt' : u'ʷet' } Cus_onoffglides = { u'oe' : u'ɛj', u'oé' : u'ɛj', u'oè' : u'ɛj', u'oẻ' : u'ɛj', u'oẽ' : u'ɛj', u'oẹ' : u'ɛj', u'oai' : u'aj', u'oái' : u'aj', u'oài' : u'aj', u'oải' : u'aj', u'oãi' : u'aj', u'oại' : u'aj', u'oay' : u'ăj', u'oáy' : u'ăj', u'oày' : u'ăj', u'oảy' : u'ăj', u'oãy' : u'ăj', u'oạy' : u'ăj', u'oao' : u'aw', u'oáo' : u'aw', u'oào' : u'aw', u'oảo' : u'aw', u'oão' : u'aw', u'oạo' : u'aw', u'oeo' : u'ew', u'oéo' : u'ew', u'oèo' : u'ew', u'oẻo' : u'ew', u'oẽo' : u'ew', u'oẹo' : u'ew', u'oeo' : u'ew', u'óeo' : u'ew', u'òeo' : u'ew', u'ỏeo' : u'ew', u'õeo' : u'ew', u'ọeo' : u'ew', u'ueo' : u'ew', u'uéo' : u'ew', u'uèo' : u'ew', u'uẻo' : u'ew', u'uẽo' : u'ew', u'uẹo' : u'ew', u'uai' : u'aj', u'uái' : u'aj', u'uài' : u'aj', u'uải' : u'aj', u'uãi' : u'aj', u'uại' : u'aj', u'uay' : u'ăj', u'uáy' : u'ăj', u'uày' : u'ăj', u'uảy' : u'ăj', u'uãy' : u'ăj', u'uạy' : u'ăj', u'uây' : u'ɤ̆j', u'uấy' : u'ɤ̆j', u'uầy' : u'ɤ̆j', u'uẩy' : u'ɤ̆j', u'uẫy' : u'ɤ̆j', u'uậy' : u'ɤ̆j' } Cus_codas = { u'p' : u'p', u't' : u't', u'c' : u'k', u'm' : u'm', u'n' : u'n', u'ng' : u'ŋ', u'nh' : u'ɲ', u'ch' : u'tʃ' } Cus_tones_p = { u'á' : 5, u'à' : 2, u'ả' : 4, u'ã' : 3, u'ạ' : 6, u'ấ' : 5, u'ầ' : 2, u'ẩ' : 4, u'ẫ' : 3, u'ậ' : 6, u'ắ' : 5, u'ằ' : 2, u'ẳ' : 4, u'ẵ' : 3, u'ặ' : 6, u'é' : 5, u'è' : 2, u'ẻ' : 4, u'ẽ' : 3, u'ẹ' : 6, u'ế' : 5, u'ề' : 2, u'ể' : 4, u'ễ' : 3, u'ệ' : 6, u'í' : 5, u'ì' : 2, u'ỉ' : 4, u'ĩ' : 3, u'ị' : 6, u'ó' : 5, u'ò' : 2, u'ỏ' : 4, u'õ' : 3, u'ọ' : 6, u'ố' : 5, u'ồ' : 2, u'ổ' : 4, u'ỗ' : 3, u'ộ' : 6, u'ớ' : 5, u'ờ' : 2, u'ở' : 4, u'ỡ' : 3, u'ợ' : 6, u'ú' : 5, u'ù' : 2, u'ủ' : 4, u'ũ' : 3, u'ụ' : 6, u'ứ' : 5, u'ừ' : 2, u'ử' : 4, u'ữ' : 3, u'ự' : 6, u'ý' : 5, u'ỳ' : 2, u'ỷ' : 4, u'ỹ' : 3, u'ỵ' : 6, } Cus_gi = { u'gi' : u'zi', u'gí': u'zi', u'gì' : u'zi', u'gì' : u'zi', u'gĩ' : u'zi', u'gị' : u'zi'} Cus_qu = {u'quy' : u'kwi', u'qúy' : u'kwi', u'qùy' : u'kwi', u'qủy' : u'kwi', u'qũy' : u'kwi', u'qụy' : u'kwi'} ####################################################### # North # #coding: utf-8 N_onsets = { u'b' : u'b', u't' : u't', u'th' : u'tʰ', u'đ' : u'd', u'ch' : u'c', u'kh' : u'x', u'g' : u'ɣ', u'l' : u'l', u'm' : u'm', u'n': u'n', u'ngh': u'ŋ', u'nh' : u'ɲ', u'ng' : u'ŋ', u'ph' : u'f', u'v' : u'v', u'x' : u's', u'd' : u'z', u'h' : u'h', u'p' : u'p', u'qu' : u'kw', u'gi' : u'z', u'tr' : u'c', u'k' : u'k', u'c' : u'k', u'gh' : u'ɣ', u'r' : u'z', u's' : u's', u'gi': u'z'} N_nuclei = { u'a' : u'a', u'á' : u'a', u'à' : u'a', u'ả' : u'a', u'ã' : u'a', u'ạ' : u'a', u'â' : u'ɤ̆', u'ấ' : u'ɤ̆', u'ầ' : u'ɤ̆', u'ẩ' : u'ɤ̆', u'ẫ' : u'ɤ̆', u'ậ' : u'ɤ̆', u'ă' : u'ă', u'ắ' : u'ă', u'ằ' : u'ă', u'ẳ' : u'ă', u'ẵ' : u'ă', u'ặ' : u'ă', u'e' : u'ɛ', u'é' : u'ɛ', u'è' : u'ɛ', u'ẻ' : u'ɛ', u'ẽ' : u'ɛ', u'ẹ' : u'ɛ', u'ê' : u'e', u'ế' : u'e', u'ề' : u'e', u'ể' : u'e', u'ễ' : u'e', u'ệ' : u'e', u'i' : u'i', u'í' : u'i', u'ì' : u'i', u'ỉ' : u'i', u'ĩ' : u'i', u'ị' : u'i', u'o' : u'ɔ', u'ó' : u'ɔ', u'ò' : u'ɔ', u'ỏ' : u'ɔ', u'õ' : u'ɔ', u'ọ' : u'ɔ', u'ô' : u'o', u'ố' : u'o', u'ồ' : u'o', u'ổ' : u'o', u'ỗ' : u'o', u'ộ' : u'o', u'ơ' : u'ɤ', u'ớ' : u'ɤ', u'ờ' : u'ɤ', u'ở' : u'ɤ', u'ỡ' : u'ɤ', u'ợ' : u'ɤ', u'u' : u'u', u'ú' : u'u', u'ù' : u'u', u'ủ' : u'u', u'ũ' : u'u', u'ụ' : u'u', u'ư' : u'ɯ', u'ứ' : u'ɯ', u'ừ' : u'ɯ', u'ử' : u'ɯ', u'ữ' : u'ɯ', u'ự' : u'ɯ', u'y' : u'i', u'ý' : u'i', u'ỳ' : u'i', u'ỷ' : u'i', u'ỹ' : u'i', u'ỵ' : u'i', u'eo' : u'eo', u'éo' : u'eo', u'èo' : u'eo', u'ẻo' : u'eo', u'ẽo': u'eo', u'ẹo' : u'eo', u'êu' : u'ɛu', u'ếu' : u'ɛu', u'ều' : u'ɛu', u'ểu' : u'ɛu', u'ễu': u'ɛu', u'ệu' : u'ɛu', u'ia' : u'iə', u'ía' : u'iə', u'ìa' : u'iə', u'ỉa' : u'iə', u'ĩa' : u'iə', u'ịa' : u'iə', u'ia' : u'iə', u'iá' : u'iə', u'ià' : u'iə', u'iả' : u'iə', u'iã' : u'iə', u'iạ' : u'iə', u'iê' : u'iə', u'iế' : u'iə', u'iề' : u'iə', u'iể' : u'iə', u'iễ' : u'iə', u'iệ' : u'iə', u'oo' : u'ɔ', u'óo' : u'ɔ', u'òo' : u'ɔ', u'ỏo' : u'ɔ', u'õo' : u'ɔ', u'ọo' : u'ɔ', u'oo' : u'ɔ', u'oó' : u'ɔ', u'oò' : u'ɔ', u'oỏ' : u'ɔ', u'oõ' : u'ɔ', u'oọ' : u'ɔ', u'ôô' : u'o', u'ốô' : u'o', u'ồô' : u'o', u'ổô' : u'o', u'ỗô' : u'o', u'ộô' : u'o', u'ôô' : u'o', u'ôố' : u'o', u'ôồ' : u'o', u'ôổ' : u'o', u'ôỗ' : u'o', u'ôộ' : u'o', u'ua' : u'uə', u'úa' : u'uə', u'ùa' : u'uə', u'ủa' : u'uə', u'ũa' : u'uə', u'ụa' : u'uə', u'uô' : u'uə', u'uố' : u'uə', u'uồ' : u'uə', u'uổ' : u'uə', u'uỗ' : u'uə', u'uộ' : u'uə', u'ưa' : u'ɯə', u'ứa' : u'ɯə', u'ừa' : u'ɯə', u'ửa' : u'ɯə', u'ữa' : u'ɯə', u'ựa' : u'ɯə', u'ươ' : u'ɯə', u'ướ' : u'ɯə', u'ườ' : u'ɯə', u'ưở' : u'ɯə', u'ưỡ' : u'ɯə', u'ượ' : u'ɯə', u'yê' : u'iɛ', u'yế' : u'iɛ', u'yề' : u'iɛ', u'yể' : u'iɛ', u'yễ' : u'iɛ', u'yệ' : u'iɛ', u'uơ' : u'uə', u'uở' : u'uə', u'uờ': u'uə', u'uở' : u'uə', u'uỡ' : u'uə', u'uợ' : u'uə', } N_offglides = { u'ai' : u'aj', u'ái' : u'aj', u'ài' : u'aj', u'ải' : u'aj', u'ãi' : u'aj', u'ại' : u'aj', u'ay' : u'ăj', u'áy' : u'ăj', u'ày' : u'ăj', u'ảy' : u'ăj', u'ãy' : u'ăj', u'ạy' : u'ăj', u'ao' : u'aw', u'áo' : u'aw', u'ào' : u'aw', u'ảo' : u'aw', u'ão' : u'aw', u'ạo' : u'aw', u'au' : u'ăw', u'áu' : u'ăw', u'àu' : u'ăw', u'ảu' : u'ăw', u'ãu' : u'ăw', u'ạu' : u'ăw', u'ây' : u'ɤ̆j', u'ấy' : u'ɤ̆j', u'ầy' : u'ɤ̆j', u'ẩy' : u'ɤ̆j', u'ẫy' : u'ɤ̆j', u'ậy' : u'ɤ̆j', u'âu' : u'ɤ̆w', u'ấu' : u'ɤ̆w', u'ầu': u'ɤ̆w', u'ẩu' : u'ɤ̆w', u'ẫu' : u'ɤ̆w', u'ậu' : u'ɤ̆w', u'eo' : u'ew', u'éo' : u'ew', u'èo' : u'ew', u'ẻo' : u'ew', u'ẽo' : u'ew', u'ẹo' : u'ew', u'iu' : u'iw', u'íu' : u'iw', u'ìu' : u'iw', u'ỉu' : u'iw', u'ĩu' : u'iw', u'ịu' : u'iw', u'oi' : u'ɔj', u'ói' : u'ɔj', u'òi' : u'ɔj', u'ỏi' : u'ɔj', u'õi' : u'ɔj', u'ọi' : u'ɔj', u'ôi' : u'oj', u'ối' : u'oj', u'ồi' : u'oj', u'ổi' : u'oj', u'ỗi' : u'oj', u'ội' : u'oj', u'ui' : u'uj', u'úi' : u'uj', u'ùi' : u'uj', u'ủi' : u'uj', u'ũi' : u'uj', u'ụi' : u'uj', u'uy' : u'uj', u'úy' : u'uj', u'ùy' : u'uj', u'ủy' : u'uj', u'ũy' : u'uj', u'ụy' : u'uj', u'ơi' : u'ɤj', u'ới' : u'ɤj', u'ời' : u'ɤj', u'ởi' : u'ɤj', u'ỡi' : u'ɤj', u'ợi' : u'ɤj', u'ưi' : u'ɯj', u'ứi' : u'ɯj', u'ừi' : u'ɯj', u'ửi' : u'ɯj', u'ữi' : u'ɯj', u'ựi' : u'ɯj', u'ưu' : u'ɯw', u'ứu' : u'ɯw', u'ừu' : u'ɯw', u'ửu' : u'ɯw', u'ữu' : u'ɯw', u'ựu' : u'ɯw', u'iêu' : u'iəw', u'iếu' : u'iəw', u'iều' : u'iəw', u'iểu' : u'iəw', u'iễu' : u'iəw', u'iệu' : u'iəw', u'yêu' : u'iəw', u'yếu' : u'iəw', u'yều' : u'iəw', u'yểu' : u'iəw', u'yễu' : u'iəw', u'yệu' : u'iəw', u'uôi' : u'uəj', u'uối' : u'uəj', u'uồi' : u'uəj', u'uổi' : u'uəj', u'uỗi' : u'uəj', u'uội' : u'uəj', u'ươi' : u'ɯəj', u'ưới' : u'ɯəj', u'ười' : u'ɯəj', u'ưởi' : u'ɯəj', u'ưỡi' : u'ɯəj', u'ượi' : u'ɯəj', u'ươu' : u'ɯəw', u'ướu' : u'ɯəw', u'ườu' : u'ɯəw', u'ưởu' : u'ɯəw', 'ưỡu' : u'ɯəw', u'ượu' : u'ɯəw' } N_onglides = { u'oa' : u'a', u'oá' : u'a', u'oà' : u'a', u'oả' : u'a', u'oã' : u'a', u'oạ' : u'a', u'óa' : u'a', u'òa' : u'a', u'ỏa' : u'a', u'õa' : u'a', u'ọa' : u'a', u'oă' : u'ă', u'oắ' : u'ă', u'oằ' : u'ă', u'oẳ' : u'ă', u'oẵ' : u'ă', u'oặ' : u'ă', u'oe' : u'e', u'oé' : u'e', u'oè' : u'e', u'oẻ' : u'e', u'oẽ' : u'e', u'oẹ' : u'e', u'oe' : u'e', u'óe' : u'e', u'òe' : u'e', u'ỏe' : u'e', u'õe' : u'e', u'ọe' : u'e', u'ua' : u'a', u'uá' : u'a', u'uà' : u'a', u'uả' : u'a', u'uã' : u'a', u'uạ' : u'a', u'uă' : u'ă', u'uắ' : u'ă', u'uằ' : u'ă', u'uẳ' : u'ă', u'uẵ' : u'ă', u'uặ' : u'ă', u'uâ' : u'ɤ̆', u'uấ' : u'ɤ̆', u'uầ' : u'ɤ̆', u'uẩ' : u'ɤ̆', u'uẫ' : u'ɤ̆', u'uậ' : u'ɤ̆', u'ue' : u'ɛ', u'ué' : u'ɛ', u'uè' : u'ɛ', u'uẻ' : u'ɛ', u'uẽ' : u'ɛ', u'uẹ' : u'ɛ', u'uê' : u'e', u'uế' : u'e', u'uề' : u'e', u'uể' : u'e', u'uễ' : u'e', u'uệ' : u'e', u'uơ' : u'ɤ', u'uớ' : u'ɤ', u'uờ' : u'ɤ', u'uở' : u'ɤ', u'uỡ' : u'ɤ', u'uợ' : u'ɤ', u'uy' : u'i', u'uý' : u'i', u'uỳ' : u'i', u'uỷ' : u'i', u'uỹ' : u'i', u'uỵ' : u'i', u'uya' : u'iə', u'uyá' : u'iə', u'uyà' : u'iə', u'uyả' : u'iə', u'uyã' : u'iə', u'uyạ' : u'iə', u'uyê' : u'iə', u'uyế' : u'iə', u'uyề' : u'iə', u'uyể' : u'iə', u'uyễ' : u'iə', u'uyệ' : u'iə', u'uyu' : u'iu', u'uyú' : u'iu', u'uyù' : u'iu', u'uyủ' : u'iu', u'uyũ' : u'iu', u'uyụ' : u'iu', u'uyu' : u'iu', u'uýu' : u'iu', u'uỳu' : u'iu', u'uỷu' : u'iu', u'uỹu' : u'iu', u'uỵu' : u'iu', u'oen' : u'en', u'oén' : u'en', u'oèn' : u'en', u'oẻn' : u'en', u'oẽn' : u'en', u'oẹn' : u'en', u'oet' : u'et', u'oét' : u'et', u'oèt' : u'et', u'oẻt' : u'et', u'oẽt' : u'et', u'oẹt' : u'et' } N_onoffglides = { u'oe' : u'ej', u'oé' : u'ej', u'oè' : u'ej', u'oẻ' : u'ej', u'oẽ' : u'ej', u'oẹ' : u'ej', u'oai' : u'aj', u'oái' : u'aj', u'oài' : u'aj', u'oải' : u'aj', u'oãi' : u'aj', u'oại' : u'aj', u'oay' : u'ăj', u'oáy' : u'ăj', u'oày' : u'ăj', u'oảy' : u'ăj', u'oãy' : u'ăj', u'oạy' : u'ăj', u'oao' : u'aw', u'oáo' : u'aw', u'oào' : u'aw', u'oảo' : u'aw', u'oão' : u'aw', u'oạo' : u'aw', u'oeo' : u'ew', u'oéo' : u'ew', u'oèo' : u'ew', u'oẻo' : u'ew', u'oẽo' : u'ew', u'oẹo' : u'ew', u'oeo' : u'ew', u'óeo' : u'ew', u'òeo' : u'ew', u'ỏeo' : u'ew', u'õeo' : u'ew', u'ọeo' : u'ew', u'ueo' : u'ew', u'uéo' : u'ew', u'uèo' : u'ew', u'uẻo' : u'ew', u'uẽo' : u'ew', u'uẹo' : u'ew', u'uai' : u'aj', u'uái' : u'aj', u'uài' : u'aj', u'uải' : u'aj', u'uãi' : u'aj', u'uại' : u'aj', u'uay' : u'ăj', u'uáy' : u'ăj', u'uày' : u'ăj', u'uảy' : u'ăj', u'uãy' : u'ăj', u'uạy' : u'ăj', u'uây' : u'ɤ̆j', u'uấy' : u'ɤ̆j', u'uầy' : u'ɤ̆j', u'uẩy' : u'ɤ̆j', u'uẫy' : u'ɤ̆j', u'uậy' : u'ɤ̆j' } N_codas = { u'p' : u'p', u't' : u't', u'c' : u'k', u'm' : u'm', u'n' : u'n', u'ng' : u'ŋ', u'nh' : u'ɲ', u'ch' : u'k' } #tones = { u'a' : 33, u'á' : 24, u'à' : 32, u'ả' : 312, u'ã' : u'35g', u'ạ' : u'21g', # u'â' : 33, u'ấ' : 24, u'ầ' : 32, u'ẩ' : 312, u'ẫ' : u'35g', u'ậ' : u'21g', # u'ă' : 33, u'ắ' : 24, u'ằ' : 32, u'ẳ' : 312, u'ẵ' : u'35g', u'ặ' : u'21g', # u'e' : 33, u'é' : 24, u'è' : 32, u'ẻ' : 312, u'ẽ' : u'35g', u'ẹ' : u'21g', # u'ê' : 33, u'ế' : 24, u'ề' : 32, u'ể' : 312, u'ễ' : u'35g', u'ệ' : u'21g', # u'i' : 33, u'í' : 24, u'ì' : 32, u'ỉ' : 312, u'ĩ' : u'35g', u'ị' : u'21g', # u'o' : 33, u'ó' : 24, u'ò' : 32, u'ỏ' : 312, u'õ' : u'35g', u'ọ' : u'21g', # u'ô' : 33, u'ố' : 24, u'ồ' : 32, u'ổ' : 312, u'ỗ' : u'35g', u'ộ' : u'21g', # u'ơ' : 33, u'ớ' : 24, u'ờ' : 32, u'ở' : 312, u'ỡ' : u'35g', u'ợ' : u'21g', # u'u' : 33, u'ú' : 24, u'ù' : 32, u'ủ' : 312, u'ũ' : u'35g', u'ụ' : u'21g', # u'ư' : 33, u'ứ' : 24, u'ừ' : 32, u'ử' : 312, u'ữ' : u'35g', u'ự' : u'21g', # u'y' : 33, u'ý' : 24, u'ỳ' : 32, u'ỷ' : 312, u'ỹ' : u'35g', u'ỵ' : u'21g', # } N_tones = { u'á' : 24, u'à' : 32, u'ả' : 312, u'ã' : u'35g', u'ạ' : u'21g', u'ấ' : 24, u'ầ' : 32, u'ẩ' : 312, u'ẫ' : u'35g', u'ậ' : u'21g', u'ắ' : 24, u'ằ' : 32, u'ẳ' : 312, u'ẵ' : u'35g', u'ặ' : u'21g', u'é' : 24, u'è' : 32, u'ẻ' : 312, u'ẽ' : u'35g', u'ẹ' : u'21g', u'ế' : 24, u'ề' : 32, u'ể' : 312, u'ễ' : u'35g', u'ệ' : u'21g', u'í' : 24, u'ì' : 32, u'ỉ' : 312, u'ĩ' : u'35g', u'ị' : u'21g', u'ó' : 24, u'ò' : 32, u'ỏ' : 312, u'õ' : u'35g', u'ọ' : u'21g', u'ố' : 24, u'ồ' : 32, u'ổ' : 312, u'ỗ' : u'35g', u'ộ' : u'21g', u'ớ' : 24, u'ờ' : 32, u'ở' : 312, u'ỡ' : u'35g', u'ợ' : u'21g', u'ú' : 24, u'ù' : 32, u'ủ' : 312, u'ũ' : u'35g', u'ụ' : u'21g', u'ứ' : 24, u'ừ' : 32, u'ử' : 312, u'ữ' : u'35g', u'ự' : u'21g', u'ý' : 24, u'ỳ' : 32, u'ỷ' : 312, u'ỹ' : u'35g', u'ỵ' : u'21g', } # used to use \u02C0 for the unicode raised glottal character N_tones_p = { u'á' : 5, u'à' : 2, u'ả' : 4, u'ã' : 3, u'ạ' : 6, u'ấ' : 5, u'ầ' : 2, u'ẩ' : 4, u'ẫ' : 3, u'ậ' : 6, u'ắ' : 5, u'ằ' : 2, u'ẳ' : 4, u'ẵ' : 3, u'ặ' : 6, u'é' : 5, u'è' : 2, u'ẻ' : 4, u'ẽ' : 3, u'ẹ' : 6, u'ế' : 5, u'ề' : 2, u'ể' : 4, u'ễ' : 3, u'ệ' : 6, u'í' : 5, u'ì' : 2, u'ỉ' : 4, u'ĩ' : 3, u'ị' : 6, u'ó' : 5, u'ò' : 2, u'ỏ' : 4, u'õ' : 3, u'ọ' : 6, u'ố' : 5, u'ồ' : 2, u'ổ' : 4, u'ỗ' : 3, u'ộ' : 6, u'ớ' : 5, u'ờ' : 2, u'ở' : 4, u'ỡ' : 3, u'ợ' : 6, u'ú' : 5, u'ù' : 2, u'ủ' : 4, u'ũ' : 3, u'ụ' : 6, u'ứ' : 5, u'ừ' : 2, u'ử' : 4, u'ữ' : 3, u'ự' : 6, u'ý' : 5, u'ỳ' : 2, u'ỷ' : 4, u'ỹ' : 3, u'ỵ' : 6, } N_gi = { u'gi' : u'zi', u'gí': u'zi', u'gì' : u'zi', u'gì' : u'zi', u'gĩ' : u'zi', u'gị' : u'zi'} N_qu = {u'quy' : u'kwi', u'qúy' : u'kwi', u'qùy' : u'kwi', u'qủy' : u'kwi', u'qũy' : u'kwi', u'qụy' : u'kwi'} ####################################################### #central.py #coding: utf-8 C_onsets = { u'b' : u'b', u't' : u't', u'th' : u'tʰ', u'đ' : u'd', u'ch' : u'c', u'kh' : u'x', u'g' : u'ɣ', u'l' : u'l', u'm' : u'm', u'n': u'n', u'ngh': u'ŋ', u'nh' : u'ɲ', u'ng' : u'ŋ', u'ph' : u'f', u'v' : u'j', u'x' : u's', u'd' : u'j', u'h' : u'h', u'p' : u'p', u'qu' : u'w', u'gi' : u'j', u'tr' : u'ʈ', u'k' : u'k', u'c' : u'k', u'gh' : u'ɣ', u'r' : u'ʐ', u's' : u'ʂ', u'gi' : u'j' } C_nuclei = { u'a' : u'a', u'á' : u'a', u'à' : u'a', u'ả' : u'a', u'ã' : u'a', u'ạ' : u'a', u'â' : u'ɤ̆', u'ấ' : u'ɤ̆', u'ầ' : u'ɤ̆', u'ẩ' : u'ɤ̆', u'ẫ' : u'ɤ̆', u'ậ' : u'ɤ̆', u'ă' : u'ă', u'ắ' : u'ă', u'ằ' : u'ă', u'ẳ' : u'ă', u'ẵ' : u'ă', u'ặ' : u'ă', u'e' : u'ɛ', u'é' : u'ɛ', u'è' : u'ɛ', u'ẻ' : u'ɛ', u'ẽ' : u'ɛ', u'ẹ' : u'ɛ', u'ê' : u'e', u'ế' : u'e', u'ề' : u'e', u'ể' : u'e', u'ễ' : u'e', u'ệ' : u'e', u'i' : u'i', u'í' : u'i', u'ì' : u'i', u'ỉ' : u'i', u'ĩ' : u'i', u'ị' : u'i', u'o' : u'ɔ', u'ó' : u'ɔ', u'ò' : u'ɔ', u'ỏ' : u'ɔ', u'õ' : u'ɔ', u'ọ' : u'ɔ', u'ô' : u'o', u'ố' : u'o', u'ồ' : u'o', u'ổ' : u'o', u'ỗ' : u'o', u'ộ' : u'o', u'ơ' : u'ɤ', u'ớ' : u'ɤ', u'ờ' : u'ɤ', u'ở' : u'ɤ', u'ỡ' : u'ɤ', u'ợ' : u'ɤ', u'u' : u'u', u'ú' : u'u', u'ù' : u'u', u'ủ' : u'u', u'ũ' : u'u', u'ụ' : u'u', u'ư' : u'ɯ', u'ứ' : u'ɯ', u'ừ' : u'ɯ', u'ử' : u'ɯ', u'ữ' : u'ɯ', u'ự' : u'ɯ', u'y' : u'i', u'ý' : u'i', u'ỳ' : u'i', u'ỷ' : u'i', u'ỹ' : u'i', u'ỵ' : u'i', u'eo' : u'eo', u'éo' : u'eo', u'èo' : u'eo', u'ẻo' : u'eo', u'ẽo': u'eo', u'ẹo' : u'eo', u'êu' : u'ɛu', u'ếu' : u'ɛu', u'ều' : u'ɛu', u'ểu' : u'ɛu', u'ễu': u'ɛu', u'ệu' : u'ɛu', u'ia' : u'iə', u'ía' : u'iə', u'ìa' : u'iə', u'ỉa' : u'iə', u'ĩa' : u'iə', u'ịa' : u'iə', u'ia' : u'iə', u'iá' : u'iə', u'ià' : u'iə', u'iả' : u'iə', u'iã' : u'iə', u'iạ' : u'iə', u'iê' : u'iə', u'iế' : u'iə', u'iề' : u'iə', u'iể' : u'iə', u'iễ' : u'iə', u'iệ' : u'iə', u'oo' : u'ɔ', u'óo' : u'ɔ', u'òo' : u'ɔ', u'ỏo' : u'ɔ', u'õo' : u'ɔ', u'ọo' : u'ɔ', u'oo' : u'ɔ', u'oó' : u'ɔ', u'oò' : u'ɔ', u'oỏ' : u'ɔ', u'oõ' : u'ɔ', u'oọ' : u'ɔ', u'ôô' : u'o', u'ốô' : u'o', u'ồô' : u'o', u'ổô' : u'o', u'ỗô' : u'o', u'ộô' : u'o', u'ôô' : u'o', u'ôố' : u'o', u'ôồ' : u'o', u'ôổ' : u'o', u'ôỗ' : u'o', u'ôộ' : u'o', u'ua' : u'uə', u'úa' : u'uə', u'ùa' : u'uə', u'ủa' : u'uə', u'ũa' : u'uə', u'ụa' : u'uə', u'uô' : u'uə', u'uố' : u'uə', u'uồ' : u'uə', u'uổ' : u'uə', u'uỗ' : u'uə', u'uộ' : u'uə', u'ưa' : u'ɯə', u'ứa' : u'ɯə', u'ừa' : u'ɯə', u'ửa' : u'ɯə', u'ữa' : u'ɯə', u'ựa' : u'ɯə', u'ươ' : u'ɯə', u'ướ' : u'ɯə', u'ườ' : u'ɯə', u'ưở' : u'ɯə', u'ưỡ' : u'ɯə', u'ượ' : u'ɯə', u'yê' : u'iɛ', u'yế' : u'iɛ', u'yề' : u'iɛ', u'yể' : u'iɛ', u'yễ' : u'iɛ', u'yệ' : u'iɛ', u'uơ' : u'uə', u'uở' : u'uə', u'uờ': u'uə', u'uở' : u'uə', u'uỡ' : u'uə', u'uợ' : u'uə', } C_offglides = { u'ai' : u'aj', u'ái' : u'aj', u'ài' : u'aj', u'ải' : u'aj', u'ãi' : u'aj', u'ại' : u'aj', u'ay' : u'ăj', u'áy' : u'ăj', u'ày' : u'ăj', u'ảy' : u'ăj', u'ãy' : u'ăj', u'ạy' : u'ăj', u'ao' : u'aw', u'áo' : u'aw', u'ào' : u'aw', u'ảo' : u'aw', u'ão' : u'aw', u'ạo' : u'aw', u'au' : u'ăw', u'áu' : u'ăw', u'àu' : u'ăw', u'ảu' : u'ăw', u'ãu' : u'ăw', u'ạu' : u'ăw', u'ây' : u'ɤ̆j', u'ấy' : u'ɤ̆j', u'ầy' : u'ɤ̆j', u'ẩy' : u'ɤ̆j', u'ẫy' : u'ɤ̆j', u'ậy' : u'ɤ̆j', u'âu' : u'ɤ̆w', u'ấu' : u'ɤ̆w', u'ầu': u'ɤ̆w', u'ẩu' : u'ɤ̆w', u'ẫu' : u'ɤ̆w', u'ậu' : u'ɤ̆w', u'eo' : u'ew', u'éo' : u'ew', u'èo' : u'ew', u'ẻo' : u'ew', u'ẽo' : u'ew', u'ẹo' : u'ew', u'iu' : u'iw', u'íu' : u'iw', u'ìu' : u'iw', u'ỉu' : u'iw', u'ĩu' : u'iw', u'ịu' : u'iw', u'oi' : u'ɔj', u'ói' : u'ɔj', u'òi' : u'ɔj', u'ỏi' : u'ɔj', u'õi' : u'ɔj', u'ọi' : u'ɔj', u'ôi' : u'oj', u'ối' : u'oj', u'ồi' : u'oj', u'ổi' : u'oj', u'ỗi' : u'oj', u'ội' : u'oj', u'ui' : u'uj', u'úi' : u'uj', u'ùi' : u'uj', u'ủi' : u'uj', u'ũi' : u'uj', u'ụi' : u'uj', u'uy' : u'uj', u'úy' : u'uj', u'ùy' : u'uj', u'ủy' : u'uj', u'ũy' : u'uj', u'ụy' : u'uj', u'ơi' : u'ɤj', u'ới' : u'ɤj', u'ời' : u'ɤj', u'ởi' : u'ɤj', u'ỡi' : u'ɤj', u'ợi' : u'ɤj', u'ưi' : u'ɯj', u'ứi' : u'ɯj', u'ừi' : u'ɯj', u'ửi' : u'ɯj', u'ữi' : u'ɯj', u'ựi' : u'ɯj', u'ưu' : u'ɯw', u'ứu' : u'ɯw', u'ừu' : u'ɯw', u'ửu' : u'ɯw', u'ữu' : u'ɯw', u'ựu' : u'ɯw', u'iêu' : u'iəw', u'iếu' : u'iəw', u'iều' : u'iəw', u'iểu' : u'iəw', u'iễu' : u'iəw', u'iệu' : u'iəw', u'yêu' : u'iəw', u'yếu' : u'iəw', u'yều' : u'iəw', u'yểu' : u'iəw', u'yễu' : u'iəw', u'yệu' : u'iəw', u'uôi' : u'uəj', u'uối' : u'uəj', u'uồi' : u'uəj', u'uổi' : u'uəj', u'uỗi' : u'uəj', u'uội' : u'uəj', u'ươi' : u'ɯəj', u'ưới' : u'ɯəj', u'ười' : u'ɯəj', u'ưởi' : u'ɯəj', u'ưỡi' : u'ɯəj', u'ượi' : u'ɯəj', u'ươu' : u'ɯəw', u'ướu' : u'ɯəw', u'ườu' : u'ɯəw', u'ưởu' : u'ɯəw', 'ưỡu' : u'ɯəw', u'ượu' : u'ɯəw' } C_onglides = { u'oa' : u'a', u'oá' : u'a', u'oà' : u'a', u'oả' : u'a', u'oã' : u'a', u'oạ' : u'a', u'óa' : u'a', u'òa' : u'a', u'ỏa' : u'a', u'õa' : u'a', u'ọa' : u'a', u'oă' : u'ă', u'oắ' : u'ă', u'oằ' : u'ă', u'oẳ' : u'ă', u'oẵ' : u'ă', u'oặ' : u'ă', u'oe' : u'e', u'oé' : u'e', u'oè' : u'e', u'oẻ' : u'e', u'oẽ' : u'e', u'oẹ' : u'e', u'oe' : u'e', u'óe' : u'e', u'òe' : u'e', u'ỏe' : u'e', u'õe' : u'e', u'ọe' : u'e', u'ua' : u'a', u'uá' : u'a', u'uà' : u'a', u'uả' : u'a', u'uã' : u'a', u'uạ' : u'a', u'uă' : u'ă', u'uắ' : u'ă', u'uằ' : u'ă', u'uẳ' : u'ă', u'uẵ' : u'ă', u'uặ' : u'ă', u'uâ' : u'ɤ̆', u'uấ' : u'ɤ̆', u'uầ' : u'ɤ̆', u'uẩ' : u'ɤ̆', u'uẫ' : u'ɤ̆', u'uậ' : u'ɤ̆', u'ue' : u'ɛ', u'ué' : u'ɛ', u'uè' : u'ɛ', u'uẻ' : u'ɛ', u'uẽ' : u'ɛ', u'uẹ' : u'ɛ', u'uê' : u'e', u'uế' : u'e', u'uề' : u'e', u'uể' : u'e', u'uễ' : u'e', u'uệ' : u'e', u'uơ' : u'ɤ', u'uớ' : u'ɤ', u'uờ' : u'ɤ', u'uở' : u'ɤ', u'uỡ' : u'ɤ', u'uợ' : u'ɤ', u'uy' : u'i', u'uý' : u'i', u'uỳ' : u'i', u'uỷ' : u'i', u'uỹ' : u'i', u'uỵ' : u'i', u'uya' : u'iə', u'uyá' : u'iə', u'uyà' : u'iə', u'uyả' : u'iə', u'uyã' : u'iə', u'uyạ' : u'iə', u'uyê' : u'iə', u'uyế' : u'iə', u'uyề' : u'iə', u'uyể' : u'iə', u'uyễ' : u'iə', u'uyệ' : u'iə', u'uyu' : u'iu', u'uyú' : u'iu', u'uyù' : u'iu', u'uyủ' : u'iu', u'uyũ' : u'iu', u'uyụ' : u'iu', u'uyu' : u'iu', u'uýu' : u'iu', u'uỳu' : u'iu', u'uỷu' : u'iu', u'uỹu' : u'iu', u'uỵu' : u'iu', u'oen' : u'en', u'oén' : u'en', u'oèn' : u'en', u'oẻn' : u'en', u'oẽn' : u'en', u'oẹn' : u'en', u'oet' : u'et', u'oét' : u'et', u'oèt' : u'et', u'oẻt' : u'et', u'oẽt' : u'et', u'oẹt' : u'et' } C_onoffglides = { u'oe' : u'ej', u'oé' : u'ej', u'oè' : u'ej', u'oẻ' : u'ej', u'oẽ' : u'ej', u'oẹ' : u'ej', u'oai' : u'aj', u'oái' : u'aj', u'oài' : u'aj', u'oải' : u'aj', u'oãi' : u'aj', u'oại' : u'aj', u'oay' : u'ăj', u'oáy' : u'ăj', u'oày' : u'ăj', u'oảy' : u'ăj', u'oãy' : u'ăj', u'oạy' : u'ăj', u'oao' : u'aw', u'oáo' : u'aw', u'oào' : u'aw', u'oảo' : u'aw', u'oão' : u'aw', u'oạo' : u'aw', u'oeo' : u'ew', u'oéo' : u'ew', u'oèo' : u'ew', u'oẻo' : u'ew', u'oẽo' : u'ew', u'oẹo' : u'ew', u'oeo' : u'ew', u'óeo' : u'ew', u'òeo' : u'ew', u'ỏeo' : u'ew', u'õeo' : u'ew', u'ọeo' : u'ew', u'ueo' : u'ew', u'uéo' : u'ew', u'uèo' : u'ew', u'uẻo' : u'ew', u'uẽo' : u'ew', u'uẹo' : u'ew', u'uai' : u'aj', u'uái' : u'aj', u'uài' : u'aj', u'uải' : u'aj', u'uãi' : u'aj', u'uại' : u'aj', u'uay' : u'ăj', u'uáy' : u'ăj', u'uày' : u'ăj', u'uảy' : u'ăj', u'uãy' : u'ăj', u'uạy' : u'ăj', u'uây' : u'ɤ̆j', u'uấy' : u'ɤ̆j', u'uầy' : u'ɤ̆j', u'uẩy' : u'ɤ̆j', u'uẫy' : u'ɤ̆j', u'uậy' : u'ɤ̆j' } C_codas = { u'p' : u'p', u't' : u'k', u'c' : u'k', u'm' : u'm', u'n' : u'ŋ', u'ng' : u'ŋ', u'nh' : u'n', u'ch' : u'k' } # See Alves 2007 (SEALS XII), Vũ 1982 C_tones = { u'á' : 13, u'à' : 42, u'ả' : 312, u'ã' : 312, u'ạ' : u'21g', u'ấ' : 13, u'ầ' : 42, u'ẩ' : 312, u'ẫ' : 312, u'ậ' : u'21g', u'ắ' : 13, u'ằ' : 42, u'ẳ' : 312, u'ẵ' : 312, u'ặ' : u'21g', u'é' : 13, u'è' : 42, u'ẻ' : 312, u'ẽ' : 312, u'ẹ' : u'21g', u'ế' : 13, u'ề' : 42, u'ể' : 312, u'ễ' : 312, u'ệ' : u'21g', u'í' : 13, u'ì' : 42, u'ỉ' : 312, u'ĩ' : 312, u'ị' : u'21g', u'ó' : 13, u'ò' : 42, u'ỏ' : 312, u'õ' : 312, u'ọ' : u'21g', u'ố' : 13, u'ồ' : 42, u'ổ' : 312, u'ỗ' : 312, u'ộ' : u'21g', u'ớ' : 13, u'ờ' : 42, u'ở' : 312, u'ỡ' : 312, u'ợ' : u'21g', u'ú' : 13, u'ù' : 42, u'ủ' : 312, u'ũ' : 312, u'ụ' : u'21g', u'ứ' : 13, u'ừ' : 42, u'ử' : 312, u'ữ' : 312, u'ự' : u'21g', u'ý' : 13, u'ỳ' : 42, u'ỷ' : 312, u'ỹ' : 312, u'ỵ' : u'21g', } # used to use \u02C0 for raised glottal instead of g C_tones_p = { u'á' : 5, u'à' : 2, u'ả' : 4, u'ã' : 4, u'ạ' : 6, u'ấ' : 5, u'ầ' : 2, u'ẩ' : 4, u'ẫ' : 4, u'ậ' : 6, u'ắ' : 5, u'ằ' : 2, u'ẳ' : 4, u'ẵ' : 4, u'ặ' : 6, u'é' : 5, u'è' : 2, u'ẻ' : 4, u'ẽ' : 4, u'ẹ' : 6, u'ế' : 5, u'ề' : 2, u'ể' : 4, u'ễ' : 4, u'ệ' : 6, u'í' : 5, u'ì' : 2, u'ỉ' : 4, u'ĩ' : 4, u'ị' : 6, u'ó' : 5, u'ò' : 2, u'ỏ' : 4, u'õ' : 4, u'ọ' : 6, u'ố' : 5, u'ồ' : 2, u'ổ' : 4, u'ỗ' : 4, u'ộ' : 6, u'ớ' : 5, u'ờ' : 2, u'ở' : 4, u'ỡ' : 4, u'ợ' : 6, u'ú' : 5, u'ù' : 2, u'ủ' : 4, u'ũ' : 4, u'ụ' : 6, u'ứ' : 5, u'ừ' : 2, u'ử' : 4, u'ữ' : 4, u'ự' : 6, u'ý' : 5, u'ỳ' : 2, u'ỷ' : 4, u'ỹ' : 4, u'ỵ' : 6, } C_gi = { u'gi' : u'ji', u'gí': u'ji', u'gì' : u'ji', u'gì' : u'ji', u'gĩ' : u'ji', u'gị' : u'ji' } C_qu = {u'quy' : u'wi', u'qúy' : u'wi', u'qùy' : u'wi', u'qủy' : u'wi', u'qũy' : u'wi', u'qụy' : u'wi'} ############################################ #south.py #coding: utf-8 S_onsets = { u'b' : u'b', u't' : u't', u'th' : u'tʰ', u'đ' : u'd', u'ch' : u'c', u'kh' : u'x', u'g' : u'ɣ', u'l' : u'l', u'm' : u'm', u'n': u'n', u'ngh': u'ŋ', u'nh' : u'ɲ', u'ng' : u'ŋ', u'ph' : u'f', u'v' : u'j', u'x' : u's', u'd' : u'j', u'h' : u'h', u'p' : u'p', u'qu' : u'w', u'gi' : u'j', u'tr' : u'ʈ', u'k' : u'k', u'c' : u'k', u'gh' : u'ɣ', u'r' : u'ʐ', u's' : u'ʂ', u'gi' : u'j' } S_nuclei = { u'a' : u'a', u'á' : u'a', u'à' : u'a', u'ả' : u'a', u'ã' : u'a', u'ạ' : u'a', u'â' : u'ɤ̆', u'ấ' : u'ɤ̆', u'ầ' : u'ɤ̆', u'ẩ' : u'ɤ̆', u'ẫ' : u'ɤ̆', u'ậ' : u'ɤ̆', u'ă' : u'ă', u'ắ' : u'ă', u'ằ' : u'ă', u'ẳ' : u'ă', u'ẵ' : u'ă', u'ặ' : u'ă', u'e' : u'ɛ', u'é' : u'ɛ', u'è' : u'ɛ', u'ẻ' : u'ɛ', u'ẽ' : u'ɛ', u'ẹ' : u'ɛ', u'ê' : u'e', u'ế' : u'e', u'ề' : u'e', u'ể' : u'e', u'ễ' : u'e', u'ệ' : u'e', u'i' : u'i', u'í' : u'i', u'ì' : u'i', u'ỉ' : u'i', u'ĩ' : u'i', u'ị' : u'i', u'o' : u'ɔ', u'ó' : u'ɔ', u'ò' : u'ɔ', u'ỏ' : u'ɔ', u'õ' : u'ɔ', u'ọ' : u'ɔ', u'ô' : u'o', u'ố' : u'o', u'ồ' : u'o', u'ổ' : u'o', u'ỗ' : u'o', u'ộ' : u'o', u'ơ' : u'ɤ', u'ớ' : u'ɤ', u'ờ' : u'ɤ', u'ở' : u'ɤ', u'ỡ' : u'ɤ', u'ợ' : u'ɤ', u'u' : u'u', u'ú' : u'u', u'ù' : u'u', u'ủ' : u'u', u'ũ' : u'u', u'ụ' : u'u', u'ư' : u'ɯ', u'ứ' : u'ɯ', u'ừ' : u'ɯ', u'ử' : u'ɯ', u'ữ' : u'ɯ', u'ự' : u'ɯ', u'y' : u'i', u'ý' : u'i', u'ỳ' : u'i', u'ỷ' : u'i', u'ỹ' : u'i', u'ỵ' : u'i', u'eo' : u'eo', u'éo' : u'eo', u'èo' : u'eo', u'ẻo' : u'eo', u'ẽo': u'eo', u'ẹo' : u'eo', u'êu' : u'ɛu', u'ếu' : u'ɛu', u'ều' : u'ɛu', u'ểu' : u'ɛu', u'ễu': u'ɛu', u'ệu' : u'ɛu', u'ia' : u'iə', u'ía' : u'iə', u'ìa' : u'iə', u'ỉa' : u'iə', u'ĩa' : u'iə', u'ịa' : u'iə', u'ia' : u'iə', u'iá' : u'iə', u'ià' : u'iə', u'iả' : u'iə', u'iã' : u'iə', u'iạ' : u'iə', u'iê' : u'iə', u'iế' : u'iə', u'iề' : u'iə', u'iể' : u'iə', u'iễ' : u'iə', u'iệ' : u'iə', u'oo' : u'ɔ', u'óo' : u'ɔ', u'òo' : u'ɔ', u'ỏo' : u'ɔ', u'õo' : u'ɔ', u'ọo' : u'ɔ', u'oo' : u'ɔ', u'oó' : u'ɔ', u'oò' : u'ɔ', u'oỏ' : u'ɔ', u'oõ' : u'ɔ', u'oọ' : u'ɔ', u'ôô' : u'o', u'ốô' : u'o', u'ồô' : u'o', u'ổô' : u'o', u'ỗô' : u'o', u'ộô' : u'o', u'ôô' : u'o', u'ôố' : u'o', u'ôồ' : u'o', u'ôổ' : u'o', u'ôỗ' : u'o', u'ôộ' : u'o', u'ua' : u'uə', u'úa' : u'uə', u'ùa' : u'uə', u'ủa' : u'uə', u'ũa' : u'uə', u'ụa' : u'uə', u'uô' : u'uə', u'uố' : u'uə', u'uồ' : u'uə', u'uổ' : u'uə', u'uỗ' : u'uə', u'uộ' : u'uə', u'ưa' : u'ɯə', u'ứa' : u'ɯə', u'ừa' : u'ɯə', u'ửa' : u'ɯə', u'ữa' : u'ɯə', u'ựa' : u'ɯə', u'ươ' : u'ɯə', u'ướ' : u'ɯə', u'ườ' : u'ɯə', u'ưở' : u'ɯə', u'ưỡ' : u'ɯə', u'ượ' : u'ɯə', u'yê' : u'iɛ', u'yế' : u'iɛ', u'yề' : u'iɛ', u'yể' : u'iɛ', u'yễ' : u'iɛ', u'yệ' : u'iɛ', u'uơ' : u'uə', u'uở' : u'uə', u'uờ': u'uə', u'uở' : u'uə', u'uỡ' : u'uə', u'uợ' : u'uə', } S_offglides = { u'ai' : u'aj', u'ái' : u'aj', u'ài' : u'aj', u'ải' : u'aj', u'ãi' : u'aj', u'ại' : u'aj', u'ay' : u'ăj', u'áy' : u'ăj', u'ày' : u'ăj', u'ảy' : u'ăj', u'ãy' : u'ăj', u'ạy' : u'ăj', u'ao' : u'aw', u'áo' : u'aw', u'ào' : u'aw', u'ảo' : u'aw', u'ão' : u'aw', u'ạo' : u'aw', u'au' : u'ăw', u'áu' : u'ăw', u'àu' : u'ăw', u'ảu' : u'ăw', u'ãu' : u'ăw', u'ạu' : u'ăw', u'ây' : u'ɤ̆j', u'ấy' : u'ɤ̆j', u'ầy' : u'ɤ̆j', u'ẩy' : u'ɤ̆j', u'ẫy' : u'ɤ̆j', u'ậy' : u'ɤ̆j', u'âu' : u'ɤ̆w', u'ấu' : u'ɤ̆w', u'ầu': u'ɤ̆w', u'ẩu' : u'ɤ̆w', u'ẫu' : u'ɤ̆w', u'ậu' : u'ɤ̆w', u'eo' : u'ew', u'éo' : u'ew', u'èo' : u'ew', u'ẻo' : u'ew', u'ẽo' : u'ew', u'ẹo' : u'ew', u'iu' : u'iw', u'íu' : u'iw', u'ìu' : u'iw', u'ỉu' : u'iw', u'ĩu' : u'iw', u'ịu' : u'iw', u'oi' : u'ɔj', u'ói' : u'ɔj', u'òi' : u'ɔj', u'ỏi' : u'ɔj', u'õi' : u'ɔj', u'ọi' : u'ɔj', u'ôi' : u'oj', u'ối' : u'oj', u'ồi' : u'oj', u'ổi' : u'oj', u'ỗi' : u'oj', u'ội' : u'oj', u'ui' : u'uj', u'úi' : u'uj', u'ùi' : u'uj', u'ủi' : u'uj', u'ũi' : u'uj', u'ụi' : u'uj', u'uy' : u'uj', u'úy' : u'uj', u'ùy' : u'uj', u'ủy' : u'uj', u'ũy' : u'uj', u'ụy' : u'uj', u'ơi' : u'ɤj', u'ới' : u'ɤj', u'ời' : u'ɤj', u'ởi' : u'ɤj', u'ỡi' : u'ɤj', u'ợi' : u'ɤj', u'ưi' : u'ɯj', u'ứi' : u'ɯj', u'ừi' : u'ɯj', u'ửi' : u'ɯj', u'ữi' : u'ɯj', u'ựi' : u'ɯj', u'ưu' : u'ɯw', u'ứu' : u'ɯw', u'ừu' : u'ɯw', u'ửu' : u'ɯw', u'ữu' : u'ɯw', u'ựu' : u'ɯw', u'iêu' : u'iəw', u'iếu' : u'iəw', u'iều' : u'iəw', u'iểu' : u'iəw', u'iễu' : u'iəw', u'iệu' : u'iəw', u'yêu' : u'iəw', u'yếu' : u'iəw', u'yều' : u'iəw', u'yểu' : u'iəw', u'yễu' : u'iəw', u'yệu' : u'iəw', u'uôi' : u'uəj', u'uối' : u'uəj', u'uồi' : u'uəj', u'uổi' : u'uəj', u'uỗi' : u'uəj', u'uội' : u'uəj', u'ươi' : u'ɯəj', u'ưới' : u'ɯəj', u'ười' : u'ɯəj', u'ưởi' : u'ɯəj', u'ưỡi' : u'ɯəj', u'ượi' : u'ɯəj', u'ươu' : u'ɯəw', u'ướu' : u'ɯəw', u'ườu' : u'ɯəw', u'ưởu' : u'ɯəw', 'ưỡu' : u'ɯəw', u'ượu' : u'ɯəw' } S_onglides = { u'oa' : u'a', u'oá' : u'a', u'oà' : u'a', u'oả' : u'a', u'oã' : u'a', u'oạ' : u'a', u'óa' : u'a', u'òa' : u'a', u'ỏa' : u'a', u'õa' : u'a', u'ọa' : u'a', u'oă' : u'ă', u'oắ' : u'ă', u'oằ' : u'ă', u'oẳ' : u'ă', u'oẵ' : u'ă', u'oặ' : u'ă', u'oe' : u'e', u'oé' : u'e', u'oè' : u'e', u'oẻ' : u'e', u'oẽ' : u'e', u'oẹ' : u'e', u'oe' : u'e', u'óe' : u'e', u'òe' : u'e', u'ỏe' : u'e', u'õe' : u'e', u'ọe' : u'e', u'ua' : u'a', u'uá' : u'a', u'uà' : u'a', u'uả' : u'a', u'uã' : u'a', u'uạ' : u'a', u'uă' : u'ă', u'uắ' : u'ă', u'uằ' : u'ă', u'uẳ' : u'ă', u'uẵ' : u'ă', u'uặ' : u'ă', u'uâ' : u'ɤ̆', u'uấ' : u'ɤ̆', u'uầ' : u'ɤ̆', u'uẩ' : u'ɤ̆', u'uẫ' : u'ɤ̆', u'uậ' : u'ɤ̆', u'ue' : u'ɛ', u'ué' : u'ɛ', u'uè' : u'ɛ', u'uẻ' : u'ɛ', u'uẽ' : u'ɛ', u'uẹ' : u'ɛ', u'uê' : u'e', u'uế' : u'e', u'uề' : u'e', u'uể' : u'e', u'uễ' : u'e', u'uệ' : u'e', u'uơ' : u'ɤ', u'uớ' : u'ɤ', u'uờ' : u'ɤ', u'uở' : u'ɤ', u'uỡ' : u'ɤ', u'uợ' : u'ɤ', u'uy' : u'i', u'uý' : u'i', u'uỳ' : u'i', u'uỷ' : u'i', u'uỹ' : u'i', u'uỵ' : u'i', u'uya' : u'iə', u'uyá' : u'iə', u'uyà' : u'iə', u'uyả' : u'iə', u'uyã' : u'iə', u'uyạ' : u'iə', u'uyê' : u'iə', u'uyế' : u'iə', u'uyề' : u'iə', u'uyể' : u'iə', u'uyễ' : u'iə', u'uyệ' : u'iə', u'uyu' : u'iu', u'uyú' : u'iu', u'uyù' : u'iu', u'uyủ' : u'iu', u'uyũ' : u'iu', u'uyụ' : u'iu', u'uyu' : u'iu', u'uýu' : u'iu', u'uỳu' : u'iu', u'uỷu' : u'iu', u'uỹu' : u'iu', u'uỵu' : u'iu', u'oen' : u'en', u'oén' : u'en', u'oèn' : u'en', u'oẻn' : u'en', u'oẽn' : u'en', u'oẹn' : u'en', u'oet' : u'et', u'oét' : u'et', u'oèt' : u'et', u'oẻt' : u'et', u'oẽt' : u'et', u'oẹt' : u'et' } S_onoffglides = { u'oe' : u'ej', u'oé' : u'ej', u'oè' : u'ej', u'oẻ' : u'ej', u'oẽ' : u'ej', u'oẹ' : u'ej', u'oai' : u'aj', u'oái' : u'aj', u'oài' : u'aj', u'oải' : u'aj', u'oãi' : u'aj', u'oại' : u'aj', u'oay' : u'ăj', u'oáy' : u'ăj', u'oày' : u'ăj', u'oảy' : u'ăj', u'oãy' : u'ăj', u'oạy' : u'ăj', u'oao' : u'aw', u'oáo' : u'aw', u'oào' : u'aw', u'oảo' : u'aw', u'oão' : u'aw', u'oạo' : u'aw', u'oeo' : u'ew', u'oéo' : u'ew', u'oèo' : u'ew', u'oẻo' : u'ew', u'oẽo' : u'ew', u'oẹo' : u'ew', u'oeo' : u'ew', u'óeo' : u'ew', u'òeo' : u'ew', u'ỏeo' : u'ew', u'õeo' : u'ew', u'ọeo' : u'ew', u'ueo' : u'ew', u'uéo' : u'ew', u'uèo' : u'ew', u'uẻo' : u'ew', u'uẽo' : u'ew', u'uẹo' : u'ew', u'uai' : u'aj', u'uái' : u'aj', u'uài' : u'aj', u'uải' : u'aj', u'uãi' : u'aj', u'uại' : u'aj', u'uay' : u'ăj', u'uáy' : u'ăj', u'uày' : u'ăj', u'uảy' : u'ăj', u'uãy' : u'ăj', u'uạy' : u'ăj', u'uây' : u'ɤ̆j', u'uấy' : u'ɤ̆j', u'uầy' : u'ɤ̆j', u'uẩy' : u'ɤ̆j', u'uẫy' : u'ɤ̆j', u'uậy' : u'ɤ̆j' } S_codas = { u'p' : u'p', u't' : u't', u'c' : u'k', u'm' : u'm', u'n' : u'ŋ', u'ng' : u'ŋ', u'nh' : u'n', u'ch' : u't' } S_tones = { u'á' : 45, u'à' : 32, u'ả' : 214, u'ã' : 214, u'ạ' : 212, u'ấ' : 45, u'ầ' : 32, u'ẩ' : 214, u'ẫ' : 214, u'ậ' : 212, u'ắ' : 45, u'ằ' : 32, u'ẳ' : 214, u'ẵ' : 214, u'ặ' : 212, u'é' : 45, u'è' : 32, u'ẻ' : 214, u'ẽ' : 214, u'ẹ' : 212, u'ế' : 45, u'ề' : 32, u'ể' : 214, u'ễ' : 214, u'ệ' : 212, u'í' : 45, u'ì' : 32, u'ỉ' : 214, u'ĩ' : 214, u'ị' : 212, u'ó' : 45, u'ò' : 32, u'ỏ' : 214, u'õ' : 214, u'ọ' : 212, u'ố' : 45, u'ồ' : 32, u'ổ' : 214, u'ỗ' : 214, u'ộ' : 212, u'ớ' : 45, u'ờ' : 32, u'ở' : 214, u'ỡ' : 214, u'ợ' : 212, u'ú' : 45, u'ù' : 32, u'ủ' : 214, u'ũ' : 214, u'ụ' : 212, u'ứ' : 45, u'ừ' : 32, u'ử' : 214, u'ữ' : 214, u'ự' : 212, u'ý' : 45, u'ỳ' : 32, u'ỷ' : 214, u'ỹ' : 214, u'ỵ' : 212, } S_tones_p = { u'á' : 5, u'à' : 2, u'ả' : 4, u'ã' : 4, u'ạ' : 6, u'ấ' : 5, u'ầ' : 2, u'ẩ' : 4, u'ẫ' : 4, u'ậ' : 6, u'ắ' : 5, u'ằ' : 2, u'ẳ' : 4, u'ẵ' : 4, u'ặ' : 6, u'é' : 5, u'è' : 2, u'ẻ' : 4, u'ẽ' : 4, u'ẹ' : 6, u'ế' : 5, u'ề' : 2, u'ể' : 4, u'ễ' : 4, u'ệ' : 6, u'í' : 5, u'ì' : 2, u'ỉ' : 4, u'ĩ' : 4, u'ị' : 6, u'ó' : 5, u'ò' : 2, u'ỏ' : 4, u'õ' : 4, u'ọ' : 6, u'ố' : 5, u'ồ' : 2, u'ổ' : 4, u'ỗ' : 4, u'ộ' : 6, u'ớ' : 5, u'ờ' : 2, u'ở' : 4, u'ỡ' : 4, u'ợ' : 6, u'ú' : 5, u'ù' : 2, u'ủ' : 4, u'ũ' : 4, u'ụ' : 6, u'ứ' : 5, u'ừ' : 2, u'ử' : 4, u'ữ' : 4, u'ự' : 6, u'ý' : 5, u'ỳ' : 2, u'ỷ' : 4, u'ỹ' : 4, u'ỵ' : 6, } S_gi = { u'gi' : u'ji', u'gí': u'ji', u'gì' : u'ji', u'gì' : u'ji', u'gĩ' : u'ji', u'gị' : u'ji' } S_qu = {u'quy' : u'wi', u'qúy' : u'wi', u'qùy' : u'wi', u'qủy' : u'wi', u'qũy' : u'wi', u'qụy' : u'wi'} ################################################3 import sys, codecs, re from io import StringIO from optparse import OptionParser from string import punctuation def trans(word, dialect, glottal, pham, cao, palatals): # This looks ugly, but newer versions of python complain about "from x import *" syntax if dialect == 'n': onsets, nuclei, codas, tones, onglides, offglides, onoffglides, qu, gi = N_onsets, N_nuclei, N_codas, N_tones, N_onglides, N_offglides, N_onoffglides, N_qu, N_gi elif dialect == 'c': onsets, nuclei, codas, tones, onglides, offglides, onoffglides, qu, gi = C_onsets, C_nuclei, C_codas, C_tones, C_onglides, C_offglides, C_onoffglides, C_qu, C_gi elif dialect == 's': onsets, nuclei, codas, tones, onglides, offglides, onoffglides, qu, gi = S_onsets, S_nuclei, S_codas, S_tones, S_onglides, S_offglides, S_onoffglides, S_qu, S_gi #Custom onsets, nuclei, codas, onglides, offglides, onoffglides, qu, gi = Cus_onsets, Cus_nuclei, Cus_codas, Cus_onglides, Cus_offglides, Cus_onoffglides, Cus_qu, Cus_gi if pham or cao: if dialect == 'n': tones_p = N_tones_p if dialect == 'c': tones_p = C_tones_p if dialect == 's': tones_p = S_tones_p #Custom tones_p = Cus_tones_p tones = tones_p ons = '' nuc = '' cod = '' ton = 0 oOffset = 0 cOffset = 0 l = len(word) if l > 0: if word[0:3] in onsets: # if onset is 'ngh' ons = onsets[word[0:3]] oOffset = 3 elif word[0:2] in onsets: # if onset is 'nh', 'gh', 'kʷ' etc ons = onsets[word[0:2]] oOffset = 2 elif word[0] in onsets: # if single onset ons = onsets[word[0]] oOffset = 1 if word[l-2:l] in codas: # if two-character coda cod = codas[word[l-2:l]] cOffset = 2 elif word[l-1] in codas: # if one-character coda cod = codas[word[l-1]] cOffset = 1 #if word[0:2] == u'gi' and cod and len(word) == 3: # if you just have 'gi' and a coda... if word[0:2] in gi and cod and len(word) == 3: # if you just have 'gi' and a coda... nucl = u'i' ons = u'z' else: nucl = word[oOffset:l-cOffset] if nucl in nuclei: if oOffset == 0: if glottal == 1: if word[0] not in onsets: # if there isn't an onset.... ons = u'ʔ'+nuclei[nucl] # add a glottal stop else: # otherwise... nuc = nuclei[nucl] # there's your nucleus else: nuc = nuclei[nucl] # there's your nucleus else: # otherwise... nuc = nuclei[nucl] # there's your nucleus elif nucl in onglides and ons != u'kw': # if there is an onglide... nuc = onglides[nucl] # modify the nuc accordingly if ons: # if there is an onset... ons = ons+u'w' # labialize it, but... else: # if there is no onset... ons = u'w' # add a labiovelar onset elif nucl in onglides and ons == u'kw': nuc = onglides[nucl] elif nucl in onoffglides: cod = onoffglides[nucl][-1] nuc = onoffglides[nucl][0:-1] if ons != u'kw': if ons: ons = ons+u'w' else: ons = u'w' elif nucl in offglides: cod = offglides[nucl][-1] nuc = offglides[nucl][:-1] elif word in gi: # if word == 'gi', 'gì',... ons = gi[word][0] nuc = gi[word][1] elif word in qu: # if word == 'quy', 'qúy',... ons = qu[word][:-1] nuc = qu[word][-1] else: # Something is non-Viet return (None, None, None, None) # Velar Fronting (Northern dialect) if dialect == 'n': if nuc == u'a': if cod == u'k' and cOffset == 2: nuc = u'ɛ' if cod == u'ɲ' and nuc == u'a': nuc = u'ɛ' # Final palatals (Northern dialect) if nuc not in [u'i', u'e', u'ɛ']: if cod == u'ɲ': cod = u'ɲ' # u'ŋ' elif palatals != 1 and nuc in [u'i', u'e', u'ɛ']: if cod == u'ɲ': cod = u'ɲ'#u'ŋ' if palatals == 1: if cod == u'k' and nuc in [u'i', u'e', u'ɛ']: cod = u'c' # Velar Fronting (Southern and Central dialects) else: if nuc in [u'i', u'e']: if cod == u'k': cod = u't' if cod == u'ŋ': cod = u'n' # There is also this reverse fronting, see Thompson 1965:94 ff. elif nuc in [u'iə', u'ɯə', u'uə', u'u', u'ɯ', u'ɤ', u'o', u'ɔ', u'ă', u'ɤ̆']: if cod == u't': cod = u'k' if cod == u'n': cod = u'ŋ' # Monophthongization (Southern dialects: Thompson 1965: 86; Hoàng 1985: 181) if dialect == 's': if cod in [u'm', u'p']: if nuc == u'iə': nuc = u'i' if nuc == u'uə': nuc = u'u' if nuc == u'ɯə': nuc = u'ɯ' # Tones # Modified 20 Sep 2008 to fix aberrant 33 error tonelist = [tones[word[i]] for i in range(0,l) if word[i] in tones] if tonelist: ton = str(tonelist[len(tonelist)-1]) else: if not (pham or cao): if dialect == 'c': ton = str('35') else: ton = str('33') else: ton = str('1') # Modifications for closed syllables if cOffset !=0: # Obstruent-final nang tones are modal voice if (dialect == 'n' or dialect == 's') and ton == u'21g' and cod in ['p', 't', 'k']: #if ton == u'21\u02C0' and cod in ['p', 't', 'k']: # fixed 8 Nov 2016 ton = u'21' # Modification for sắc in closed syllables (Northern and Central only) if ((dialect == 'n' and ton == u'24') or (dialect == 'c' and ton == u'13')) and cod in ['p', 't', 'k']: ton = u'45' # Modification for 8-tone system if cao == 1: if ton == u'5' and cod in ['p', 't', 'k']: ton = u'5b' if ton == u'6' and cod in ['p', 't', 'k']: ton = u'6b' # labialized allophony (added 17.09.08) if nuc in [u'u', u'o', u'ɔ']: if cod == u'ŋ': cod = u'ŋ͡m' if cod == u'k': cod = u'k͡p' return (ons, nuc, cod, ton) def convert(word, dialect, glottal, pham, cao, palatals, delimit): """Convert a single orthographic string to IPA.""" ons = '' nuc = '' cod = '' ton = 0 seq = '' try: (ons, nuc, cod, ton) = trans(word, dialect, glottal, pham, cao, palatals) if None in (ons, nuc, cod, ton): seq = u'['+word+u']' else: seq = delimit+delimit.join(filter(None, (ons, nuc, cod, ton)))+delimit except (TypeError): pass return seq ########################333 from vinorm import * from underthesea import word_tokenize import eng_to_ipa SET=[S_onsets, S_nuclei, S_codas#, S_tones , S_onglides, S_offglides, S_onoffglides, S_qu, S_gi, C_onsets, C_nuclei, C_codas#, C_tones , C_onglides, C_offglides, C_onoffglides, C_qu, C_gi, N_onsets, N_nuclei, N_codas#, N_tones , N_onglides, N_offglides, N_onoffglides, N_qu, N_gi, Cus_onsets, Cus_nuclei, Cus_codas#, N_tones , Cus_onglides, Cus_offglides, Cus_onoffglides, Cus_qu, Cus_gi] DICT={} #144 in total syms=['ɯəj', 'ɤ̆j', 'ʷiə', 'ɤ̆w', 'ɯəw', 'ʷet', 'iəw', 'uəj', 'ʷen', 'tʰw', 'ʷɤ̆', 'ʷiu', 'kwi', 'ŋ͡m', 'k͡p', 'cw', 'jw', 'uə', 'eə', 'bw', 'oj', 'ʷi', 'vw', 'ăw', 'ʈw', 'ʂw', 'aʊ', 'fw', 'ɛu', 'tʰ', 'tʃ', 'ɔɪ', 'xw', 'ʷɤ', 'ɤ̆', 'ŋw', 'ʊə', 'zi', 'ʷă', 'dw', 'eɪ', 'aɪ', 'ew', 'iə', 'ɣw', 'zw', 'ɯj', 'ʷɛ', 'ɯw', 'ɤj', 'ɔ:', 'əʊ', 'ʷa', 'mw', 'ɑ:', 'hw', 'ɔj', 'uj', 'lw', 'ɪə', 'ăj', 'u:', 'aw', 'ɛj', 'iw', 'aj', 'ɜ:', 'kw', 'nw', 't∫', 'ɲw', 'eo', 'sw', 'tw', 'ʐw', 'iɛ', 'ʷe', 'i:', 'ɯə', 'dʒ', 'ɲ', 'θ', 'ʌ', 'l', 'w', '1', 'ɪ', 'ɯ', 'd', '∫', 'p', 'ə', 'u', 'o', '3', 'ɣ', '!', 'ð', 'ʧ', '6', 'ʒ', 'ʐ', 'z', 'v', 'g', 'ă', '_', 'æ', 'ɤ', '2', 'ʤ', 'i', '.', 'ɒ', 'b', 'h', 'n', 'ʂ', 'ɔ', 'ɛ', 'k', 'm', '5', ' ', 'c', 'j', 'x', 'ʈ', ',', '4', 'ʊ', 's', 'ŋ', 'a', 'ʃ', '?', 'r', ':', 'η', 'f', ';', 'e', 't', "'"] def Parsing(listParse, text, delimit): undefine_symbol = "'" if listParse == "default": listParse=['ʷiə', 'uəj', 'iəw', 'k͡p', 'ʷɤ̆', 'ɤ̆j', 'ŋ͡m', 'kwi', 'ɤ̆w', 'ɯəj', 'ʷen', 'ʷiu', 'ʷet', 'ɯəw', 'ʷɛ', 'ʷɤ', 'ɯj', 'oj', 'ăw', 'zi', 'kw', 'aɪ', 'iɛ', 'ɤ̆', 'ɔ:', 'ăj', 'ʷa', 'eə', 'u:', 'uj', 'aʊ', 'uə', 'aj', 'iə', 'iw', 'əʊ', 'ɑ:', 'tʃ', 'ʷe', 'ɛu', 'ɔɪ', 'ʷi', 'eɪ', 'ɤj', 'ɯw', 'ɛj', 'ɔj', 'i:', 't∫', 'ɪə', 'ʷă', 'ɜ:', 'tʰ', 'dʒ', 'ew', 'ʊə', 'ɯə', 'aw', '3', 'θ', 'v', 'ʊ', 'ʤ', 'ɔ', '1', 'ʧ', 'ʈ', ' ', 'd', 'i', 'ɣ', 'ɲ', 'ɤ', '?', 'ɪ', 'l', '.', 'j', ':', 't', 'ʒ', 'ə', 'ʌ', 'm', '!', '∫', 'ð', 'u', 'e', 'w', 'p', 'ʃ', 'æ', "'", 'h', 'o', 'k', '5', 'g', '4', 'n', ';', 'r', 'b', 'ɯ', 'a', 's', 'ʐ', 'η', 'ŋ', 'ɒ', 'ʂ', '_', 'f', ',', 'ɛ', 'z', '6', '2', 'x', 'ă'] listParse.sort(reverse = True,key=len) output="" skip=0 for ic,char in enumerate(text): #print(char,skip) check = 0 if skip>0: skip=skip-1 continue for l in listParse: if len(l) <= len(text[ic:]) and l == text[ic:ic+len(l)]: output+=delimit+l check =1 skip=len(l)-1 break if check == 0: #Case symbol not in list if str(char) in ["ˈ","ˌ","*"]: continue print("this is not in symbol :"+ char+":") output+=delimit+undefine_symbol return output.rstrip()+delimit #print("Parsing",Parsing("default","iu iu","|")) def getSymbol(): for s in SET: DICT.update(s) list_phoneme=DICT.values() list_phoneme=list(list_phoneme) English_phoneme=["p","b","t","d","t∫","dʒ","k","g","f","v","ð","θ","s","z","∫","ʒ","m","n","η","l","r","w","j","ɪ","i:","ʊ","u:","e","ə","ɜ:","ɒ","ɔ:","æ","ʌ","ɑ:","ɪə","ʊə","eə","eɪ","ɔɪ","aɪ","əʊ","aʊ",'ʃ',"ʤ","ʧ"] Special=['jw', 'ŋw', 'bw', 'vw', 'dw', 'eo', 'ʈw', 'mw', 'zw', 'fw', 'tw', 'tʰw', 'ɲw', 'cw', 'ʂw', 'ɣw', 'ʐw', 'xw', 'lw', 'hw', 'nw', 'sw', 'c'] word_pad = ["_"] space = [" "] tone=["1","2","3","4","5","6"] punctuation = [".",",","!",":","?",";","'"] #" ' ( ) Have been removed due to none sound modifi = ["k͡p","ŋ͡m"] symbols = list_phoneme + space+word_pad + English_phoneme + punctuation + tone + modifi + Special symbols = list(set(symbols)) symbols.sort(reverse = True,key=len) return symbols def vi2IPA_pitrain(text): epi = epitran.Epitran('vie-Latn') r=epi.transliterate(text) return r def T2IPA_split(text,delimit): sys.path.append('./Rules') # make sure we can find the Rules files #Setup option glottal = 0 pham = 0 cao = 0 palatals = 0 tokenize = 0 dialect='n' #"c""s" tone_type=0 if tone_type==0: pham=1 else: cao=1 #Input text line = text if line =='\n': return "" else: compound = u'' ortho = u'' words = line.split() ## toss len==0 junk words = [word for word in words if len(word)>0] ## hack to get rid of single hyphens or underscores words = [word for word in words if word!=u'-'] words = [word for word in words if word!=u'_'] for i in range(0,len(words)): word = words[i].strip() ortho += word word = word.strip(punctuation).lower() ## 29.03.16: check if tokenize is true ## if true, call this routine for each substring ## and re-concatenate if (tokenize and '-' in word) or (tokenize and '_' in word): substrings = re.split(r'(_|-)', word) values = substrings[::2] delimiters = substrings[1::2] + [''] ipa = [convert(x, dialect, glottal, pham, cao, palatals, delimit).strip() for x in values] seq = ''.join(v+d for v,d in zip(ipa, delimiters)) else: seq = convert(word, dialect, glottal, pham, cao, palatals, delimit).strip() # concatenate if len(words) >= 2: ortho += ' ' if i < len(words)-1: seq = seq+u' ' compound = compound + seq return compound def T2IPA(text): sys.path.append('./Rules') # make sure we can find the Rules files #Setup option glottal = 0 pham = 0 cao = 0 palatals = 0 tokenize = 0 delimit = '' dialect='n' #"c""s" tone_type=0 if tone_type==0: pham=1 else: cao=1 #Input text line = text if line =='\n': return "" else: compound = u'' ortho = u'' words = line.split() ## toss len==0 junk words = [word for word in words if len(word)>0] ## hack to get rid of single hyphens or underscores words = [word for word in words if word!=u'-'] words = [word for word in words if word!=u'_'] for i in range(0,len(words)): word = words[i].strip() ortho += word word = word.strip(punctuation).lower() ## 29.03.16: check if tokenize is true ## if true, call this routine for each substring ## and re-concatenate if (tokenize and '-' in word) or (tokenize and '_' in word): substrings = re.split(r'(_|-)', word) values = substrings[::2] delimiters = substrings[1::2] + [''] ipa = [convert(x, dialect, glottal, pham, cao, palatals, delimit).strip() for x in values] seq = ''.join(v+d for v,d in zip(ipa, delimiters)) else: seq = convert(word, dialect, glottal, pham, cao, palatals, delimit).strip() # concatenate if len(words) >= 2: ortho += ' ' if i < len(words)-1: seq = seq+u' ' compound = compound + seq return compound EN={"a":"ây","ă":"á","â":"ớ","b":"bi","c":"si","d":"đi","đ":"đê","e":"i","ê":"ê","f":"ép","g":"giy","h":"ếch","i":"ai","j":"giây","k":"cây","l":"eo","m":"em","n":"en","o":"âu","ô":"ô","ơ":"ơ","p":"pi","q":"kiu","r":"a","s":"ét","t":"ti","u":"diu","ư":"ư","v":"vi","w":"đắp liu","x":"ít","y":"quai","z":"giét"} import re def vi2IPA_split(texts,delimit): content=[] with open("Popular.txt",encoding="utf-8") as f: content=f.read().splitlines() tess = texts.split(".") Results ="" for text in tess: print("------------------------------------------------------") TN= TTSnorm(text) print("------------------------------------------------------") print("Text normalize: ",TN) TK= word_tokenize(TN) print("Vietnamese Tokenize: ",TK) for iuv,under_valid in enumerate(TK): token_under=under_valid.split(" ") checkinvalid=0 print(token_under) if len(token_under) >1: for tok in token_under: if tok not in content or "[" in T2IPA(tok): checkinvalid=1 if checkinvalid==1: TK = TK[:iuv] + TK[iuv+1 :] for tok in reversed(token_under): TK.insert(iuv, tok) IPA="" for tk in TK: ipa = T2IPA_split(tk,delimit).replace(" ","_") if ipa =="": IPA+=delimit+tk+delimit+" " elif ipa[0]=="[" and ipa[-1]=="]": eng = eng_to_ipa.convert(tk) if eng[-1] == "*": if tk.lower().upper() == tk: #print("ENGLISH",tk) #Đọc tiếng anh từng chữ letter2sound="" for char in tk: CHAR = str(char).lower() if CHAR in list(EN.keys()): letter2sound+=EN[CHAR]+" " else: letter2sound+=char+" " IPA+=T2IPA_split(letter2sound,delimit)+" " else: #Giữ nguyên IPA+=Parsing("default",tk.lower(),delimit)+" " else: IPA+=Parsing("default",eng,delimit)+" " #Check tu dien tieng anh Etrain bưc #Neu co Mapping #Neu khong, check co nguyen am #Neu co de nguyen #Neu khong danh van print(" ..................Out of domain word: " ,ipa) else: IPA+=ipa+" " IPA=re.sub(delimit+'+', delimit, IPA) IPA=re.sub(' +', ' ', IPA) print("IPA Vietnamese: ",IPA) print("------------------------------------------------------") Results+= IPA.rstrip()+" "+delimit+"."+delimit+" " #For checking: need much memory ''' check_sym="ɯəjɤ̆jʷiəɤ̆wɯəwʷetiəwuəjʷentʰwʷɤ̆ʷiukwiŋ͡mk͡pcwjwuəeəbwojʷivwăwʈwʂwaʊfwɛutʰtʃɔɪxwʷɤɤ̆ŋwʊəziʷădweɪaɪewiəɣwzwɯjʷɛɯwɤjɔ:əʊʷamwɑ:hwɔjujlwɪəăju:awɛjiwajɜ:kwnwt∫ɲweoswtwʐwiɛʷei:ɯədʒɲθʌlw1ɪɯd∫pəuo3ɣ!ðʧ6ʒʐzvgă_æɤ2ʤi.ɒbhnʂɔɛkm5cjxʈ,4ʊsŋaʃ?r:ηf;et'" for ine,res in enumerate(Results): if res not in check_sym: Results[ine]="'" ''' return Results.rstrip() def vi2IPA(text): print("------------------------------------------------------") TN= TTSnorm(text) print("------------------------------------------------------") print("Text normalize: ",TN) TK= word_tokenize(TN) print("Vietnamese Tokenize: ",TK) IPA="" for tk in TK: ipa = T2IPA(tk).replace(" ","_") if ipa =="": IPA+=tk+" " elif ipa[0]=="[" and ipa[-1]=="]": eng = eng_to_ipa.convert(tk) if eng[-1] == "*": if tk.lower().upper() == tk: #Đọc tiếng anh từng chữ letter2sound="" for char in tk: CHAR = str(char).lower() if CHAR in list(EN.keys()): letter2sound+=EN[CHAR]+" " else: letter2sound+=char+" " IPA+=T2IPA_split(letter2sound,"")+" " else: #Giữ nguyên IPA+=Parsing("default",tk,"")+" " else: IPA+=eng+" " #Check tu dien tieng anh Etrain bưc #Neu co Mapping #Neu khong, check co nguyen am #Neu co de nguyen #Neu khong danh van print(" ..................Out of domain word: " ,ipa) else: IPA+=ipa+" " IPA=re.sub(' +', ' ', IPA) print("IPA Vietnamese: ",IPA) print("------------------------------------------------------") return IPA def checkDict(): cout=0 trung=0 List_token=[] List_pair = [] with open("Popular.txt", encoding="utf-8") as f: content=f.read().splitlines() for line in content: #nor_tr = vi2IPA_pitrain(line) #nor = vi2IPA(line) nor = T2IPA(line) if nor in List_token: print(line + " -> "+nor) trung +=1 List_pair.append(line) List_token.append(nor) if nor=="": cout+=1 print(line) print("Number of token can not convert: ",cout) print("Number of token in the same mapping:",trung) List_token = list(set(List_token)) #print(List_token) print(len(List_token)) ################################ #Looking for pair Pair = {} for lt in List_pair: Pair[T2IPA(lt)] = lt cout_same=0 with open("Popular.txt", encoding="utf-8") as f: content=f.read().splitlines() for line in content: if T2IPA(line) in Pair: lin2 =Pair[T2IPA(line)] if line != lin2: if (lin2[0]=="k" and line[0]=="c") or (lin2[-1] in ['i','í','ì','ĩ','ỉ','ị'] and line[-1] in ['y','ý','ỳ','ỷ','ỹ','ỵ']) or (lin2[-1] in ['y','ý','ỳ','ỷ','ỹ','ỵ'] and line[-1] in ['i','í','ì','ĩ','ỉ','ị']): continue cout_same+=1 print(line+ " <-> " + lin2 +"\t\t:\t\t"+T2IPA(line)) print("Same pair:" , cout_same) #Các trường hợp dẫn đến trùng âm là: # Phương ngữ khác nhau đã thống nhất ở list custom # Các trường hợp có cách bỏ dấu khác nhau đều gộp chung làm một #Disable convert from 'ɲ' to 'ɲ'' in north #Các âm vòng ở đây i chang không vòm: không có w ở trước như: "oa,ua,a" đều như một > must consider (nhưng nếu thêm vào ảnh hưởng chữ qu cũng ra w) #Try to add ʷ to all start o and u as in wiki # *** Problem with ủy onglide and off-glide is a big problem #Same positive #k <-> c #g <-> gh #i <-> y #Same negative / need to fix #oe <-> uê -> fix oe from e to ɛ #âm cuối: ch : k theo bắc : t theo nam -> custom k vì nó giảm trùng nhiều hơn 241->153 case #Tuy nhiên cuối cùng "ch" "c" "t" không phân âm được => ý tưởng mượn "tʃ" trong teach and watch để thay thế => k for c , t for t, tʃ for ch #Thay offglide: úy -> wi để phân biệt với úi #Remain ''' di <-> gi : zi1 dìm <-> gìm : zim2 din <-> gin : zin1 díp <-> gíp : zip5 gen <-> ghen : ɣɛn1 ghì <-> gì : ɣi2 ghích <-> gích : ɣitʃ5 ia <-> iê : iə1 iêu <-> yêu : iəw1 khoắng <-> khuắng : xwʷăŋ5 khỏe <-> khoẻ : xwʷɛ4 khua <-> khuơ : xuə1 lóe <-> loé : lwʷɛ5 ngét <-> nghét : ŋɛt5 ngễu <-> nghễu : ŋɛu3 nghía <-> ngía : ŋiə5 nghịu <-> ngịu : ŋiw6 nghoèo <-> ngoèo : ŋwew2 quít <-> quýt : kwit5 thủa <-> thuở : tʰuə4 tòe <-> toè : twʷɛ2 ua <-> uơ : uə1 ưa <-> ươ : ɯə1 xõa <-> xoã : swʷa3 ''' #Ở đây tiết kiệm chi phí chạy máy không normal phoneme về cường độ âm sắc chỉ dừng từ 1->6 #học ác cho kết quả "c" khác nhau ################################################### checkDict() #print(vi2IPA_split("!Singapo english? đại học là IUYE gì khôngtontaij NIYE BoOK","'")) #check các ipa của tiếng anh #print(vi2IPA_split("Another table was prepared to show available onsets. Onsets are splitted into 3 types. Type 1 are onsets which has one letter ","/")) #Lọc bỏ dấu nhấn của tiếng anh "'" #print(vi2IPA_split("speech? Secondly, we paper, we investigate work! One is that e language to another by","/").replace("/","")) #Case need to be deal: # NIYE BoOK #print(len(getSymbol())) #print(getSymbol()) ''' test="t" if test in syms: print(test) else: print("none") ''' ################################################### #Step #Vinorm #Underthesea #For each Convert to phoneme #Nếu không được check phoneme tiếng anh #Nếu không có trong từ tiếng anh -> đọc từng kí tự #Now #+Thêm kí tự IPA của tiếng ANH #+Thêm xử lí case không có cũng như case Tiếng anh: => dùng etrain cho tiếng anh #+Deal case thống nhất âm vực phoneme -> ok #+Get lại bộ symbol
56.243061
821
0.384759
13,324
66,873
1.927424
0.088862
0.012305
0.013434
0.007476
0.675207
0.659748
0.648923
0.639773
0.630894
0.619057
0
0.025229
0.320144
66,873
1,189
822
56.243061
0.536314
0.08552
0
0.582192
0
0
0.177649
0.006335
0
0
0
0
0
1
0.011416
false
0.001142
0.009132
0
0.034247
0.026256
0
0
1
null
0
0
0
0
0
0
0
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
2
d49d9d1e84095417ae691e1ba67e4e09f88e34fb
505
py
Python
taskengine/sessions.py
retmas-dv/deftcore
23052549e8948bbedfb958a96683b84b46820b09
[ "Apache-2.0" ]
null
null
null
taskengine/sessions.py
retmas-dv/deftcore
23052549e8948bbedfb958a96683b84b46820b09
[ "Apache-2.0" ]
9
2019-05-24T08:10:59.000Z
2020-07-23T13:20:35.000Z
taskengine/sessions.py
retmas-dv/deftcore
23052549e8948bbedfb958a96683b84b46820b09
[ "Apache-2.0" ]
null
null
null
__author__ = 'Dmitry Golubkov' from django.contrib.sessions.base_session import AbstractBaseSession from django.contrib.sessions.backends.db import SessionStore as DBStore class CustomSession(AbstractBaseSession): @classmethod def get_session_store_class(cls): return SessionStore class Meta: db_name = 'deft_adcr' db_table = '"ATLAS_DEFT"."DJANGO_SESSION"' class SessionStore(DBStore): @classmethod def get_model_class(cls): return CustomSession
24.047619
71
0.742574
56
505
6.428571
0.553571
0.055556
0.094444
0.138889
0
0
0
0
0
0
0
0
0.186139
505
20
72
25.25
0.875912
0
0
0.142857
0
0
0.104951
0.057426
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.642857
0
0
0
0
null
0
0
0
0
0
0
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
0
0
1
1
0
0
2
d4a110091d70cdb8869da346b91adb821033a70e
102,577
py
Python
pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-TRUSTSEC-POLICY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-TRUSTSEC-POLICY-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:14:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") Cisco2KVlanList, CiscoVrfName = mibBuilder.importSymbols("CISCO-TC", "Cisco2KVlanList", "CiscoVrfName") CtsAclNameOrEmpty, CtsAclList, CtsGenerationId, CtsAclName, CtsAclListOrEmpty, CtsSgaclMonitorMode, CtsSecurityGroupTag = mibBuilder.importSymbols("CISCO-TRUSTSEC-TC-MIB", "CtsAclNameOrEmpty", "CtsAclList", "CtsGenerationId", "CtsAclName", "CtsAclListOrEmpty", "CtsSgaclMonitorMode", "CtsSecurityGroupTag") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") InetAddressType, InetAddress, InetAddressPrefixLength = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress", "InetAddressPrefixLength") VlanIndex, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanIndex") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") Counter32, Unsigned32, Bits, ObjectIdentity, iso, Counter64, Gauge32, Integer32, TimeTicks, MibIdentifier, ModuleIdentity, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Unsigned32", "Bits", "ObjectIdentity", "iso", "Counter64", "Gauge32", "Integer32", "TimeTicks", "MibIdentifier", "ModuleIdentity", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress") DisplayString, StorageType, TruthValue, RowStatus, DateAndTime, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "StorageType", "TruthValue", "RowStatus", "DateAndTime", "TextualConvention") ciscoTrustSecPolicyMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 713)) ciscoTrustSecPolicyMIB.setRevisions(('2012-12-19 00:00', '2009-11-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoTrustSecPolicyMIB.setRevisionsDescriptions(('Added following OBJECT-GROUP: - ctspNotifCtrlGroup - ctspNotifGroup - ctspNotifInfoGroup - ctspIfSgtMappingGroup - ctspVlanSgtMappingGroup - ctspSgtCachingGroup - ctspSgaclMonitorGroup - ctspSgaclMonitorStatisticGroup Added new compliance - ciscoTrustSecPolicyMIBCompliances Modified ctspIpSgtSource to add l3if(6), vlan(7), caching(8).', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: ciscoTrustSecPolicyMIB.setLastUpdated('201212190000Z') if mibBuilder.loadTexts: ciscoTrustSecPolicyMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoTrustSecPolicyMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoTrustSecPolicyMIB.setDescription('This MIB module defines managed objects that facilitate the management of various policies within the Cisco Trusted Security (TrustSec) infrastructure. The information available through this MIB includes: o Device and interface level configuration for enabling SGACL (Security Group Access Control List) enforcement on Layer2/3 traffic. o Administrative and operational SGACL mapping to Security Group Tag (SGT). o Various statistics counters for traffic subject to SGACL enforcement. o TrustSec policies with respect to peer device. o Interface level configuration for enabling the propagation of SGT along with the Layer 3 traffic in portions of network which does not have the capability to support TrustSec feature. o TrustSec policies with respect to SGT propagation with Layer 3 traffic. The following terms are used throughout this MIB: VRF: Virtual Routing and Forwarding. SGACL: Security Group Access Control List. ACE: Access Control Entries. SXP: SGT Propagation Protocol. SVI: Switch Virtual Interface. IPM: Identity Port Mapping. SGT (Security Group Tag) is a unique 16 bits value assigned to every security group and used by network devices to enforce SGACL. Peer is another device connected to the local device on the other side of a TrustSec link. Default Policy: Policy applied to traffic when there is no explicit policy between the SGT associated with the originator of the traffic and the SGT associated with the destination of the traffic.') ciscoTrustSecPolicyMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 0)) ciscoTrustSecPolicyMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1)) ciscoTrustSecPolicyMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 2)) ctspSgacl = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1)) ctspPeerPolicy = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2)) ctspLayer3Transport = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3)) ctspIpSgtMappings = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4)) ctspSgtPolicy = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5)) ctspIfSgtMappings = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6)) ctspVlanSgtMappings = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 7)) ctspSgtCaching = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 8)) ctspNotifsControl = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 9)) ctspNotifsOnlyInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 10)) ctspSgaclGlobals = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1)) ctspSgaclMappings = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2)) ctspSgaclStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3)) ctspSgaclEnforcementEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("l3Only", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspSgaclEnforcementEnable.setStatus('current') if mibBuilder.loadTexts: ctspSgaclEnforcementEnable.setDescription("This object specifies whether SGACL enforcement for all Layer 3 interfaces (excluding SVIs) is enabled at the managed system. 'none' indicates that SGACL enforcement for all Layer 3 interfaces (excluding SVIs) is disabled. 'l3Only' indicates that SGACL enforcement is enabled on every TrustSec capable Layer3 interface (excluding SVIs) in the device.") ctspSgaclIpv4DropNetflowMonitor = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 2), SnmpAdminString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspSgaclIpv4DropNetflowMonitor.setStatus('current') if mibBuilder.loadTexts: ctspSgaclIpv4DropNetflowMonitor.setDescription('This object specifies an existing flexible netflow monitor name used to collect and export the IPv4 traffic dropped packets statistics due to SGACL enforcement. The zero-length string indicates that no such netflow monitor is configured in the device.') ctspSgaclIpv6DropNetflowMonitor = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 3), SnmpAdminString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspSgaclIpv6DropNetflowMonitor.setStatus('current') if mibBuilder.loadTexts: ctspSgaclIpv6DropNetflowMonitor.setDescription('This object specifies an existing flexible netflow monitor name used to collect and export the IPv6 traffic dropped packets statistics due to SGACL enforcement. The zero-length string indicates that no such netflow monitor is configured in the device.') ctspVlanConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4), ) if mibBuilder.loadTexts: ctspVlanConfigTable.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigTable.setDescription('This table lists the SGACL enforcement for Layer 2 and Layer 3 switched packet in a VLAN as well as VRF information for VLANs in the device.') ctspVlanConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanConfigIndex")) if mibBuilder.loadTexts: ctspVlanConfigEntry.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigEntry.setDescription('Each row contains the SGACL enforcement information for Layer 2 and Layer 3 switched packets in a VLAN identified by its VlanIndex value. Entry in this table is populated for VLANs which contains SGACL enforcement or VRF configuration.') ctspVlanConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4, 1, 1), VlanIndex()) if mibBuilder.loadTexts: ctspVlanConfigIndex.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigIndex.setDescription('This object indicates the VLAN-ID of this VLAN.') ctspVlanConfigSgaclEnforcement = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4, 1, 2), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspVlanConfigSgaclEnforcement.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigSgaclEnforcement.setDescription("This object specifies the configured SGACL enforcement status for this VLAN i.e., 'true' = enabled and 'false' = disabled.") ctspVlanSviActive = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4, 1, 3), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspVlanSviActive.setStatus('current') if mibBuilder.loadTexts: ctspVlanSviActive.setDescription("This object indicates if there is an active SVI associated with this VLAN. 'true' indicates that there is an active SVI associated with this VLAN. and SGACL is enforced for both Layer 2 and Layer 3 switched packets within that VLAN. 'false' indicates that there is no active SVI associated with this VLAN, and SGACL is only enforced for Layer 2 switched packets within that VLAN.") ctspVlanConfigVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4, 1, 4), CiscoVrfName()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspVlanConfigVrfName.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigVrfName.setDescription('This object specifies an existing VRF where this VLAN belongs to. The zero length value indicates this VLAN belongs to the default VRF.') ctspVlanConfigStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4, 1, 5), StorageType().clone('volatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspVlanConfigStorageType.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigStorageType.setDescription('The objects specifies the storage type for this conceptual row.') ctspVlanConfigRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 1, 4, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspVlanConfigRowStatus.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigRowStatus.setDescription("The status of this conceptual row entry. This object is used to manage creation and deletion of rows in this table. When this object value is 'active', other writable objects in the same row cannot be modified.") ctspConfigSgaclMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1), ) if mibBuilder.loadTexts: ctspConfigSgaclMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingTable.setDescription('This table contains the SGACLs information which is applied to unicast IP traffic which carries a source SGT and travels to a destination SGT.') ctspConfigSgaclMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingIpTrafficType"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingDestSgt"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingSourceSgt")) if mibBuilder.loadTexts: ctspConfigSgaclMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingEntry.setDescription('Each row contains the SGACL mapping to source and destination SGT for a certain traffic type as well as status of this instance. A row instance can be created or removed by setting the appropriate value of its RowStatus object.') ctspConfigSgaclMappingIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ipv4", 1), ("ipv6", 2)))) if mibBuilder.loadTexts: ctspConfigSgaclMappingIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingIpTrafficType.setDescription('This object indicates the type of the unicast IP traffic carrying the source SGT and travelling to destination SGT and subjected to SGACL enforcement.') ctspConfigSgaclMappingDestSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1, 2), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspConfigSgaclMappingDestSgt.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingDestSgt.setDescription('This object indicates the destination SGT value. Value of zero indicates that the destination SGT is unknown.') ctspConfigSgaclMappingSourceSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1, 3), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspConfigSgaclMappingSourceSgt.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingSourceSgt.setDescription('This object indicates the source SGT value. Value of zero indicates that the source SGT is unknown.') ctspConfigSgaclMappingSgaclName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1, 4), CtsAclList()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspConfigSgaclMappingSgaclName.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingSgaclName.setDescription('This object specifies the list of existing SGACLs which is administratively configured to apply to unicast IP traffic carrying the source SGT to the destination SGT.') ctspConfigSgaclMappingStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1, 5), StorageType().clone('volatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspConfigSgaclMappingStorageType.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingStorageType.setDescription('The storage type for this conceptual row.') ctspConfigSgaclMappingRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspConfigSgaclMappingRowStatus.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingRowStatus.setDescription('This object is used to manage the creation and deletion of rows in this table. ctspConfigSgaclName may be modified at any time.') ctspConfigSgaclMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 1, 1, 7), CtsSgaclMonitorMode().clone('off')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspConfigSgaclMonitor.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMonitor.setDescription('This object specifies whether SGACL monitor mode is turned on for the configured SGACL enforced traffic.') ctspDefConfigIpv4Sgacls = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 2), CtsAclListOrEmpty()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspDefConfigIpv4Sgacls.setStatus('current') if mibBuilder.loadTexts: ctspDefConfigIpv4Sgacls.setDescription('This object specifies the SGACLs of the unicast default policy for IPv4 traffic. If there is no SGACL configured for unicast default policy for IPv4 traffic, the value of this object is the zero-length string.') ctspDefConfigIpv6Sgacls = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 3), CtsAclListOrEmpty()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspDefConfigIpv6Sgacls.setStatus('current') if mibBuilder.loadTexts: ctspDefConfigIpv6Sgacls.setDescription('This object specifies the SGACLs of the unicast default policy for IPv6 traffic. If there is no SGACL configured for unicast default policy for IPv6 traffic, the value of this object is the zero-length string.') ctspDownloadedSgaclMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4), ) if mibBuilder.loadTexts: ctspDownloadedSgaclMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclMappingTable.setDescription('This table contains the downloaded SGACLs information applied to unicast IP traffic which carries a source SGT and travels to a destination SGT.') ctspDownloadedSgaclMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclDestSgt"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclSourceSgt"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclIndex")) if mibBuilder.loadTexts: ctspDownloadedSgaclMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclMappingEntry.setDescription('Each row contains the downloaded SGACLs mapping. A row instance is added for each pair of <source SGT, destination SGT> which contains SGACL that is dynamically downloaded from ACS server.') ctspDownloadedSgaclDestSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1, 1), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspDownloadedSgaclDestSgt.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclDestSgt.setDescription('This object indicates the destination SGT value. Value of zero indicates that the destination SGT is unknown.') ctspDownloadedSgaclSourceSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1, 2), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspDownloadedSgaclSourceSgt.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclSourceSgt.setDescription('This object indicates the source SGT value. Value of zero indicates that the source SGT is unknown.') ctspDownloadedSgaclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: ctspDownloadedSgaclIndex.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclIndex.setDescription('This object identifies the downloaded SGACL which is applied to unicast IP traffic carrying the source SGT to the destination SGT.') ctspDownloadedSgaclName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1, 4), CtsAclName()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedSgaclName.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclName.setDescription('This object indicates the name of downloaded SGACL which is applied to unicast IP traffic carrying the source SGT to the destination SGT.') ctspDownloadedSgaclGenId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1, 5), CtsGenerationId()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedSgaclGenId.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclGenId.setDescription('This object indicates the generation identification of downloaded SGACL which is applied to unicast IP traffic carrying the source SGT to the destination SGT.') ctspDownloadedIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1, 6), Bits().clone(namedValues=NamedValues(("ipv4", 0), ("ipv6", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedIpTrafficType.setDescription('This object indicates the type of the unicast IP traffic carrying the source SGT and travelling to destination SGT and subjected to SGACL enforcement by this downloaded default policy.') ctspDownloadedSgaclMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 4, 1, 7), CtsSgaclMonitorMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedSgaclMonitor.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclMonitor.setDescription('This object indicates whether SGACL monitor mode is turned on for the downloaded SGACL enforced traffic.') ctspDefDownloadedSgaclMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 5), ) if mibBuilder.loadTexts: ctspDefDownloadedSgaclMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspDefDownloadedSgaclMappingTable.setDescription('This table contains the downloaded SGACLs information of the default policy applied to unicast IP traffic.') ctspDefDownloadedSgaclMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 5, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDefDownloadedSgaclIndex")) if mibBuilder.loadTexts: ctspDefDownloadedSgaclMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspDefDownloadedSgaclMappingEntry.setDescription('Each row contains the downloaded SGACLs mapping. A row instance contains the SGACL information of the default policy dynamically downloaded from ACS server for unicast IP traffic.') ctspDefDownloadedSgaclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: ctspDefDownloadedSgaclIndex.setStatus('current') if mibBuilder.loadTexts: ctspDefDownloadedSgaclIndex.setDescription('This object identifies the SGACL of downloaded default policy applied to unicast IP traffic.') ctspDefDownloadedSgaclName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 5, 1, 2), CtsAclName()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefDownloadedSgaclName.setStatus('current') if mibBuilder.loadTexts: ctspDefDownloadedSgaclName.setDescription('This object indicates the name of the SGACL of downloaded default policy applied to unicast IP traffic.') ctspDefDownloadedSgaclGenId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 5, 1, 3), CtsGenerationId()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefDownloadedSgaclGenId.setStatus('current') if mibBuilder.loadTexts: ctspDefDownloadedSgaclGenId.setDescription('This object indicates the generation identification of the SGACL of downloaded default policy applied to unicast IP traffic.') ctspDefDownloadedIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 5, 1, 4), Bits().clone(namedValues=NamedValues(("ipv4", 0), ("ipv6", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefDownloadedIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspDefDownloadedIpTrafficType.setDescription('This object indicates the type of the IP traffic subjected to SGACL enforcement by this downloaded default policy.') ctspDefDownloadedSgaclMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 5, 1, 5), CtsSgaclMonitorMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefDownloadedSgaclMonitor.setStatus('current') if mibBuilder.loadTexts: ctspDefDownloadedSgaclMonitor.setDescription('This object indicates whether SGACL monitor mode is turned on for the default downloaded SGACL enforced traffic.') ctspOperSgaclMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6), ) if mibBuilder.loadTexts: ctspOperSgaclMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclMappingTable.setDescription('This table contains the operational SGACLs information applied to unicast IP traffic which carries a source SGT and travels to a destination SGT.') ctspOperSgaclMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspOperIpTrafficType"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclDestSgt"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclSourceSgt"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclIndex")) if mibBuilder.loadTexts: ctspOperSgaclMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclMappingEntry.setDescription('Each row contains the operational SGACLs mapping. A row instance is added for each pair of <source SGT, destination SGT> which contains the SGACL that either statically configured at the device or dynamically downloaded from ACS server.') ctspOperIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ipv4", 1), ("ipv6", 2)))) if mibBuilder.loadTexts: ctspOperIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspOperIpTrafficType.setDescription('This object indicates the type of the unicast IP traffic carrying the source SGT and travelling to destination SGT and subjected to SGACL enforcement.') ctspOperSgaclDestSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 2), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspOperSgaclDestSgt.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclDestSgt.setDescription('This object indicates the destination SGT value. Value of zero indicates that the destination SGT is unknown.') ctspOperSgaclSourceSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 3), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspOperSgaclSourceSgt.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclSourceSgt.setDescription('This object indicates the source SGT value. Value of zero indicates that the source SGT is unknown.') ctspOperSgaclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: ctspOperSgaclIndex.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclIndex.setDescription('This object identifies the SGACL operationally applied to unicast IP traffic carrying the source SGT to the destination SGT.') ctspOperationalSgaclName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 5), CtsAclName()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspOperationalSgaclName.setStatus('current') if mibBuilder.loadTexts: ctspOperationalSgaclName.setDescription('This object indicates the name of the SGACL operationally applied to unicast IP traffic carrying the source SGT to the destination SGT.') ctspOperationalSgaclGenId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 6), CtsGenerationId()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspOperationalSgaclGenId.setStatus('current') if mibBuilder.loadTexts: ctspOperationalSgaclGenId.setDescription('This object indicates the generation identification of the SGACL operationally applied to unicast IP traffic carrying the source SGT to the destination SGT.') ctspOperSgaclMappingSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configured", 1), ("downloaded", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspOperSgaclMappingSource.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclMappingSource.setDescription("This object indicates the source of SGACL mapping for the SGACL operationally applied to unicast IP traffic carrying the source SGT to the destination SGT. 'downloaded' indicates that the mapping is downloaded from ACS server. 'configured' indicates that the mapping is locally configured in the device.") ctspOperSgaclConfigSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configured", 1), ("downloaded", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspOperSgaclConfigSource.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclConfigSource.setDescription("This object indicates the source of SGACL creation for this SGACL. 'configured' indicates that the SGACL is locally configured in the local device. 'downloaded' indicates that the SGACL is created at ACS server and downloaded to the local device.") ctspOperSgaclMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 6, 1, 9), CtsSgaclMonitorMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspOperSgaclMonitor.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclMonitor.setDescription('This object indicates whether SGACL monitor mode is turned on for the SGACL enforced traffic.') ctspDefOperSgaclMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7), ) if mibBuilder.loadTexts: ctspDefOperSgaclMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspDefOperSgaclMappingTable.setDescription('This table contains the operational SGACLs information of the default policy applied to unicast IP traffic.') ctspDefOperSgaclMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDefOperIpTrafficType"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDefOperSgaclIndex")) if mibBuilder.loadTexts: ctspDefOperSgaclMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspDefOperSgaclMappingEntry.setDescription('A row instance contains the SGACL information of the default policy which is either statically configured at the device or dynamically downloaded from ACS server for unicast IP traffic.') ctspDefOperIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ipv4", 1), ("ipv6", 2)))) if mibBuilder.loadTexts: ctspDefOperIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspDefOperIpTrafficType.setDescription('This object indicates the type of the unicast IP traffic subjected to default policy enforcement.') ctspDefOperSgaclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: ctspDefOperSgaclIndex.setStatus('current') if mibBuilder.loadTexts: ctspDefOperSgaclIndex.setDescription('This object identifies the SGACL of default policy operationally applied to unicast IP traffic.') ctspDefOperationalSgaclName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1, 3), CtsAclName()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefOperationalSgaclName.setStatus('current') if mibBuilder.loadTexts: ctspDefOperationalSgaclName.setDescription('This object indicates the name of the SGACL of default policy operationally applied to unicast IP traffic.') ctspDefOperationalSgaclGenId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1, 4), CtsGenerationId()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefOperationalSgaclGenId.setStatus('current') if mibBuilder.loadTexts: ctspDefOperationalSgaclGenId.setDescription('This object indicates the generation identification of the SGACL of default policy operationally applied to unicast IP traffic.') ctspDefOperSgaclMappingSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configured", 1), ("downloaded", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefOperSgaclMappingSource.setStatus('current') if mibBuilder.loadTexts: ctspDefOperSgaclMappingSource.setDescription("This object indicates the source of SGACL mapping for the SGACL of default policy operationally applied to unicast IP traffic. 'downloaded' indicates that the mapping is downloaded from ACS server. 'configured' indicates that the mapping is locally configured in the device.") ctspDefOperSgaclConfigSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configured", 1), ("downloaded", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefOperSgaclConfigSource.setStatus('current') if mibBuilder.loadTexts: ctspDefOperSgaclConfigSource.setDescription("This object indicates the source of SGACL creation for the SGACL of default policy operationally applied to unicast IP traffic. 'downloaded' indicates that the SGACL is created at ACS server and downloaded to the local device. 'configured' indicates that the SGACL is locally configured in the local device.") ctspDefOperSgaclMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 7, 1, 7), CtsSgaclMonitorMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefOperSgaclMonitor.setStatus('current') if mibBuilder.loadTexts: ctspDefOperSgaclMonitor.setDescription('This object indicates whether SGACL monitor mode is turned on for the SGACL of default policy enforced traffic.') ctspDefConfigIpv4SgaclsMonitor = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 8), CtsSgaclMonitorMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspDefConfigIpv4SgaclsMonitor.setStatus('current') if mibBuilder.loadTexts: ctspDefConfigIpv4SgaclsMonitor.setDescription('This object specifies whether SGACL monitor mode is turned on for the default configured SGACL enforced Ipv4 traffic.') ctspDefConfigIpv6SgaclsMonitor = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 9), CtsSgaclMonitorMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspDefConfigIpv6SgaclsMonitor.setStatus('current') if mibBuilder.loadTexts: ctspDefConfigIpv6SgaclsMonitor.setDescription('This object specifies whether SGACL monitor mode is turned on for the default configured SGACL enforced Ipv6 traffic.') ctspSgaclMonitorEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 2, 10), CtsSgaclMonitorMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspSgaclMonitorEnable.setStatus('current') if mibBuilder.loadTexts: ctspSgaclMonitorEnable.setDescription('This object specifies whether SGACL monitor mode is turned on for the entire system. It has precedence than the per SGACL ctspConfigSgaclMonitor control. It could act as safety mechanism to turn off monitor in case the monitor feature impact system performance.') ctspSgtStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1), ) if mibBuilder.loadTexts: ctspSgtStatsTable.setStatus('current') if mibBuilder.loadTexts: ctspSgtStatsTable.setDescription('This table describes SGACL statistics counters per a pair of <source SGT, destination SGT> that is capable of providing this information.') ctspSgtStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsIpTrafficType"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsDestSgt"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsSourceSgt")) if mibBuilder.loadTexts: ctspSgtStatsEntry.setStatus('current') if mibBuilder.loadTexts: ctspSgtStatsEntry.setDescription('Each row contains the SGACL statistics related to IPv4 or IPv6 packets carrying the source SGT travelling to the destination SGT and subjected to SGACL enforcement.') ctspStatsIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ipv4", 1), ("ipv6", 2)))) if mibBuilder.loadTexts: ctspStatsIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspStatsIpTrafficType.setDescription('This object indicates the type of the unicast IP traffic carrying the source SGT and travelling to destination SGT and subjected to SGACL enforcement.') ctspStatsDestSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 2), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspStatsDestSgt.setStatus('current') if mibBuilder.loadTexts: ctspStatsDestSgt.setDescription('This object indicates the destination SGT value. Value of zero indicates that the destination SGT is unknown.') ctspStatsSourceSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 3), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspStatsSourceSgt.setStatus('current') if mibBuilder.loadTexts: ctspStatsSourceSgt.setDescription('This object indicates the source SGT value. Value of zero indicates that the source SGT is unknown.') ctspStatsIpSwDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspStatsIpSwDropPkts.setStatus('current') if mibBuilder.loadTexts: ctspStatsIpSwDropPkts.setDescription('This object indicates the number of software-forwarded IP packets which are dropped by SGACL.') ctspStatsIpHwDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspStatsIpHwDropPkts.setStatus('current') if mibBuilder.loadTexts: ctspStatsIpHwDropPkts.setDescription('This object indicates the number of hardware-forwarded IP packets which are dropped by SGACL.') ctspStatsIpSwPermitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspStatsIpSwPermitPkts.setStatus('current') if mibBuilder.loadTexts: ctspStatsIpSwPermitPkts.setDescription('This object indicates the number of software-forwarded IP packets which are permitted by SGACL.') ctspStatsIpHwPermitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspStatsIpHwPermitPkts.setStatus('current') if mibBuilder.loadTexts: ctspStatsIpHwPermitPkts.setDescription('This object indicates the number of hardware-forwarded IP packets which are permitted by SGACL.') ctspStatsIpSwMonitorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspStatsIpSwMonitorPkts.setStatus('current') if mibBuilder.loadTexts: ctspStatsIpSwMonitorPkts.setDescription('This object indicates the number of software-forwarded IP packets which are SGACL enforced & monitored.') ctspStatsIpHwMonitorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspStatsIpHwMonitorPkts.setStatus('current') if mibBuilder.loadTexts: ctspStatsIpHwMonitorPkts.setDescription('This object indicates the number of hardware-forwarded IP packets which are SGACL enforced & monitored.') ctspDefStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2), ) if mibBuilder.loadTexts: ctspDefStatsTable.setStatus('current') if mibBuilder.loadTexts: ctspDefStatsTable.setDescription('This table describes statistics counters for unicast IP traffic subjected to default unicast policy.') ctspDefStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDefIpTrafficType")) if mibBuilder.loadTexts: ctspDefStatsEntry.setStatus('current') if mibBuilder.loadTexts: ctspDefStatsEntry.setDescription('Each row contains the statistics counter for each IP traffic type.') ctspDefIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ipv4", 1), ("ipv6", 2)))) if mibBuilder.loadTexts: ctspDefIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspDefIpTrafficType.setDescription('This object indicates the type of the IP traffic subjected to default unicast policy enforcement.') ctspDefIpSwDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefIpSwDropPkts.setStatus('current') if mibBuilder.loadTexts: ctspDefIpSwDropPkts.setDescription('This object indicates the number of software-forwarded IP packets which are dropped by default unicast policy.') ctspDefIpHwDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefIpHwDropPkts.setStatus('current') if mibBuilder.loadTexts: ctspDefIpHwDropPkts.setDescription('This object indicates the number of hardware-forwarded IP packets which are dropped by default unicast policy.') ctspDefIpSwPermitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefIpSwPermitPkts.setStatus('current') if mibBuilder.loadTexts: ctspDefIpSwPermitPkts.setDescription('This object indicates the number of software-forwarded IP packets which are permitted by default unicast policy.') ctspDefIpHwPermitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefIpHwPermitPkts.setStatus('current') if mibBuilder.loadTexts: ctspDefIpHwPermitPkts.setDescription('This object indicates the number of hardware-forwarded IP packets which are permitted by default unicast policy.') ctspDefIpSwMonitorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefIpSwMonitorPkts.setStatus('current') if mibBuilder.loadTexts: ctspDefIpSwMonitorPkts.setDescription('This object indicates the number of software-forwarded IP packets which are monitored by default unicast policy.') ctspDefIpHwMonitorPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 1, 3, 2, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDefIpHwMonitorPkts.setStatus('current') if mibBuilder.loadTexts: ctspDefIpHwMonitorPkts.setDescription('This object indicates the number of hardware-forwarded IP packets which are monitored by default unicast policy.') ctspAllPeerPolicyAction = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("refresh", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspAllPeerPolicyAction.setStatus('current') if mibBuilder.loadTexts: ctspAllPeerPolicyAction.setDescription("This object allows user to specify the action to be taken with respect to all peer policies in the device. When read, this object always returns the value 'none'. 'none' - No operation. 'refresh' - Refresh all peer policies in the device.") ctspPeerPolicyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2), ) if mibBuilder.loadTexts: ctspPeerPolicyTable.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyTable.setDescription('This table lists the peer policy information for each peer device.') ctspPeerPolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1), ).setIndexNames((1, "CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerName")) if mibBuilder.loadTexts: ctspPeerPolicyEntry.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyEntry.setDescription('Each row contains the managed objects for peer policies for each peer device based on its name.') ctspPeerName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 128))) if mibBuilder.loadTexts: ctspPeerName.setStatus('current') if mibBuilder.loadTexts: ctspPeerName.setDescription('This object uniquely identifies a peer device.') ctspPeerSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1, 2), CtsSecurityGroupTag()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspPeerSgt.setStatus('current') if mibBuilder.loadTexts: ctspPeerSgt.setDescription('This object indicates the SGT value of this peer device.') ctspPeerSgtGenId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1, 3), CtsGenerationId()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspPeerSgtGenId.setStatus('current') if mibBuilder.loadTexts: ctspPeerSgtGenId.setDescription('This object indicates the generation identification of the SGT value assigned to this peer device.') ctspPeerTrustState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("trusted", 1), ("noTrust", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspPeerTrustState.setStatus('current') if mibBuilder.loadTexts: ctspPeerTrustState.setDescription("This object indicates the TrustSec trust state of this peer device. 'trusted' indicates that this is a trusted peer device. 'noTrust' indicates that this peer device is not trusted.") ctspPeerPolicyLifeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1, 5), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ctspPeerPolicyLifeTime.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyLifeTime.setDescription('This object indicates the policy life time which provides the time interval during which the peer policy is valid.') ctspPeerPolicyLastUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1, 6), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspPeerPolicyLastUpdate.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyLastUpdate.setDescription('This object indicates the time when this peer policy is last updated.') ctspPeerPolicyAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("refresh", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspPeerPolicyAction.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyAction.setDescription("This object allows user to specify the action to be taken with this peer policy. When read, this object always returns the value 'none'. 'none' - No operation. 'refresh' - Refresh this peer policy.") ctspLayer3PolicyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 1), ) if mibBuilder.loadTexts: ctspLayer3PolicyTable.setStatus('current') if mibBuilder.loadTexts: ctspLayer3PolicyTable.setDescription('This table describes Layer 3 transport policy for IP traffic regarding SGT propagation.') ctspLayer3PolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspLayer3PolicyIpTrafficType"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspLayer3PolicyType")) if mibBuilder.loadTexts: ctspLayer3PolicyEntry.setStatus('current') if mibBuilder.loadTexts: ctspLayer3PolicyEntry.setDescription('Each row contains the Layer 3 transport policies per IP traffic type per policy type.') ctspLayer3PolicyIpTrafficType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ipv4", 1), ("ipv6", 2)))) if mibBuilder.loadTexts: ctspLayer3PolicyIpTrafficType.setStatus('current') if mibBuilder.loadTexts: ctspLayer3PolicyIpTrafficType.setDescription("This object indicates the type of the IP traffic affected by Layer-3 transport policy. 'ipv4' indicates that the affected traffic is IPv4 traffic. 'ipv6' indicates that the affected traffic is IPv6 traffic.") ctspLayer3PolicyType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("permit", 1), ("exception", 2)))) if mibBuilder.loadTexts: ctspLayer3PolicyType.setStatus('current') if mibBuilder.loadTexts: ctspLayer3PolicyType.setDescription("This object indicates the type of the Layer-3 transport policy affecting IP traffic regarding SGT propagation. 'permit' indicates that the transport policy is used to classify Layer-3 traffic which is subject to SGT propagation. 'exception' indicates that the transport policy is used to classify Layer-3 traffic which is NOT subject to SGT propagation.") ctspLayer3PolicyLocalConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 1, 1, 3), CtsAclNameOrEmpty()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspLayer3PolicyLocalConfig.setStatus('current') if mibBuilder.loadTexts: ctspLayer3PolicyLocalConfig.setDescription('This object specifies the name of an ACL that is administratively configured to classify Layer3 traffic. Zero-length string indicates there is no such configured policy.') ctspLayer3PolicyDownloaded = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 1, 1, 4), CtsAclNameOrEmpty()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspLayer3PolicyDownloaded.setStatus('current') if mibBuilder.loadTexts: ctspLayer3PolicyDownloaded.setDescription('This object specifies the name of an ACL that is downloaded from policy server to classify Layer3 traffic. Zero-length string indicates there is no such downloaded policy.') ctspLayer3PolicyOperational = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 1, 1, 5), CtsAclNameOrEmpty()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspLayer3PolicyOperational.setStatus('current') if mibBuilder.loadTexts: ctspLayer3PolicyOperational.setDescription('This object specifies the name of an operational ACL currently used to classify Layer3 traffic. Zero-length string indicates there is no such policy in effect.') ctspIfL3PolicyConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 2), ) if mibBuilder.loadTexts: ctspIfL3PolicyConfigTable.setStatus('current') if mibBuilder.loadTexts: ctspIfL3PolicyConfigTable.setDescription('This table lists the interfaces which support Layer3 Transport policy.') ctspIfL3PolicyConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: ctspIfL3PolicyConfigEntry.setStatus('current') if mibBuilder.loadTexts: ctspIfL3PolicyConfigEntry.setDescription('Each row contains managed objects for Layer3 Transport on interface capable of providing this information.') ctspIfL3Ipv4PolicyEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 2, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspIfL3Ipv4PolicyEnabled.setStatus('current') if mibBuilder.loadTexts: ctspIfL3Ipv4PolicyEnabled.setDescription("This object specifies whether the Layer3 Transport policies will be applied on this interface for egress IPv4 traffic. 'true' indicates that Layer3 permit and exception policy will be applied at this interface for egress IPv4 traffic. 'false' indicates that Layer3 permit and exception policy will not be applied at this interface for egress IPv4 traffic.") ctspIfL3Ipv6PolicyEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 3, 2, 1, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspIfL3Ipv6PolicyEnabled.setStatus('current') if mibBuilder.loadTexts: ctspIfL3Ipv6PolicyEnabled.setDescription("This object specifies whether the Layer3 Transport policies will be applied on this interface for egress IPv6 traffic. 'true' indicates that Layer3 permit and exception policy will be applied at this interface for egress IPv6 traffic. 'false' indicates that Layer3 permit and exception policy will not be applied at this interface for egress IPv6 traffic.") ctspIpSgtMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1), ) if mibBuilder.loadTexts: ctspIpSgtMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtMappingTable.setDescription('This table contains the IP-to-SGT mapping information in the device.') ctspIpSgtMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtVrfName"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtAddressType"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtIpAddress"), (0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtAddressLength")) if mibBuilder.loadTexts: ctspIpSgtMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtMappingEntry.setDescription('Each row contains the IP-to-SGT mapping and status of this instance. Entry in this table is either populated automatically by the device or manually configured by a user. A manually configured row instance can be created or removed by setting the appropriate value of its RowStatus object.') ctspIpSgtVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 1), CiscoVrfName()) if mibBuilder.loadTexts: ctspIpSgtVrfName.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtVrfName.setDescription('This object indicates the VRF where IP-SGT mapping belongs to. The zero length value indicates the default VRF.') ctspIpSgtAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 2), InetAddressType()) if mibBuilder.loadTexts: ctspIpSgtAddressType.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtAddressType.setDescription('This object indicates the type of Internet address.') ctspIpSgtIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 3), InetAddress()) if mibBuilder.loadTexts: ctspIpSgtIpAddress.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtIpAddress.setDescription('This object indicates an Internet address. The type of this address is determined by the value of ctspIpSgtAddressType object.') ctspIpSgtAddressLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 4), InetAddressPrefixLength()) if mibBuilder.loadTexts: ctspIpSgtAddressLength.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtAddressLength.setDescription('This object indicates the length of an Internet address prefix.') ctspIpSgtValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 5), CtsSecurityGroupTag()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIpSgtValue.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtValue.setDescription('This object specifies the SGT value assigned to an Internet address.') ctspIpSgtSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("configured", 1), ("arp", 2), ("localAuthenticated", 3), ("sxp", 4), ("internal", 5), ("l3if", 6), ("vlan", 7), ("caching", 8)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIpSgtSource.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtSource.setDescription("This object indicates the source of the mapping. 'configured' indicates that the mapping is manually configured by user. 'arp' indicates that the mapping is dynamically learnt from tagged ARP replies. 'localAuthenticated' indicates that the mapping is dynamically learnt from the device authentication of a host. 'sxp' indicates that the mapping is dynamically learnt from SXP (SGT Propagation Protocol). 'internal' indicates that the mapping is automatically created by the device between the device IP addresses and the device own SGT. 'l3if' indicates that Interface-SGT mapping is configured by user. 'vlan' indicates that Vlan-SGT mapping is configured by user. 'cached' indicates that sgt mapping is cached. Only 'configured' value is accepted when setting this object.") ctspIpSgtStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 7), StorageType().clone('volatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIpSgtStorageType.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtStorageType.setDescription('The storage type for this conceptual row.') ctspIpSgtRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 4, 1, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIpSgtRowStatus.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtRowStatus.setDescription("This object is used to manage the creation and deletion of rows in this table. If this object value is 'active', user cannot modify any writable object in this row. If value of ctspIpSgtSource object in an entry is not 'configured', user cannot change the value of this object.") ctspAllSgtPolicyAction = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("refresh", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspAllSgtPolicyAction.setStatus('current') if mibBuilder.loadTexts: ctspAllSgtPolicyAction.setDescription("This object allows user to specify the action to be taken with respect to all SGT policies in the device. When read, this object always returns the value 'none'. 'none' - No operation. 'refresh' - Refresh all SGT policies in the device.") ctspDownloadedSgtPolicyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 2), ) if mibBuilder.loadTexts: ctspDownloadedSgtPolicyTable.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgtPolicyTable.setDescription('This table lists the SGT policy information downloaded by the device.') ctspDownloadedSgtPolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 2, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgtPolicySgt")) if mibBuilder.loadTexts: ctspDownloadedSgtPolicyEntry.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgtPolicyEntry.setDescription('Each row contains the managed objects for SGT policies downloaded by the device.') ctspDownloadedSgtPolicySgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 2, 1, 1), CtsSecurityGroupTag()) if mibBuilder.loadTexts: ctspDownloadedSgtPolicySgt.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgtPolicySgt.setDescription('This object indicates the SGT value for which the downloaded policy is applied to. Value of zero indicates that the SGT is unknown.') ctspDownloadedSgtPolicySgtGenId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 2, 1, 2), CtsGenerationId()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedSgtPolicySgtGenId.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgtPolicySgtGenId.setDescription('This object indicates the generation identification of the SGT value denoted by ctspDownloadedSgtPolicySgt object.') ctspDownloadedSgtPolicyLifeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 2, 1, 3), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedSgtPolicyLifeTime.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgtPolicyLifeTime.setDescription('This object indicates the policy life time which provides the time interval during which this downloaded policy is valid.') ctspDownloadedSgtPolicyLastUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 2, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedSgtPolicyLastUpdate.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgtPolicyLastUpdate.setDescription('This object indicates the time when this downloaded SGT policy is last updated.') ctspDownloadedSgtPolicyAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("refresh", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspDownloadedSgtPolicyAction.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgtPolicyAction.setDescription("This object allows user to specify the action to be taken with this downloaded SGT policy. When read, this object always returns the value 'none'. 'none' - No operation. 'refresh' - Refresh this SGT policy.") ctspDownloadedDefSgtPolicyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 3), ) if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyTable.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyTable.setDescription('This table lists the default SGT policy information downloaded by the device.') ctspDownloadedDefSgtPolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 3, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedDefSgtPolicyType")) if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyEntry.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyEntry.setDescription('Each row contains the managed objects for default SGT policies downloaded by the device.') ctspDownloadedDefSgtPolicyType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("unicastDefault", 1)))) if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyType.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyType.setDescription("This object indicates the downloaded default SGT policy type. 'unicastDefault' indicates the SGT policy applied to traffic which carries the default unicast SGT.") ctspDownloadedDefSgtPolicySgtGenId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 3, 1, 2), CtsGenerationId()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicySgtGenId.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicySgtGenId.setDescription('This object indicates the generation identification of the downloaded default SGT policy.') ctspDownloadedDefSgtPolicyLifeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 3, 1, 3), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyLifeTime.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyLifeTime.setDescription('This object indicates the policy life time which provides the time interval during which this download default policy is valid.') ctspDownloadedDefSgtPolicyLastUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 3, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyLastUpdate.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyLastUpdate.setDescription('This object indicates the time when this downloaded SGT policy is last updated.') ctspDownloadedDefSgtPolicyAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 5, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("refresh", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyAction.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedDefSgtPolicyAction.setDescription("This object allows user to specify the action to be taken with this default downloaded SGT policy. When read, this object always returns the value 'none'. 'none' - No operation. 'refresh' - Refresh this default SGT policy.") ctspIfSgtMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 1), ) if mibBuilder.loadTexts: ctspIfSgtMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtMappingTable.setDescription('This table contains the Interface-to-SGT mapping configuration information in the device.') ctspIfSgtMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: ctspIfSgtMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtMappingEntry.setDescription('Each row contains the SGT mapping configuration of a particular interface. A row instance can be created or removed by setting ctspIfSgtRowStatus.') ctspIfSgtValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 1, 1, 1), CtsSecurityGroupTag()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIfSgtValue.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtValue.setDescription('This object specifies the SGT value assigned to the interface.') ctspIfSgName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 1, 1, 2), SnmpAdminString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIfSgName.setStatus('current') if mibBuilder.loadTexts: ctspIfSgName.setDescription('This object specifies the Security Group Name assigned to the interface.') ctspIfSgtStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 1, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIfSgtStorageType.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtStorageType.setDescription('The storage type for this conceptual row.') ctspIfSgtRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspIfSgtRowStatus.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtRowStatus.setDescription('This object is used to manage the creation and deletion of rows in this table.') ctspIfSgtMappingInfoTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 2), ) if mibBuilder.loadTexts: ctspIfSgtMappingInfoTable.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtMappingInfoTable.setDescription('This table contains the Interface-to-SGT mapping status information in the device.') ctspIfSgtMappingInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: ctspIfSgtMappingInfoEntry.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtMappingInfoEntry.setDescription('Containing the Interface-to-SGT mapping status of the specified interface.') ctspL3IPMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("active", 2), ("inactive", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctspL3IPMStatus.setStatus('current') if mibBuilder.loadTexts: ctspL3IPMStatus.setDescription('This object indicates the Layer 3 Identity Port Mapping(IPM) operational mode. disabled - The L3 IPM is not configured. active - The L3 IPM is configured for this interface, and SGT is available. inactive - The L3 IPM is configured for this interface, and SGT is unavailable.') ctspVlanSgtMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 7, 1), ) if mibBuilder.loadTexts: ctspVlanSgtMappingTable.setStatus('current') if mibBuilder.loadTexts: ctspVlanSgtMappingTable.setDescription('This table contains the Vlan-SGT mapping information in the device.') ctspVlanSgtMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 7, 1, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanSgtMappingIndex")) if mibBuilder.loadTexts: ctspVlanSgtMappingEntry.setStatus('current') if mibBuilder.loadTexts: ctspVlanSgtMappingEntry.setDescription('Each row contains the SGT mapping configuration of a particular VLAN. A row instance can be created or removed by setting ctspVlanSgtRowStatus.') ctspVlanSgtMappingIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 7, 1, 1, 1), VlanIndex()) if mibBuilder.loadTexts: ctspVlanSgtMappingIndex.setStatus('current') if mibBuilder.loadTexts: ctspVlanSgtMappingIndex.setDescription('This object specifies the VLAN-ID which is used as index.') ctspVlanSgtMapValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 7, 1, 1, 2), CtsSecurityGroupTag()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspVlanSgtMapValue.setStatus('current') if mibBuilder.loadTexts: ctspVlanSgtMapValue.setDescription('This object specifies the SGT value assigned to the vlan.') ctspVlanSgtStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 7, 1, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspVlanSgtStorageType.setStatus('current') if mibBuilder.loadTexts: ctspVlanSgtStorageType.setDescription('The storage type for this conceptual row.') ctspVlanSgtRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 7, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ctspVlanSgtRowStatus.setStatus('current') if mibBuilder.loadTexts: ctspVlanSgtRowStatus.setDescription('This object is used to manage the creation and deletion of rows in this table.') ctspSgtCachingMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("standAlone", 2), ("withEnforcement", 3), ("vlan", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspSgtCachingMode.setStatus('current') if mibBuilder.loadTexts: ctspSgtCachingMode.setDescription("This object specifies which SGT-caching mode is configured for SGT caching capable interfaces at the managed system. 'none' indicates that sgt-caching for all Layer 3 interfaces (excluding SVIs) is disabled. 'standAlone' indicates that SGT-caching is enabled on every TrustSec capable Layer3 interface (excluding SVIs) in the device. 'withEnforcement' indicates that SGT-caching is enabled on interfaces that have RBAC enforcement enabled. 'vlan' indicates that SGT-caching is enabled on the VLANs specified by ctspSgtCachingVlansfFirst2K & ctspSgtCachingVlansSecond2K") ctspSgtCachingVlansFirst2K = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 8, 2), Cisco2KVlanList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspSgtCachingVlansFirst2K.setStatus('current') if mibBuilder.loadTexts: ctspSgtCachingVlansFirst2K.setDescription('A string of octets containing one bit per VLAN for VLANs 0 to 2047. If the bit corresponding to a VLAN is set to 1, it indicates SGT-caching is enabled on the VLAN. If the bit corresponding to a VLAN is set to 0, it indicates SGT-caching is disabled on the VLAN.') ctspSgtCachingVlansSecond2K = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 8, 3), Cisco2KVlanList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspSgtCachingVlansSecond2K.setStatus('current') if mibBuilder.loadTexts: ctspSgtCachingVlansSecond2K.setDescription('A string of octets containing one bit per VLAN for VLANs 2048 to 4095. If the bit corresponding to a VLAN is set to 1, it indicates SGT-caching is enabled on the VLAN. If the bit corresponding to a VLAN is set to 0, it indicates SGT-caching is disabled on the VLAN.') ctspPeerPolicyUpdatedNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 9, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspPeerPolicyUpdatedNotifEnable.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyUpdatedNotifEnable.setDescription("This object specifies whether the system generates ctspPeerPolicyUpdatedNotif. A value of 'false' will prevent ctspPeerPolicyUpdatedNotif notifications from being generated by this system.") ctspAuthorizationSgaclFailNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 9, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctspAuthorizationSgaclFailNotifEnable.setStatus('current') if mibBuilder.loadTexts: ctspAuthorizationSgaclFailNotifEnable.setDescription("This object specifies whether this system generates the ctspAuthorizationSgaclFailNotif. A value of 'false' will prevent ctspAuthorizationSgaclFailNotif notifications from being generated by this system.") ctspOldPeerSgt = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 10, 1), CtsSecurityGroupTag()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: ctspOldPeerSgt.setStatus('current') if mibBuilder.loadTexts: ctspOldPeerSgt.setDescription('This object provides the old sgt value for ctspPeerPolicyUpdatedNotif, i.e., the sgt value before the policy is updated.') ctspAuthorizationSgaclFailReason = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 10, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("downloadACE", 1), ("downloadSrc", 2), ("downloadDst", 3), ("installPolicy", 4), ("installPolicyStandby", 5), ("installForIP", 6), ("uninstall", 7)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: ctspAuthorizationSgaclFailReason.setStatus('current') if mibBuilder.loadTexts: ctspAuthorizationSgaclFailReason.setDescription("This object indicates the reason of failure during SGACL acquisitions, installations and uninstallations, which is associated with ctspAuthorizationSgaclFailNotif; 'downloadACE' - Failure during downloading ACE in SGACL acquisition. 'downloadSrc' - Failure during downloading source list in SGACL acquisition. 'downloadDst' - Failure during downloading destination list in SGACL acquisition. 'installPolicy' - Failure during SGACL policy installation 'installPolicyStandby' - Failure during SGACL policy installation on standby 'installForIP' - Failure during SGACL installation for specific IP type. 'uninstall' - Failure during SGACL uninstallation.") ctspAuthorizationSgaclFailInfo = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 713, 1, 10, 3), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: ctspAuthorizationSgaclFailInfo.setStatus('current') if mibBuilder.loadTexts: ctspAuthorizationSgaclFailInfo.setDescription('This object provides additional information about authorization SGACL failure, which is associated with ctspAuthorizationSgaclFailNotif.') ctspPeerPolicyUpdatedNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 713, 0, 1)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspOldPeerSgt"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerSgt")) if mibBuilder.loadTexts: ctspPeerPolicyUpdatedNotif.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyUpdatedNotif.setDescription('A ctspPeerPolicyUpdatedNotif is generated when the SGT value of a peer device has been updated.') ctspAuthorizationSgaclFailNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 713, 0, 2)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspAuthorizationSgaclFailReason"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspAuthorizationSgaclFailInfo")) if mibBuilder.loadTexts: ctspAuthorizationSgaclFailNotif.setStatus('current') if mibBuilder.loadTexts: ctspAuthorizationSgaclFailNotif.setDescription('A ctspAuthorizationSgaclFailNotif is generated when the authorization of SGACL fails.') ciscoTrustSecPolicyMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 1)) ciscoTrustSecPolicyMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2)) ciscoTrustSecPolicyMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 1, 1)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspGlobalSgaclEnforcementGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefSwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanConfigGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpHwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefHwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclIpv4DropNetflowMonitorGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclIpv6DropNetflowMonitorGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyActionGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspLayer3TransportGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfL3PolicyConfigGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgtPolicyGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoTrustSecPolicyMIBCompliance = ciscoTrustSecPolicyMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ciscoTrustSecPolicyMIBCompliance.setDescription('The compliance statement for the CISCO-TRUSTSEC-POLICY-MIB') ciscoTrustSecPolicyMIBComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 1, 2)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspGlobalSgaclEnforcementGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefSwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanConfigGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpHwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefHwStatisticsGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclIpv4DropNetflowMonitorGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclIpv6DropNetflowMonitorGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyActionGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspLayer3TransportGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfL3PolicyConfigGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgtPolicyGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfSgtMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanSgtMappingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgtCachingGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclMonitorGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclMonitorStatisticGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspNotifCtrlGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspNotifGroup"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspNotifInfoGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoTrustSecPolicyMIBComplianceRev2 = ciscoTrustSecPolicyMIBComplianceRev2.setStatus('current') if mibBuilder.loadTexts: ciscoTrustSecPolicyMIBComplianceRev2.setDescription('The compliance statement for the CISCO-TRUSTSEC-POLICY-MIB') ctspGlobalSgaclEnforcementGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 1)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclEnforcementEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspGlobalSgaclEnforcementGroup = ctspGlobalSgaclEnforcementGroup.setStatus('current') if mibBuilder.loadTexts: ctspGlobalSgaclEnforcementGroup.setDescription('A collection of object which provides the SGACL enforcement information for all TrustSec capable Layer 3 interfaces (excluding SVIs) at the device level.') ctspSgaclIpv4DropNetflowMonitorGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 2)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclIpv4DropNetflowMonitor")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspSgaclIpv4DropNetflowMonitorGroup = ctspSgaclIpv4DropNetflowMonitorGroup.setStatus('current') if mibBuilder.loadTexts: ctspSgaclIpv4DropNetflowMonitorGroup.setDescription('A collection of object which provides netflow monitor information for IPv4 traffic drop packet due to SGACL enforcement in the device.') ctspSgaclIpv6DropNetflowMonitorGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 3)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclIpv6DropNetflowMonitor")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspSgaclIpv6DropNetflowMonitorGroup = ctspSgaclIpv6DropNetflowMonitorGroup.setStatus('current') if mibBuilder.loadTexts: ctspSgaclIpv6DropNetflowMonitorGroup.setDescription('A collection of object which provides netflow monitor information for IPv6 traffic drop packet due to SGACL enforcement in the device.') ctspVlanConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 4)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanConfigSgaclEnforcement"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanSviActive"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanConfigVrfName"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanConfigStorageType"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanConfigRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspVlanConfigGroup = ctspVlanConfigGroup.setStatus('current') if mibBuilder.loadTexts: ctspVlanConfigGroup.setDescription('A collection of object which provides the SGACL enforcement and VRF information for each VLAN.') ctspConfigSgaclMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 5)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingSgaclName"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingStorageType"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMappingRowStatus"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefConfigIpv4Sgacls"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefConfigIpv6Sgacls")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspConfigSgaclMappingGroup = ctspConfigSgaclMappingGroup.setStatus('current') if mibBuilder.loadTexts: ctspConfigSgaclMappingGroup.setDescription('A collection of objects which provides the administratively configured SGACL mapping information in the device.') ctspDownloadedSgaclMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 6)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclName"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclGenId"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedIpTrafficType"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefDownloadedSgaclName"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefDownloadedSgaclGenId"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefDownloadedIpTrafficType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspDownloadedSgaclMappingGroup = ctspDownloadedSgaclMappingGroup.setStatus('current') if mibBuilder.loadTexts: ctspDownloadedSgaclMappingGroup.setDescription('A collection of objects which provides the downloaded SGACL mapping information in the device.') ctspOperSgaclMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 7)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspOperationalSgaclName"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspOperationalSgaclGenId"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclMappingSource"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclConfigSource"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefOperationalSgaclName"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefOperationalSgaclGenId"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefOperSgaclMappingSource"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefOperSgaclConfigSource")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspOperSgaclMappingGroup = ctspOperSgaclMappingGroup.setStatus('current') if mibBuilder.loadTexts: ctspOperSgaclMappingGroup.setDescription('A collection of objects which provides the operational SGACL mapping information in the device.') ctspIpSwStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 8)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsIpSwDropPkts"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsIpSwPermitPkts")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspIpSwStatisticsGroup = ctspIpSwStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: ctspIpSwStatisticsGroup.setDescription('A collection of objects which provides software statistics counters for unicast IP traffic subjected to SGACL enforcement.') ctspIpHwStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 9)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsIpHwDropPkts"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsIpHwPermitPkts")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspIpHwStatisticsGroup = ctspIpHwStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: ctspIpHwStatisticsGroup.setDescription('A collection of objects which provides hardware statistics counters for unicast IP traffic subjected to SGACL enforcement.') ctspDefSwStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 10)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefIpSwDropPkts"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefIpSwPermitPkts")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspDefSwStatisticsGroup = ctspDefSwStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: ctspDefSwStatisticsGroup.setDescription('A collection of objects which provides software statistics counters for unicast IP traffic subjected to unicast default policy enforcement.') ctspDefHwStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 11)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefIpHwDropPkts"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefIpHwPermitPkts")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspDefHwStatisticsGroup = ctspDefHwStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: ctspDefHwStatisticsGroup.setDescription('A collection of objects which provides hardware statistics counters for unicast IP traffic subjected to unicast default policy enforcement.') ctspPeerPolicyActionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 12)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspAllPeerPolicyAction")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspPeerPolicyActionGroup = ctspPeerPolicyActionGroup.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyActionGroup.setDescription('A collection of object which provides refreshing of all peer policies in the device.') ctspPeerPolicyGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 13)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerSgt"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerSgtGenId"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerTrustState"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyLifeTime"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyLastUpdate"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyAction")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspPeerPolicyGroup = ctspPeerPolicyGroup.setStatus('current') if mibBuilder.loadTexts: ctspPeerPolicyGroup.setDescription('A collection of object which provides peer policy information in the device.') ctspLayer3TransportGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 14)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspLayer3PolicyLocalConfig"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspLayer3PolicyDownloaded"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspLayer3PolicyOperational")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspLayer3TransportGroup = ctspLayer3TransportGroup.setStatus('current') if mibBuilder.loadTexts: ctspLayer3TransportGroup.setDescription('A collection of objects which provides managed information regarding the SGT propagation along with Layer 3 traffic in the device.') ctspIfL3PolicyConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 15)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfL3Ipv4PolicyEnabled"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfL3Ipv6PolicyEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspIfL3PolicyConfigGroup = ctspIfL3PolicyConfigGroup.setStatus('current') if mibBuilder.loadTexts: ctspIfL3PolicyConfigGroup.setDescription('A collection of objects which provides managed information for Layer3 Tranport policy enforcement on capable interface in the device.') ctspIpSgtMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 16)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtValue"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtSource"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtStorageType"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIpSgtRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspIpSgtMappingGroup = ctspIpSgtMappingGroup.setStatus('current') if mibBuilder.loadTexts: ctspIpSgtMappingGroup.setDescription('A collection of objects which provides managed information regarding IP-to-Sgt mapping in the device.') ctspSgtPolicyGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 17)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspAllSgtPolicyAction"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgtPolicySgtGenId"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgtPolicyLifeTime"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgtPolicyLastUpdate"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgtPolicyAction"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedDefSgtPolicySgtGenId"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedDefSgtPolicyLifeTime"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedDefSgtPolicyLastUpdate"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedDefSgtPolicyAction")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspSgtPolicyGroup = ctspSgtPolicyGroup.setStatus('current') if mibBuilder.loadTexts: ctspSgtPolicyGroup.setDescription('A collection of object which provides SGT policy information in the device.') ctspIfSgtMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 18)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfSgtValue"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfSgName"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspL3IPMStatus"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfSgtStorageType"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspIfSgtRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspIfSgtMappingGroup = ctspIfSgtMappingGroup.setStatus('current') if mibBuilder.loadTexts: ctspIfSgtMappingGroup.setDescription('A collection of objects which provides managed information regarding Interface-to-Sgt mapping in the device.') ctspVlanSgtMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 19)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanSgtMapValue"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanSgtStorageType"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspVlanSgtRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspVlanSgtMappingGroup = ctspVlanSgtMappingGroup.setStatus('current') if mibBuilder.loadTexts: ctspVlanSgtMappingGroup.setDescription('A collection of objects which provides sgt mapping information for the IP traffic in the specified Vlan.') ctspSgtCachingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 20)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgtCachingMode"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgtCachingVlansFirst2K"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgtCachingVlansSecond2K")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspSgtCachingGroup = ctspSgtCachingGroup.setStatus('current') if mibBuilder.loadTexts: ctspSgtCachingGroup.setDescription('A collection of objects which provides sgt Caching information.') ctspSgaclMonitorGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 21)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspSgaclMonitorEnable"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspConfigSgaclMonitor"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefConfigIpv4SgaclsMonitor"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefConfigIpv6SgaclsMonitor"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDownloadedSgaclMonitor"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefDownloadedSgaclMonitor"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspOperSgaclMonitor"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefOperSgaclMonitor")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspSgaclMonitorGroup = ctspSgaclMonitorGroup.setStatus('current') if mibBuilder.loadTexts: ctspSgaclMonitorGroup.setDescription('A collection of objects which provides SGACL monitor information.') ctspSgaclMonitorStatisticGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 22)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsIpSwMonitorPkts"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspStatsIpHwMonitorPkts"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefIpSwMonitorPkts"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspDefIpHwMonitorPkts")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspSgaclMonitorStatisticGroup = ctspSgaclMonitorStatisticGroup.setStatus('current') if mibBuilder.loadTexts: ctspSgaclMonitorStatisticGroup.setDescription('A collection of objects which provides monitor statistics counters for unicast IP traffic subjected to SGACL enforcement.') ctspNotifCtrlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 23)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyUpdatedNotifEnable"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspAuthorizationSgaclFailNotifEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspNotifCtrlGroup = ctspNotifCtrlGroup.setStatus('current') if mibBuilder.loadTexts: ctspNotifCtrlGroup.setDescription('A collection of objects providing notification control for TrustSec policy notifications.') ctspNotifGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 24)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspPeerPolicyUpdatedNotif"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspAuthorizationSgaclFailNotif")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspNotifGroup = ctspNotifGroup.setStatus('current') if mibBuilder.loadTexts: ctspNotifGroup.setDescription('A collection of notifications for TrustSec policy.') ctspNotifInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 713, 2, 2, 25)).setObjects(("CISCO-TRUSTSEC-POLICY-MIB", "ctspOldPeerSgt"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspAuthorizationSgaclFailReason"), ("CISCO-TRUSTSEC-POLICY-MIB", "ctspAuthorizationSgaclFailInfo")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ctspNotifInfoGroup = ctspNotifInfoGroup.setStatus('current') if mibBuilder.loadTexts: ctspNotifInfoGroup.setDescription('A collection of objects providing the variable binding for TrustSec policy notifications.') mibBuilder.exportSymbols("CISCO-TRUSTSEC-POLICY-MIB", ctspDefDownloadedIpTrafficType=ctspDefDownloadedIpTrafficType, ctspLayer3PolicyType=ctspLayer3PolicyType, ctspPeerTrustState=ctspPeerTrustState, ctspIfSgtValue=ctspIfSgtValue, ctspDownloadedSgaclName=ctspDownloadedSgaclName, ctspSgtCachingVlansSecond2K=ctspSgtCachingVlansSecond2K, ctspDownloadedSgtPolicyLifeTime=ctspDownloadedSgtPolicyLifeTime, ctspSgacl=ctspSgacl, ctspDownloadedDefSgtPolicyLastUpdate=ctspDownloadedDefSgtPolicyLastUpdate, ctspLayer3PolicyLocalConfig=ctspLayer3PolicyLocalConfig, ctspSgaclMappings=ctspSgaclMappings, ctspAllPeerPolicyAction=ctspAllPeerPolicyAction, ctspDefOperationalSgaclGenId=ctspDefOperationalSgaclGenId, ctspSgaclStatistics=ctspSgaclStatistics, ctspDefStatsEntry=ctspDefStatsEntry, ctspOperSgaclMappingSource=ctspOperSgaclMappingSource, ctspDefIpSwPermitPkts=ctspDefIpSwPermitPkts, ciscoTrustSecPolicyMIBObjects=ciscoTrustSecPolicyMIBObjects, ctspIfSgtMappingGroup=ctspIfSgtMappingGroup, ctspVlanConfigStorageType=ctspVlanConfigStorageType, ctspOperSgaclSourceSgt=ctspOperSgaclSourceSgt, ctspDownloadedSgtPolicyLastUpdate=ctspDownloadedSgtPolicyLastUpdate, ctspPeerPolicyUpdatedNotifEnable=ctspPeerPolicyUpdatedNotifEnable, ctspIpSgtVrfName=ctspIpSgtVrfName, ctspConfigSgaclMappingEntry=ctspConfigSgaclMappingEntry, ctspDefIpHwDropPkts=ctspDefIpHwDropPkts, ctspDefOperSgaclMappingEntry=ctspDefOperSgaclMappingEntry, ctspOperIpTrafficType=ctspOperIpTrafficType, ctspStatsIpHwMonitorPkts=ctspStatsIpHwMonitorPkts, ctspDefDownloadedSgaclMappingTable=ctspDefDownloadedSgaclMappingTable, ctspOperSgaclDestSgt=ctspOperSgaclDestSgt, ctspIpSgtMappingGroup=ctspIpSgtMappingGroup, ctspIfSgtRowStatus=ctspIfSgtRowStatus, ctspDownloadedDefSgtPolicyType=ctspDownloadedDefSgtPolicyType, ctspLayer3PolicyDownloaded=ctspLayer3PolicyDownloaded, ctspStatsDestSgt=ctspStatsDestSgt, ctspPeerSgt=ctspPeerSgt, ctspVlanConfigIndex=ctspVlanConfigIndex, ctspDefDownloadedSgaclIndex=ctspDefDownloadedSgaclIndex, ctspConfigSgaclMappingStorageType=ctspConfigSgaclMappingStorageType, ctspPeerName=ctspPeerName, ctspDefIpTrafficType=ctspDefIpTrafficType, ctspOperSgaclMappingGroup=ctspOperSgaclMappingGroup, ctspPeerPolicyUpdatedNotif=ctspPeerPolicyUpdatedNotif, ctspSgtCaching=ctspSgtCaching, ciscoTrustSecPolicyMIBComplianceRev2=ciscoTrustSecPolicyMIBComplianceRev2, ciscoTrustSecPolicyMIBConformance=ciscoTrustSecPolicyMIBConformance, ctspDefOperSgaclIndex=ctspDefOperSgaclIndex, ctspOperSgaclMappingTable=ctspOperSgaclMappingTable, ctspDownloadedSgaclGenId=ctspDownloadedSgaclGenId, ctspIfSgtMappings=ctspIfSgtMappings, ctspSgaclIpv6DropNetflowMonitor=ctspSgaclIpv6DropNetflowMonitor, ciscoTrustSecPolicyMIBGroups=ciscoTrustSecPolicyMIBGroups, ctspNotifsOnlyInfo=ctspNotifsOnlyInfo, ctspVlanConfigEntry=ctspVlanConfigEntry, ctspPeerPolicy=ctspPeerPolicy, ctspDownloadedSgaclDestSgt=ctspDownloadedSgaclDestSgt, ctspDefIpHwMonitorPkts=ctspDefIpHwMonitorPkts, ctspLayer3TransportGroup=ctspLayer3TransportGroup, ctspGlobalSgaclEnforcementGroup=ctspGlobalSgaclEnforcementGroup, ctspDownloadedSgaclMappingEntry=ctspDownloadedSgaclMappingEntry, ctspPeerPolicyActionGroup=ctspPeerPolicyActionGroup, ctspSgaclGlobals=ctspSgaclGlobals, ctspNotifInfoGroup=ctspNotifInfoGroup, ctspSgaclMonitorEnable=ctspSgaclMonitorEnable, ctspStatsIpTrafficType=ctspStatsIpTrafficType, ctspConfigSgaclMonitor=ctspConfigSgaclMonitor, ctspDefConfigIpv4Sgacls=ctspDefConfigIpv4Sgacls, ctspVlanSgtMappingGroup=ctspVlanSgtMappingGroup, ctspSgtCachingGroup=ctspSgtCachingGroup, ctspIfL3PolicyConfigEntry=ctspIfL3PolicyConfigEntry, ctspConfigSgaclMappingRowStatus=ctspConfigSgaclMappingRowStatus, ctspIpSwStatisticsGroup=ctspIpSwStatisticsGroup, ctspDownloadedSgtPolicySgt=ctspDownloadedSgtPolicySgt, ctspDefConfigIpv6SgaclsMonitor=ctspDefConfigIpv6SgaclsMonitor, ctspOperSgaclIndex=ctspOperSgaclIndex, ctspVlanSgtMappingTable=ctspVlanSgtMappingTable, ctspIfSgtMappingEntry=ctspIfSgtMappingEntry, ctspAuthorizationSgaclFailNotif=ctspAuthorizationSgaclFailNotif, ctspConfigSgaclMappingGroup=ctspConfigSgaclMappingGroup, ctspIfSgtMappingTable=ctspIfSgtMappingTable, ctspStatsIpSwDropPkts=ctspStatsIpSwDropPkts, ctspIpSgtSource=ctspIpSgtSource, ctspConfigSgaclMappingSgaclName=ctspConfigSgaclMappingSgaclName, ctspLayer3PolicyEntry=ctspLayer3PolicyEntry, ctspDownloadedSgaclSourceSgt=ctspDownloadedSgaclSourceSgt, ctspVlanConfigSgaclEnforcement=ctspVlanConfigSgaclEnforcement, ctspDefDownloadedSgaclMappingEntry=ctspDefDownloadedSgaclMappingEntry, ctspIpSgtIpAddress=ctspIpSgtIpAddress, ctspDownloadedSgaclMappingTable=ctspDownloadedSgaclMappingTable, ctspDefOperSgaclMappingTable=ctspDefOperSgaclMappingTable, ctspL3IPMStatus=ctspL3IPMStatus, ctspIfL3Ipv6PolicyEnabled=ctspIfL3Ipv6PolicyEnabled, ctspOperSgaclMonitor=ctspOperSgaclMonitor, ctspIpSgtMappings=ctspIpSgtMappings, ctspPeerPolicyAction=ctspPeerPolicyAction, ctspDownloadedDefSgtPolicyTable=ctspDownloadedDefSgtPolicyTable, ctspPeerPolicyTable=ctspPeerPolicyTable, ctspIfSgtStorageType=ctspIfSgtStorageType, ctspConfigSgaclMappingTable=ctspConfigSgaclMappingTable, PYSNMP_MODULE_ID=ciscoTrustSecPolicyMIB, ctspVlanSgtMappings=ctspVlanSgtMappings, ctspSgtCachingVlansFirst2K=ctspSgtCachingVlansFirst2K, ctspDefOperIpTrafficType=ctspDefOperIpTrafficType, ctspVlanSgtMapValue=ctspVlanSgtMapValue, ctspAuthorizationSgaclFailInfo=ctspAuthorizationSgaclFailInfo, ctspVlanSviActive=ctspVlanSviActive, ctspDownloadedSgtPolicyTable=ctspDownloadedSgtPolicyTable, ctspLayer3PolicyTable=ctspLayer3PolicyTable, ctspDownloadedIpTrafficType=ctspDownloadedIpTrafficType, ctspDownloadedSgtPolicyEntry=ctspDownloadedSgtPolicyEntry, ctspDefOperSgaclMappingSource=ctspDefOperSgaclMappingSource, ctspPeerPolicyEntry=ctspPeerPolicyEntry, ctspSgtStatsTable=ctspSgtStatsTable, ctspIfL3Ipv4PolicyEnabled=ctspIfL3Ipv4PolicyEnabled, ctspSgaclMonitorStatisticGroup=ctspSgaclMonitorStatisticGroup, ctspOperationalSgaclName=ctspOperationalSgaclName, ctspIpSgtStorageType=ctspIpSgtStorageType, ctspStatsIpSwPermitPkts=ctspStatsIpSwPermitPkts, ctspVlanSgtMappingIndex=ctspVlanSgtMappingIndex, ctspNotifsControl=ctspNotifsControl, ctspVlanSgtRowStatus=ctspVlanSgtRowStatus, ctspStatsIpSwMonitorPkts=ctspStatsIpSwMonitorPkts, ctspDefHwStatisticsGroup=ctspDefHwStatisticsGroup, ctspDownloadedDefSgtPolicyEntry=ctspDownloadedDefSgtPolicyEntry, ctspIpSgtValue=ctspIpSgtValue, ctspLayer3PolicyOperational=ctspLayer3PolicyOperational, ctspDefIpSwMonitorPkts=ctspDefIpSwMonitorPkts, ctspSgaclIpv4DropNetflowMonitor=ctspSgaclIpv4DropNetflowMonitor, ciscoTrustSecPolicyMIBNotifs=ciscoTrustSecPolicyMIBNotifs, ctspAuthorizationSgaclFailReason=ctspAuthorizationSgaclFailReason, ciscoTrustSecPolicyMIBCompliance=ciscoTrustSecPolicyMIBCompliance, ctspIpSgtMappingEntry=ctspIpSgtMappingEntry, ctspSgtStatsEntry=ctspSgtStatsEntry, ctspIfL3PolicyConfigGroup=ctspIfL3PolicyConfigGroup, ctspSgtPolicyGroup=ctspSgtPolicyGroup, ctspSgtPolicy=ctspSgtPolicy, ctspVlanConfigTable=ctspVlanConfigTable, ctspStatsSourceSgt=ctspStatsSourceSgt, ctspLayer3PolicyIpTrafficType=ctspLayer3PolicyIpTrafficType, ctspPeerPolicyLifeTime=ctspPeerPolicyLifeTime, ctspDefDownloadedSgaclGenId=ctspDefDownloadedSgaclGenId, ctspStatsIpHwPermitPkts=ctspStatsIpHwPermitPkts, ctspIpHwStatisticsGroup=ctspIpHwStatisticsGroup, ctspIpSgtAddressLength=ctspIpSgtAddressLength, ctspDownloadedSgtPolicyAction=ctspDownloadedSgtPolicyAction, ctspAllSgtPolicyAction=ctspAllSgtPolicyAction, ctspDownloadedDefSgtPolicyLifeTime=ctspDownloadedDefSgtPolicyLifeTime, ctspVlanConfigVrfName=ctspVlanConfigVrfName, ctspDownloadedDefSgtPolicySgtGenId=ctspDownloadedDefSgtPolicySgtGenId, ctspPeerSgtGenId=ctspPeerSgtGenId, ctspIfSgName=ctspIfSgName, ctspSgaclMonitorGroup=ctspSgaclMonitorGroup, ctspVlanSgtStorageType=ctspVlanSgtStorageType, ctspSgaclEnforcementEnable=ctspSgaclEnforcementEnable, ctspDefOperSgaclMonitor=ctspDefOperSgaclMonitor, ctspDownloadedSgaclMappingGroup=ctspDownloadedSgaclMappingGroup, ctspPeerPolicyGroup=ctspPeerPolicyGroup, ctspDefDownloadedSgaclMonitor=ctspDefDownloadedSgaclMonitor, ctspIfL3PolicyConfigTable=ctspIfL3PolicyConfigTable, ctspDefDownloadedSgaclName=ctspDefDownloadedSgaclName, ctspDownloadedSgtPolicySgtGenId=ctspDownloadedSgtPolicySgtGenId, ciscoTrustSecPolicyMIB=ciscoTrustSecPolicyMIB, ctspVlanConfigRowStatus=ctspVlanConfigRowStatus, ctspIpSgtRowStatus=ctspIpSgtRowStatus, ctspAuthorizationSgaclFailNotifEnable=ctspAuthorizationSgaclFailNotifEnable, ctspConfigSgaclMappingSourceSgt=ctspConfigSgaclMappingSourceSgt, ctspVlanConfigGroup=ctspVlanConfigGroup, ctspDefConfigIpv4SgaclsMonitor=ctspDefConfigIpv4SgaclsMonitor, ctspDefIpSwDropPkts=ctspDefIpSwDropPkts, ctspDefConfigIpv6Sgacls=ctspDefConfigIpv6Sgacls, ctspConfigSgaclMappingIpTrafficType=ctspConfigSgaclMappingIpTrafficType, ciscoTrustSecPolicyMIBCompliances=ciscoTrustSecPolicyMIBCompliances, ctspStatsIpHwDropPkts=ctspStatsIpHwDropPkts, ctspVlanSgtMappingEntry=ctspVlanSgtMappingEntry, ctspDefIpHwPermitPkts=ctspDefIpHwPermitPkts, ctspOperationalSgaclGenId=ctspOperationalSgaclGenId, ctspDefOperationalSgaclName=ctspDefOperationalSgaclName, ctspOperSgaclMappingEntry=ctspOperSgaclMappingEntry, ctspIpSgtMappingTable=ctspIpSgtMappingTable, ctspIfSgtMappingInfoEntry=ctspIfSgtMappingInfoEntry, ctspLayer3Transport=ctspLayer3Transport, ctspSgaclIpv4DropNetflowMonitorGroup=ctspSgaclIpv4DropNetflowMonitorGroup, ctspSgtCachingMode=ctspSgtCachingMode, ctspOperSgaclConfigSource=ctspOperSgaclConfigSource, ctspDownloadedSgaclMonitor=ctspDownloadedSgaclMonitor, ctspDefSwStatisticsGroup=ctspDefSwStatisticsGroup, ctspIpSgtAddressType=ctspIpSgtAddressType, ctspPeerPolicyLastUpdate=ctspPeerPolicyLastUpdate, ctspDownloadedDefSgtPolicyAction=ctspDownloadedDefSgtPolicyAction, ctspOldPeerSgt=ctspOldPeerSgt, ctspNotifGroup=ctspNotifGroup, ctspDefOperSgaclConfigSource=ctspDefOperSgaclConfigSource, ctspDefStatsTable=ctspDefStatsTable, ctspSgaclIpv6DropNetflowMonitorGroup=ctspSgaclIpv6DropNetflowMonitorGroup, ctspConfigSgaclMappingDestSgt=ctspConfigSgaclMappingDestSgt, ctspIfSgtMappingInfoTable=ctspIfSgtMappingInfoTable, ctspNotifCtrlGroup=ctspNotifCtrlGroup, ctspDownloadedSgaclIndex=ctspDownloadedSgaclIndex)
166.79187
10,104
0.796192
11,753
102,577
6.948779
0.062622
0.04937
0.086398
0.009698
0.540046
0.413217
0.369345
0.346533
0.313803
0.298742
0
0.041879
0.093062
102,577
614
10,105
167.063518
0.83599
0.003354
0
0.046358
0
0.124172
0.382855
0.078455
0
0
0
0
0
1
0
false
0
0.021523
0
0.021523
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d4b30ff4f1cdba84270695cf02e3415880246ea6
5,458
py
Python
pydlm/tests/base/testKalmanFilter.py
onnheimm/pydlm
4693af6e621e3b75feda7ca15327b69a4ca622a7
[ "BSD-3-Clause" ]
423
2016-09-15T06:45:26.000Z
2022-03-29T08:41:11.000Z
pydlm/tests/base/testKalmanFilter.py
onnheimm/pydlm
4693af6e621e3b75feda7ca15327b69a4ca622a7
[ "BSD-3-Clause" ]
50
2016-09-14T19:45:49.000Z
2021-07-26T17:04:10.000Z
pydlm/tests/base/testKalmanFilter.py
onnheimm/pydlm
4693af6e621e3b75feda7ca15327b69a4ca622a7
[ "BSD-3-Clause" ]
99
2016-09-19T08:08:41.000Z
2022-03-07T13:47:36.000Z
import numpy as np import unittest from pydlm.modeler.trends import trend from pydlm.modeler.seasonality import seasonality from pydlm.modeler.builder import builder from pydlm.base.kalmanFilter import kalmanFilter class testKalmanFilter(unittest.TestCase): def setUp(self): self.kf1 = kalmanFilter(discount=[1]) self.kf0 = kalmanFilter(discount=[1e-10]) self.kf11 = kalmanFilter(discount=[1, 1]) self.trend0 = trend(degree=0, discount=1, w=1.0) self.trend0_90 = trend(degree=0, discount=0.9, w=1.0) self.trend0_98 = trend(degree=0, discount=0.98, w=1.0, name='a') self.trend1 = trend(degree=1, discount=1, w=1.0) def testForwardFilter(self): dlm = builder() dlm.add(self.trend0) dlm.initialize() self.kf1.predict(dlm.model) self.assertAlmostEqual(dlm.model.prediction.obs, 0) # the prior on the mean is zero, but observe 1, with # discount = 1, one should expect the filterd mean to be 0.5 self.kf1.forwardFilter(dlm.model, 1) self.assertAlmostEqual(dlm.model.obs, 0.5) self.assertAlmostEqual(dlm.model.prediction.obs, 0) self.assertAlmostEqual(dlm.model.sysVar, 0.375) self.kf1.predict(dlm.model) self.assertAlmostEqual(dlm.model.obs, 0.5) self.assertAlmostEqual(dlm.model.prediction.obs, 0.5) dlm.initialize() self.kf0.predict(dlm.model) self.assertAlmostEqual(dlm.model.prediction.obs, 0) # the prior on the mean is zero, but observe 1, with discount = 0 # one should expect the filtered mean close to 1 self.kf0.forwardFilter(dlm.model, 1) self.assertAlmostEqual(dlm.model.obs[0, 0], 1) self.assertAlmostEqual(dlm.model.prediction.obs[0, 0], 0) self.assertAlmostEqual(dlm.model.sysVar[0, 0], 0.5) self.kf0.predict(dlm.model) self.assertAlmostEqual(dlm.model.obs[0, 0], 1) self.assertAlmostEqual(dlm.model.prediction.obs[0, 0], 1) def testForwardFilterMultiDim(self): dlm = builder() dlm.add(seasonality(period=2, discount=1, w=1.0)) dlm.initialize() self.kf11.forwardFilter(dlm.model, 1) self.assertAlmostEqual(dlm.model.state[0][0, 0], 0.33333333333) self.assertAlmostEqual(dlm.model.state[1][0, 0], -0.33333333333) self.kf11.forwardFilter(dlm.model, -1) self.assertAlmostEqual(dlm.model.state[0][0, 0], -0.5) self.assertAlmostEqual(dlm.model.state[1][0, 0], 0.5) def testBackwardSmoother(self): dlm = builder() dlm.add(self.trend0) dlm.initialize() # with mean being 0 and observe 1 and 0 consectively, one shall # expect the smoothed mean at 1 will be 1/3, for discount = 1 self.kf1.forwardFilter(dlm.model, 1) self.kf1.forwardFilter(dlm.model, 0) self.kf1.backwardSmoother(dlm.model, \ np.matrix([[0.5]]), \ np.matrix([[0.375]])) self.assertAlmostEqual(dlm.model.obs[0, 0], 1.0/3) self.assertAlmostEqual(dlm.model.sysVar[0, 0], 0.18518519) # second order trend with discount = 1. The smoothed result should be # equal to a direct fit on the three data points, 0, 1, -1. Thus, the # smoothed observation should be 0.0 def testBackwardSmootherMultiDim(self): dlm = builder() dlm.add(self.trend1) dlm.initialize() self.kf11.forwardFilter(dlm.model, 1) state1 = dlm.model.state cov1 = dlm.model.sysVar self.kf11.forwardFilter(dlm.model, -1) self.kf11.backwardSmoother(dlm.model, \ rawState = state1, \ rawSysVar = cov1) self.assertAlmostEqual(dlm.model.obs[0, 0], 0.0) def testMissingData(self): dlm = builder() dlm.add(self.trend0) dlm.initialize() self.kf0.forwardFilter(dlm.model, 1) self.assertAlmostEqual(dlm.model.obs[0, 0], 1.0) self.assertAlmostEqual(dlm.model.obsVar[0, 0], 1.0) self.kf0.forwardFilter(dlm.model, None) self.assertAlmostEqual(dlm.model.obs[0, 0], 1.0) self.assertAlmostEqual(dlm.model.obsVar[0, 0]/1e10, 0.5) self.kf0.forwardFilter(dlm.model, None) self.assertAlmostEqual(dlm.model.obs[0, 0], 1.0) self.assertAlmostEqual(dlm.model.obsVar[0, 0]/1e10, 0.5) self.kf0.forwardFilter(dlm.model, 0) self.assertAlmostEqual(dlm.model.obs[0, 0], 0.0) def testMissingEvaluation(self): dlm = builder() dlm.add(self.trend0) dlm.initialize() dlm.model.evaluation = np.matrix([[None]]) self.kf1.forwardFilter(dlm.model, 1.0, dealWithMissingEvaluation = True) self.assertAlmostEqual(dlm.model.obs, 0.0) self.assertAlmostEqual(dlm.model.transition, 1.0) def testEvolveMode(self): dlm = builder() dlm.add(self.trend0_90) dlm.add(self.trend0_98) dlm.initialize() kf2 = kalmanFilter(discount=[0.9, 0.98], updateInnovation='component', index=dlm.componentIndex) kf2.forwardFilter(dlm.model, 1.0) self.assertAlmostEqual(dlm.model.innovation[0, 1], 0.0) self.assertAlmostEqual(dlm.model.innovation[1, 0], 0.0) if __name__ == '__main__': unittest.main()
35.212903
80
0.622756
711
5,458
4.763713
0.16737
0.125185
0.212578
0.256864
0.63478
0.583407
0.52731
0.475642
0.43667
0.362267
0
0.06409
0.251008
5,458
154
81
35.441558
0.764432
0.09399
0
0.439252
0
0
0.003647
0
0
0
0
0
0.280374
1
0.074766
false
0
0.056075
0
0.140187
0
0
0
0
null
0
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
0
0
0
0
0
0
0
0
0
0
0
2
d4b440c6e516a3bf9860aad41ef519824e8ea929
158
py
Python
1/puzzle1.py
tjol/advent-of-code-2021
16def395df091d5a8ae9ceb66ba3370554bdf40b
[ "0BSD" ]
1
2021-12-20T19:56:56.000Z
2021-12-20T19:56:56.000Z
1/puzzle1.py
tjol/advent-of-code-2021
16def395df091d5a8ae9ceb66ba3370554bdf40b
[ "0BSD" ]
null
null
null
1/puzzle1.py
tjol/advent-of-code-2021
16def395df091d5a8ae9ceb66ba3370554bdf40b
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import sys depths = list(map(int, sys.stdin)) increased = [a > b for (a, b) in zip(depths[1:], depths[:-1])] print(sum(increased))
15.8
62
0.639241
27
158
3.740741
0.740741
0.039604
0
0
0
0
0
0
0
0
0
0.022388
0.151899
158
9
63
17.555556
0.731343
0.132911
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
0
0
0
0
0
0
0
0
2
d4b78df5fd076f594376f0529e58415b66407a89
579
py
Python
quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py
ramild/allennlp-guide
4cff916e7bc4629184bc70594e213ef56e14ec70
[ "MIT" ]
71
2020-06-06T03:12:44.000Z
2022-03-12T20:21:48.000Z
quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py
ramild/allennlp-guide
4cff916e7bc4629184bc70594e213ef56e14ec70
[ "MIT" ]
50
2020-06-18T14:19:15.000Z
2022-03-28T07:04:16.000Z
quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py
ramild/allennlp-guide
4cff916e7bc4629184bc70594e213ef56e14ec70
[ "MIT" ]
37
2020-06-05T19:08:44.000Z
2022-03-17T08:23:41.000Z
from allennlp.common import JsonDict from allennlp.data import DatasetReader, Instance from allennlp.models import Model from allennlp.predictors import Predictor from overrides import overrides @Predictor.register("sentence_classifier") class SentenceClassifierPredictor(Predictor): def predict(self, sentence: str) -> JsonDict: return self.predict_json({"sentence": sentence}) @overrides def _json_to_instance(self, json_dict: JsonDict) -> Instance: sentence = json_dict["sentence"] return self._dataset_reader.text_to_instance(sentence)
34.058824
65
0.775475
66
579
6.636364
0.439394
0.109589
0
0
0
0
0
0
0
0
0
0
0.145078
579
16
66
36.1875
0.884848
0
0
0
0
0
0.060449
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0.076923
0.769231
0
0
0
0
null
0
0
0
0
0
0
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
0
1
0
1
0
0
2
d4bd39d2862e151f45c3d33b0cd79ef62c908dbf
1,760
py
Python
Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py
Roger-Takeshita/Software_Engineer
ec647bb969aa02453dae1884b5787d2045f7b4e2
[ "MIT" ]
2
2019-12-27T06:15:26.000Z
2020-05-21T17:37:12.000Z
Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py
Roger-Takeshita/Bootcamp-Software-Engineer
ec647bb969aa02453dae1884b5787d2045f7b4e2
[ "MIT" ]
null
null
null
Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py
Roger-Takeshita/Bootcamp-Software-Engineer
ec647bb969aa02453dae1884b5787d2045f7b4e2
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse from datetime import date from django.contrib.auth.models import User #! 1 - Import user models MEALS = ( ('B', 'Breakfast'), ('L', 'Lunch'), ('D', 'Dinner') ) class Toy(models.Model): name = models.CharField(max_length=50) color = models.CharField(max_length=20) def __str__(self): return self.name def get_absolute_url(self): return reverse('toys_detail', kwargs={'pk': self.id}) class Cat(models.Model): name = models.CharField(max_length=100) breed = models.CharField(max_length=100) description = models.TextField(max_length=250) age = models.IntegerField() toys = models.ManyToManyField(Toy) user = models.ForeignKey(User, on_delete=models.CASCADE) #+ 1.1 - Add user as ForeignKey (URL mapping, we use this to point to our class based views) def __str__(self): return self.name def get_absolute_url(self): return reverse('detail', kwargs={'cat_id': self.id}) def fed_for_today(self): return self.feeding_set.filter(date=date.today()).count() >= len(MEALS) class Feeding(models.Model): date = models.DateField('feeding date') meal = models.CharField( max_length=1, choices=MEALS, default=MEALS[0][0] ) cat = models.ForeignKey(Cat, on_delete=models.CASCADE) def __str__(self): # Nice method for obtaining the friendly value of a Field.choice return f"{self.get_meal_display()} on {self.date}" # change the default sort class Meta: ordering = ['-date'] class Photo(models.Model): url = models.CharField(max_length=200) cat = models.ForeignKey(Cat, on_delete=models.CASCADE) def __str__(self): return f"Photo for cat_id: {self.cat_id} @{self.url}"
28.852459
160
0.691477
249
1,760
4.730924
0.389558
0.05348
0.091681
0.122241
0.280136
0.254669
0.254669
0.188455
0.188455
0.188455
0
0.015235
0.179545
1,760
61
161
28.852459
0.800554
0.114773
0
0.217391
0
0
0.095177
0.016077
0
0
0
0
0
1
0.152174
false
0
0.086957
0.152174
0.782609
0
0
0
0
null
0
0
0
0
0
0
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
0
0
1
1
0
0
2
d4bdefb01d0a762af075c93831d87a0e10dd81de
79
py
Python
kedro-airflow/kedro_airflow/__init__.py
kedro-org/kedro-plugins
ad0755f503b275b73aeb8feb592a0ec0ea1bca8e
[ "Apache-2.0" ]
6
2022-01-21T07:37:05.000Z
2022-03-31T09:41:29.000Z
kedro-airflow/kedro_airflow/__init__.py
kedro-org/kedro-plugins
ad0755f503b275b73aeb8feb592a0ec0ea1bca8e
[ "Apache-2.0" ]
7
2022-01-20T10:59:29.000Z
2022-03-30T17:59:12.000Z
kedro-airflow/kedro_airflow/__init__.py
kedro-org/kedro-plugins
ad0755f503b275b73aeb8feb592a0ec0ea1bca8e
[ "Apache-2.0" ]
1
2022-03-29T09:12:00.000Z
2022-03-29T09:12:00.000Z
""" Kedro plugin for running a project with Airflow """ __version__ = "0.5.0"
19.75
55
0.683544
12
79
4.166667
0.916667
0
0
0
0
0
0
0
0
0
0
0.046154
0.177215
79
3
56
26.333333
0.723077
0.594937
0
0
0
0
0.208333
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
2
d4be731c2fefcf29455273684888ea746824bba4
713
py
Python
soccer/gameplay/plays/testing/debug_window_evaluator.py
AniruddhaG123/robocup-software
0eb3b3957428894f2f39341594800be803665f44
[ "Apache-2.0" ]
1
2019-09-24T22:59:25.000Z
2019-09-24T22:59:25.000Z
soccer/gameplay/plays/testing/debug_window_evaluator.py
ananth-kumar01/robocup-software
4043a7f9590d02f617d8e9a762697e4aaa27f1a6
[ "Apache-2.0" ]
null
null
null
soccer/gameplay/plays/testing/debug_window_evaluator.py
ananth-kumar01/robocup-software
4043a7f9590d02f617d8e9a762697e4aaa27f1a6
[ "Apache-2.0" ]
null
null
null
import play import behavior import main import robocup import constants import time import math ## This isn't a real play, but it's pretty useful # Turn it on and we'll draw the window evaluator stuff on-screen from the ball to our goal class DebugWindowEvaluator(play.Play): def __init__(self): super().__init__(continuous=True) self.add_transition(behavior.Behavior.State.start, behavior.Behavior.State.running, lambda: True, 'immediately') def execute_running(self): win_eval = robocup.WindowEvaluator(main.context()) win_eval.debug = True windows, best = win_eval.eval_pt_to_our_goal(main.ball().pos)
29.708333
90
0.678822
95
713
4.915789
0.621053
0.044968
0.038544
0
0
0
0
0
0
0
0
0
0.241234
713
23
91
31
0.863216
0.189341
0
0
0
0
0.019164
0
0
0
0
0
0
1
0.117647
false
0
0.411765
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
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
0
1
0
1
0
0
2
d4bf375fc83f7c0bd614c1589d9466c6217e84ec
331
py
Python
rainbowconnection/sources/phoenix/utils.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
6
2019-09-04T20:22:02.000Z
2020-12-30T05:00:10.000Z
rainbowconnection/sources/phoenix/utils.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
8
2019-05-23T18:06:51.000Z
2020-02-13T22:15:07.000Z
rainbowconnection/sources/phoenix/utils.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
null
null
null
from ...imports import * def stringify_metallicity(Z): """ Convert a metallicity into a PHOENIX-style string. Parameters ---------- Z : float [Fe/H]-style metallicity (= 0.0 for solar) """ if Z <= 0: return "-{:03.1f}".format(np.abs(Z)) else: return "+{:03.1f}".format(Z)
19.470588
54
0.531722
42
331
4.166667
0.666667
0.091429
0.114286
0.182857
0
0
0
0
0
0
0
0.037975
0.283988
331
16
55
20.6875
0.700422
0.392749
0
0
0
0
0.106509
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
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
0
0
0
0
0
0
0
0
1
0
0
2
d4bffb102dcb1752fbd5cc9d9f62656784042e5e
1,506
py
Python
shipane_sdk/transaction.py
awfssv/ShiPanE-Python-SDK
678790e5eb220cf685e5f8d03ba3310f3fbb8d22
[ "MIT" ]
1
2016-12-19T16:05:23.000Z
2016-12-19T16:05:23.000Z
shipane_sdk/transaction.py
awfssv/ShiPanE-Python-SDK
678790e5eb220cf685e5f8d03ba3310f3fbb8d22
[ "MIT" ]
null
null
null
shipane_sdk/transaction.py
awfssv/ShiPanE-Python-SDK
678790e5eb220cf685e5f8d03ba3310f3fbb8d22
[ "MIT" ]
1
2021-05-21T02:12:04.000Z
2021-05-21T02:12:04.000Z
# -*- coding: utf-8 -*- class Transaction(object): def __init__(self, **kwargs): self._completed_at = kwargs.get('completed_at') self._type = kwargs.get('type') self._symbol = kwargs.get('symbol') self._price = kwargs.get('price') self._amount = kwargs.get('amount') def __eq__(self, other): if self.completed_at != other.completed_at: return False if self.type != other.type: return False if self.symbol != other.symbol: return False if self.price != other.price: return False if self.amount != other.amount: return False return True def get_cn_type(self): return u'买入' if self.type == 'BUY' else u'卖出' @property def completed_at(self): return self._completed_at @completed_at.setter def completed_at(self, value): self._completed_at = value @property def type(self): return self._type @type.setter def type(self, value): self._type = value @property def symbol(self): return self._symbol @symbol.setter def symbol(self, value): self._symbol = value @property def price(self): return self._price @price.setter def price(self, value): self._price = value @property def amount(self): return self._amount @amount.setter def amount(self, value): self._amount = value
22.477612
55
0.581009
180
1,506
4.672222
0.177778
0.117717
0.083234
0.080856
0
0
0
0
0
0
0
0.000967
0.313413
1,506
66
56
22.818182
0.812379
0.013944
0
0.196078
0
0
0.026972
0
0
0
0
0
0
1
0.254902
false
0
0
0.117647
0.509804
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
d4ec0fc927b4e34cca6fab5d967b009070fe2201
294
py
Python
dml/errors.py
RGBCube/dml
f551821545a062e15aea1f2c2444e6016748ea34
[ "MIT" ]
2
2022-03-19T19:15:28.000Z
2022-03-19T19:15:32.000Z
dml/errors.py
RGBCube/dml
f551821545a062e15aea1f2c2444e6016748ea34
[ "MIT" ]
null
null
null
dml/errors.py
RGBCube/dml
f551821545a062e15aea1f2c2444e6016748ea34
[ "MIT" ]
null
null
null
__all__ = ("DottedMarkupLanguageException", "DecodeError") class DottedMarkupLanguageException(Exception): """Base class for all exceptions in this module.""" pass class DecodeError(DottedMarkupLanguageException): """Raised when there is an error decoding a string.""" pass
24.5
58
0.744898
28
294
7.678571
0.75
0
0
0
0
0
0
0
0
0
0
0
0.159864
294
11
59
26.727273
0.870445
0.319728
0
0.4
0
0
0.21164
0.153439
0
0
0
0
0
1
0
false
0.4
0
0
0.4
0
1
0
0
null
0
0
0
0
0
0
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
2
d4ef39805175a5dc26b4a7a21bf430a89fe73653
321
py
Python
part02/part02-e11_rows_and_columns/src/rows_and_columns.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
part02/part02-e11_rows_and_columns/src/rows_and_columns.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
part02/part02-e11_rows_and_columns/src/rows_and_columns.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np def get_rows(a): return list(a) def get_columns(a): return list(a.T) def main(): np.random.seed(0) a=np.random.randint(0,10, (4,4)) print("a:", a) print("Rows:", get_rows(a)) print("Columns:", get_columns(a)) if __name__ == "__main__": main()
16.894737
37
0.601246
54
321
3.351852
0.481481
0.066298
0.088398
0.132597
0
0
0
0
0
0
0
0.027451
0.205607
321
18
38
17.833333
0.682353
0.065421
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.153846
0.461538
0.230769
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
d4f583072901ee0ab94c10d93e238c7f33bf30a3
4,745
py
Python
lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
#!/usr/bin/python import argparse import ConfigParser import os import sys new_path = [ os.path.join( os.getcwd(), "lib" ) ] new_path.extend( sys.path[1:] ) sys.path = new_path from galaxy import eggs eggs.require( "SQLAlchemy >= 0.4" ) import galaxy.webapps.tool_shed.model.mapping as tool_shed_model from sqlalchemy.exc import ProgrammingError from sqlalchemy.exc import OperationalError from tool_shed.util import xml_util def check_db( config_parser ): dburi = None if config_parser.has_option( 'app:main', 'database_connection' ): dburi = config_parser.get( 'app:main', 'database_connection' ) elif config_parser.has_option( 'app:main', 'database_file' ): db_file = config_parser.get( 'app:main', 'database_file' ) dburi = "sqlite:///%s?isolation_level=IMMEDIATE" % db_file else: print 'The database configuration setting is missing from the tool_shed.ini file. Add this setting before attempting to bootstrap.' exit(1) sa_session = None database_exists_message = 'The database configured for this Tool Shed is not new, so bootstrapping is not allowed. ' database_exists_message += 'Create a new database that has not been migrated before attempting to bootstrap.' try: model = tool_shed_model.init( config_parser.get( 'app:main', 'file_path' ), dburi, engine_options={}, create_tables=False ) sa_session = model.context.current print database_exists_message exit(1) except ProgrammingError, e: pass except OperationalError, e: pass try: if sa_session is not None: result = sa_session.execute( 'SELECT version FROM migrate_version' ).first() if result[0] >= 2: print database_exists_message exit(1) else: pass except ProgrammingError, e: pass if config_parser.has_option( 'app:main', 'hgweb_config_dir' ): hgweb_config_parser = ConfigParser.ConfigParser() hgweb_dir = config_parser.get( 'app:main', 'hgweb_config_dir' ) hgweb_config_file = os.path.join( hgweb_dir, 'hgweb.config' ) if not os.path.exists( hgweb_config_file ): exit(0) hgweb_config_parser.read( hgweb_config_file ) configured_repos = hgweb_config_parser.items( 'paths' ) if len( configured_repos ) >= 1: message = "This Tool Shed's hgweb.config file contains entries, so bootstrapping is not allowed. Delete" message += " the current hgweb.config file along with all associated repositories in the configured " message += "location before attempting to boostrap." print exit(1) else: exit(0) else: exit(0) exit(0) def admin_user_info( config_parser ): user_info_config = os.path.abspath( os.path.join( os.getcwd(), 'lib/tool_shed/scripts/bootstrap_tool_shed', 'user_info.xml' ) ) tree, error_message = xml_util.parse_xml( user_info_config ) if tree is None: print "The XML file ", user_info_config, " seems to be invalid, using defaults." email = '[email protected]' password = 'testuser' username = 'admin' else: root = tree.getroot() for elem in root: if elem.tag == 'email': email = elem.text elif elem.tag == 'password': password = elem.text elif elem.tag == 'username': username = elem.text print '%s__SEP__%s__SEP__%s' % ( username, email, password ) return 0 def get_local_tool_shed_url( config_parser ): port = '9009' if config_parser.has_section( 'server:main' ): if config_parser.has_option( 'server:main', 'port' ): port = config_parser.get( 'server:main', 'port' ) host = '127.0.0.1' print 'http://%s:%s' % ( host, port ) return 0 def main( args ): config_parser = ConfigParser.ConfigParser() if os.path.exists( args.config ): config_parser.read( args.config ) else: return 1 if args.method == 'check_db': return check_db( config_parser ) elif args.method == 'admin_user_info': return admin_user_info( config_parser ) elif args.method == 'get_url': return get_local_tool_shed_url( config_parser ) else: return 1 parser = argparse.ArgumentParser() parser.add_argument( '-c', '--config_file', dest='config', action='store', default='config/tool_shed.ini.sample' ) parser.add_argument( '-e', '--execute', dest='method', action='store', default='check_db' ) args = parser.parse_args() if __name__ == '__main__': exit( main( args ) )
36.221374
140
0.641307
605
4,745
4.814876
0.276033
0.086509
0.025747
0.023344
0.215929
0.132853
0.076553
0
0
0
0
0.007907
0.253741
4,745
130
141
36.5
0.814742
0.003372
0
0.261261
0
0.009009
0.241751
0.02242
0
0
0
0
0
0
null
null
0.072072
0.081081
null
null
0.063063
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
d4f6be38b9352af5e1c2c173a5437dc5e5702e4d
4,359
py
Python
tools/jslib_builder.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
tools/jslib_builder.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
74
2015-12-28T16:17:20.000Z
2021-09-08T12:28:59.000Z
tools/jslib_builder.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
from JumpScale import j class builder(): # @property # def buildDir(self): # return j.sal.fs.joinPaths(j.dirs.tmpDir, "jsbuilder") @property def cuisine(self): return j.tools.cuisine.local # ALL NOT NEEDED ANY LONGER USE bower # def angular(self): # version = "1.5.9" # url = "http://code.angularjs.org/%s/angular-%s.zip" % (version, version) # path = j.do.download(url, to='', overwrite=False, retry=3, timeout=0) # dpath = j.sal.fs.joinPaths(self.buildDir, "angular") # j.sal.fs.removeDirTree(dpath) # z = j.tools.zipfile.get(path) # z.extract(self.buildDir) # z.close() # j.sal.fs.renameDir(j.sal.fs.joinPaths(self.buildDir, "angular-%s" % sversion), dpath) # # self._removeMapFiles(dpath) # # def _removeMapFiles(self, path): # for item in j.sal.fs.find(path, "*.js.map"): # item = "%s/%s" % (path, item) # # print(item) # j.sal.fs.remove(item) # # def bootstrap(self): # version = "3.3.7" # url = "https://github.com/twbs/bootstrap/releases/download/v%s/bootstrap-%s-dist.zip" % (version, version) # path = j.do.download(url, to='', overwrite=False, retry=3, timeout=0) # dpath = j.sal.fs.joinPaths(self.buildDir, "bootstrap") # j.sal.fs.removeDirTree(dpath) # z = j.tools.zipfile.get(path) # z.extract(self.buildDir) # z.close() # j.sal.fs.renameDir(j.sal.fs.joinPaths(self.buildDir, "bootstrap-%s-dist" % version), dpath) # # self._removeMapFiles(dpath) # # def codemirror(self): # # version = "5.9" # url = "http://codemirror.net/codemirror-%s.zip" % version # path = j.do.download(url, to='', overwrite=False, retry=3, timeout=0) # dpath = j.sal.fs.joinPaths(self.buildDir, "codemirror") # j.sal.fs.removeDirTree(dpath) # z = j.tools.zipfile.get(path) # z.extract(self.buildDir) # z.close() # j.sal.fs.renameDir(j.sal.fs.joinPaths(self.buildDir, "codemirror-%s" % version), dpath) # @property # def npm(self): # if self._npm == False: # if j.sal.fs.exists("%s/npm" % j.dirs.binDir, followlinks=True) == False: # self.cuisine.apps.nodejs.install() # self._npm = "%snpm" % j.dirs.binDir # return self._npm # @property # def bower(self): # if self._bower == False: # if j.sal.fs.exists("%s/bower" % j.dirs.binDir, followlinks=True) == False: # self.cuisine.apps.nodejs.install() # self._bower = "%sbower" % j.dirs.binDir # return self._bower # def famous(self): # url = "https://github.com/Famous/engine-seed" # cdest = j.do.pullGitRepo(url) # res = j.sal.process.executeWithoutPipe("cd %s;%s install" % (cdest, self.npm)) # # def flatui(self): # url = "https://github.com/designmodo/Flat-UI.git" # cdest = j.do.pullGitRepo(url) # print("npm/bower install") # res = j.sal.process.executeWithoutPipe("cd %s;%s install;%s install" % (cdest, self.npm, self.bower)) # # def do1(self): # j.sal.fs.createDir(j.sal.fs.joinPaths(j.dirs.tmpDir, "jsbuilder")) # if self.checkIPFS == False: # self.getIPFS() # # self.angular() # # self.bootstrap() # # self.codemirror() # # self.famous() # self.flatui() def do(self): if self.checkIPFS == False: self.getIPFS() # self.cuisine.apps.nodejs.bowerInstall(["jquery", "flatui", "bootstrap", "famous", "codemirror", "font-awesome", "jqplot", # "underscore", "spin", "moment", "http://DlhSoft.com/Packages/DlhSoft.KanbanLibrary.zip", "jqwidgets", "d3", "angular-latest"]) cmd = "cd $tmpDir/bower;ipfs -c $cfgDir/ipfs/main/ add -r bower_components" print("IPFS upload, can take couple of minutes") res = self.cuisine.core.run(cmd) def checkIPFS(self): return j.sal.nettools.checkUrlReachable("http://localhost:5001/webui") == True def getIPFS(self): j.tools.cuisine.local.apps.ipfs.install() j.tools.cuisine.local.apps.ipfs.start() b = builder() b.do()
36.630252
175
0.566873
537
4,359
4.582868
0.268156
0.035758
0.046323
0.048761
0.543681
0.453474
0.432345
0.366518
0.338074
0.303129
0
0.006225
0.262904
4,359
118
176
36.940678
0.759726
0.73549
0
0
0
0
0.125235
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0.111111
0.444444
0.055556
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
d4ff76335b31237c5497fc74cfffe7b1e1ab18a8
317
py
Python
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
from django.db import models from shorty.manager import UrlManager class Url(models.Model): long_url = models.URLField() short_id = models.SlugField() counter = models.IntegerField(default=0) def __str__(self): return "%s -- %s" % (self.long_url, self.short_id) objects = UrlManager()
22.642857
58
0.684543
41
317
5.097561
0.634146
0.086124
0
0
0
0
0
0
0
0
0
0.003937
0.198738
317
14
59
22.642857
0.818898
0
0
0
0
0
0.025157
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.111111
1
0
0
0
0
null
0
0
0
0
0
0
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
0
0
1
1
0
0
2
be035d1ced1e70706ec7a59e81ecf6539a9f044b
3,960
py
Python
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
import KratosMultiphysics import KratosMultiphysics.KratosUnittest as UnitTest import KratosMultiphysics.ChimeraApplication from KratosMultiphysics.ChimeraApplication.fluid_chimera_analysis import FluidChimeraAnalysis class ChimeraAnalysisBaseTest(UnitTest.TestCase): def setUp(self): # Set to true to get post-process files for the test self.print_output = False def _run_test(self,settings_file_name): model = KratosMultiphysics.Model() with open(settings_file_name,'r') as settings_file: settings = KratosMultiphysics.Parameters(settings_file.read()) # to check the results: add output settings block if needed if self.print_output: settings.AddValue("output_processes", KratosMultiphysics.Parameters(r'''{ "vtk_output" : [{ "python_module" : "vtk_output_process", "kratos_module" : "KratosMultiphysics", "process_name" : "VtkOutputProcess", "help" : "This process writes postprocessing files for Paraview", "Parameters" : { "model_part_name" : "FluidModelPart.Parts_background_surface", "output_control_type" : "step", "output_frequency" : 1, "file_format" : "ascii", "output_precision" : 3, "output_sub_model_parts" : false, "write_deformed_configuration" : true, "folder_name" : "test_vtk_output", "save_output_files_in_folder" : true, "nodal_solution_step_data_variables" : ["VELOCITY","PRESSURE","DISTANCE","MESH_VELOCITY"], "nodal_data_value_variables" : [], "element_flags" : ["ACTIVE"], "nodal_flags" : ["VISITED","CHIMERA_INTERNAL_BOUNDARY"], "element_data_value_variables" : [], "condition_data_value_variables" : [] } },{ "python_module" : "vtk_output_process", "kratos_module" : "KratosMultiphysics", "process_name" : "VtkOutputProcess", "help" : "This process writes postprocessing files for Paraview", "Parameters" : { "model_part_name" : "FluidModelPart.Parts_patch_surface", "output_control_type" : "step", "output_frequency" : 1, "file_format" : "ascii", "output_precision" : 3, "output_sub_model_parts" : false, "write_deformed_configuration" : true, "folder_name" : "test_vtk_output", "save_output_files_in_folder" : true, "nodal_solution_step_data_variables" : ["VELOCITY","PRESSURE","DISTANCE","MESH_VELOCITY"], "nodal_data_value_variables" : [], "element_flags" : ["ACTIVE"], "nodal_flags" : ["VISITED","CHIMERA_INTERNAL_BOUNDARY"], "element_data_value_variables" : [], "condition_data_value_variables" : [] } }] }''')) analysis = FluidChimeraAnalysis(model,settings) analysis.Run()
58.235294
114
0.474495
276
3,960
6.438406
0.347826
0.030388
0.060777
0.023635
0.625774
0.625774
0.625774
0.625774
0.625774
0.625774
0
0.001812
0.442677
3,960
67
115
59.104478
0.803353
0.027273
0
0.622951
0
0
0.805404
0.209145
0
0
0
0
0
1
0.032787
false
0
0.065574
0
0.114754
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
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
2
be04a0613039c84ca76bcc0ca57e9da1601cdaf5
403
py
Python
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
import math,time,random import pepper_interface IP = "192.168.0.147" PORT = 9559 simulation = False with pepper_interface.get(IP,PORT,simulation) as pepper: time.sleep(1.0) values,time_stamp = pepper.laser.get() print print "Front" print values["Front"] print print "Left" print values["Left"] print print "Right" print values["Right"] print
14.392857
56
0.647643
54
403
4.777778
0.5
0.116279
0
0
0
0
0
0
0
0
0
0.052459
0.243176
403
27
57
14.925926
0.793443
0
0
0.222222
0
0
0.101737
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.555556
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
2
be09ff199c76d0416c7ca2377918a44850900a71
909
py
Python
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="soccergen", version="0.1", packages=find_packages(), # Project uses reStructuredText, so ensure that the docutils get # installed or upgraded on the target machine install_requires=["gfootball>=2.8",], # metadata to display on PyPI author="Peter Xenopoulos", author_email="[email protected]", description="Soccer trajectory and event data generation", keywords="soccer data-generation foootball", url="https://github.com/pnxenopoulos/soccer-data-gen", # project home page, if any project_urls={ "Issues": "https://github.com/pnxenopoulos/soccer-data-gen/issues", "Documentation": "https://github.com/pnxenopoulos/soccer-data-gen/csgo/", "Github": "https://github.com/pnxenopoulos/soccer-data-gen/csgo/", }, classifiers=["License :: OSI Approved :: MIT License"], )
39.521739
87
0.693069
109
909
5.733945
0.633028
0.08
0.0896
0.1664
0.2624
0.2624
0.2624
0.1376
0
0
0
0.005305
0.170517
909
22
88
41.318182
0.823607
0.176018
0
0
0
0
0.544355
0
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
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
0
0
0
0
1
0
0
0
0
0
0
2
be0fe0b9b27dc32e6433b7115d2cc69a3736598b
362
py
Python
custom_components/snowtire/__init__.py
borys-kupar/smart-home
f9c5ac949106e09278b97f49d5e08f0d495b24ef
[ "MIT" ]
128
2021-03-04T21:54:04.000Z
2022-03-17T22:53:20.000Z
custom_components/snowtire/__init__.py
borys-kupar/smart-home
f9c5ac949106e09278b97f49d5e08f0d495b24ef
[ "MIT" ]
4
2021-03-07T21:18:12.000Z
2021-09-24T13:09:39.000Z
custom_components/snowtire/__init__.py
borys-kupar/smart-home
f9c5ac949106e09278b97f49d5e08f0d495b24ef
[ "MIT" ]
15
2021-03-05T07:29:31.000Z
2022-03-31T10:07:06.000Z
# # Copyright (c) 2020, Andrey "Limych" Khrolenok <[email protected]> # Creative Commons BY-NC-SA 4.0 International Public License # (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) # """ The Snowtire binary sensor. For more details about this platform, please refer to the documentation at https://github.com/Limych/ha-snowtire/ """
30.166667
74
0.743094
54
362
4.981481
0.777778
0.02974
0.04461
0.052045
0.05948
0
0
0
0
0
0
0.025316
0.127072
362
11
75
32.909091
0.825949
0.950276
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
be0fff91b15ea92d0c10da9f061370eeda2b8af8
23,079
py
Python
tests/test_bayes_classifier.py
manishgit138/pomegranate
3457dcefdd623483b8efec7e9d87fd1bf4c115b0
[ "MIT" ]
3,019
2015-01-04T23:19:03.000Z
2022-03-31T12:55:46.000Z
tests/test_bayes_classifier.py
manishgit138/pomegranate
3457dcefdd623483b8efec7e9d87fd1bf4c115b0
[ "MIT" ]
818
2015-01-05T10:15:57.000Z
2022-03-07T19:30:28.000Z
tests/test_bayes_classifier.py
manishgit138/pomegranate
3457dcefdd623483b8efec7e9d87fd1bf4c115b0
[ "MIT" ]
639
2015-01-05T04:16:42.000Z
2022-03-29T11:08:00.000Z
from __future__ import (division) from pomegranate import * from pomegranate.io import DataGenerator from pomegranate.io import DataFrameGenerator from nose.tools import with_setup from nose.tools import assert_almost_equal from nose.tools import assert_equal from nose.tools import assert_not_equal from nose.tools import assert_less_equal from nose.tools import assert_raises from nose.tools import assert_true from numpy.testing import assert_array_almost_equal import pandas import random import pickle import numpy as np nan = numpy.nan def setup_multivariate_gaussian(): mu, cov = [0, 0, 0], numpy.eye(3) d1 = MultivariateGaussianDistribution(mu, cov) mu, cov = [2, 2, 2], numpy.eye(3) d2 = MultivariateGaussianDistribution(mu, cov) global model model = BayesClassifier([d1, d2]) global X X = numpy.array([[ 0.3, 0.5, 0.1], [ 0.8, 1.4, 0.5], [ 1.4, 2.6, 1.8], [ 4.2, 3.3, 3.7], [ 2.6, 3.6, 3.3], [ 3.1, 2.2, 1.7], [ 1.8, 2.2, 1.8], [-1.2, -1.8, -1.5], [-1.8, 0.3, 0.5], [ 0.7, -1.3, -0.1]]) global y y = [0, 0, 0, 1, 1, 1, 1, 0, 0, 0] global X_nan X_nan = numpy.array([[ 0.3, nan, 0.1], [ nan, 1.4, nan], [ 1.4, 2.6, nan], [ nan, nan, nan], [ nan, 3.6, 3.3], [ 3.1, nan, 1.7], [ nan, nan, 1.8], [-1.2, -1.8, -1.5], [ nan, 0.3, 0.5], [ nan, -1.3, nan]]) def setup_multivariate_mixed(): mu, cov = [0, 0, 0], numpy.eye(3) d1 = MultivariateGaussianDistribution(mu, cov) d21 = ExponentialDistribution(5) d22 = LogNormalDistribution(0.2, 0.8) d23 = PoissonDistribution(3) d2 = IndependentComponentsDistribution([d21, d22, d23]) global model model = BayesClassifier([d1, d2]) global X X = numpy.array([[ 0.3, 0.5, 0.1], [ 0.8, 1.4, 0.5], [ 1.4, 2.6, 1.8], [ 4.2, 3.3, 3.7], [ 2.6, 3.6, 3.3], [ 3.1, 2.2, 1.7], [ 1.8, 2.2, 1.8], [ 1.2, 1.8, 1.5], [ 1.8, 0.3, 0.5], [ 0.7, 1.3, 0.1]]) global y y = [0, 0, 0, 1, 1, 1, 1, 0, 0, 0] global X_nan X_nan = numpy.array([[ 0.3, nan, 0.1], [ nan, 1.4, nan], [ 1.4, 2.6, nan], [ nan, nan, nan], [ nan, 3.6, 3.3], [ 3.1, nan, 1.7], [ nan, nan, 1.8], [ 1.2, 1.8, 1.5], [ nan, 0.3, 0.5], [ nan, 1.3, nan]]) def setup_hmm(): global model global hmm1 global hmm2 global hmm3 rigged = State( DiscreteDistribution({ 'H': 0.8, 'T': 0.2 }) ) unrigged = State( DiscreteDistribution({ 'H': 0.5, 'T':0.5 }) ) hmm1 = HiddenMarkovModel() hmm1.start = rigged hmm1.add_transition(rigged, rigged, 1) hmm1.bake() hmm2 = HiddenMarkovModel() hmm2.start = unrigged hmm2.add_transition(unrigged, unrigged, 1) hmm2.bake() hmm3 = HiddenMarkovModel() hmm3.add_transition(hmm3.start, unrigged, 0.5) hmm3.add_transition(hmm3.start, rigged, 0.5) hmm3.add_transition(rigged, rigged, 0.5) hmm3.add_transition(rigged, unrigged, 0.5) hmm3.add_transition(unrigged, rigged, 0.5) hmm3.add_transition(unrigged, unrigged, 0.5) hmm3.bake() model = BayesClassifier([hmm1, hmm2, hmm3]) def setup_multivariate(): pass def teardown(): pass @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_initialization(): assert_equal(model.d, 3) assert_equal(model.n, 2) assert_equal(model.is_vl_, False) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_initialization(): assert_equal(model.d, 3) assert_equal(model.n, 2) assert_equal(model.is_vl_, False) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_predict_log_proba(): y_hat = model.predict_log_proba(X) y = [[ -1.48842547e-02, -4.21488425e+00], [ -4.37487950e-01, -1.03748795e+00], [ -5.60369104e+00, -3.69104343e-03], [ -1.64000001e+01, -7.54345812e-08], [ -1.30000023e+01, -2.26032685e-06], [ -8.00033541e+00, -3.35406373e-04], [ -5.60369104e+00, -3.69104343e-03], [ -3.05902274e-07, -1.50000003e+01], [ -3.35406373e-04, -8.00033541e+00], [ -6.11066022e-04, -7.40061107e+00]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_predict_log_proba(): y_hat = model.predict_log_proba(X) y = [[ -5.03107596e-01, -9.27980626e-01], [ -1.86355320e-01, -1.77183117e+00], [ -5.58542088e-01, -8.48731256e-01], [ -7.67315597e-01, -6.24101927e-01], [ -2.32860808e+00, -1.02510436e-01], [ -3.06641866e-03, -5.78877778e+00], [ -9.85292840e-02, -2.36626165e+00], [ -2.61764180e-01, -1.46833995e+00], [ -2.01640009e-03, -6.20744952e+00], [ -1.47371167e-01, -1.98758175e+00]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_nan_predict_log_proba(): y_hat = model.predict_log_proba(X_nan) y = [[ -3.99533332e-02, -3.23995333e+00], [ -1.17110067e+00, -3.71100666e-01], [ -4.01814993e+00, -1.81499279e-02], [ -6.93147181e-01, -6.93147181e-01], [ -9.80005545e+00, -5.54500620e-05], [ -5.60369104e+00, -3.69104343e-03], [ -1.78390074e+00, -1.83900741e-01], [ -3.05902274e-07, -1.50000003e+01], [ -8.68361522e-02, -2.48683615e+00], [ -1.00016521e-02, -4.61000165e+00]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_nan_predict_log_proba(): y_hat = model.predict_log_proba(X_nan) y = [[ -3.57980882e-01, -1.20093223e+00], [ -1.20735130e+00, -3.55230506e-01], [ -2.43174286e-01, -1.53310132e+00], [ -6.93147181e-01, -6.93147181e-01], [ -9.31781101e+00, -8.98143220e-05], [ -6.29755079e-04, -7.37049444e+00], [ -1.31307006e+00, -3.13332194e-01], [ -2.61764180e-01, -1.46833995e+00], [ -2.29725479e-01, -1.58353505e+00], [ -1.17299253e+00, -3.70251760e-01]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_predict_log_proba_parallel(): y_hat = model.predict_log_proba(X, n_jobs=2) y = [[ -1.48842547e-02, -4.21488425e+00], [ -4.37487950e-01, -1.03748795e+00], [ -5.60369104e+00, -3.69104343e-03], [ -1.64000001e+01, -7.54345812e-08], [ -1.30000023e+01, -2.26032685e-06], [ -8.00033541e+00, -3.35406373e-04], [ -5.60369104e+00, -3.69104343e-03], [ -3.05902274e-07, -1.50000003e+01], [ -3.35406373e-04, -8.00033541e+00], [ -6.11066022e-04, -7.40061107e+00]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_predict_log_proba_parallel(): y_hat = model.predict_log_proba(X, n_jobs=2) y = [[ -5.03107596e-01, -9.27980626e-01], [ -1.86355320e-01, -1.77183117e+00], [ -5.58542088e-01, -8.48731256e-01], [ -7.67315597e-01, -6.24101927e-01], [ -2.32860808e+00, -1.02510436e-01], [ -3.06641866e-03, -5.78877778e+00], [ -9.85292840e-02, -2.36626165e+00], [ -2.61764180e-01, -1.46833995e+00], [ -2.01640009e-03, -6.20744952e+00], [ -1.47371167e-01, -1.98758175e+00]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_predict_proba(): y_hat = model.predict_proba(X) y = [[ 9.85225968e-01, 1.47740317e-02], [ 6.45656306e-01, 3.54343694e-01], [ 3.68423990e-03, 9.96315760e-01], [ 7.54345778e-08, 9.99999925e-01], [ 2.26032430e-06, 9.99997740e-01], [ 3.35350130e-04, 9.99664650e-01], [ 3.68423990e-03, 9.96315760e-01], [ 9.99999694e-01, 3.05902227e-07], [ 9.99664650e-01, 3.35350130e-04], [ 9.99389121e-01, 6.10879359e-04]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_predict_proba(): y_hat = model.predict_proba(X) y = [[ 0.60464873, 0.39535127], [ 0.82997863, 0.17002137], [ 0.57204244, 0.42795756], [ 0.46425765, 0.53574235], [ 0.09743127, 0.90256873], [ 0.99693828, 0.00306172], [ 0.90616916, 0.09383084], [ 0.76969251, 0.23030749], [ 0.99798563, 0.00201437], [ 0.86297361, 0.13702639]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_nan_predict_proba(): y_hat = model.predict_proba(X_nan) y = [[ 9.60834277e-01, 3.91657228e-02], [ 3.10025519e-01, 6.89974481e-01], [ 1.79862100e-02, 9.82013790e-01], [ 5.00000000e-01, 5.00000000e-01], [ 5.54485247e-05, 9.99944551e-01], [ 3.68423990e-03, 9.96315760e-01], [ 1.67981615e-01, 8.32018385e-01], [ 9.99999694e-01, 3.05902227e-07], [ 9.16827304e-01, 8.31726965e-02], [ 9.90048198e-01, 9.95180187e-03]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_nan_predict_proba(): y_hat = model.predict_proba(X_nan) y = [[ 6.99086440e-01, 3.00913560e-01], [ 2.98988163e-01, 7.01011837e-01], [ 7.84134838e-01, 2.15865162e-01], [ 5.00000000e-01, 5.00000000e-01], [ 8.98102888e-05, 9.99910190e-01], [ 9.99370443e-01, 6.29556825e-04], [ 2.68992964e-01, 7.31007036e-01], [ 7.69692511e-01, 2.30307489e-01], [ 7.94751748e-01, 2.05248252e-01], [ 3.09439547e-01, 6.90560453e-01]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_predict_proba_parallel(): y_hat = model.predict_proba(X, n_jobs=2) y = [[ 9.85225968e-01, 1.47740317e-02], [ 6.45656306e-01, 3.54343694e-01], [ 3.68423990e-03, 9.96315760e-01], [ 7.54345778e-08, 9.99999925e-01], [ 2.26032430e-06, 9.99997740e-01], [ 3.35350130e-04, 9.99664650e-01], [ 3.68423990e-03, 9.96315760e-01], [ 9.99999694e-01, 3.05902227e-07], [ 9.99664650e-01, 3.35350130e-04], [ 9.99389121e-01, 6.10879359e-04]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_predict_proba_parallel(): y_hat = model.predict_proba(X, n_jobs=2) y = [[ 0.60464873, 0.39535127], [ 0.82997863, 0.17002137], [ 0.57204244, 0.42795756], [ 0.46425765, 0.53574235], [ 0.09743127, 0.90256873], [ 0.99693828, 0.00306172], [ 0.90616916, 0.09383084], [ 0.76969251, 0.23030749], [ 0.99798563, 0.00201437], [ 0.86297361, 0.13702639]] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_predict(): y_hat = model.predict(X) y = [0, 0, 1, 1, 1, 1, 1, 0, 0, 0] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_predict(): y_hat = model.predict(X) y = [0, 0, 0, 1, 1, 0, 0, 0, 0, 0] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_nan_predict(): y_hat = model.predict(X_nan) y = [0, 1, 1, 0, 1, 1, 1, 0, 0, 0] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_nan_predict(): y_hat = model.predict(X_nan) y = [0, 1, 0, 0, 1, 0, 1, 0, 0, 1] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_predict_parallel(): y_hat = model.predict(X, n_jobs=2) y = [0, 0, 1, 1, 1, 1, 1, 0, 0, 0] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_predict_parallel(): y_hat = model.predict(X, n_jobs=2) y = [0, 0, 0, 1, 1, 0, 0, 0, 0, 0] assert_array_almost_equal(y, y_hat) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_fit_parallel(): model.fit(X, y, n_jobs=2) mu1 = model.distributions[0].parameters[0] cov1 = model.distributions[0].parameters[1] mu1_t = [0.03333333, 0.28333333, 0.21666666] cov1_t = [[1.3088888, 0.9272222, 0.6227777], [0.9272222, 2.2513888, 1.3402777], [0.6227777, 1.3402777, 0.9547222]] mu2 = model.distributions[1].parameters[0] cov2 = model.distributions[1].parameters[1] mu2_t = [2.925, 2.825, 2.625] cov2_t = [[0.75687499, 0.23687499, 0.4793750], [0.23687499, 0.40187499, 0.5318749], [0.47937500, 0.53187499, 0.7868750]] assert_array_almost_equal(mu1, mu1_t) assert_array_almost_equal(cov1, cov1_t) assert_array_almost_equal(mu2, mu2_t) assert_array_almost_equal(cov2, cov2_t) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_fit_parallel(): model.fit(X, y, n_jobs=2) mu1 = model.distributions[0].parameters[0] cov1 = model.distributions[0].parameters[1] mu1_t = [1.033333, 1.3166667, 0.75] cov1_t = [[0.242222, 0.0594444, 0.178333], [0.059444, 0.5980555, 0.414166], [0.178333, 0.4141666, 0.439166]] d21 = model.distributions[1].distributions[0] d22 = model.distributions[1].distributions[1] d23 = model.distributions[1].distributions[2] assert_array_almost_equal(mu1, mu1_t) assert_array_almost_equal(cov1, cov1_t) assert_array_almost_equal(d21.parameters, [0.34188034]) assert_array_almost_equal(d22.parameters, [1.01294275, 0.22658346]) assert_array_almost_equal(d23.parameters, [2.625]) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_from_samples(): model = BayesClassifier.from_samples(MultivariateGaussianDistribution, X, y) mu1 = model.distributions[0].parameters[0] cov1 = model.distributions[0].parameters[1] mu1_t = [0.03333333, 0.2833333, 0.21666666] cov1_t = [[1.308888888, 0.9272222222, 0.6227777777], [0.927222222, 2.251388888, 1.340277777], [0.622777777, 1.340277777, 0.9547222222]] mu2 = model.distributions[1].parameters[0] cov2 = model.distributions[1].parameters[1] mu2_t = [2.925, 2.825, 2.625] cov2_t = [[0.75687500, 0.23687499, 0.47937500], [0.23687499, 0.40187499, 0.53187499], [0.47937500, 0.53187499, 0.78687500]] assert_array_almost_equal(mu1, mu1_t) assert_array_almost_equal(cov1, cov1_t) assert_array_almost_equal(mu2, mu2_t) assert_array_almost_equal(cov2, cov2_t) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_pickle(): model2 = pickle.loads(pickle.dumps(model)) assert_true(isinstance(model2, BayesClassifier)) assert_true(isinstance(model2.distributions[0], MultivariateGaussianDistribution)) assert_true(isinstance(model2.distributions[1], MultivariateGaussianDistribution)) assert_array_almost_equal(model.weights, model2.weights) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_pickle(): model2 = pickle.loads(pickle.dumps(model)) assert_true(isinstance(model2, BayesClassifier)) assert_true(isinstance(model2.distributions[0], MultivariateGaussianDistribution)) assert_true(isinstance(model2.distributions[1], IndependentComponentsDistribution)) assert_array_almost_equal(model.weights, model2.weights) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_to_json(): model2 = BayesClassifier.from_json(model.to_json()) assert_true(isinstance(model2, BayesClassifier)) assert_true(isinstance(model2.distributions[0], MultivariateGaussianDistribution)) assert_true(isinstance(model2.distributions[1], MultivariateGaussianDistribution)) assert_array_almost_equal(model.weights, model2.weights) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_to_json(): model2 = BayesClassifier.from_json(model.to_json()) assert_true(isinstance(model2, BayesClassifier)) assert_true(isinstance(model2.distributions[0], MultivariateGaussianDistribution)) assert_true(isinstance(model2.distributions[1], IndependentComponentsDistribution)) assert_array_almost_equal(model.weights, model2.weights) @with_setup(setup_multivariate_gaussian, teardown) def test_bc_multivariate_gaussian_robust_from_json(): model2 = from_json(model.to_json()) assert_true(isinstance(model2, BayesClassifier)) assert_true(isinstance(model2.distributions[0], MultivariateGaussianDistribution)) assert_true(isinstance(model2.distributions[1], MultivariateGaussianDistribution)) assert_array_almost_equal(model.weights, model2.weights) @with_setup(setup_multivariate_mixed, teardown) def test_bc_multivariate_mixed_robust_from_json(): model2 = from_json(model.to_json()) assert_true(isinstance(model2, BayesClassifier)) assert_true(isinstance(model2.distributions[0], MultivariateGaussianDistribution)) assert_true(isinstance(model2.distributions[1], IndependentComponentsDistribution)) assert_array_almost_equal(model.weights, model2.weights) @with_setup(setup_hmm, teardown) def test_model(): assert_almost_equal(hmm1.log_probability(list('H')), -0.2231435513142097 ) assert_almost_equal(hmm1.log_probability(list('T')), -1.6094379124341003 ) assert_almost_equal(hmm1.log_probability(list('HHHH')), -0.8925742052568388 ) assert_almost_equal(hmm1.log_probability(list('THHH')), -2.2788685663767296 ) assert_almost_equal(hmm1.log_probability(list('TTTT')), -6.437751649736401 ) assert_almost_equal(hmm2.log_probability(list('H')), -0.6931471805599453 ) assert_almost_equal(hmm2.log_probability(list('T')), -0.6931471805599453 ) assert_almost_equal(hmm2.log_probability(list('HHHH')), -2.772588722239781 ) assert_almost_equal(hmm2.log_probability(list('THHH')), -2.772588722239781 ) assert_almost_equal(hmm2.log_probability(list('TTTT')), -2.772588722239781 ) assert_almost_equal(hmm3.log_probability(list('H')), -0.43078291609245417) assert_almost_equal(hmm3.log_probability(list('T')), -1.0498221244986776) assert_almost_equal(hmm3.log_probability(list('HHHH')), -1.7231316643698167) assert_almost_equal(hmm3.log_probability(list('THHH')), -2.3421708727760397) assert_almost_equal(hmm3.log_probability(list('TTTT')), -4.1992884979947105) assert_almost_equal(hmm3.log_probability(list('THTHTHTHTHTH')), -8.883630243546788) assert_almost_equal(hmm3.log_probability(list('THTHHHHHTHTH')), -7.645551826734343) assert_equal(model.d, 1) @with_setup(setup_hmm, teardown) def test_hmm_log_proba(): logs = model.predict_log_proba(np.array([list('H'), list('THHH'), list('TTTT'), list('THTHTHTHTHTH'), list('THTHHHHHTHTH')])) assert_almost_equal(logs[0][0], -0.89097292388986515) assert_almost_equal(logs[0][1], -1.3609765531356006) assert_almost_equal(logs[0][2], -1.0986122886681096) assert_almost_equal(logs[1][0], -0.93570553121744293) assert_almost_equal(logs[1][1], -1.429425687080494) assert_almost_equal(logs[1][2], -0.9990078376167526) assert_almost_equal(logs[2][0], -3.9007882563128864) assert_almost_equal(logs[2][1], -0.23562532881626597) assert_almost_equal(logs[2][2], -1.6623251045711958) assert_almost_equal(logs[3][0], -3.1703366478831185) assert_almost_equal(logs[3][1], -0.49261403211260379) assert_almost_equal(logs[3][2], -1.058478108940049) assert_almost_equal(logs[4][0], -1.3058441172130273) assert_almost_equal(logs[4][1], -1.4007102236822906) assert_almost_equal(logs[4][2], -0.7284958836972919) @with_setup(setup_hmm, teardown) def test_hmm_proba(): probs = model.predict_proba(np.array([list('H'), list('THHH'), list('TTTT'), list('THTHTHTHTHTH'), list('THTHHHHHTHTH')])) assert_almost_equal(probs[0][0], 0.41025641025641024) assert_almost_equal(probs[0][1], 0.25641025641025639) assert_almost_equal(probs[0][2], 0.33333333333333331) assert_almost_equal(probs[1][0], 0.39230898163446098) assert_almost_equal(probs[1][1], 0.23944639992337707) assert_almost_equal(probs[1][2], 0.36824461844216183) assert_almost_equal(probs[2][0], 0.020225961918306088) assert_almost_equal(probs[2][1], 0.79007663743383105) assert_almost_equal(probs[2][2], 0.18969740064786292) assert_almost_equal(probs[3][0], 0.041989459861032523) assert_almost_equal(probs[3][1], 0.61102706038265642) assert_almost_equal(probs[3][2], 0.346983479756311) assert_almost_equal(probs[4][0], 0.27094373022369794) assert_almost_equal(probs[4][1], 0.24642188711704707) assert_almost_equal(probs[4][2], 0.48263438265925512) @with_setup(setup_hmm, teardown) def test_hmm_prediction(): predicts = model.predict(np.array([list('H'), list('THHH'), list('TTTT'), list('THTHTHTHTHTH'), list('THTHHHHHTHTH')])) assert_equal(predicts[0], 0) assert_equal(predicts[1], 0) assert_equal(predicts[2], 1) assert_equal(predicts[3], 1) assert_equal(predicts[4], 2) @with_setup(setup_multivariate_gaussian, teardown) def test_io_log_probability(): X2 = DataGenerator(X) X3 = DataFrameGenerator(pandas.DataFrame(X)) logp1 = model.log_probability(X) logp2 = model.log_probability(X2) logp3 = model.log_probability(X3) assert_array_almost_equal(logp1, logp2) assert_array_almost_equal(logp1, logp3) @with_setup(setup_multivariate_gaussian, teardown) def test_io_predict(): X2 = DataGenerator(X) X3 = DataFrameGenerator(pandas.DataFrame(X)) y_hat1 = model.predict(X) y_hat2 = model.predict(X2) y_hat3 = model.predict(X3) assert_array_almost_equal(y_hat1, y_hat2) assert_array_almost_equal(y_hat1, y_hat3) @with_setup(setup_multivariate_gaussian, teardown) def test_io_predict_proba(): X2 = DataGenerator(X) X3 = DataFrameGenerator(pandas.DataFrame(X)) y_hat1 = model.predict_proba(X) y_hat2 = model.predict_proba(X2) y_hat3 = model.predict_proba(X3) assert_array_almost_equal(y_hat1, y_hat2) assert_array_almost_equal(y_hat1, y_hat3) @with_setup(setup_multivariate_gaussian, teardown) def test_io_predict_log_proba(): X2 = DataGenerator(X) X3 = DataFrameGenerator(pandas.DataFrame(X)) y_hat1 = model.predict_log_proba(X) y_hat2 = model.predict_log_proba(X2) y_hat3 = model.predict_log_proba(X3) assert_array_almost_equal(y_hat1, y_hat2) assert_array_almost_equal(y_hat1, y_hat3) def test_io_fit(): X = numpy.random.randn(100, 5) + 0.5 weights = numpy.abs(numpy.random.randn(100)) y = numpy.random.randint(2, size=100) data_generator = DataGenerator(X, weights, y) mu1 = numpy.array([0, 0, 0, 0, 0]) mu2 = numpy.array([1, 1, 1, 1, 1]) cov = numpy.eye(5) d1 = MultivariateGaussianDistribution(mu1, cov) d2 = MultivariateGaussianDistribution(mu2, cov) bc1 = BayesClassifier([d1, d2]) bc1.fit(X, y, weights) d1 = MultivariateGaussianDistribution(mu1, cov) d2 = MultivariateGaussianDistribution(mu2, cov) bc2 = BayesClassifier([d1, d2]) bc2.fit(data_generator) logp1 = bc1.log_probability(X) logp2 = bc2.log_probability(X) assert_array_almost_equal(logp1, logp2) def test_io_from_samples(): X = numpy.random.randn(100, 5) + 0.5 weights = numpy.abs(numpy.random.randn(100)) y = numpy.random.randint(2, size=100) data_generator = DataGenerator(X, weights, y) d = MultivariateGaussianDistribution bc1 = BayesClassifier.from_samples(d, X=X, y=y, weights=weights) bc2 = BayesClassifier.from_samples(d, X=data_generator) logp1 = bc1.log_probability(X) logp2 = bc2.log_probability(X) assert_array_almost_equal(logp1, logp2)
32.597458
126
0.716669
3,403
23,079
4.63973
0.108728
0.066882
0.051682
0.066882
0.77497
0.710875
0.687567
0.639116
0.617329
0.595098
0
0.227955
0.131721
23,079
708
127
32.597458
0.559958
0
0
0.573529
0
0
0.007322
0
0
0
0
0
0.240809
1
0.080882
false
0.003676
0.029412
0
0.110294
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
1
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
2
be14596b5522e0877a99c1e6b243c1003263e5ff
71
py
Python
Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py
alex-dsouza777/Python-Basics
8f1c406f2319cd65b5d54dfea990d09fa69d9adf
[ "MIT" ]
null
null
null
Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py
alex-dsouza777/Python-Basics
8f1c406f2319cd65b5d54dfea990d09fa69d9adf
[ "MIT" ]
null
null
null
Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py
alex-dsouza777/Python-Basics
8f1c406f2319cd65b5d54dfea990d09fa69d9adf
[ "MIT" ]
1
2021-04-21T10:23:08.000Z
2021-04-21T10:23:08.000Z
#Addition of two numbers a = 30 b = 17 print("Sum of a and b is",a + b)
17.75
32
0.633803
17
71
2.647059
0.705882
0
0
0
0
0
0
0
0
0
0
0.074074
0.239437
71
4
32
17.75
0.759259
0.323944
0
0
0
0
0.354167
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
0
0
0
0
0
0
0
0
2
077cca840f68935d92c69072c7307ddde041c399
818
py
Python
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
1
2021-01-05T01:52:31.000Z
2021-01-05T01:52:31.000Z
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
2
2020-07-03T07:54:46.000Z
2020-07-03T07:59:08.000Z
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
null
null
null
"""Helper functions to tests.""" import numpy as np def norm(vs: np.array) -> float: """Compute the norm of a vector.""" return np.sqrt(np.dot(vs, vs)) def create_random_matrix(size: int) -> np.array: """Create a numpy random matrix.""" return np.random.normal(size=size ** 2).reshape(size, size) def create_symmetic_matrix(size: int) -> np.array: """Create a numpy symmetric matrix.""" xs = create_random_matrix(size) return xs + xs.T def check_eigenpairs( matrix: np.ndarray, eigenvalues: np.ndarray, eigenvectors: np.ndarray) -> bool: """Check that the eigenvalue equation holds.""" for i, value in enumerate(eigenvalues): residue = np.dot( matrix, eigenvectors[:, i]) - value * eigenvectors[:, i] assert norm(residue) < 1e-8
27.266667
68
0.640587
111
818
4.657658
0.468468
0.040619
0.069633
0.085106
0.123791
0.123791
0.123791
0.123791
0
0
0
0.004695
0.218826
818
29
69
28.206897
0.804382
0.196822
0
0
0
0
0
0
0
0
0
0
0.066667
1
0.266667
false
0
0.066667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
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
2
0784261b13ef0cb016c21f71e6bc994a164d136e
2,234
py
Python
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
1
2017-07-14T19:22:39.000Z
2017-07-14T19:22:39.000Z
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
6
2021-02-02T23:08:48.000Z
2021-09-08T02:47:17.000Z
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
import logging from django.core import mail from django.conf import settings from django.core.management.base import BaseCommand import amo.utils from users.models import UserProfile log = logging.getLogger('z.mailer') FROM = settings.DEFAULT_FROM_EMAIL class Command(BaseCommand): help = "Send the email for bug 662571" def handle(self, *args, **options): sendmail() def sendmail(): addrs = set(UserProfile.objects.values_list('email', flat=True) # whoa .filter(addons__versions__files__jetpack_version__isnull=False)) log.info('There are %d emails to send.' % len(addrs)) count = 0 for addr in addrs: count += 1 try: mail.send_mail(SUBJECT, MSG, FROM, [addr]) log.info('%s. DONE: %s' % (count, addr)) except Exception, e: log.info('%s. FAIL: %s (%s)' % (count, addr, e)) SUBJECT = 'Instructions for Automatic Upgrade to Add-on SDK 1.0' MSG = """\ Hello Mozilla Add-ons Developer! With the final version of the Add-on SDK only a week away, we wanted to get in touch with all add-on developers who have existing SDK-based (Jetpack) add-ons. We would like you to know that going forward AMO will be auto-updating add-ons with new versions of the Add-on SDK upon release. To ensure that your add-on(s) are auto-updated with the 1.0 final version of the SDK, we would ask that you download the latest release candidate build - https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.0rc2.tar.gz, https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.0rc2.zip - and update your add-on(s) on AMO. After the 1.0 release, we will scan our add-ons database and automatically upgrade any SDK-based add-ons we find that are using verions 1.0RC2 or greater to the 1.0 final version of the SDK. Any add-ons we find using versions of the SDK below 1.0RC2 will not be auto-updated and you will need to upgrade them to the 1.0 version of the SDK manually. Thank you for participating in the early stages of the Add-on SDK's development. Feedback and engagement from developers like you are the foundations for success in our open source community! Sincerely, The Mozilla Add-ons Team """
34.369231
80
0.717995
371
2,234
4.28841
0.442049
0.021999
0.020113
0.032055
0.125079
0.100566
0.100566
0.100566
0.069139
0.069139
0
0.016667
0.19427
2,234
64
81
34.90625
0.867222
0.001791
0
0
0
0.061224
0.628366
0
0
0
0
0
0
0
null
null
0
0.122449
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
07afa89bd7f7b951972777c2099542dd2fbf96da
304
py
Python
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
a = int(input()) while a: for x in range(a-1): out = '*' + ' ' * (a-x-2) + '*' + ' ' * (a-x-2) + '*' print(out.center(2*a-1)) print('*' * (2 * a - 1)) for x in range(a-1): out = '*' + ' ' * x + '*' + ' ' * x + '*' print(out.center(2*a-1)) a = int(input())
27.636364
61
0.348684
46
304
2.304348
0.282609
0.09434
0.084906
0.207547
0.622642
0.622642
0.301887
0
0
0
0
0.050761
0.351974
304
10
62
30.4
0.48731
0
0
0.6
0
0
0.036184
0
0.2
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
07b0911062690c0f062a5b15420ab76dd3a0ddb5
807
py
Python
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
# Generated by Django 2.2.1 on 2019-09-27 14:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schoolio', '0004_auto_20190927_0405'), ] operations = [ migrations.AlterField( model_name='student_assessment', name='assessment_mark', field=models.IntegerField(blank=True, null=True), ), migrations.AlterField( model_name='student_assessment', name='assessment_score', field=models.IntegerField(blank=True, null=True), ), migrations.AlterField( model_name='student_assessment', name='understanding_level', field=models.CharField(blank=True, max_length=150, null=True), ), ]
27.827586
74
0.607187
80
807
5.9625
0.5375
0.125786
0.157233
0.18239
0.524109
0.524109
0.524109
0.524109
0.377358
0.377358
0
0.058824
0.283767
807
28
75
28.821429
0.766436
0.055762
0
0.5
1
0
0.177632
0.030263
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
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
2
07c453afd778414ad9fee5c8bcdaf13018eeb9f5
1,755
py
Python
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
"""For neatly implementing static typing in packaging. `mypy` - the static type analysis tool we use - uses the `typing` module, which provides core functionality fundamental to mypy's functioning. Generally, `typing` would be imported at runtime and used in that fashion - it acts as a no-op at runtime and does not have any run-time overhead by design. As it turns out, `typing` is not vendorable - it uses separate sources for Python 2/Python 3. Thus, this codebase can not expect it to be present. To work around this, mypy allows the typing import to be behind a False-y optional to prevent it from running at runtime and type-comments can be used to remove the need for the types to be accessible directly during runtime. This module provides the False-y guard in a nicely named fashion so that a curious maintainer can reach here to read this. In packaging, all static-typing related imports should be guarded as follows: from packaging._typing import TYPE_CHECKING if TYPE_CHECKING: from typing import ... Ref: https://github.com/python/mypy/issues/3216 """ __all__ = ["TYPE_CHECKING", "cast"] # The TYPE_CHECKING constant defined by the typing module is False at runtime # but True while type checking. TYPE_CHECKING = False # pragma: no cover # typing's cast syntax requires calling typing.cast at runtime, but we don't # want to import typing at runtime. Here, we inform the type checkers that # we're importing `typing.cast` as `cast` and re-implement typing.cast's # runtime behavior in a block that is ignored by type checkers. if TYPE_CHECKING: # pragma: no cover # not executed at runtime from typing import cast else: # executed at runtime def cast(type_, value): # noqa return value
37.340426
79
0.756125
286
1,755
4.597902
0.465035
0.054753
0.027376
0
0
0
0
0
0
0
0
0.004208
0.187464
1,755
46
80
38.152174
0.917952
0.8849
0
0
0
0
0.091892
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
0
2
07df8ef3eee337410a8a9059f852b86e3f074f99
102
py
Python
Python/factorial.py
devaslooper/Code-Overflow
d7d55ea0f5015bccb5c4100c4240464fcda8504a
[ "MIT" ]
null
null
null
Python/factorial.py
devaslooper/Code-Overflow
d7d55ea0f5015bccb5c4100c4240464fcda8504a
[ "MIT" ]
null
null
null
Python/factorial.py
devaslooper/Code-Overflow
d7d55ea0f5015bccb5c4100c4240464fcda8504a
[ "MIT" ]
null
null
null
n=int(input("Enter number ")) fact=1 for i in range(1,n+1): fact=fact*i print("Factorial is ",fact)
17
29
0.666667
21
102
3.238095
0.666667
0
0
0
0
0
0
0
0
0
0
0.034091
0.137255
102
5
30
20.4
0.738636
0
0
0
0
0
0.254902
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
0
0
0
0
0
0
0
0
2
07f699666466b24dd921c96e35a918f2fe5e627b
293
py
Python
sleep.py
SkylerHoward/O
989246a5cdc297ab9f76cb6b26daebd799a03741
[ "MIT" ]
null
null
null
sleep.py
SkylerHoward/O
989246a5cdc297ab9f76cb6b26daebd799a03741
[ "MIT" ]
null
null
null
sleep.py
SkylerHoward/O
989246a5cdc297ab9f76cb6b26daebd799a03741
[ "MIT" ]
null
null
null
import time, morning from datetime import datetime def main(): while True: a = time.mktime(datetime.now().timetuple()) n = datetime.now() if n.hour == 6 and (n.minute-(n.minute%5)) == 15: return morning.main() time.sleep(300 - (time.mktime(datetime.now().timetuple())-a))
29.3
63
0.648464
43
293
4.418605
0.55814
0.173684
0.189474
0.221053
0.315789
0
0
0
0
0
0
0.028926
0.174061
293
10
63
29.3
0.756198
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
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
0
0
0
0
0
0
0
0
0
0
0
2
07f8b674abd2c96105f1e6a593d1a4ae299e109a
5,389
py
Python
restapi/services/Utils/test_getters.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
3
2022-01-10T01:39:00.000Z
2022-01-11T13:17:36.000Z
restapi/services/Utils/test_getters.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
null
null
null
restapi/services/Utils/test_getters.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
1
2022-01-09T07:30:36.000Z
2022-01-09T07:30:36.000Z
from django.test import TestCase import pandas as pd from .getters import Getter from .converter import Converter from strategies.models import Company from strategies.models import IndicatorType class GetDataTestCase(TestCase): def setUp(self) -> None: # Dummy company data Company.objects.create(name='abc', ticker='ABC', description='desc') Company.objects.create(name='abcd', ticker='ABCD', description='desc') Company.objects.create(name='abce', ticker='ABCE', description='desc') # Dummy indicator data IndicatorType.objects.create(name='abc', description='desc') IndicatorType.objects.create(name='abcd', description='desc') IndicatorType.objects.create(name='abce', description='desc') self.param_list_company = {"name": "abc", "ticker": 'ABC', "description": 'desc'} self.param_list_indicator_type = {"name": "abc", "description": 'desc'} def test_input_none(self): """No inputs are given""" self.assertEquals(Getter().table_name, None) self.assertEquals(Getter().param_list, None) self.assertEquals(Getter().df_flag, False) def test_input_all(self): """All inputs provided""" self.assertEquals(Getter(table_name=Company, df_flag=True, param_list=self.param_list_company).table_name, Company) self.assertEquals(Getter(table_name=Company, df_flag=True, param_list=self.param_list_company).param_list, self.param_list_company) self.assertEquals(Getter(table_name=Company, df_flag=True, param_list=self.param_list_company).df_flag, True) def test_input_df_flag(self): """Only df_flag input is provided""" self.assertEquals(Getter(df_flag=True).df_flag, True) self.assertEquals(Getter(df_flag=False).df_flag, False) def test_get_data_correct_obj_list(self): """Whether it returns correct obj list when input is correct""" # Returns correct object list for company self.assertEquals(Getter(table_name=Company, df_flag=False, param_list=self.param_list_company).get_data(), list(Company.objects.filter(**self.param_list_company))) self.assertEquals(Getter(table_name=Company, param_list={"description": 'desc'}).get_data(), list(Company.objects.filter(**{"description": 'desc'}))) self.assertEquals(Getter(table_name=Company, param_list={"name": "abcd"}).get_data(), list(Company.objects.filter(**{"name": "abcd"}))) # Returns correct object list for Indicator self.assertEquals( Getter(table_name=IndicatorType, df_flag=False, param_list=self.param_list_indicator_type).get_data(), list(IndicatorType.objects.filter(**self.param_list_indicator_type))) self.assertEquals(Getter(table_name=IndicatorType, param_list={"description": 'desc'}).get_data(), list(IndicatorType.objects.filter(**{"description": 'desc'}))) self.assertEquals(Getter(table_name=IndicatorType, param_list={"name": "abcd"}).get_data(), list(IndicatorType.objects.filter(**{"name": "abcd"}))) def test_get_data_correct_df(self): """Whether it returns correct df when input is correct""" # Returns correct df for company self.assertEquals(Getter(table_name=Company, df_flag=True, param_list=self.param_list_company).get_data() .equals( Converter(obj_list=list(Company.objects.filter(**self.param_list_company))).to_df() ), True) self.assertEquals(Getter(table_name=Company, df_flag=True, param_list={"description": 'desc'}).get_data() .equals( Converter(obj_list=list(Company.objects.filter(**{"description": 'desc'}))).to_df() ), True) self.assertEquals(Getter(table_name=Company, df_flag=True, param_list={"name": "abcd"}).get_data() .equals( Converter(obj_list=list(Company.objects.filter(**{"name": "abcd"}))).to_df() ), True) # Returns correct df for indicator type self.assertEquals( Getter(table_name=IndicatorType, df_flag=True, param_list=self.param_list_indicator_type).get_data() .equals( Converter(obj_list=list(IndicatorType.objects.filter(**self.param_list_indicator_type))).to_df() ), True) self.assertEquals(Getter(table_name=IndicatorType, df_flag=True, param_list={"description": 'desc'}).get_data() .equals( Converter(obj_list=list(IndicatorType.objects.filter(**{"description": 'desc'}))).to_df() ), True) self.assertEquals(Getter(table_name=IndicatorType, df_flag=True, param_list={"name": "abcd"}).get_data() .equals( Converter(obj_list=list(IndicatorType.objects.filter(**{"name": "abcd"}))).to_df() ), True) def test_get_data_invalid_inputs(self): self.assertRaises(TypeError, Getter(table_name="IndicatorTyp", df_flag=True, param_list={"name": "abcd"}).get_data) self.assertRaises(TypeError, Getter(table_name=IndicatorType, param_list={"nam": "abcd"}).get_data) self.assertRaises(TypeError, Getter(table_name=Company, param_list={"name": "abcd", "res": "abcd"}))
52.833333
119
0.660419
637
5,389
5.370487
0.10832
0.089448
0.128617
0.126279
0.806197
0.729027
0.583455
0.550132
0.466823
0.351944
0
0
0.200779
5,389
101
120
53.356436
0.794288
0.06903
0
0.189189
0
0
0.067389
0
0
0
0
0
0.310811
1
0.094595
false
0
0.081081
0
0.189189
0
0
0
0
null
0
0
0
1
1
0
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
0
0
0
0
0
0
2
5800bf043c25e136451e6eec4f012f681fa98619
336
py
Python
epiphancloud/models/settings.py
epiphan-video/epiphancloud_api
8799591ea4d3a7285976e0038716b23c9ffe7061
[ "MIT" ]
null
null
null
epiphancloud/models/settings.py
epiphan-video/epiphancloud_api
8799591ea4d3a7285976e0038716b23c9ffe7061
[ "MIT" ]
null
null
null
epiphancloud/models/settings.py
epiphan-video/epiphancloud_api
8799591ea4d3a7285976e0038716b23c9ffe7061
[ "MIT" ]
null
null
null
class DeviceSettings: def __init__(self, settings): self._id = settings["id"] self._title = settings["title"] self._type = settings["type"]["name"] self._value = settings["value"] @property def id(self): return self._id @property def value(self): return self._value
22.4
45
0.583333
37
336
5.027027
0.351351
0.064516
0.150538
0
0
0
0
0
0
0
0
0
0.28869
336
14
46
24
0.778243
0
0
0.166667
0
0
0.059524
0
0
0
0
0
0
1
0.25
false
0
0
0.166667
0.5
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
5807aa2f208ead7fccb84b1ddddcf37b4c200266
12,661
py
Python
tests/unittests/command_parse/test_stream.py
itamarhaber/iredis
61208aab34c731f88232abd2cacdf0e075e701f2
[ "BSD-3-Clause" ]
1,857
2019-08-09T02:36:13.000Z
2022-03-31T05:53:09.000Z
tests/unittests/command_parse/test_stream.py
itamarhaber/iredis
61208aab34c731f88232abd2cacdf0e075e701f2
[ "BSD-3-Clause" ]
281
2019-08-08T16:00:59.000Z
2022-03-07T14:05:36.000Z
tests/unittests/command_parse/test_stream.py
itamarhaber/iredis
61208aab34c731f88232abd2cacdf0e075e701f2
[ "BSD-3-Clause" ]
105
2019-08-09T04:36:12.000Z
2022-02-03T13:27:29.000Z
def test_xrange(judge_command): judge_command( "XRANGE somestream - +", {"command": "XRANGE", "key": "somestream", "stream_id": ["-", "+"]}, ) judge_command( "XRANGE somestream 1526985054069 1526985055069", { "command": "XRANGE", "key": "somestream", "stream_id": ["1526985054069", "1526985055069"], }, ) judge_command( "XRANGE somestream 1526985054069 1526985055069-10", { "command": "XRANGE", "key": "somestream", "stream_id": ["1526985054069", "1526985055069-10"], }, ) judge_command( "XRANGE somestream 1526985054069 1526985055069-10 count 10", { "command": "XRANGE", "key": "somestream", "stream_id": ["1526985054069", "1526985055069-10"], "count_const": "count", "count": "10", }, ) def test_xgroup_create(judge_command): judge_command( "XGROUP CREATE mykey mygroup 123", { "command": "XGROUP", "stream_create": "CREATE", "key": "mykey", "group": "mygroup", "stream_id": "123", }, ) judge_command( "XGROUP CREATE mykey mygroup $", { "command": "XGROUP", "stream_create": "CREATE", "key": "mykey", "group": "mygroup", "stream_id": "$", }, ) # short of a parameter judge_command("XGROUP CREATE mykey mygroup", None) judge_command("XGROUP CREATE mykey", None) def test_xgroup_setid(judge_command): judge_command( "XGROUP SETID mykey mygroup 123", { "command": "XGROUP", "stream_setid": "SETID", "key": "mykey", "group": "mygroup", "stream_id": "123", }, ) judge_command( "XGROUP SETID mykey mygroup $", { "command": "XGROUP", "stream_setid": "SETID", "key": "mykey", "group": "mygroup", "stream_id": "$", }, ) # two subcommand together shouldn't match judge_command("XGROUP CREATE mykey mygroup 123 SETID mykey mygroup $", None) def test_xgroup_destroy(judge_command): judge_command( "XGROUP destroy mykey mygroup", { "command": "XGROUP", "stream_destroy": "destroy", "key": "mykey", "group": "mygroup", }, ) judge_command("XGROUP destroy mykey", None) judge_command("XGROUP DESTROY mykey mygroup $", None) def test_xgroup_delconsumer(judge_command): judge_command( "XGROUP delconsumer mykey mygroup myconsumer", { "command": "XGROUP", "stream_delconsumer": "delconsumer", "key": "mykey", "group": "mygroup", "consumer": "myconsumer", }, ) judge_command( "XGROUP delconsumer mykey mygroup $", { "command": "XGROUP", "stream_delconsumer": "delconsumer", "key": "mykey", "group": "mygroup", "consumer": "$", }, ) judge_command("XGROUP delconsumer mykey mygroup", None) def test_xgroup_stream(judge_command): judge_command( "XACK mystream group1 123123", { "command": "XACK", "key": "mystream", "group": "group1", "stream_id": "123123", }, ) judge_command( "XACK mystream group1 123123 111", {"command": "XACK", "key": "mystream", "group": "group1", "stream_id": "111"}, ) def test_xinfo(judge_command): judge_command( "XINFO consumers mystream mygroup", { "command": "XINFO", "stream_consumers": "consumers", "key": "mystream", "group": "mygroup", }, ) judge_command( "XINFO GROUPS mystream", {"command": "XINFO", "stream_groups": "GROUPS", "key": "mystream"}, ) judge_command( "XINFO STREAM mystream", {"command": "XINFO", "stream": "STREAM", "key": "mystream"}, ) judge_command("XINFO HELP", {"command": "XINFO", "help": "HELP"}) judge_command("XINFO consumers mystream mygroup GROUPS mystream", None) judge_command("XINFO groups mystream mygroup", None) def test_xinfo_with_full(judge_command): judge_command( "XINFO STREAM mystream FULL", { "command": "XINFO", "stream": "STREAM", "key": "mystream", "full_const": "FULL", }, ) judge_command( "XINFO STREAM mystream FULL count 10", { "command": "XINFO", "stream": "STREAM", "key": "mystream", "full_const": "FULL", "count_const": "count", "count": "10", }, ) def test_xpending(judge_command): judge_command( "XPENDING mystream group55", {"command": "XPENDING", "key": "mystream", "group": "group55"}, ) judge_command( "XPENDING mystream group55 myconsumer", { "command": "XPENDING", "key": "mystream", "group": "group55", "consumer": "myconsumer", }, ) judge_command( "XPENDING mystream group55 - + 10", { "command": "XPENDING", "key": "mystream", "group": "group55", "stream_id": ["-", "+"], "count": "10", }, ) judge_command( "XPENDING mystream group55 - + 10 myconsumer", { "command": "XPENDING", "key": "mystream", "group": "group55", "stream_id": ["-", "+"], "count": "10", "consumer": "myconsumer", }, ) judge_command("XPENDING mystream group55 - + ", None) def test_xadd(judge_command): judge_command( "xadd mystream MAXLEN ~ 1000 * key value", { "command": "xadd", "key": "mystream", "maxlen": "MAXLEN", "approximately": "~", "count": "1000", "sfield": "key", "svalue": "value", "stream_id": "*", }, ) # test for MAXLEN option judge_command( "xadd mystream MAXLEN 1000 * key value", { "command": "xadd", "key": "mystream", "maxlen": "MAXLEN", "count": "1000", "sfield": "key", "svalue": "value", "stream_id": "*", }, ) judge_command( "xadd mystream * key value", { "command": "xadd", "key": "mystream", "sfield": "key", "svalue": "value", "stream_id": "*", }, ) # spcify stream id judge_command( "xadd mystream 123-123 key value", { "command": "xadd", "key": "mystream", "sfield": "key", "svalue": "value", "stream_id": "123-123", }, ) judge_command( "xadd mystream 123-123 key value foo bar hello world", { "command": "xadd", "key": "mystream", "sfield": "hello", "svalue": "world", "stream_id": "123-123", }, ) def test_xtrim(judge_command): judge_command( " XTRIM mystream MAXLEN 2", {"command": "XTRIM", "key": "mystream", "maxlen": "MAXLEN", "count": "2"}, ) judge_command( " XTRIM mystream MAXLEN ~ 2", { "command": "XTRIM", "key": "mystream", "maxlen": "MAXLEN", "count": "2", "approximately": "~", }, ) judge_command(" XTRIM mystream", None) def test_xdel(judge_command): judge_command( "XDEL mystream 1581165000000 1549611229000 1581060831000", {"command": "XDEL", "key": "mystream", "stream_id": "1581060831000"}, ) judge_command( "XDEL mystream 1581165000000", {"command": "XDEL", "key": "mystream", "stream_id": "1581165000000"}, ) def test_xclaim(judge_command): judge_command( "XCLAIM mystream mygroup Alice 3600000 1526569498055-0", { "command": "XCLAIM", "key": "mystream", "group": "mygroup", "consumer": "Alice", "millisecond": "3600000", "stream_id": "1526569498055-0", }, ) judge_command( "XCLAIM mystream mygroup Alice 3600000 1526569498055-0 123 456 789", { "command": "XCLAIM", "key": "mystream", "group": "mygroup", "consumer": "Alice", "millisecond": "3600000", "stream_id": "789", }, ) judge_command( "XCLAIM mystream mygroup Alice 3600000 1526569498055-0 IDEL 300", { "command": "XCLAIM", "key": "mystream", "group": "mygroup", "consumer": "Alice", "millisecond": ["3600000", "300"], "stream_id": "1526569498055-0", "idel": "IDEL", }, ) judge_command( "XCLAIM mystream mygroup Alice 3600000 1526569498055-0 retrycount 7", { "command": "XCLAIM", "key": "mystream", "group": "mygroup", "consumer": "Alice", "millisecond": "3600000", "stream_id": "1526569498055-0", "retrycount": "retrycount", "count": "7", }, ) judge_command( "XCLAIM mystream mygroup Alice 3600000 1526569498055-0 TIME 123456789", { "command": "XCLAIM", "key": "mystream", "group": "mygroup", "consumer": "Alice", "millisecond": "3600000", "stream_id": "1526569498055-0", "time": "TIME", "timestamp": "123456789", }, ) judge_command( "XCLAIM mystream mygroup Alice 3600000 1526569498055-0 FORCE", { "command": "XCLAIM", "key": "mystream", "group": "mygroup", "consumer": "Alice", "millisecond": "3600000", "stream_id": "1526569498055-0", "force": "FORCE", }, ) judge_command( "XCLAIM mystream mygroup Alice 3600000 1526569498055-0 JUSTID", { "command": "XCLAIM", "key": "mystream", "group": "mygroup", "consumer": "Alice", "millisecond": "3600000", "stream_id": "1526569498055-0", "justid": "JUSTID", }, ) def test_xread(judge_command): judge_command( "XREAD COUNT 2 STREAMS mystream writers 0-0 0-0", { "command": "XREAD", "count_const": "COUNT", "count": "2", "streams": "STREAMS", # FIXME current grammar can't support multiple tokens # so the ids will be recongized to keys. "keys": "mystream writers 0-0", "stream_id": "0-0", }, ) judge_command( "XREAD COUNT 2 BLOCK 1000 STREAMS mystream writers 0-0 0-0", { "command": "XREAD", "count_const": "COUNT", "count": "2", "streams": "STREAMS", "keys": "mystream writers 0-0", "block": "BLOCK", "millisecond": "1000", "stream_id": "0-0", }, ) def test_xreadgroup(judge_command): judge_command( "XREADGROUP GROUP mygroup1 Bob COUNT 1 BLOCK 100 NOACK STREAMS key1 1 key2 2", { "command": "XREADGROUP", "stream_group": "GROUP", "group": "mygroup1", "consumer": "Bob", "count_const": "COUNT", "count": "1", "block": "BLOCK", "millisecond": "100", "noack": "NOACK", "streams": "STREAMS", "keys": "key1 1 key2", "stream_id": "2", }, ) judge_command( "XREADGROUP GROUP mygroup1 Bob STREAMS key1 1 key2 2", { "command": "XREADGROUP", "stream_group": "GROUP", "group": "mygroup1", "consumer": "Bob", "streams": "STREAMS", "keys": "key1 1 key2", "stream_id": "2", }, ) judge_command("XREADGROUP GROUP group consumer", None)
27.523913
86
0.477766
1,037
12,661
5.699132
0.108968
0.140102
0.043147
0.060914
0.801184
0.711337
0.553299
0.483926
0.435871
0.349746
0
0.092985
0.373983
12,661
459
87
27.583878
0.652662
0.015086
0
0.504717
0
0
0.402311
0
0
0
0
0.002179
0
1
0.035377
false
0
0
0
0.035377
0
0
0
0
null
0
0
0
1
1
0
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
0
0
0
0
0
0
2
6af312eaf5ecd0a0c44737d1362c73e2f2338489
2,512
py
Python
kadal/query.py
Bucolo/Kadal
a0085f15df4f8ebbf5ec4cd4344e207773c6b498
[ "MIT" ]
1
2022-03-12T15:04:01.000Z
2022-03-12T15:04:01.000Z
kadal/query.py
Bucolo/Kadal
a0085f15df4f8ebbf5ec4cd4344e207773c6b498
[ "MIT" ]
null
null
null
kadal/query.py
Bucolo/Kadal
a0085f15df4f8ebbf5ec4cd4344e207773c6b498
[ "MIT" ]
null
null
null
MEDIA_SEARCH = """ query ($search: String, $type: MediaType, $exclude: MediaFormat, $isAdult: Boolean) { Media(search: $search, type: $type, format_not: $exclude, isAdult: $isAdult) { id type format title { english romaji native } synonyms status description startDate { year month day } endDate { year month day } episodes chapters volumes coverImage { large color } bannerImage genres averageScore siteUrl isAdult nextAiringEpisode { timeUntilAiring episode } } } """ MEDIA_BY_ID = """ query ($id: Int, $type: MediaType) { Media(id: $id, type: $type) { id type format title { english romaji native } synonyms status description startDate { year month day } endDate { year month day } episodes chapters coverImage { large color } bannerImage genres averageScore siteUrl isAdult nextAiringEpisode { timeUntilAiring episode } } } """ MEDIA_PAGED = """ query ( $id: Int, $page: Int, $perPage: Int, $search: String, $type: MediaType, $sort: [MediaSort] = [SEARCH_MATCH], $exclude: MediaFormat, $isAdult: Boolean ) { Page(page: $page, perPage: $perPage) { media(id: $id, search: $search, type: $type, sort: $sort, format_not: $exclude, isAdult: $isAdult) { id type format title { english romaji native } synonyms status description startDate { year month day } endDate { year month day } episodes chapters volumes coverImage { large color } bannerImage genres averageScore siteUrl isAdult popularity } } } """ USER_SEARCH = """ query ($search: String) { User(search: $search) { id name html_about: about(asHtml: true) about avatar { large } bannerImage siteUrl stats { watchedTime chaptersRead } } } """ USER_BY_ID = """ query ($id: Int) { User(id: $id) { id name html_about: about(asHtml: true) about avatar { large } bannerImage siteUrl stats { watchedTime chaptersRead } } } """
14.03352
104
0.515525
214
2,512
5.995327
0.266355
0.042089
0.056118
0.039751
0.712393
0.690569
0.690569
0.690569
0.690569
0.690569
0
0
0.399682
2,512
178
105
14.11236
0.850796
0
0
0.683908
0
0.017241
0.956608
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
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
2
ed0441122c358fac6781aee918c51f234c854920
288
py
Python
resolwe/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
27
2015-12-07T18:29:12.000Z
2022-03-16T08:01:47.000Z
resolwe/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
681
2015-12-01T11:52:24.000Z
2022-03-21T07:43:37.000Z
resolwe/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
28
2015-12-01T08:32:57.000Z
2021-12-14T00:04:16.000Z
""".. Ignore pydocstyle D400. ======= Resolwe ======= Open source enterprise dataflow engine in Django. """ from resolwe.__about__ import ( # noqa: F401 __author__, __copyright__, __email__, __license__, __summary__, __title__, __url__, __version__, )
14.4
49
0.638889
25
288
5.92
0.96
0
0
0
0
0
0
0
0
0
0
0.027149
0.232639
288
19
50
15.157895
0.642534
0.395833
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
1
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
0
2
ed0683361fef86b73c36e55f72fcd846b4e5dd8c
1,019
py
Python
footy/engine/UpdateEngine.py
dallinb/footy
d6879481a85b4a84023805bf29bd7dff32afa67f
[ "BSD-3-Clause" ]
2
2020-08-27T17:59:13.000Z
2021-10-10T02:26:20.000Z
footy/engine/UpdateEngine.py
FootyStats/footy
d6879481a85b4a84023805bf29bd7dff32afa67f
[ "BSD-3-Clause" ]
32
2020-08-24T15:01:57.000Z
2022-03-12T00:47:02.000Z
footy/engine/UpdateEngine.py
dallinb/footy
d6879481a85b4a84023805bf29bd7dff32afa67f
[ "BSD-3-Clause" ]
null
null
null
"""Prediction Engine - Update the data model with the most resent fixtures and results.""" from footy.domain import Competition class UpdateEngine: """Prediction Engine - Update the data model with the most resent fixtures and results.""" def __init__(self): """Construct a UpdateEngine object.""" def get_competition(self, code): """ Retrieve data for the supplied competition code. Returns ------- Competition A Competition object with the most recent fixtures and results for the supplied competition code. """ # return Competition return Competition def update_competition(self, competition): """ Retrieve data and enrich the supplied competition with the most recent fixtures and results. Returns ------- Competition A Competition object with the most recent fixtures and results for the supplied competition code. """ return Competition
29.970588
109
0.649657
111
1,019
5.90991
0.306306
0.053354
0.083841
0.114329
0.664634
0.620427
0.620427
0.567073
0.567073
0.567073
0
0
0.284593
1,019
33
110
30.878788
0.899863
0.614328
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.428571
false
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
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
2
ed2d4c9ed22365d84b24c00ca0cddff12ecae572
1,105
py
Python
emailthreads/util.py
emersion/python-emailthreads
99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd
[ "MIT" ]
34
2018-06-14T09:30:29.000Z
2022-03-13T20:56:06.000Z
emailthreads/util.py
emersion/python-emailreview
99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd
[ "MIT" ]
5
2019-12-01T20:20:51.000Z
2022-01-26T08:42:37.000Z
emailthreads/util.py
emersion/python-emailreview
99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd
[ "MIT" ]
3
2019-06-21T20:31:42.000Z
2021-12-18T00:09:07.000Z
import re import sys from email.message import EmailMessage def get_message_by_id(msgs, msg_id): # TODO: handle weird brackets stuff for msg in msgs: if msg["message-id"] == msg_id: return msg return None def strip_prefix(s, prefix): if s.startswith(prefix): s = s[len(prefix):] return s def flatten_header_field(value): value = value.strip() # TODO: more of these while value.startswith("Re:"): value = strip_prefix(value, "Re:").strip() lines = value.splitlines() lines = [l.strip() for l in lines] return " ".join(lines) def get_text_part(msg): for part in msg.walk(): if part.get_content_type() == "text/plain": return part return None def normalize_whitespace(text): # TODO: more of these # No-break space return text.replace('\xa0', ' ') def get_text(msg): text_part = get_text_part(msg) text = text_part.get_payload(decode=True).decode('utf-8', 'replace') text = normalize_whitespace(text) return text def lines_as_list(lines): if isinstance(lines, list): return lines elif isinstance(lines, str): return lines.split("\n") else: return list(lines)
22.1
69
0.709502
172
1,105
4.424419
0.383721
0.04205
0.034166
0.039422
0
0
0
0
0
0
0
0.002151
0.158371
1,105
49
70
22.55102
0.816129
0.079638
0
0.052632
0
0
0.045455
0
0
0
0
0.020408
0
1
0.184211
false
0
0.078947
0.026316
0.552632
0
0
0
0
null
0
0
0
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
0
0
0
0
0
1
0
0
2
ed2e4b3cf6fdf1d5d74d3435c7259f6fa34ae5df
297,511
py
Python
languages/pt-br.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
1
2017-03-15T23:29:41.000Z
2017-03-15T23:29:41.000Z
languages/pt-br.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
languages/pt-br.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
# coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "field1=\'newvalue\'". Não é possível atualizar ou excluir os resultados de uma junção', '# of International Staff': '# De equipe internacional', '# of National Staff': '# De equipe nacional', '# of Vehicles': '# De Veículos', '%(msg)s\nIf the request type is "%(type)s", please enter the %(type)s on the next screen.': '%(msg)s\nSe o tipo de pedido é "%(type)s", digite a %(type)s na próxima tela.', '%(system_name)s - Verify Email': '%(system_name)s - Verificar E-Mail', '%.1f km': '%.1f km', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%m-%d-%Y': '%m-%d-%Y', '%m-%d-%Y %H:%M:%S': '%m-%d-%Y %H:%M:%S', '%s Create a new site or ensure that you have permissions for an existing site.': '%s Cria um novo site ou garante que você tenha permissões para um site existente.', '%s rows deleted': '%s linhas excluídas', '%s rows updated': '%s linhas atualizadas', '& then click on the map below to adjust the Lat/Lon fields': 'Em seguida selecione o mapa abaixo para ajustar os campos Lat/Lon', "'Cancel' will indicate an asset log entry did not occur": "'cancelar' irá indicar que a entrada de log de ativo não ocorreu", '* Required Fields': '* campos obrigatórios', '0-15 minutes': '0-15 minutos', '1 Assessment': '1 Avaliação', '1 location, shorter time, can contain multiple Tasks': '1 Local, menos tempo, pode conter várias Tarefas', '1-3 days': '1 a 3 dias', '15-30 minutes': '15 a 30 minutos', '2 different options are provided here currently:': '2 opções diferentes são fornecidos aqui atualmente:', '2x4 Car': 'Carro 2x4', '30-60 minutes': '30-60 minutos', '4-7 days': '4-7 Dias', '4x4 Car': 'Carro 4x4', '8-14 days': '8-14 Dias', 'A Marker assigned to an individual Location is set if there is a need to override the Marker assigned to the Feature Class.': 'Um marcador assinalado para um local individual é configurado se há a necessidade de substituir um marcador assinalado para o Recurso Classe.', 'A Reference Document such as a file, URL or contact person to verify this data.': 'A Reference Document such as a file, URL or contact person to verify this data.', 'A Reference Document such as a file, URL or contact person to verify this data. You can type the 1st few characters of the document name to link to an existing document.': 'Um documento de referência como um arquivo, URL ou contacto pessoal para verificar esses dados. Pode inserir as primeiras letras do nome dum documento para chegar a esse documento.', 'A brief description of the group (optional)': 'Uma descrição breve do grupo (opcional)', 'A file downloaded from a GPS containing a series of geographic points in XML format.': 'Um ficheiro descarregado de um GPS contendo uma série de pontos geográficos em formato XML.', 'A file in GPX format taken from a GPS whose timestamps can be correlated with the timestamps on the photos to locate them on the map.': 'Um ficheiro em formato GPX retirado de um GPS cujas datas e horas podem ser correlacionadas com as de fotografias para localização num mapa.', 'A file in GPX format taken from a GPS.': 'A file in GPX format taken from a GPS.', 'A library of digital resources, such as photos, documents and reports': 'Uma biblioteca de recursos digitais, como fotos, documentos e relatórios', 'A location group can be used to define the extent of an affected area, if it does not fall within one administrative region.': 'Um grupo local pode ser usado para definir a extensão de uma área afetada, se não cair dentro de uma região administrativa.', 'A location group is a set of locations (often, a set of administrative regions representing a combined area).': 'Um grupo de localização é um conjunto de locais (muitas vezes, um conjunto de regiões administrativas que representam uma área Combinada).', 'A location group is a set of locations (often, a set of administrative regions representing a combined area). Member locations are added to a location group here. Location groups may be used to filter what is shown on the map and in search results to only entities covered by locations in the group. A location group can be used to define the extent of an affected area, if it does not fall within one administrative region. Location groups can be used in the Regions menu.': 'Um grupo de localização é um conjunto de locais (muitas vezes, um conjunto de regiões administrativas que representam uma área Combinada). Membros locais são adicionados em grupos locais aqui. Grupos locais podem ser utilizados para filtrar o que é mostrado no mapa e nos resultados da procura apenas as entidades locais abrangidas no grupo. Um grupo local pode ser usado para definir a extensão de uma área afetada, se não cair dentro de uma região administrativa. Grupos local pode ser utilizado no menu Regiões.', 'A location group must have at least one member.': 'Um grupo de localização deve ter, pelo menos, um membro.', "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": 'Um local que especifica a área geográfica dessa região. Este pode ser um local a partir da hierarquia local, ou um "grupo local", ou um local que tem um limite para a área.', 'A survey series with id %s does not exist. Please go back and create one.': 'Id% não foi encontrado na pesquisa. Por favor voltar e crie um.', 'A task is a piece of work that an individual or team can do in 1-2 days': 'A task is a piece of work that an individual or team can do in 1-2 days', 'ABOUT THIS MODULE': 'SOBRE ESTE MÓDULO', 'ACCESS DATA': 'Dados de Acesso', 'ANY': 'Todos', 'API Key': 'API Key', 'API is documented here': 'API está documentado aqui', 'ATC-20 Rapid Evaluation modified for New Zealand': 'ATC-20 Rápida Avaliação modificado para a Nova Zelândia', 'Abbreviation': 'Abreviatura', 'Ability to Fill Out Surveys': 'Capacidade para preencher Inquéritos', 'Ability to customize the list of details tracked at a Shelter': 'Capacidade de Customizar a lista de detalhes rastreados em um Abrigo', 'Ability to customize the list of human resource tracked at a Shelter': 'Capacidade de Customizar a lista de recursos humanos Rastreados em um Abrigo', 'Ability to customize the list of important facilities needed at a Shelter': 'Capacidade de Customizar a lista das instalações importante necessária em um Abrigo', 'Ability to view Results of Completed and/or partially filled out Surveys': 'Capacidade para visualizar resultados de Concluída e/ou parcialmente preenchido Pesquisas', 'About': 'sobre', 'About Sahana': 'Sobre Sahana', 'Access denied': 'Acesso negado', 'Access to Shelter': 'Acesso a Abrigo', 'Access to education services': 'Acesso a serviços de educação', 'Accessibility of Affected Location': 'Acessibilidade do Local Afectado', 'Accompanying Relative': 'Accompanying Relative', 'Account Registered - Please Check Your Email': 'Conta registrada - verifique seu e-mail', 'Account registered, however registration is still pending approval - please wait until confirmation received.': 'Conta registrada, mas registro pende aprovação - por favor aguarde até confirmação ser recebida.', 'Acronym': 'Iniciais', "Acronym of the organization's name, eg. IFRC.": 'Acrônimo do nome da organização, por exemplo, FICV.', 'Actionable by all targeted recipients': 'Acionáveis por todos os destinatários de destino', 'Actionable only by designated exercise participants; exercise identifier SHOULD appear in <note>': 'Acionáveis apenas pelos participantes exercício designado; Identificação do excercício deve aparecer em', 'Actioned?': 'Acionado?', 'Actions': 'Ações', 'Actions taken as a result of this request.': 'Ações tomadas como resultado desse pedido.', 'Activate Events from Scenario templates for allocation of appropriate Resources (Human, Assets & Facilities).': 'Ativar eventos dos templates de cenário para alocação adequada de recursos (humanos, ativos e equipamentos)', 'Active': 'ativo', 'Active Problems': 'Problemas ativos', 'Activities': 'atividades', 'Activities matching Assessments:': 'Atividades correspondentes a Avaliações:', 'Activities of boys 13-17yrs before disaster': 'Atividades de garotos 13-17 anos antes do desastre', 'Activities of boys 13-17yrs now': 'Atividades de garotos 13-17yrs agora', 'Activities of boys <12yrs before disaster': 'Atividades de garotos <12 anos antes do desastre', 'Activities of boys <12yrs now': 'Atividades de garotos <12 anos agora', 'Activities of children': 'Atividades de crianças', 'Activities of girls 13-17yrs before disaster': 'Atividades de meninas 13-17yrs antes de desastres', 'Activities of girls 13-17yrs now': 'Atividades de meninas 13-17yrs agora', 'Activities of girls <12yrs before disaster': 'Atividades de meninas <12yrs antes de desastres', 'Activities of girls <12yrs now': 'Agora atividades de meninas de menos de 12 anos', 'Activities:': 'Atividades:', 'Activity': 'atividade', 'Activity Added': 'Atividade Incluída', 'Activity Deleted': 'Atividade Apagada', 'Activity Details': 'Detalhes da Atividade', 'Activity Report': 'Relatório de atividades', 'Activity Reports': 'Relatório de Atividades', 'Activity Type': 'Tipo de atividade', 'Activity Updated': 'Atividade Atualizada', 'Activity added': 'Activity added', 'Activity removed': 'Activity removed', 'Activity updated': 'Activity updated', 'Add': 'incluir', 'Add Activity': 'Incluir Atividade', 'Add Activity Report': 'Incluir Relatório de atividade', 'Add Activity Type': 'Incluir tipo de atividade', 'Add Address': 'Incluir Endereço', 'Add Alternative Item': 'Adicionar item alternativo', 'Add Assessment': 'Incluir Avaliação', 'Add Assessment Summary': 'Incluir Avaliação De Resumo', 'Add Asset': 'Incluir ativo', 'Add Asset Log Entry - Change Label': 'Incluir recurso de entrada de entrada - trocar a Etiqueta', 'Add Availability': 'Incluir Disponibilidade', 'Add Baseline': 'Incluir Linha', 'Add Baseline Type': 'Incluir Linha De Tipo', 'Add Bed Type': 'Incluir Tipo De Cama', 'Add Brand': 'Incluir Marca', 'Add Budget': 'Incluir Orçamento', 'Add Bundle': 'Incluir Pacote Configurável', 'Add Camp': 'Incluir acampamento', 'Add Camp Service': 'Incluir acampamento de serviço', 'Add Camp Type': 'Incluir tipo de acampamento', 'Add Catalog': 'Incluir Catálogo', 'Add Catalog Item': 'Incluir Item de Catálogo', 'Add Certificate': 'Incluir certificado', 'Add Certification': 'Adicionar Certificação', 'Add Cholera Treatment Capability Information': 'Incluir Informação sobre capacidade para tratamento de cólera', 'Add Cluster': 'Incluir cluster', 'Add Cluster Subsector': 'Incluir Subsetor de Cluster', 'Add Competency': 'incluir competência', 'Add Competency Rating': 'Incluir Classificação da Competência', 'Add Contact': 'Incluir contato', 'Add Contact Information': 'Incluir informações de contato', 'Add Course': 'Incluir curso', 'Add Course Certificate': 'Incluir Certificado de Curso', 'Add Credential': 'Incluir referência', 'Add Credentials': 'Incluir Referências', 'Add Dead Body Report': 'Incluir Relatório de Cadáver', 'Add Disaster Victims': 'Incluir Vítimas de Desastre', 'Add Distribution.': 'Incluir distribuição.', 'Add Document': 'Add Document', 'Add Donor': 'Incluir doador', 'Add Facility': 'Incluir Recurso', 'Add Feature Class': 'Incluir classe de recurso', 'Add Feature Layer': 'Incluir camada de recurso', 'Add Flood Report': 'Incluir Relatório Enchente', 'Add GPS data': 'Add GPS data', 'Add Group': 'Incluir Grupo', 'Add Group Member': 'Incluir Membro do Grupo', 'Add Hospital': 'Incluir Hospital', 'Add Human Resource': 'Incluir Recurso Humano', 'Add Identification Report': 'Incluir Identificação Relatório', 'Add Identity': 'Incluir Identidade', 'Add Image': 'Incluir Imagem', 'Add Impact': 'Adicionar Impacto', 'Add Impact Type': 'Incluir Tipo De Impacto', 'Add Incident': 'Adicionar Incidente', 'Add Incident Report': 'Incluir relatório de incidente', 'Add Inventory Item': 'Inclúir item de inventário', 'Add Item': 'Incluir item', 'Add Item Category': 'Incluir categoria de item', 'Add Item Pack': 'Incluir pacote de itens', 'Add Item to Catalog': 'Incluir Item no Catálogo', 'Add Item to Commitment': 'Incluir Item no Compromisso', 'Add Item to Inventory': 'Incluir Item de Inventário', 'Add Item to Request': 'Incluir Item para pedido', 'Add Item to Shipment': 'Adicionar Item para Embarque', 'Add Job Role': 'Incluir tarefa Função', 'Add Key': 'Incluir Chave', 'Add Kit': 'Adicionar Kit', 'Add Layer': 'Incluir Camada', 'Add Level 1 Assessment': 'Incluir nível de Avaliação 1', 'Add Level 2 Assessment': 'Incluir nível de Avaliação 2', 'Add Location': 'Incluir Local', 'Add Log Entry': 'Adicionar Entrada de Log', 'Add Map Configuration': 'Incluir Mapa de configuração', 'Add Marker': 'Incluir Marcador', 'Add Member': 'Incluir membro', 'Add Membership': 'Incluir Associação', 'Add Message': 'Incluir Mensagem', 'Add Mission': 'Incluir Missão', 'Add Need': 'Incluir o necessário', 'Add Need Type': 'Adicionar o tipo Necessário', 'Add New': 'Incluir novo', 'Add New Activity': 'Incluir Nova Atividade', 'Add New Address': 'Incluir Novo Endereço', 'Add New Alternative Item': 'Incluir novo Item Alternativo', 'Add New Assessment': 'Adicionar Nova Avaliação', 'Add New Assessment Summary': 'Incluir novo Resumo de Avaliação', 'Add New Asset': 'Incluir Novo Ativo', 'Add New Baseline': 'Incluir nova linha de base', 'Add New Baseline Type': 'Incluir novo tipo de linha de base', 'Add New Brand': 'Adicionar Nova Marca', 'Add New Budget': 'Adicionar Novo Orçamento', 'Add New Bundle': 'Incluir Novo Pacote', 'Add New Camp': 'Incluir novo Campo', 'Add New Camp Service': 'Inlcuir Novo Campo de Serviço', 'Add New Camp Type': 'Incluir Novo Campo de Tipo', 'Add New Catalog': 'Incluir Novo Catálogo', 'Add New Catalog Item': 'Incluir novo Item de catálogo', 'Add New Cluster': 'Adicionar novo grupo', 'Add New Cluster Subsector': 'Adicionar novo subgrupo', 'Add New Commitment Item': 'Incluir novo item de compromisso', 'Add New Contact': 'Incluir novo contato', 'Add New Credential': 'Incluir nova credencial', 'Add New Document': 'Incluir Novo Documento', 'Add New Donor': 'Adicionar novo doador', 'Add New Entry': 'Incluir Nova Entrada', 'Add New Event': 'Adicionar novo evento', 'Add New Facility': 'Incluir novo Recurso', 'Add New Feature Class': 'Incluir nova classe do recurso', 'Add New Feature Layer': 'Adicionar nova camada de características', 'Add New Flood Report': 'Adicionar novo relatório de cheias', 'Add New Group': 'Adicionar novo grupo', 'Add New Home': 'Add New Home', 'Add New Hospital': 'Adicionar novo hospital', 'Add New Human Resource': 'Incluir novos recursos humanos', 'Add New Identity': 'Adicionar nova identidade', 'Add New Image': 'Adicionar nova imagem', 'Add New Impact': 'Adicionar novo impacto', 'Add New Impact Type': 'Incluir novo Tipo De Impacto', 'Add New Incident Report': 'Adicionar novo relatório de incidentes', 'Add New Inventory Item': 'Incluir novo Item De Inventário', 'Add New Item': 'Incluir novo item', 'Add New Item Category': 'Incluir nova categoria de itens', 'Add New Item Pack': 'Incluir novo pacote de itens', 'Add New Item to Kit': 'Incluir novo Item de Kit', 'Add New Key': 'Adicionar Nova Chave', 'Add New Kit': 'Incluir novo Kit', 'Add New Layer': 'Adicionar Nova Camada', 'Add New Level 1 Assessment': 'Incluir novo nível 1 avaliação', 'Add New Level 2 Assessment': 'Incluir novo nível 2 avaliação', 'Add New Location': 'Incluir Novo Local', 'Add New Log Entry': 'Incluir nova entrada de Log', 'Add New Map Configuration': 'Incluir Novo Mapa de Configuração', 'Add New Marker': 'Incluir novo Marcador', 'Add New Member': 'Incluir Novo Membro', 'Add New Membership': 'Incluir novo membro', 'Add New Need': 'Adicionar novas necessidades', 'Add New Need Type': 'Incluir novo Tipo Necessário', 'Add New Note': 'Adicionar NOVA NOTA', 'Add New Office': 'Adicionar novo escritório', 'Add New Organization': 'Incluir nova Organização', 'Add New Patient': 'Add New Patient', 'Add New Person to Commitment': 'Add New Person to Commitment', 'Add New Photo': 'Adicionar Nova Foto', 'Add New Population Statistic': 'Incluir nova População De Estatística', 'Add New Problem': 'Incluir novo Problema', 'Add New Project': 'Incluir novo projeto', 'Add New Projection': 'Adicionar Nova Projecção', 'Add New Rapid Assessment': 'Incluir nova Avaliação Rápida', 'Add New Received Item': 'Incluir novo Item Recebido', 'Add New Record': 'Incluir Novo Registro', 'Add New Relative': 'Add New Relative', 'Add New Report': 'Incluir Novo Relatório', 'Add New Request': 'Incluir novo pedido', 'Add New Request Item': 'Incluir novo Item de Pedido', 'Add New Resource': 'Incluir Novo Recurso', 'Add New River': 'Incluir novo Rio', 'Add New Role': 'INCLUIR NOVA FUNÇÃO', 'Add New Role to User': 'Incluir nova função para o usuário', 'Add New Room': 'Adicionar nova sala', 'Add New Scenario': 'Adicionar Novo cenário', 'Add New Sector': 'Incluir novo Sector', 'Add New Sent Item': 'Incluir novo Item Enviado', 'Add New Setting': 'Adicionar Nova Configuração', 'Add New Shelter': 'Incluir Novo Abrigo', 'Add New Shelter Service': 'Incluir Novo Serviço de Abrigo', 'Add New Shelter Type': 'Incluir Novo Tipo de Abrigo', 'Add New Skill': 'Adicionar nova habilidade', 'Add New Solution': 'Adicionar nova solução', 'Add New Staff': 'Adicionar Nova Equipe', 'Add New Staff Member': 'Incluir novo equipe do membro', 'Add New Staff Type': 'Incluir novo tipo de equipe.', 'Add New Subsector': 'Incluir novo Subsector', 'Add New Survey Answer': 'Incluir nova resposta na pesquisa.', 'Add New Survey Question': 'Incluir nova pergunta na pesquisa.', 'Add New Survey Section': 'Incluir nova seção na pesquisa.', 'Add New Survey Series': 'Incluir nova série na pesquisa.', 'Add New Survey Template': 'Incluir novo Modelo De Pesquisa', 'Add New Task': 'Incluir Nova Tarefa', 'Add New Team': 'Adicionar nova equipe', 'Add New Theme': 'Incluir novo tema', 'Add New Ticket': 'Incluir nova permissão', 'Add New Track': 'Adicionar Nova Pista', 'Add New User': 'Incluir Novo Usuário', 'Add New User to Role': 'Adicionar Novo usuário para Função', 'Add New Vehicle': 'Add New Vehicle', 'Add New Volunteer': 'Incluir novo Voluntário', 'Add New Warehouse': 'Adicionar novo armazém', 'Add Note': 'Incluir nota', 'Add Office': 'Adicionar Office', 'Add Organization': 'Incluir Organização', 'Add Peer': 'Incluír Par', 'Add Person': 'incluir pessoa', 'Add Person to Commitment': 'Add Person to Commitment', 'Add Personal Effects': 'Incluir efeitos pessoais', 'Add Photo': 'Incluir Foto', 'Add Population Statistic': 'Incluir População Estatística', 'Add Position': 'Adicionar Posição', 'Add Problem': 'Adicionar Problema', 'Add Project': 'Adicionar Projeto', 'Add Projection': 'Adicionar Projeção', 'Add Question': 'Adicionar Pergunta', 'Add Rapid Assessment': 'Adicionar Avaliação Rápida', 'Add Record': 'Incluir Registro', 'Add Reference Document': 'Incluir documento de referência', 'Add Report': 'Incluir Relatório', 'Add Request': 'Incluir Pedido', 'Add Resource': 'Incluir Recurso', 'Add River': 'Incluir Rio', 'Add Role': 'Incluir Função', 'Add Room': 'Incluir Sala', 'Add Section': 'Incluir Secção', 'Add Sector': 'Incluir Sector', 'Add Service Profile': 'Incluir Perfil de Serviço', 'Add Setting': 'Adicionar Definição', 'Add Shelter': 'Incluir Abrigo', 'Add Shelter Service': 'Incluir Serviço de Abrigo', 'Add Shelter Type': 'Incluir Tipo de Abrigo', 'Add Skill': 'Incluir Habilidade', 'Add Skill Equivalence': 'Incluir equivalência de habilidades', 'Add Skill Provision': 'Incluir provisão de habilidades', 'Add Skill Type': 'Incluir Tipo de Habilidade', 'Add Skill to Request': 'Add Skill to Request', 'Add Solution': 'Incluir Solução', 'Add Staff': 'Incluir equipe', 'Add Staff Member': 'Adicionar membro da equipe', 'Add Staff Type': 'Incluir tipo de equipe', 'Add Status': 'Incluir Status', 'Add Subscription': 'Incluir Assinatura', 'Add Subsector': 'Incluir Subsetor', 'Add Survey Answer': 'Incluir resposta de pesquisa', 'Add Survey Question': 'Adicionar pergunta da pesquisa', 'Add Survey Section': 'Incluir seção da pesquisa', 'Add Survey Series': 'Incluir série da pesquisa', 'Add Survey Template': 'Incluir Modelo De Pesquisa', 'Add Task': 'Incluir Tarefa', 'Add Team': 'Incluir equipe', 'Add Theme': 'Incluir Tema', 'Add Ticket': 'Adicionar Bilhete', 'Add Training': 'Incluir Treinamento', 'Add Unit': 'Incluir Unidade', 'Add User': 'Incluir Usuário', 'Add Vehicle': 'Add Vehicle', 'Add Vehicle Detail': 'Add Vehicle Detail', 'Add Vehicle Details': 'Add Vehicle Details', 'Add Volunteer': 'Incluir Voluntário', 'Add Volunteer Availability': 'Incluir disponibilidade do voluntário', 'Add Warehouse': 'Adicionar Data Warehouse', 'Add a Person': 'Incluir uma pessoa', 'Add a Reference Document such as a file, URL or contact person to verify this data. If you do not enter a Reference Document, your email will be displayed instead.': 'Adicionar um documento de referência como um arquivo, URL ou contacto pessoal para verificar esses dados. Se você não inserir um documento de referência, seu e-mail será exibido no lugar.', 'Add a Volunteer': 'Incluir um Voluntário', 'Add a new certificate to the catalog.': 'Incluir um novo certificado no catálogo.', 'Add a new competency rating to the catalog.': 'Adicionar uma classificação nova competência para o catálogo.', 'Add a new course to the catalog.': 'Adicionar um novo rumo para o catálogo.', 'Add a new job role to the catalog.': 'Incluir uma função nova tarefa para o catálogo.', 'Add a new skill provision to the catalog.': 'Incluir uma disposição nova habilidade para o catálogo.', 'Add a new skill to the catalog.': 'Incluir uma nova habilidade para o catálogo.', 'Add a new skill type to the catalog.': 'Incluir um tipo novo de hailidade para o catálogo.', 'Add new Group': 'Adicionar novo grupo', 'Add new Individual': 'Incluir novo indivíduo', 'Add new Patient': 'Add new Patient', 'Add new project.': 'Adicionar novo projeto.', 'Add new staff role.': 'Incluir função de novos funcionários.', 'Add staff members': 'Incluir membros da equipe', 'Add to Bundle': 'Incluir no Pacote Configurável', 'Add to budget': 'Incluir no orçamento', 'Add volunteers': 'Incluir voluntários', 'Add/Edit/Remove Layers': 'Incluir/editar/remover camadas', 'Additional Beds / 24hrs': 'Camas adicionais / 24 horas', 'Address': 'endereços', 'Address Details': 'Detalhes do Endereço', 'Address Type': 'Tipo de Endereço', 'Address added': 'Endereço incluído', 'Address deleted': 'Endereço excluído', 'Address updated': 'Endereço actualizado', 'Addresses': 'Endereços', 'Adequate': 'adequar', 'Adequate food and water available': 'Comida e água adequado disponível', 'Admin Email': 'email do administrador', 'Admin Name': 'nome do administrador', 'Admin Tel': 'Telefone do administrador', 'Administration': 'administração', 'Admissions/24hrs': 'admissões/24 horas', 'Adolescent (12-20)': 'adolescente (12-20)', 'Adolescent participating in coping activities': 'Adolescente participando em actividades de superação', 'Adult (21-50)': 'Adulto (21-50)', 'Adult ICU': 'UTI para adultos', 'Adult Psychiatric': 'Psiquiátrico para adultos', 'Adult female': 'Mulher adulta', 'Adult male': 'Homem adulto', 'Adults in prisons': 'Adultos em prisões', 'Advanced:': 'Avançado:', 'Advisory': 'Aconselhamento', 'After clicking on the button, a set of paired items will be shown one by one. Please select the one solution from each pair that you prefer over the other.': 'Depois de pressionar o botão será mostrado um conjunto de dois elementos, um de cada vez. Por favor selecione a uma solução de cada par de sua preferência sobre o outro.', 'Age Group': 'Grupo etário', 'Age group': 'Grupo etário', 'Age group does not match actual age.': 'Grupo etário não corresponde à idade real.', 'Aggravating factors': 'Fatores agravantes', 'Agriculture': 'Agricultura', 'Air Transport Service': 'Serviço de Transporte Aéreo', 'Air tajin': 'Tajin AR', 'Aircraft Crash': 'Despenho de Avião', 'Aircraft Hijacking': 'Sequestro de Avião', 'Airport Closure': 'Encerramento de Aeroporto', 'Airspace Closure': 'Encerramento de Espaço Aéreo', 'Alcohol': 'álcool', 'Alert': 'Alertar', 'All': 'Tudo', 'All Inbound & Outbound Messages are stored here': 'Todas as mensagens enviadas e recebidas são armazenados aqui', 'All Resources': 'Todos os recursos', 'All data provided by the Sahana Software Foundation from this site is licenced under a Creative Commons Attribution licence. However, not all data originates here. Please consult the source field of each entry.': 'Todos os dados fornecidos pelos Sahana Software Foundation a partir deste site é licenciado sob uma Licença Atribuição Comuns criativos. No entanto, nem todos os dados se origina aqui. Por favor consulte o campo de origem de cada entrada.', 'Allowed to push': 'Permissão para pressionar', 'Allows a Budget to be drawn up': 'Permite que um orçamento seja estabelecido', 'Allows authorized users to control which layers are available to the situation map.': 'Permite usuários autorizados a controlar quais camadas estão disponíveis no mapa de situação.', 'Alternative Item': 'Item Alternativo', 'Alternative Item Details': 'Detalhes do Item alternativo', 'Alternative Item added': 'Item alternativo incluído', 'Alternative Item deleted': 'Item alternativo excluído', 'Alternative Item updated': 'Item Alternativo atualizado', 'Alternative Items': 'Itens alternativos', 'Alternative places for studying': 'Locais alternativos para estudo', 'Ambulance Service': 'Serviço de Ambulância', 'An asset must be assigned to a person, site OR location.': 'Um ATIVO deve ser designado a uma pessoa, local ou site.', 'An intake system, a warehouse management system, commodity tracking, supply chain management, procurement and other asset and resource management capabilities.': 'Um sistema de admissão, um sistema de gestão de depósitos, tracking and commodity, gestão da cadeia de fornecimentos, aquisições de ativos e outros e os recursos de gerenciamento de recurso.', 'An item which can be used in place of another item': 'Um item que pode ser utilizado no lugar de outro item', 'Analysis of Completed Surveys': 'Análise das Pesquisas Concluídas', 'Analysis of assessments': 'Analysis of assessments', 'Animal Die Off': 'Morte Animal', 'Animal Feed': 'Alimentação Animal', 'Answer Choices (One Per Line)': 'Resposta opções (Um por linha)', 'Anthropolgy': 'Anthropolgy', 'Antibiotics available': 'Antibióticos disponíveis', 'Antibiotics needed per 24h': 'Antibióticos necessário por H', 'Apparent Age': 'Idade aparente', 'Apparent Gender': 'Género aparente', 'Application Deadline': 'Prazo Final da aplicação', 'Applications': 'Requisições', 'Approve': 'Aprovar', 'Approved': 'aprovado', 'Approver': 'Aprovador', 'Arabic': 'Arabic', 'Arctic Outflow': 'Árctico Exfluxo', 'Area': 'Área', 'Areas inspected': 'Inspeccionados áreas', 'As of yet, no sections have been added to this template.': 'As of yet, no sections have been added to this template.', 'Assessment': 'Avaliação', 'Assessment Details': 'Detalhes da Avaliação', 'Assessment Reported': 'Avaliação Relatada', 'Assessment Summaries': 'Sumário de Avaliações', 'Assessment Summary Details': 'Detalhes do sumário de avaliação', 'Assessment Summary added': 'Anexado sumário de avaliações', 'Assessment Summary deleted': 'Avaliação de resumo apagado', 'Assessment Summary updated': 'Sumário de avaliação atualizado', 'Assessment added': 'Avaliação incluída', 'Assessment admin level': 'Avaliação de nível administrativo', 'Assessment deleted': 'Avaliação excluída', 'Assessment timeline': 'sequência temporal de avaliação', 'Assessment updated': 'Avaliação atualizada', 'Assessments': 'avaliações', 'Assessments Needs vs. Activities': 'Necessidades de Avaliações vs. Atividades', 'Assessments and Activities': 'Avaliações e Atividades', 'Assessments:': 'Avaliações', 'Assessor': 'Avaliador', 'Asset': 'Recurso', 'Asset Assigned': 'Ativo Designado', 'Asset Assignment Details': 'Detalhes da Designação de Recursos', 'Asset Assignment deleted': 'Designação De ativo excluído', 'Asset Assignment updated': 'Atribuição de Ativo atualizada', 'Asset Assignments': 'Designações de Ativo', 'Asset Details': 'Detalhes do Ativo', 'Asset Log': 'Log de ATIVOS', 'Asset Log Details': 'Detalhes do Log de ativos', 'Asset Log Empty': 'Log de Ativos vazio', 'Asset Log Entry Added - Change Label': 'Adicionada uma entrada no Log de ativos -Alterar Etiqueta', 'Asset Log Entry deleted': 'Apagada uma entrada no Log de ativos', 'Asset Log Entry updated': 'Atualizada uma entrada no Log de Ativos', 'Asset Management': 'gerenciamento de recursos', 'Asset Number': 'número do recurso', 'Asset added': 'Ativo Incluído', 'Asset deleted': 'ativo excluído', 'Asset removed': 'Ativo Removido', 'Asset updated': 'recurso atualizado', 'Assets': 'recursos', 'Assets are resources which are not consumable but are expected back, so they need tracking.': 'Os ativos são recursos que não são consumíveis e serão devolvidos, portanto precisam de rastreamento.', 'Assign': 'Designar', 'Assign Asset': 'designar recurso', 'Assign Group': 'Designar Grupo', 'Assign Staff': 'Atribuir Equipe', 'Assign to Org.': 'Designar para Org.', 'Assign to Organisation': 'Atribuir para Organização', 'Assign to Organization': 'Atribuir para Organização', 'Assign to Person': 'Atribuir uma Pessoa', 'Assign to Site': 'Atribuir um Site', 'Assigned': 'Designado', 'Assigned By': 'Designado por', 'Assigned To': 'Designado Para', 'Assigned to': 'Designado para', 'Assigned to Organisation': 'Designado para Organização', 'Assigned to Person': 'Designado para a Pessoa', 'Assigned to Site': 'Designado para o Site', 'Assignments': 'Designações', 'At/Visited Location (not virtual)': 'Em/Visitou Local (não virtual)', 'Attend to information sources as described in <instruction>': 'Participar de fontes de informação, conforme descrito em<instruction>', 'Attribution': 'Atribuição', "Authenticate system's Twitter account": 'Sistema de Autenticação para conta de Twitter', 'Author': 'autor', 'Availability': 'Disponibilidade', 'Available Alternative Inventories': 'Alternativas de Inventário disponíveis', 'Available Alternative Inventory Items': 'Itens alternativos de Inventário disponíveis', 'Available Beds': 'camas disponíveis', 'Available Forms': 'Available Forms', 'Available Inventories': 'Inventários disponíveis', 'Available Inventory Items': 'Itens de inventário disponíveis', 'Available Messages': 'Mensagens disponíveis', 'Available Records': 'Registros disponíveis', 'Available databases and tables': 'Banco de Dados e Tabelas disponíveis', 'Available for Location': 'Disponível para locação', 'Available from': 'disponível de', 'Available in Viewer?': 'Disponível no visualizador?', 'Available until': 'Disponível até', 'Avalanche': 'Avalanche', 'Avoid the subject event as per the <instruction>': 'Evitar o assunto do evento de acordo com a', 'Background Color': 'Background Color', 'Background Color': 'Cor de Plano de Fundo', 'Background Color for Text blocks': 'Cor de segundo plano para blocos de texto', 'Bahai': 'Bahai', 'Baldness': 'Calvície', 'Banana': 'Banana', 'Bank/micro finance': 'banco/micro finanças', 'Barricades are needed': 'Barricadas são necessárias', 'Base Layer?': 'Camada De Base?', 'Base Location': 'Local da Base', 'Base Site Set': 'Conjunto de Site básico', 'Baseline Data': 'Dados básicos', 'Baseline Number of Beds': 'Numero de camadas base de camas', 'Baseline Type': 'Tipo de Linha Base', 'Baseline Type Details': 'Detalhes de Tipo de Linha Base', 'Baseline Type added': 'Tipo de Linha Base adicionado', 'Baseline Type deleted': 'Tipo de Linha Base removido', 'Baseline Type updated': 'Tipo de Linha Base actualizado', 'Baseline Types': 'Tipos de Linha Base', 'Baseline added': 'Camada Base incluída', 'Baseline deleted': 'Camada Base Excluída', 'Baseline number of beds of that type in this unit.': 'Numero de camadas base de camas desse tipo nesta unidade.', 'Baseline updated': 'Linha Base actulizada', 'Baselines': 'Camadas Base', 'Baselines Details': 'Detalhes de Camadas Base', 'Basic Assessment': 'Avaliação Básica', 'Basic Assessment Reported': 'Avaliação Básica Relatada', 'Basic Details': 'Detalhes Básicos', 'Basic reports on the Shelter and drill-down by region': 'Relatórios básicos sobre o Abrigo e abertura por região', 'Baud': 'Transmissão', 'Baud rate to use for your modem - The default is safe for most cases': 'Taxa de transmissão para ser usada pelo seu modem - O padrão é seguro para a maioria dos casos', 'Beam': 'feixe', 'Bed Capacity': 'Capacidade de leitos', 'Bed Capacity per Unit': 'Capacidade cama por Unidade', 'Bed Type': 'Tipo de cama', 'Bed type already registered': 'Tipo de cama já registrado', 'Below ground level': 'Abaixo do nível do solo', 'Beneficiary Type': 'Tipo de beneficiário', "Bing Layers cannot be displayed if there isn't a valid API Key": "Bing Layers cannot be displayed if there isn't a valid API Key", 'Biological Hazard': 'Risco Biológico', 'Biscuits': 'Biscoitos', 'Blizzard': 'Nevasca', 'Blood Type (AB0)': 'Tipo sanguíneo (AB0)', 'Blowing Snow': 'Soprando neve', 'Boat': 'Barco', 'Bodies': 'Bodies', 'Bodies found': 'Corpos encontrados', 'Bodies recovered': 'corpos recuperados', 'Body': 'corpo', 'Body Recovery': 'Body Recovery', 'Body Recovery Request': 'Pedido de recuperação de corpos', 'Body Recovery Requests': 'Pedidos de recuperação de corpos', 'Bomb': 'Bomba', 'Bomb Explosion': 'Explosão de bomba', 'Bomb Threat': 'Ameaça de bomba', 'Border Color for Text blocks': 'Cor da borda para blocos de texto', 'Bounding Box Insets': 'Delimitadora Inserções Caixa', 'Bounding Box Size': 'CAIXA delimitadora Tamanho', 'Brand': 'Marca', 'Brand Details': 'Detalhes da Marca', 'Brand added': 'Marca incluída', 'Brand deleted': 'Marca excluída', 'Brand updated': 'marca atualizada', 'Brands': 'marcas', 'Bricks': 'Tijolos', 'Bridge Closed': 'PONTE FECHADA', 'Bucket': 'Balde', 'Buddhist': 'Budista', 'Budget': 'Orçamento', 'Budget Details': 'Detalhes de Orçamento', 'Budget Updated': 'Orçamento Atualizado', 'Budget added': 'Orçamento incluído', 'Budget deleted': 'Orçamento excluído', 'Budget updated': 'Orçamento atualizado', 'Budgeting Module': 'Módulo de Orçamento', 'Budgets': 'Orçamentos', 'Buffer': 'buffer', 'Bug': 'erro', 'Building Assessments': 'Avaliações de construção', 'Building Collapsed': 'Construção Fechada', 'Building Name': 'Nome do edifício', 'Building Safety Assessments': 'Regras de Segurança do Edifício', 'Building Short Name/Business Name': 'Nome curto/Nome completo do Edifício', 'Building or storey leaning': 'Edifício ou andar em inclinação', 'Built using the Template agreed by a group of NGOs working together as the': 'Construído de acordo com o formulário acordado por um grupo de ONGs', 'Bulk Uploader': 'Carregador em massa', 'Bundle': 'Pacote', 'Bundle Contents': 'Conteúdo do Pacote', 'Bundle Details': 'Detalhes do Pacote', 'Bundle Updated': 'Pacote configurável ATUALIZADO', 'Bundle added': 'Pacote incluído', 'Bundle deleted': 'Pacote Excluído', 'Bundle updated': 'Pacote atualizado', 'Bundles': 'Pacotes', 'Burn': 'Gravar', 'Burn ICU': 'Queimar ICU', 'Burned/charred': 'Queimados/carbonizados', 'By Facility': 'Por Facilidade', 'By Inventory': 'Por Inventário', 'By Person': 'Por pessoa', 'By Site': 'Por Site', 'CBA Women': 'CBA Mulheres', 'CLOSED': 'CLOSED', 'CN': 'CN', 'CSS file %s not writable - unable to apply theme!': 'Arquivo CSS %s não é gravável - Impossível aplicar o tema!', 'Calculate': 'calcular', 'Camp': 'Acampamento', 'Camp Coordination/Management': 'Campo Coordenação/gestão', 'Camp Details': 'Detalhes do Alojamento', 'Camp Service': 'Serviço de Alojamento', 'Camp Service Details': 'Detalhe do Serviço de Campo', 'Camp Service added': 'Serviço de Alojamento incluído', 'Camp Service deleted': 'Serviço de Alojamento excluído', 'Camp Service updated': 'Serviço de campo atualizado', 'Camp Services': 'Serviço de campo', 'Camp Type': 'Tipo de Campo', 'Camp Type Details': 'Detalhes do tipo de campo', 'Camp Type added': 'Tipo de Campo incluso.', 'Camp Type deleted': 'Tipo de campo excluído.', 'Camp Type updated': 'Tipo De acampamento atualizado', 'Camp Types': 'TIPOS DE acampamento', 'Camp Types and Services': 'Tipos e serviços de acampamentos', 'Camp added': 'Alojamento incluído', 'Camp deleted': 'Alojamento excluído', 'Camp updated': 'Acampamento atualizado', 'Camps': 'Alojamentos', 'Can only disable 1 record at a time!': 'Pode desativar apenas 1 registro por vez!', 'Can only enable 1 record at a time!': 'Can only enable 1 record at a time!', "Can't import tweepy": 'Não pode importar tweepy', 'Cancel': 'Cancelar', 'Cancel Log Entry': 'Cancelar Registro De Entrada', 'Cancel Shipment': 'Cancelar Embarque', 'Canceled': 'cancelado', 'Candidate Matches for Body %s': 'Candidato Corresponde ao Corpo %s', 'Canned Fish': 'Conservas de Peixe', 'Cannot be empty': 'Não pode ser vazio', 'Cannot disable your own account!': 'Voce não pode desativar sua própria conta!', 'Capacity (Max Persons)': 'Capacidade (Máximo De pessoas)', 'Capture Information on Disaster Victim groups (Tourists, Passengers, Families, etc.)': 'CAPTURA informações sobre grupos Desastre Vítima (Turistas, passageiros, Famílias, etc. ).', 'Capture Information on each disaster victim': 'Informações de captura em cada vítima Desastre', 'Capturing organizational information of a relief organization and all the projects they have in the region': 'Capturando informações organizacionais de uma organização de ajuda e todos os projetos têm na região', 'Capturing the projects each organization is providing and where': 'Capturando os projetos que cada organização está fornecendo e onde', 'Cardiology': 'Cardiologia', 'Cassava': 'Mandioca', 'Casual Labor': 'Trabalho Casual', 'Casualties': 'Acidentes', 'Catalog': 'catálogo', 'Catalog Details': 'Detalhes do Catálogo', 'Catalog Item': 'Item do catálogo de', 'Catalog Item added': 'Item incluído no catálogo', 'Catalog Item deleted': 'Catálogo de Item excluído', 'Catalog Item updated': 'Item do catálogo de atualização', 'Catalog Items': 'Itens do Catálogo', 'Catalog added': 'Catálogo Incluído', 'Catalog deleted': 'Catálogo excluído', 'Catalog updated': 'Catálogo Atualizado', 'Catalogs': 'Catálogos', 'Categories': 'Categorias', 'Category': 'category', "Caution: doesn't respect the framework rules!": 'Cuidado: não respeitar as regras de enquadramento!', 'Ceilings, light fixtures': 'Tetos, luminarias', 'Cell Phone': 'Cell Phone', 'Central point to record details on People': 'Ponto Central para registrar detalhes sobre pessoas', 'Certificate': 'Certificate', 'Certificate Catalog': 'Catálogo de Certificados', 'Certificate Details': 'Detalhes do Certificado', 'Certificate Status': 'Status do Certificado', 'Certificate added': 'Certificado incluído', 'Certificate deleted': 'Certificado Removido', 'Certificate updated': 'Certificado Actualizado', 'Certificates': 'Certificados', 'Certification': 'Certificação', 'Certification Details': 'Detalhes da Certificação', 'Certification added': 'Certificação incluída', 'Certification deleted': 'Certificação excluída', 'Certification updated': 'Certificação atualizada', 'Certifications': 'Certificações', 'Certifying Organization': 'Certificação da Organização', 'Change Password': 'Alterar Senha', 'Check': 'Verifique', 'Check Request': 'Verificar Pedido', 'Check for errors in the URL, maybe the address was mistyped.': 'Verifique se há erros na URL, talvez o endereço foi digitado incorretamente.', 'Check if the URL is pointing to a directory instead of a webpage.': 'Verifique se a URL está apontando para um diretório em vez de uma página da Web.', 'Check outbox for the message status': 'Outbox para verificar o status da mensagem', 'Check to delete': 'Verificar para Excluir', 'Check-in': 'Registrar Entrada', 'Check-in at Facility': 'Check-in at Facility', 'Check-out': 'Registrar Saída', 'Checked': 'verificado', 'Checklist': 'lista de verificação', 'Checklist created': 'Lista de verificação criada', 'Checklist deleted': 'Lista de verificação excluída', 'Checklist of Operations': 'Lista de Verificação das Operações', 'Checklist updated': 'Lista de verificação atualizado', 'Chemical Hazard': 'Risco Químico', 'Chemical, Biological, Radiological, Nuclear or High-Yield Explosive threat or attack': 'Ameaça ou ataque Químico, Biológico, Radiológico, Nuclear ou de alto concentração Explosiva', 'Chicken': 'Frango', 'Child': 'Criança', 'Child (2-11)': 'Criança (2-11)', 'Child (< 18 yrs)': 'Criança (< 18 anos)', 'Child Abduction Emergency': 'Emergência de Rapto De Criança', 'Child headed households (<18 yrs)': 'Famílias chefiadas por Filho (<18 anos)', 'Children (2-5 years)': 'Crianças (2 a 5 anos)', 'Children (5-15 years)': 'Crianças (5 a 15 anos)', 'Children (< 2 years)': 'Crianças (< 2 anos)', 'Children in adult prisons': 'Crianças nas prisões para adultos', 'Children in boarding schools': 'Crianças em internatos', 'Children in homes for disabled children': 'Crianças em lares para crianças deficientes', 'Children in juvenile detention': 'Crianças em detenção juvenil', 'Children in orphanages': 'Crianças nos orfanatos', 'Children living on their own (without adults)': 'Crianças vivendo por conta própria (sem adultos)', 'Children not enrolled in new school': 'Crianças não matriculadas em Nova Escola', 'Children orphaned by the disaster': 'Crianças órfãs pela catástrofe', 'Children separated from their parents/caregivers': 'Crianças SEPARADAS de seus pais/responsáveis', 'Children that have been sent to safe places': 'Crianças que foram enviadas para locais seguros', 'Children who have disappeared since the disaster': 'Crianças que desapareceram desde o desastre', 'Chinese (Simplified)': 'Chinese (Simplified)', 'Chinese (Taiwan)': 'Chinês (Taiwan)', 'Cholera Treatment': 'Tratamento da cólera', 'Cholera Treatment Capability': 'Capacidade de Tratamento da Cólera', 'Cholera Treatment Center': 'Centro de Tratamento de Cólera', 'Cholera-Treatment-Center': 'Centro de tratamento de cólera', 'Choose a new posting based on the new evaluation and team judgement. Severe conditions affecting the whole building are grounds for an UNSAFE posting. Localised Severe and overall Moderate conditions may require a RESTRICTED USE. Place INSPECTED placard at main entrance. Post all other placards at every significant entrance.': 'Escolha uma nova alocação baseada na nova avaliação e julgamento do time. Condições severas que afetem o prédio inteiro são base para uma colocação INSEGURA. Grave localizada e no geral condições moderadas podem exigir um USO RESTRITO. Local INSPECCIONADO cartaz na entrada principal. Coloque todos os outros cartazes em cada entrada importante.', 'Christian': 'Cristão', 'Church': 'Igreja', 'Circumstances of disappearance, other victims/witnesses who last saw the missing person alive.': 'Circunstâncias do desaparecimento, outras vítimas/testemunhas quais viram pela última vez a pessoa desaparecida viva.', 'City': 'CIDADE', 'Civil Emergency': 'Emergência Civil', 'Cladding, glazing': 'Revestimentos, vidros', 'Click on the link': 'Clique no link', 'Client IP': 'Client IP', 'Climate': 'Climate', 'Clinical Laboratory': 'Laboratório clínico', 'Clinical Operations': 'operações clinicas', 'Clinical Status': 'estado clínico', 'Close map': 'Close map', 'Closed': 'fechado', 'Clothing': 'vestuário', 'Cluster': 'agrupamento', 'Cluster Details': 'Detalhes do Grupo', 'Cluster Distance': 'Distância entre Grupos', 'Cluster Subsector': 'Subsector de Grupos', 'Cluster Subsector Details': 'Detalhes do sub-setor do cluster', 'Cluster Subsector added': 'Subsector de Grupos incluído', 'Cluster Subsector deleted': 'Subsector de Grupos removido', 'Cluster Subsector updated': 'Sub-setores do cluster atualizado', 'Cluster Subsectors': 'Sub-setores do cluster', 'Cluster Threshold': 'Limite do Cluster', 'Cluster added': 'adicionar agrupamento', 'Cluster deleted': 'Grupo removido', 'Cluster updated': 'Cluster atualizado', 'Cluster(s)': 'Grupo(s)', 'Clusters': 'clusters', 'Code': 'Código', 'Cold Wave': 'onda fria', 'Collapse, partial collapse, off foundation': 'Reduzir, reduzir parciais, off foundation', 'Collective center': 'Centro coletivo', 'Color for Underline of Subheadings': 'Cor para Sublinhar de Subposições', 'Color of Buttons when hovering': 'Cor dos botões quando erguidos', 'Color of bottom of Buttons when not pressed': 'Cor da parte inferior dos botões quando não for pressionado', 'Color of bottom of Buttons when pressed': 'Cor da parte de baixo dos botões quando pressionados', 'Color of dropdown menus': 'Cor de menus DROP-', 'Color of selected Input fields': 'Cor dos campos de entrada selecionados', 'Color of selected menu items': 'cor dos ítens selecionados do menu', 'Column Choices (One Per Line': 'Coluna de opções (uma por linha)', 'Columns, pilasters, corbels': 'Colunas, pilastras , cavaletes', 'Combined Method': 'Método combinado', 'Come back later.': 'Volte mais tarde.', 'Come back later. Everyone visiting this site is probably experiencing the same problem as you.': 'Volte mais tarde. Todos que visitam este site esta, provavelmente, enfrentando o mesmo problema que você.', 'Comments': 'Comentários', 'Commercial/Offices': 'Comercial/Escritórios', 'Commit': 'Consolidar', 'Commit Date': 'Commit Data', 'Commit from %s': 'Consolidação de s%', 'Commit. Status': 'Commit. Status', 'Commiting a changed spreadsheet to the database': 'Consolidando uma planilha alterada no banco de dados', 'Commitment': 'Comprometimento', 'Commitment Added': 'Compromisso Incluído', 'Commitment Canceled': 'Compromisso cancelado', 'Commitment Details': 'Detalhes do compromisso', 'Commitment Item': 'Item do compromisso', 'Commitment Item Details': 'Detalhes do item de compromisso', 'Commitment Item added': 'Item de compromisso incluído', 'Commitment Item deleted': 'Item do compromisso excluído', 'Commitment Item updated': 'Compromisso Item atualizado', 'Commitment Items': 'Itens compromisso', 'Commitment Status': 'Empenhamento Status', 'Commitment Updated': 'Compromisso Atualizado', 'Commitments': 'Compromissos', 'Committed': 'Comprometido', 'Committed By': 'Cometido por', 'Committed People': 'Committed People', 'Committed Person Details': 'Committed Person Details', 'Committed Person updated': 'Committed Person updated', 'Committing Inventory': 'Confirmando Inventário', 'Committing Organization': 'Committing Organization', 'Committing Person': 'Committing Person', 'Communication problems': 'Problemas de Comunicação', 'Community Centre': 'Comunidade Centro', 'Community Health Center': 'Centro Comunitário de Saúde', 'Community Member': 'Membro da Comunidade', 'Competencies': 'Competências', 'Competency': 'Competência', 'Competency Details': 'Competência Detalhes', 'Competency Rating Catalog': 'Catálogo de Classificação de Competências', 'Competency Rating Details': 'Detalhes da classificação de competências', 'Competency Rating added': 'Classificação de Habilidades incluída', 'Competency Rating deleted': 'Classificação de competência excluída', 'Competency Rating updated': 'Atualização da classificação de competências', 'Competency Ratings': 'Classificação de competências', 'Competency added': 'Competência incluída', 'Competency deleted': 'Competência excluído', 'Competency updated': 'Competência atualizada', 'Complete': 'Concluir', 'Completed': 'Concluído', 'Complexion': 'Compleição', 'Compose': 'Redigir', 'Compromised': 'Comprometida', 'Concrete frame': 'Quadro concreto', 'Concrete shear wall': 'Muro de corteconcreto', 'Condition': 'Condição', 'Configurations': 'Configurações', 'Configure Run-time Settings': 'Configurar as configurações de tempo de execução', 'Confirm Shipment Received': 'Confirmar Remessa Recebida', 'Confirmed': 'Confirmado', 'Confirming Organization': 'Confirmando Organização', 'Conflict Details': 'Detalhes Do conflito', 'Conflict Resolution': 'Resolução de Conflito', 'Consignment Note': 'NOTA REMESSA', 'Constraints Only': 'Somente restrições', 'Consumable': 'Consumível', 'Contact': 'contato', 'Contact Data': 'Dados contato', 'Contact Details': 'Detalhes do contato', 'Contact Info': 'Informações de Contato', 'Contact Information': 'Informações de Contato', 'Contact Information Added': 'Informação de contato incluída', 'Contact Information Deleted': 'Informação de contato excluída', 'Contact Information Updated': 'Informações de contato atualizadas', 'Contact Method': 'Método de Contato', 'Contact Name': 'Nome do contato', 'Contact Person': 'Pessoa de Contato', 'Contact Phone': 'Telefone para Contato', 'Contact details': 'Detalhes do contato', 'Contact information added': 'Informações de contato incluídas', 'Contact information deleted': 'Informações de contato excluídas', 'Contact information updated': 'Informações de contato atualizadas', 'Contact person(s) in case of news or further questions (if different from reporting person). Include telephone number, address and email as available.': 'Pessoa(s) a contactar em caso de notícias ou mais perguntas (se for diferente da pessoa que reportou). Incluir número de telefone, endereço e correio electrónico se disponível.', 'Contact us': 'Fale Conosco', 'Contacts': 'contatos', 'Contents': 'Conteúdo', 'Contributor': 'Contribuidor', 'Conversion Tool': 'Ferramenta de Conversão', 'Cooking NFIs': 'Cozinhando NFIs', 'Cooking Oil': 'Cozinhando Óleo', 'Coordinate Conversion': 'COORDENAR a Conversão', 'Coping Activities': 'Atividades de lida', 'Copy': 'copiar', 'Corn': 'Milho', 'Cost Type': 'Tipo de custo', 'Cost per Megabyte': 'Custo por megabyte', 'Cost per Minute': 'Custo por Minuto', 'Country': 'País', 'Country of Residence': 'País de Residência', 'County': 'Município', 'Course': 'Curso', 'Course Catalog': 'Catálogo de Cursos', 'Course Certificate Details': 'Detalhes do Certificado do Curso', 'Course Certificate added': 'Certificado do Curso adicionado', 'Course Certificate deleted': 'Certificado do Curso excluído', 'Course Certificate updated': 'Certificado do Curso atualizado', 'Course Certificates': 'Certificados de Curso', 'Course Certificates': 'Certificados de Curso', 'Course Details': 'Detalhes do curso', 'Course added': 'Curso incluído', 'Course deleted': 'Curso excluído', 'Course updated': 'Curso atualizado', 'Courses': 'Cursos', 'Create & manage Distribution groups to receive Alerts': 'Criar & GERENCIAR grupos de distribuição de receber alertas', 'Create Checklist': 'Criar Lista de Verificação', 'Create Group Entry': 'Criar Grupo De Entrada', 'Create Impact Assessment': 'Criar Avaliação de Impacto', 'Create Mobile Impact Assessment': 'Criar Avaliação de Impacto Movel', 'Create New Asset': 'Criar Novo Recurso', 'Create New Catalog Item': 'Criar Novo Item de Catálogo', 'Create New Event': 'Criar Novo Evento', 'Create New Item Category': 'Criar Nova Categoria de Item', 'Create New Request': 'Criar Novo Pedido', 'Create New Scenario': 'Criar Novo cenário', 'Create New Vehicle': 'Create New Vehicle', 'Create Rapid Assessment': 'Criar Avaliação Rápida', 'Create Request': 'Criar solicitação', 'Create Task': 'Criar Tarefa', 'Create a group entry in the registry.': 'Criar uma entrada de grupo no registro.', 'Create new Office': 'Criar novo escritório', 'Create new Organization': 'Criar nova organização', 'Create, enter, and manage surveys.': 'Criar, digitar e gerenciar pesquisas.', 'Creation of Surveys': 'Criação de Pesquisas', 'Creation of assessments': 'Creation of assessments', 'Credential Details': 'Detalhes da Credencial', 'Credential added': 'Credencial incluída', 'Credential deleted': 'Credencial Excluída', 'Credential updated': 'Credencial ATUALIZADA', 'Credentialling Organization': 'Organização acreditada', 'Credentials': 'credenciais', 'Credit Card': 'Cartão de crédito', 'Crime': 'crime', 'Criteria': 'Critério', 'Currency': 'moeda', 'Current Entries': 'Entradas Atuais', 'Current Group Members': 'Membros do Grupo atual', 'Current Identities': 'Identidades atuais', 'Current Location': 'Posição Atual', 'Current Location Country': 'Current Location Country', 'Current Location Phone Number': 'Current Location Phone Number', 'Current Location Treating Hospital': 'Current Location Treating Hospital', 'Current Log Entries': 'Entradas de Log atuais', 'Current Memberships': 'Participações atuais', 'Current Mileage': 'Current Mileage', 'Current Notes': 'Notes atual', 'Current Records': 'Registros atuais', 'Current Registrations': 'Registros atuais', 'Current Status': 'Status atual', 'Current Team Members': 'Os atuais membros da equipe', 'Current Twitter account': 'Conta atual no Twitter', 'Current community priorities': 'Atuais prioridades da comunidade', 'Current general needs': 'Atuais necessidades gerais', 'Current greatest needs of vulnerable groups': 'Maiores necessidades atuais dos grupos vulneráveis', 'Current health problems': 'Problemas de saúde atuais', 'Current number of patients': 'Número atual de pacientes', 'Current problems, categories': 'Problemas atuais, categorias', 'Current problems, details': 'Problemas atuais, detalhes', 'Current request': 'Pedido atual', 'Current response': 'Resposta atual', 'Current session': 'Sessão atual', 'Currently no Certifications registered': 'Nenhuma certificação registrada atualmente', 'Currently no Competencies registered': 'Nenhuma competência registrada atualmente', 'Currently no Course Certificates registered': 'Nenhum Curso Certificado registrado atualmente', 'Currently no Credentials registered': 'Nenhuma credencial registrada atualmente', 'Currently no Missions registered': 'Nenhuma missão registrada atualmente', 'Currently no Skill Equivalences registered': 'Nenhuma equivelência de habilidade registrada atualmente', 'Currently no Skills registered': 'Currently no Skills registered', 'Currently no Trainings registered': 'Atualmente não há treinamentos registrados', 'Currently no entries in the catalog': 'Nenhuma entrada no catálogo atualmente', 'Custom Database Resource (e.g., anything defined as a resource in Sahana)': 'Bnaco de Dados customizado de Recursos (por exemplo, nada definido como recurso no Sahana)', 'DC': 'DC', 'DNA Profile': 'Perfil de DNA', 'DNA Profiling': 'Perfil de DNA', 'DVI Navigator': 'Navegador DVI', 'Dam Overflow': 'Barragem ESTOURO', 'Damage': 'dano', 'Dangerous Person': 'Pessoa perigosa', 'Dashboard': 'Painel', 'Data': 'Dados', 'Data Type': 'Data Type', 'Data uploaded': 'Dados carregados', 'Database': 'DATABASE', 'Date': 'date', 'Date & Time': 'Date & Time', 'Date Available': 'Data Disponível', 'Date Received': 'Data do recebimento', 'Date Requested': 'Data do pedido', 'Date Required': 'Necessária', 'Date Sent': 'Data de Envio', 'Date Until': 'Data Até', 'Date and Time': 'Data e Hora', 'Date and time this report relates to.': 'Data e hora relacionadas a este relatório.', 'Date of Birth': 'Data de Nascimento', 'Date of Latest Information on Beneficiaries Reached': 'Data da última informação sobre Beneficiários Alcançado', 'Date of Report': 'Data do relatório', 'Date of Treatment': 'Date of Treatment', 'Date/Time': 'data/hora', 'Date/Time of Find': 'Pesquisa de data/hora', 'Date/Time of disappearance': 'Data/hora do desaparecimento', 'Date/Time when found': 'Data/hora quando foi encontrado', 'Date/Time when last seen': 'Data/ hora em que foi visto pela última vez', 'De-duplicator': 'Anti duplicador', 'Dead Bodies': 'Dead Bodies', 'Dead Body': 'Cadáver', 'Dead Body Details': 'Detalhes do Cadáver', 'Dead Body Reports': 'Relatórios de Cadáver', 'Dead body report added': 'Relatório de cadaver incluso.', 'Dead body report deleted': 'Relatório de cadáver excluído.', 'Dead body report updated': 'Relatório de cadáver atualizado', 'Deaths in the past 24h': 'Mortes nas últimas 24 horas', 'Deaths/24hrs': 'Mortes/24hrs', 'Decimal Degrees': 'Graus decimais', 'Decision': 'DECISÃO', 'Decomposed': 'Decomposto', 'Default Height of the map window.': 'Altura Padrão da janela do mapa.', 'Default Location': 'Default Location', 'Default Map': 'Mapa padrão', 'Default Marker': 'Padrão de mercado', 'Default Width of the map window.': 'Padrão de largura da janela do mapa.', 'Default synchronization policy': 'Política de sincronização de padrão', 'Defecation area for animals': 'Área de defecação para animais', 'Define Scenarios for allocation of appropriate Resources (Human, Assets & Facilities).': 'Cenários De definir para alocação adequado de recursos (humanos, Ativos & instalações).', 'Defines the icon used for display of features on handheld GPS.': 'Define o ícone utilizado para exibição de recursos no GPS portátil.', 'Defines the icon used for display of features on interactive map & KML exports.': 'Define o ícone utilizado para exibição de recursos no mapa interativo & exportações KML.', 'Defines the marker used for display & the attributes visible in the popup.': 'Define o marcador utilizado para exibir & os atributos visíveis no pop-up.', 'Degrees must be a number between -180 and 180': 'Os graus devem ser um número entre -180 e 180', 'Dehydration': 'Desidratação', 'Delete': 'Excluir', 'Delete Alternative Item': 'EXCLUIR Item Alternativo', 'Delete Assessment': 'Excluir Avaliação', 'Delete Assessment Summary': 'Excluir Resumo da Avaliação', 'Delete Asset': 'Excluir Ativo', 'Delete Asset Assignment': 'Excluir o recurso designado', 'Delete Asset Log Entry': 'EXCLUIR recurso de entrada de Log', 'Delete Baseline': 'apagar linha base', 'Delete Baseline Type': 'apagar tipo de linha base', 'Delete Brand': 'apagar marca', 'Delete Budget': 'apagar orçamento', 'Delete Bundle': 'apagar pacote', 'Delete Catalog': 'Excluir o Catálogo', 'Delete Catalog Item': 'apagar item do catálogo', 'Delete Certificate': 'Excluir Certificado', 'Delete Certification': 'Excluir Certificação', 'Delete Cluster': 'Exclui Cluster', 'Delete Cluster Subsector': 'EXCLUIR Cluster Subsector', 'Delete Commitment': 'Excluir Compromisso', 'Delete Commitment Item': 'Excluir Item de Compromisso', 'Delete Competency': 'Excluir Competência', 'Delete Competency Rating': 'Excluir Classificação da Competência', 'Delete Contact Information': 'Excluir Informações de Contato', 'Delete Course': 'Excluir Curso', 'Delete Course Certificate': 'Excluir Certificado do Curso', 'Delete Credential': 'Excluir Credencial', 'Delete Document': 'Excluir documento', 'Delete Donor': 'EXCLUIR Dador', 'Delete Entry': 'Excluir Entrada', 'Delete Event': 'Excluir Evento', 'Delete Feature Class': 'Excluir Classe de Recurso', 'Delete Feature Layer': 'Excluir Camada de Componentes', 'Delete GPS data': 'Delete GPS data', 'Delete Group': 'Excluir Grupo', 'Delete Home': 'Delete Home', 'Delete Hospital': 'Excluir Hospital', 'Delete Image': 'Excluir Imagem', 'Delete Impact': 'Excluir Impacto', 'Delete Impact Type': 'Excluir Tipo De Impacto', 'Delete Incident Report': 'Excluir Relatório de Incidentes', 'Delete Inventory Item': 'EXCLUIR Item De Inventário', 'Delete Item': 'Excluir Item', 'Delete Item Category': 'EXCLUIR categoria de Itens', 'Delete Item Pack': 'EXCLUIR Pacote de Itens', 'Delete Job Role': 'Excluir Cargo', 'Delete Key': 'Tecla de exclusão', 'Delete Kit': 'EXCLUIR Kit', 'Delete Layer': 'Excluir Camada', 'Delete Level 1 Assessment': 'EXCLUIR Nível 1 Avaliação', 'Delete Level 2 Assessment': 'EXCLUIR Nível 2 Avaliação', 'Delete Location': 'Excluir locação', 'Delete Map Configuration': 'EXCLUIR Mapa de configuração', 'Delete Marker': 'EXCLUIR Marcador', 'Delete Membership': 'Excluir membro', 'Delete Message': 'Excluir mensagem', 'Delete Mission': 'EXCLUIR Missão', 'Delete Need': 'Excluir necessidades', 'Delete Need Type': 'Excluir tipos de necessidades', 'Delete Office': 'Excluir escritório', 'Delete Organization': 'Excluir organização', 'Delete Patient': 'Delete Patient', 'Delete Peer': 'Excluir par', 'Delete Person': 'excluir pessoa', 'Delete Photo': 'Excluir Foto', 'Delete Population Statistic': 'EXCLUIR População Estatística', 'Delete Position': 'EXCLUIR Posição', 'Delete Project': 'Excluir Projeto', 'Delete Projection': 'Excluir Projeção', 'Delete Rapid Assessment': 'Excluir Avaliação Rápida', 'Delete Received Item': 'Excluir Item Recebido', 'Delete Received Shipment': 'Excluir Embarque Recebido', 'Delete Record': 'Excluir Registro', 'Delete Relative': 'Delete Relative', 'Delete Report': 'Excluir Relatório', 'Delete Request': 'Excluir Solicitação', 'Delete Request Item': 'Excluir item de solicitação', 'Delete Resource': 'Excluir Recurso', 'Delete Room': 'Excluir Sala', 'Delete Scenario': 'Excluir Cenário', 'Delete Section': 'Excluir seção', 'Delete Sector': 'Excluir Setor', 'Delete Sent Item': 'Excluir Item Enviado', 'Delete Sent Shipment': 'Excluir Embarque Enviado', 'Delete Service Profile': 'Excluir perfil de serviço', 'Delete Setting': 'Excluir Definição', 'Delete Skill': 'Excluir habilidade', 'Delete Skill Equivalence': 'Excluir equivalência de habilidade', 'Delete Skill Provision': 'Excluir Provisão de Habilidade', 'Delete Skill Type': 'Excluir Tipo de Habilidade', 'Delete Staff Type': 'Excluir Tipo De Equipe', 'Delete Status': 'Excluir Posição/Estado', 'Delete Subscription': 'Excluir assinatura', 'Delete Subsector': 'Excluir subsetor', 'Delete Survey Answer': 'Excluir reposta da pesquisa', 'Delete Survey Question': 'Excluir pergunta da pesquisa', 'Delete Survey Section': 'Excluir seção da pesquisa', 'Delete Survey Series': 'Excluir série da pesquisa', 'Delete Survey Template': 'Excluir modelo da pesquisa', 'Delete Training': 'Excluir Treinamento', 'Delete Unit': 'Excluir Unidade', 'Delete User': 'Excluir usuário', 'Delete Vehicle': 'Delete Vehicle', 'Delete Vehicle Details': 'Delete Vehicle Details', 'Delete Volunteer': 'EXCLUIR Voluntário', 'Delete Warehouse': 'Excluír Armazém', 'Delete from Server?': 'Excluir do Servidor?', 'Delphi Decision Maker': 'tomador de decisão Delphi', 'Demographic': 'Demográfico', 'Demonstrations': 'Demonstrações', 'Dental Examination': 'Exame Dentário', 'Dental Profile': 'Perfil Dentário', 'Deployment Location': 'Deployment Location', 'Describe the condition of the roads to your hospital.': 'Descreva as condições da estrada até o seu hospital.', 'Describe the procedure which this record relates to (e.g. "medical examination")': 'Descreva o procedimento ao qual este registro está relacionado (Ex: "exame médico")', 'Description': 'Descrição', 'Description of Contacts': 'Descrição dos Contatos', 'Description of defecation area': 'Descrição da área de defecação', 'Description of drinking water source': 'Descrição da fonte de água potável', 'Description of sanitary water source': 'Descrição da fonte de água sanitária', 'Description of water source before the disaster': 'Descrição da fonte de água antes do desastre', 'Descriptive Text (e.g., Prose, etc)': 'Texto Descritivo (por exemplo, Prosa, etc.)', 'Desire to remain with family': 'O desejo de permanecer com a família', 'Destination': 'destino', 'Destroyed': 'Destruído', 'Details': 'detalhes', 'Details field is required!': 'Campo de detalhes é obrigatório!', 'Dialysis': 'Diálise', 'Diaphragms, horizontal bracing': 'Diafragmas, interditará horizontal', 'Diarrhea': 'Diarréia', 'Dignitary Visit': 'Visita de Dignatários', 'Direction': 'Endereço', 'Disable': 'Desativar', 'Disabled': 'desativado', 'Disabled participating in coping activities': 'Deficiente participando de enfrentamento', 'Disabled?': 'Desativado?', 'Disaster Victim Identification': 'Identificação de Vítima de Desastre', 'Disaster Victim Registry': 'Registro de Vítima de Desastre', 'Disaster clean-up/repairs': 'Desastre limpeza/reparos', 'Discharge (cusecs)': 'Quitação (cusecs)', 'Discharges/24hrs': 'Descargas/24horas', 'Discussion Forum': 'Fórum de Discussão', 'Discussion Forum on item': 'Fórum de discussão do item', 'Disease vectors': 'Vectores doença', 'Dispensary': 'Dispensário', 'Displaced': 'Deslocadas', 'Displaced Populations': 'Populações deslocadas', 'Display Polygons?': 'exibir Polígonos?', 'Display Routes?': 'Exibir Rotas?', 'Display Tracks?': 'exibir Trilhas?', 'Display Waypoints?': 'Exibir Rota?', 'Distance between defecation area and water source': 'Distância entre área de esgoto e fonte de água', 'Distance from %s:': 'Distância de %s:', 'Distance(Kms)': 'Distância(Kms)', 'Distribution': 'Distribuição de', 'Distribution groups': 'Grupos de distribuição', 'District': 'Distrito', 'Do you really want to delete these records?': 'Você realmente deseja excluir esses registros?', 'Do you want to cancel this received shipment? The items will be removed from the Inventory. This action CANNOT be undone!': 'Você deseja cancelar este carregamento que foi recebido? Os itens serão removidos do inventário. Esta ação não pode ser desfeita!', 'Do you want to cancel this sent shipment? The items will be returned to the Inventory. This action CANNOT be undone!': 'Você deseja cancelar esse carregamento enviado? Os itens serão retornados para o inventário. Esta ação não pode ser desfeita!', 'Do you want to receive this shipment?': 'Você deseja receber esse carregamento?', 'Do you want to send these Committed items?': 'Você deseja enviar esses itens Consolidados?', 'Do you want to send this shipment?': 'Você deseja enviar este carregamento?', 'Document': 'documento', 'Document Details': 'Detalhes do Documento', 'Document Scan': 'Scanear Documento', 'Document added': 'Documento incluído', 'Document deleted': 'Documento excluído', 'Document removed': 'Document removed', 'Document updated': 'Documento Atualizado', 'Documents': 'Documentos', 'Documents and Photos': 'Documentos e Fotos', 'Does this facility provide a cholera treatment center?': 'Esta facilidade proporciona um centro de tratamento da cólera?', 'Doing nothing (no structured activity)': 'Fazendo nada (sem atividade estruturada)', 'Dollars': 'dólares', 'Domain': 'domínio', 'Domestic chores': 'Afazeres domésticos', 'Donated': 'Doado', 'Donation Certificate': 'Certificado de doaçao', 'Donation Phone #': 'Número de Telefone de doaçao', 'Donor': 'Dador', 'Donor Details': 'Doador Detalhes', 'Donor added': 'Doador incluído', 'Donor deleted': 'Doador excluído', 'Donor updated': 'Doador ATUALIZADO', 'Donors': 'Doadores', 'Donors Report': 'Relatório de Doadores', 'Door frame': 'Quadro de porta', 'Download PDF': 'Fazer download do PDF', 'Download Template': 'Download Template', 'Draft': 'rascunho', 'Drainage': 'Drenagem', 'Drawing up a Budget for Staff & Equipment across various Locations.': 'Elaborar um orçamento para Equipe & Equipamento de vários locais.', 'Drill Down by Group': 'Detalhar por grupo', 'Drill Down by Incident': 'Detalhar por incidente', 'Drill Down by Shelter': 'Detalhar por abrigo', 'Driving License': 'Carteira de Motorista', 'Drought': 'Seca', 'Drugs': 'Drogas', 'Dug Well': 'Cavaram Bem', 'Duplicate?': 'Duplicado?', 'Duration': 'Duração', 'Dust Storm': 'Tempestade de Poeira', 'Dwelling': 'Habitação', 'Dwellings': 'Habitações', 'E-mail': 'Correio eletrônico', 'EMS Reason': 'Razão EMS', 'EMS Status': 'EMS Status', 'ER Status': 'ER Status', 'ER Status Reason': 'Razão ER Status', 'EXERCISE': 'EXERCISE', 'Early Recovery': 'Início De Recuperação', 'Earth Enabled?': 'Earth Enabled?', 'Earthquake': 'Terremotos', 'Edit': 'Editar', 'Edit Activity': 'Editar Atividade', 'Edit Address': 'Editar Endereço', 'Edit Alternative Item': 'Editar Item Alternativo', 'Edit Application': 'Editar Aplicação', 'Edit Assessment': 'Editar avaliação', 'Edit Assessment Summary': 'Editar resumo da avaliação', 'Edit Asset': 'Editar recurso', 'Edit Asset Assignment': 'Editar designação do recurso', 'Edit Asset Log Entry': 'EDITAR ENTRADA DE Log de ATIVOs', 'Edit Baseline': 'Editar base de avaliação', 'Edit Baseline Type': 'Editar tipo de base de avaliação', 'Edit Brand': 'Editar marca', 'Edit Budget': 'Editar orçamento', 'Edit Bundle': 'Editar Pacote', 'Edit Camp': 'EDITAR acampamento', 'Edit Camp Service': 'EDITAR Serviço de acampamento', 'Edit Camp Type': 'Editar Tipo de Campo', 'Edit Catalog': 'Editar catálogo', 'Edit Catalog Item': 'Editar item do catálogo', 'Edit Certificate': 'Editar Certificado', 'Edit Certification': 'Editar Certificação', 'Edit Cluster': 'Editar grupo', 'Edit Cluster Subsector': 'Editar subgrupo', 'Edit Commitment': 'Editar compromisso', 'Edit Commitment Item': 'Editar Item De Compromisso', 'Edit Committed Person': 'Edit Committed Person', 'Edit Competency': 'Editar Competência', 'Edit Competency Rating': 'Editar Classificação da Competência', 'Edit Contact': 'Editar Contato', 'Edit Contact Information': 'Editar Informações de Contato', 'Edit Contents': 'Editar Conteúdo', 'Edit Course': 'Editar Curso', 'Edit Course Certificate': 'Editar Certificado de Curso', 'Edit Credential': 'Editar Credencial', 'Edit Dead Body Details': 'Editar Detalhes do Cadáver', 'Edit Description': 'Editar Descrição', 'Edit Details': 'Editar detalhes', 'Edit Disaster Victims': 'Editar vítimas do desastre', 'Edit Document': 'Editar documento', 'Edit Donor': 'Editar Doador', 'Edit Email Settings': 'Editar As Configurações De E-Mail', 'Edit Entry': 'Editar Entrada', 'Edit Event': 'Editar evento', 'Edit Facility': 'Editar recurso', 'Edit Feature Class': 'EDITAR CLASSE DE RECURSO', 'Edit Feature Layer': 'Editar Recurso Camada', 'Edit Flood Report': 'Editar Relatório de Enchente', 'Edit GPS data': 'Edit GPS data', 'Edit Gateway Settings': 'Editar Configurações de Gateway', 'Edit Group': 'Grupo de edição', 'Edit Home': 'Edit Home', 'Edit Hospital': 'Editar Hospital', 'Edit Human Resource': 'Editar Recursos Humanos', 'Edit Identification Report': 'Editar Relatório de identificação', 'Edit Identity': 'Editar Identidade', 'Edit Image': 'Editar Imagem', 'Edit Image Details': 'Editar Detalhes da Imagem', 'Edit Impact': 'Editar Impacto', 'Edit Impact Type': 'Editar Tipo De Impacto', 'Edit Import File': 'Edit Import File', 'Edit Incident Report': 'Editar Relatório de Incidente', 'Edit Inventory Item': 'Editar Item De Inventário', 'Edit Item': 'Editar Item', 'Edit Item Category': 'Editar Item de categoria', 'Edit Item Pack': 'Editar Pacote de Itens', 'Edit Job Role': 'Editar cargo', 'Edit Key': 'Editar Tecla', 'Edit Kit': 'Editar Kit', 'Edit Layer': 'Editar Camada', 'Edit Level %d Locations?': 'Editar Locais Nível d% ?', 'Edit Level 1 Assessment': 'Editar Avaliação Nível 1', 'Edit Level 2 Assessment': 'Editar nível 2 de acesso', 'Edit Location': 'Local de edição', 'Edit Log Entry': 'EDITAR ENTRADA DE Log', 'Edit Map Configuration': 'Editar Mapa de configuração', 'Edit Map Services': 'Editar mapa de serviços', 'Edit Marker': 'Marcador de Edição', 'Edit Membership': 'Editar inscrição', 'Edit Message': 'Editar mensagem', 'Edit Messaging Settings': 'Editar Configurações De Mensagens', 'Edit Mission': 'Editar Missão', 'Edit Modem Settings': 'Editar Configurações Do Modem', 'Edit Need': 'Ediçao Necessária', 'Edit Need Type': 'Editar tipo de necessidade', 'Edit Note': 'Editar nota', 'Edit Office': 'Escritório de edição', 'Edit Options': 'Opções de edição', 'Edit Organization': 'Organizar edições', 'Edit Parameters': 'Parametros de edição', 'Edit Patient': 'Edit Patient', 'Edit Peer Details': 'Detalhes do par editado', 'Edit Person Details': 'Editar detalhes pessoais', 'Edit Personal Effects Details': 'Editar detalhes de objectos pessoais', 'Edit Photo': 'Editar Foto', 'Edit Population Statistic': 'Editar Estatística da População', 'Edit Position': 'Editar Posição', 'Edit Problem': 'Editar Problema', 'Edit Project': 'Editar Projecto', 'Edit Projection': 'Editar Projeção', 'Edit Rapid Assessment': 'Editar Rápida Avaliação', 'Edit Received Item': 'Editar Item Recebido', 'Edit Received Shipment': 'Editar Embarque Recebido', 'Edit Record': 'Editar Registro', 'Edit Registration': 'Editar Registro', 'Edit Registration Details': 'Editar Detalhes De Registro', 'Edit Relative': 'Edit Relative', 'Edit Report': 'Editar Relatório', 'Edit Request': 'Editar Pedido', 'Edit Request Item': 'Editar Item Pedido', 'Edit Requested Skill': 'Edit Requested Skill', 'Edit Resource': 'Editar Recurso', 'Edit River': 'EDITAR RIO', 'Edit Role': 'Editar Função', 'Edit Room': 'Editar Sala', 'Edit SMS Settings': 'Edit SMS Settings', 'Edit SMTP to SMS Settings': 'Edit SMTP to SMS Settings', 'Edit Scenario': 'Editar cenário', 'Edit Sector': 'Editar Setor', 'Edit Sent Item': 'Editar Item Enviado', 'Edit Setting': 'Editar Definição', 'Edit Settings': 'Editar Configurações', 'Edit Shelter': 'EDITAR ABRIGO', 'Edit Shelter Service': 'Editar Serviço de Abrigo', 'Edit Shelter Type': 'EDITAR Tipo De Abrigo', 'Edit Skill': 'editar competência', 'Edit Skill Equivalence': 'Editar Equivalência de Habilidade', 'Edit Skill Provision': 'Editar Habilidade de Fornecimento', 'Edit Skill Type': 'editar tipo de competência', 'Edit Solution': 'editar solução', 'Edit Staff': 'editar pessoal', 'Edit Staff Member Details': 'Editar detalhes do membro da equipe', 'Edit Staff Type': 'EDITAR Tipo De Equipe', 'Edit Subscription': 'Editar assinatura', 'Edit Subsector': 'EDITAR Subsector', 'Edit Survey Answer': 'Editar resposta da pesquisa', 'Edit Survey Question': 'Editar pergunta da pesquisa', 'Edit Survey Section': 'EDITAR Seção de Pesquisa', 'Edit Survey Series': 'EDITAR Pesquisa de Série', 'Edit Survey Template': 'EDITAR MODELO DE PESQUISA', 'Edit Task': 'Editar Tarefa', 'Edit Team': 'Editar equipe', 'Edit Theme': 'Editar tema', 'Edit Themes': 'EDITAR TEMAs', 'Edit Ticket': 'EDITAR Bilhete', 'Edit Track': 'EDITAR RASTREAMENTO', 'Edit Training': 'Editar Treinamento', 'Edit Tropo Settings': 'Editar Configurações Tropo', 'Edit User': 'Editar Usuário', 'Edit Vehicle': 'Edit Vehicle', 'Edit Vehicle Details': 'Edit Vehicle Details', 'Edit Volunteer Availability': 'Editar Disponibilidade de Voluntário', 'Edit Volunteer Details': 'Editar Detalhes de Voluntário', 'Edit Warehouse': 'Editar Armazém', 'Edit Web API Settings': 'Edit Web API Settings', 'Edit current record': 'Editar Registro Atual', 'Edit message': 'Editar mensagem', 'Edit the Application': 'Editar a Aplicação', 'Editable?': 'Editável?', 'Education': 'Educação', 'Education materials received': 'Materiais de educação recebido', 'Education materials, source': 'materiais de Educação, origem', 'Effects Inventory': 'Inventário de efeitos', 'Eggs': 'Ovos', 'Either a shelter or a location must be specified': 'Um abrigo ou um local deve ser especificado', 'Either file upload or document URL required.': 'Um arquivo de upload ou URL do documento são necessários.', 'Either file upload or image URL required.': 'Um arquivo de upload ou URL de imagem são necessárias.', 'Elderly person headed households (>60 yrs)': 'Chefes de Familia de idade avançada (>60 anos)', 'Electrical': 'Elétrico', 'Electrical, gas, sewerage, water, hazmats': 'Elétrica, gás, esgotos, água, hazmats', 'Elevated': 'Elevado', 'Elevators': 'Elevadores', 'Email': 'E-MAIL', 'Email Address': 'Endereço de e-mail', 'Email Address to which to send SMS messages. Assumes sending to phonenumber@address': 'Email Address to which to send SMS messages. Assumes sending to phonenumber@address', 'Email Settings': 'Configurações de e-mail', 'Email settings updated': 'As configurações de e-mail atualizado', 'Embalming': 'Embalsamento', 'Embassy': 'Embaixada', 'Emergency Capacity Building project': 'Plano de emergência de capacidade dos prédios', 'Emergency Department': 'Departamento de Emergência', 'Emergency Shelter': 'Abrigo de Emergência', 'Emergency Support Facility': 'Recurso De Suporte de emergência', 'Emergency Support Service': 'Suporte do Serviço de Emergência', 'Emergency Telecommunications': 'Emergência De Telecomunicações', 'Enable': 'Enable', 'Enable/Disable Layers': 'Ativar/Desativar Camadas', 'Enabled': 'Habilitado', 'Enabled?': 'Enabled?', 'Enabling MapMaker layers disables the StreetView functionality': 'Enabling MapMaker layers disables the StreetView functionality', 'End Date': 'Data de encerramento', 'End date': 'Data de Término', 'End date should be after start date': 'Data Final deve ser maior do que a data de início', 'End of Period': 'Fim de Período', 'English': 'Inglês', 'Enter Coordinates:': 'Entre as coordenadas:', 'Enter a GPS Coord': 'Digite uma Coordada GPS', 'Enter a name for the spreadsheet you are uploading (mandatory).': 'Digite um nome para a planilha que está fazendo Upload (obrigatório).', 'Enter a name for the spreadsheet you are uploading.': 'Enter a name for the spreadsheet you are uploading.', 'Enter a new support request.': 'Digite um pedido novo de suporte.', 'Enter a unique label!': 'Digite um rótulo exclusivo!', 'Enter a valid date before': 'Digite uma data válida antes de', 'Enter a valid email': 'Insira um email válido', 'Enter a valid future date': 'Digite uma data futura válida', 'Enter a valid past date': 'Enter a valid past date', 'Enter some characters to bring up a list of possible matches': 'Digite alguns caracteres para trazer uma lista de correspondências possíveis', 'Enter some characters to bring up a list of possible matches.': 'Digite alguns caracteres para trazer uma lista de correspondências possíveis.', 'Enter tags separated by commas.': 'Insira as tags separadas por vírgulas.', 'Enter the data for an assessment': 'Enter the data for an assessment', 'Enter the same password as above': 'Digite a mesma senha acima', 'Enter your firstname': 'Enter your firstname', 'Enter your organization': 'Enter your organization', 'Entered': 'Inserido', 'Entering a phone number is optional, but doing so allows you to subscribe to receive SMS messages.': 'Digitar um número de telefone é opcional, mas ao fazer isto permite a voçe se registrar para receber mensagens SMS.', 'Entry deleted': 'Entrada removida', 'Environment': 'Ambiente do', 'Equipment': 'Equipamento', 'Error encountered while applying the theme.': 'Erro encontrado ao aplicar o tema.', 'Error in message': 'Erro na mensagem', 'Error logs for "%(app)s"': 'Registro de erros de "%(app)s"', 'Error: no such record': 'Erro: nenhum registro', 'Errors': 'Erros', 'Est. Delivery Date': 'Est. Data de entrega', 'Estimated # of households who are affected by the emergency': '# estimado das famílias que são afetados pela emergência', 'Estimated # of people who are affected by the emergency': '# estimado de pessoas que são afetados pela emergência', 'Estimated Overall Building Damage': 'Dano total de construção estimado', 'Estimated total number of people in institutions': 'Número total estimado de pessoas em instituições', 'Euros': 'Euros', 'Evacuating': 'abandono', 'Evaluate the information in this message. (This value SHOULD NOT be used in public warning applications.)': 'Valide as informações desta mensagem. (Este valor não deve ser utilizado em aplicações de aviso público. ).', 'Event': 'Evento', 'Event Details': 'Detalhes do evento', 'Event added': 'Evento incluído', 'Event deleted': 'Evento excluído', 'Event updated': 'Evento atualizado', 'Events': 'eventos', 'Example': 'Exemplo:', 'Exceeded': 'Excedido', 'Excellent': 'Excelente', 'Exclude contents': 'Excluir conteúdo', 'Excreta disposal': 'Eliminação de dejetos', 'Execute a pre-planned activity identified in <instruction>': 'Executar uma atividade pré-planejada identificada no', 'Exercise': 'Excercício', 'Exercise?': 'Exercício ?', 'Exercises mean all screens have a watermark & all notifications have a prefix.': "Exercícios significa que todas as telas têm uma marca d'água & todas as comunicações têm um prefixo.", 'Existing Placard Type': 'Cartaz existente Tipo', 'Existing Sections': 'Existing Sections', 'Existing food stocks': 'Estoques de alimentos existente', 'Existing location cannot be converted into a group.': 'Local Existente não pode ser convertido em um grupo.', 'Exits': 'Saídas', 'Expected Return Home': 'Expected Return Home', 'Experience': 'Experiência', 'Expiry Date': 'Data de expiração', 'Explosive Hazard': 'Perigo explosivo', 'Export': 'Exportar', 'Export Data': 'Exportar dados.', 'Export Database as CSV': 'Exportar o banco de dados como CSV', 'Export in GPX format': 'Exportar no formato GPX', 'Export in KML format': 'Exportar no formato KML', 'Export in OSM format': 'Exportar no formato OSM', 'Export in PDF format': 'Exportar no formato PDF', 'Export in RSS format': 'Exportar no formato RSS', 'Export in XLS format': 'Exportar no formato XLS', 'Exterior Only': 'Exterior Apenas', 'Exterior and Interior': 'Exterior e Interior', 'Eye Color': 'Cor dos Olhos', 'Facebook': 'Facebook', 'Facial hair, color': 'Cabelo Facial, cor', 'Facial hair, type': 'Cabelo Facial, digite', 'Facial hear, length': 'Facial ouvir, COMPRIMENTO', 'Facilities': 'Instalações', 'Facility': 'Instalação', 'Facility Details': 'Detalhes da Instalação', 'Facility Operations': 'Facilidades nas Operações', 'Facility Status': 'Status Facility', 'Facility Type': 'Tipo de Instalação', 'Facility added': 'Instalação incluída', 'Facility or Location': 'Instalação ou Local', 'Facility removed': 'Recurso removido', 'Facility updated': 'Recurso atualizado', 'Fail': 'Falha', 'Failed!': 'Falha!', 'Fair': 'Razoável', 'Falling Object Hazard': 'Queda Objeto Risco', 'Families/HH': 'Famílias/HH', 'Family': 'Familia', 'Family tarpaulins received': 'lonas de familia recebidas', 'Family tarpaulins, source': 'lonas de familia, fuente', 'Family/friends': 'Família/amigos', 'Farmland/fishing material assistance, Rank': 'TERRAS/assistência de material de Pesca, posição', 'Fatalities': 'Fatalidades', 'Fax': 'Número do Fax', 'Feature Class': 'Classe de Recursos', 'Feature Class Details': 'Detalhes da classe de recurso', 'Feature Class added': 'Classe de Recurso incluída', 'Feature Class deleted': 'Classe de recurso excluída', 'Feature Class updated': 'Classe De recurso atualizada', 'Feature Classes': 'Classes de Recursos', 'Feature Classes are collections of Locations (Features) of the same type': 'Classes De recurso são grupos de localidades (recursos) do mesmo tipo', 'Feature Layer Details': 'Recurso Camada Detalhes', 'Feature Layer added': 'Recurso Camada incluída', 'Feature Layer deleted': 'Recurso Camada excluído', 'Feature Layer updated': 'Recurso Camada atualizada', 'Feature Layers': 'Camadas recurso', 'Feature Namespace': 'Espaço De recurso', 'Feature Request': 'Pedido de Componente', 'Feature Type': 'Tipo de Componente', 'Features Include': 'Componentes Incluidos', 'Female': 'Sexo Feminino', 'Female headed households': 'Famílias chefiadas por mulheres', 'Few': 'Poucos', 'Field': 'Campo', 'Field Hospital': 'Campo Hospital', 'File': 'arquivo', 'File Imported': 'File Imported', 'File Importer': 'File Importer', 'File name': 'File name', 'Fill in Latitude': 'Preencher na Latitude', 'Fill in Longitude': 'Preencher na Longitude', 'Filter': 'Filtro', 'Filter Field': 'Filtro de Campo', 'Filter Value': 'Filtro de Valor', 'Find': 'Localizar', 'Find All Matches': 'Localizar todos os equivalentes', 'Find Dead Body Report': 'Localizar Relatório de Cadáver', 'Find Hospital': 'Localizar Hospital', 'Find Person Record': 'Localizar registro de pessoa', 'Find Volunteers': 'Localizar Voluntários', 'Find a Person Record': 'Localizar um Registro de Pessoa', 'Finder': 'Localizador', 'Fingerprint': 'Impressão digital', 'Fingerprinting': 'Impressões digitais', 'Fingerprints': 'Impressões Digitais', 'Finish': 'Terminar', 'Finished Jobs': 'Tarefa Terminada', 'Fire': 'Fogo', 'Fire suppression and rescue': 'Supressão e salvamento de incêndio', 'First Name': 'Primeiro Nome', 'First name': 'Primeiro Nome', 'Fishing': 'Pesca', 'Flash Flood': 'Enchente', 'Flash Freeze': 'congelar o momento', 'Flexible Impact Assessments': 'Flexibilidade no Impacto de avaliações', 'Flood': 'Enchente', 'Flood Alerts': 'Alertas de Enchente', 'Flood Alerts show water levels in various parts of the country': 'Os alertas de inundação mostram o nível da água em várias partes do país', 'Flood Report': 'Relatório de Inundação', 'Flood Report Details': 'Detalhes do Relatório de Inundação', 'Flood Report added': 'Relatório de Inundação incluído', 'Flood Report deleted': 'Relatório de Inundação removido', 'Flood Report updated': 'Relatório de Inundação actualizado', 'Flood Reports': 'Relatórios de Inundação', 'Flow Status': 'posição de fluxo', 'Focal Point': 'Ponto Central', 'Fog': 'Nevoeiro', 'Food': 'Food', 'Food Supply': 'Alimentação', 'Food assistance': 'Ajuda alimentar', 'Footer': 'Rodapé', 'Footer file %s missing!': '% Arquivo rodapé ausente!', 'For': 'Por', 'For POP-3 this is usually 110 (995 for SSL), for IMAP this is usually 143 (993 for IMAP).': 'For POP-3 this is usually 110 (995 for SSL), for IMAP this is usually 143 (993 for IMAP).', 'For a country this would be the ISO2 code, for a Town, it would be the Airport Locode.': 'Para um país este seria o código ISO2, para uma cidade, este seria o codigo do aeroporto (UNE/Locode).', 'For each sync partner, there is a default sync job that runs after a specified interval of time. You can also set up more sync jobs which could be customized on your needs. Click the link on the right to get started.': 'Para cada parceiro de sincronização, há uma tarefa de sincronização padrão que é executada após um intervalo de tempo especificado. Você também pode configurar mais tarefas de sincronização que podem ser customizadas de acordo com as suas necessidades. Clique no link à direita para começar.', 'For enhanced security, you are recommended to enter a username and password, and notify administrators of other machines in your organization to add this username and password against your UUID in Synchronization -> Sync Partners': 'Para segurança reforçada, é recomendável digitar um nome de usuário e senha, e notificar os administradores de outras máquinas em sua organização para incluir esse usuário e senha no UUID em Sincronização -> Parceiros De Sincronização', 'For live help from the Sahana community on using this application, go to': 'Para ajuda ao vivo da comunidade do Sahana sobre como utilizar esse aplicativo, vá para', 'For messages that support alert network internal functions': 'Para mensagens que suportam funções internas de alertas de rede', 'For more details on the Sahana Eden system, see the': 'Para obter mais detalhes sobre o sistema Sahana Eden, consulte o', 'For more information, see': 'Para obter mais informações, consulte o', 'For more information, see ': 'For more information, see ', 'For other types, the next screen will allow you to enter the relevant details...': 'Para outros tipos, a próxima tela permitirá que você digite os detalhes relevantes.', 'Forest Fire': 'Incêndios florestais', 'Formal camp': 'Acampamento formal', 'Format': 'Formato', "Format the list of attribute values & the RGB value to use for these as a JSON object, e.g.: {Red: '#FF0000', Green: '#00FF00', Yellow: '#FFFF00'}": "Formatar a lista de valores de atributos & o valor RGB a ser usado para esses como o objeto JSON, Exemplo: {Red: '#FF0000, Green: '#00FF00', Yellow: '#FFFF00'}", 'Forms': 'formulários', 'Found': 'localizado', 'Foundations': 'Fundações', 'Freezing Drizzle': 'Garoa gelada', 'Freezing Rain': 'Chuva Gelada', 'Freezing Spray': 'Spray Gelado', 'French': 'Francês', 'Friday': 'sexta-feira', 'From': 'from', 'From Facility': 'From Facility', 'From Inventory': 'A partir do Inventário', 'From Location': 'Do Local', 'From Organisation': 'Da organização', 'From Organization': 'Da Organização', 'From Person': 'Da Pessoa', 'Frost': 'Geada', 'Fulfil. Status': 'Encher. Status', 'Fulfillment Status': 'Status de preenchimento', 'Full': 'Cheio', 'Full beard': 'Barba completa', 'Fullscreen Map': 'Mapa em tela cheia', 'Functions available': 'Funções disponíveis', 'Funding Organization': 'Financiar a Organização', 'Funeral': 'Funeral', 'Further Action Recommended': 'Mais Acção Recomendada', 'GIS Reports of Shelter': 'Relatórios GIS de abrigos', 'GIS integration to view location details of the Shelter': 'Integration GIS para visualizar detalhes do local do Abrigo', 'GPS': 'GPS', 'GPS Data': 'GPS Data', 'GPS ID': 'GPS ID', 'GPS Marker': 'Marcador De GPS', 'GPS Track': 'Rastrear por GPS', 'GPS Track File': 'Rastrear Arquivo GPS', 'GPS data': 'GPS data', 'GPS data added': 'GPS data added', 'GPS data deleted': 'GPS data deleted', 'GPS data updated': 'GPS data updated', 'GPX Track': 'GPX RASTREAR', 'GRN': 'NRG', 'GRN Status': 'Status GRN', 'Gale Wind': 'Temporal', 'Gap Analysis': 'Análise de Falhas', 'Gap Analysis Map': 'Mapa de Análise de Falhas', 'Gap Analysis Report': 'Relatório de Análise de Falhas', 'Gap Map': 'Mapa de Falhas', 'Gap Report': 'Relatório de Falhas', 'Gateway': 'Portão', 'Gateway Settings': 'Configurações de Gateway', 'Gateway settings updated': 'Configurações de Gateway atualizadas', 'Gender': 'Sexo', 'General': 'geral', 'General Comment': 'Comentário Geral', 'General Medical/Surgical': 'Médico/Cirúrgico Geral', 'General emergency and public safety': 'Geral de emergência e segurança pública', 'General information on demographics': 'Informações gerais sobre demografia', 'Generator': 'Gerador', 'Geocode': 'Geocodificar', 'Geocoder Selection': 'Seleção De geocodificador', 'Geometry Name': 'Nome da geometria', 'Geophysical (inc. landslide)': 'Geofísica (inc. deslizamento)', 'Geotechnical': 'Geotécnica', 'Geotechnical Hazards': 'RISCOS geotécnicos', 'Geraldo module not available within the running Python - this needs installing for PDF output!': 'Geraldo não disponíveis no módulo a execução Python- é necessário instalar para saída PDF!', 'Geraldo not installed': 'Geraldo não instalado', 'German': 'German', 'Get incoming recovery requests as RSS feed': 'Obter pedidos recebidos de recuperação como feed RSS', 'Give a brief description of the image, e.g. what can be seen where on the picture (optional).': 'Fornecer uma descrição breve da imagem, por exemplo, o que pode ser visto no local da imagem (opcional).', 'Give information about where and when you have seen them': 'Fornecer informações sobre onde e quando você os viu', 'Global Messaging Settings': 'Configurações Globais de Menssagem', 'Go': 'ir', 'Go to Request': 'Ir para Pedido', 'Goatee': 'Barbicha', 'Good': 'Válido', 'Good Condition': 'Boa Condição', 'Goods Received Note': 'Nota de Recebimento de Mercadorias', "Google Layers cannot be displayed if there isn't a valid API Key": "Google Layers cannot be displayed if there isn't a valid API Key", 'Government': 'Governamental', 'Government UID': 'GOVERNO UID', 'Government building': 'Prédios Públicos', 'Grade': 'Grau', 'Greek': 'grego', 'Green': 'verde', 'Ground movement, fissures': 'Movimento do solo terrestre, fissuras', 'Ground movement, settlement, slips': 'Movimento do solo terrestre, assentamentos, escorregões', 'Group': 'Grupo', 'Group Description': 'Descrição do Grupo', 'Group Details': 'Detalhes do grupo', 'Group ID': 'Group ID', 'Group Member added': 'Membro do grupo incluído', 'Group Members': 'membros do grupo', 'Group Memberships': 'Associados do Grupo', 'Group Name': 'Nome do grupo', 'Group Title': 'Título do grupo', 'Group Type': 'Tipo de grupo', 'Group added': 'Grupo adicionado', 'Group deleted': 'Grupo Excluído', 'Group description': 'Descrição do Grupo', 'Group updated': 'GRUPO ATUALIZADO', 'Groups': 'Grupos do', 'Groups removed': 'Grupos Removido', 'Guest': 'Convidado', 'HR Data': 'Dados de RH', 'HR Manager': 'Responsável de RH', 'Hail': 'granizo', 'Hair Color': 'Cor do Cabelo', 'Hair Length': 'Comprimento do cabelo', 'Hair Style': 'Estilo do Cabelo', 'Has additional rights to modify records relating to this Organization or Site.': 'Tem direitos adicionais para modificar os registros relativos a esta organização ou site.', 'Has data from this Reference Document been entered into Sahana?': 'Os dados deste documento de referência foi digitado no Sahana?', 'Has only read-only access to records relating to this Organization or Site.': 'Tem apenas acesso de leitura para os registros relativos a esta organização ou site.', 'Has the Certificate for receipt of the shipment been given to the sender?': 'O certificado de recepção do carregamento foi dado para o remetente?', 'Has the GRN (Goods Received Note) been completed?': 'O GRN (nota de mercadorias recebidas) foi concluído?', 'Hazard Pay': 'Pagar Risco', 'Hazardous Material': 'Material perigoso', 'Hazardous Road Conditions': 'Estradas em Condições de Risco', 'Header Background': 'Conhecimento de Chefia', 'Header background file %s missing!': 'Arquivo de Cabeçalho de Base %s ausente!', 'Headquarters': 'Matriz', 'Health': 'Saúde', 'Health care assistance, Rank': 'Assistência Saúde, Classificação', 'Health center': 'Centro de Saúde', 'Health center with beds': 'Centro de saúde com camas', 'Health center without beds': 'Centro de saúde sem camas', 'Health services status': 'Situação dos serviços de saúde', 'Healthcare Worker': 'Profissional de Saúde', 'Heat Wave': 'Onda de calor', 'Heat and Humidity': 'Calor e Umidade', 'Height': 'Altura', 'Height (cm)': 'Altura (cm)', 'Height (m)': 'Altura (m)', 'Help': 'Ajuda', 'Helps to monitor status of hospitals': 'Ajuda para monitorar status de hospitais', 'Helps to report and search for Missing Persons': 'Ajuda a reportar e procurar pessoas desaparecidas.', 'Helps to report and search for missing persons': 'Ajuda a reportar e procurar pessoas desaparecidas.', 'Here are the solution items related to the problem.': 'Aqui estão as soluções relacionadas ao problema.', 'Heritage Listed': 'Património Listado', 'Hierarchy Level %d Name': 'Hierarquia de Nível% de d Nome', 'Hierarchy Level 0 Name (e.g. Country)': 'Hierarquia Nível 0 Nome (por exemplo, País)', 'Hierarchy Level 0 Name (i.e. Country)': 'Hierarquia Nível 0 nome (por exemplo País)', 'Hierarchy Level 1 Name (e.g. Province)': 'Hierarquia Nível 1 Nome (por exemplo, Província)', 'Hierarchy Level 1 Name (e.g. State or Province)': 'Hierarquia Nível 1 nome (por exemplo, Estado ou Província)', 'Hierarchy Level 2 Name (e.g. District or County)': 'Hierarquia de Nível 2 Nome (por exemplo, Região ou Município)', 'Hierarchy Level 3 Name (e.g. City / Town / Village)': 'Hierarquia Nível 3 Nome (por exemplo, Cidade / Municipio / Vila)', 'Hierarchy Level 4 Name (e.g. Neighbourhood)': 'Hierarquia de Nível 4 Nome (por exemplo, Bairro)', 'Hierarchy Level 5 Name': 'Nome de Nível 5 na Hierarquia', 'High': 'Alta', 'High Water': "d'água alta", 'Hindu': 'Hindu', 'History': 'História', 'Hit the back button on your browser to try again.': 'Clique no ícone de voltar em seu navegador para tentar novamente.', 'Holiday Address': 'Endereço durante Feriado', 'Home': 'Residência', 'Home Address': 'Endereço Residencial', 'Home City': 'Home City', 'Home Country': 'País natal', 'Home Crime': 'Crime Doméstico', 'Home Details': 'Home Details', 'Home Phone Number': 'Home Phone Number', 'Home Relative': 'Home Relative', 'Home added': 'Home added', 'Home deleted': 'Home deleted', 'Home updated': 'Home updated', 'Homes': 'Homes', 'Hospital': 'Hospital', 'Hospital Details': 'Detalhes do Hospital', 'Hospital Status Report': 'Relatório de Status do Hospital', 'Hospital information added': 'Informações do hospital inclusas.', 'Hospital information deleted': 'Informações do hospital excluídas', 'Hospital information updated': 'informações do Hospital atualizadas', 'Hospital status assessment.': 'Avaliação de status do Hospital.', 'Hospitals': 'Hospitais', 'Hot Spot': 'ponto de acesso', 'Hour': 'Hora', 'Hours': 'Horas', 'Household kits received': 'Kits caseiros recebidos', 'Household kits, source': 'Kit de família, origem', 'How does it work?': 'Como funciona?', 'How is this person affected by the disaster? (Select all that apply)': 'Como esta pessoa é afetada pelo desastre? (selecione todos que se aplicam)', 'How long will the food last?': 'Quanto tempo irá durar a comida?', 'How many Boys (0-17 yrs) are Dead due to the crisis': 'Quantos rapazes (0-17 anos) estão Mortos devido à crise', 'How many Boys (0-17 yrs) are Injured due to the crisis': 'Quantos rapazes (0-17 anos) estão Feridos devido à crise', 'How many Boys (0-17 yrs) are Missing due to the crisis': 'Quantos rapazes (0-17 anos) estão Desaparecidos devido à crise', 'How many Girls (0-17 yrs) are Dead due to the crisis': 'Quantas garotas (0-17 anos) morreram devido à crise', 'How many Girls (0-17 yrs) are Injured due to the crisis': 'Quantas garotas (0-17 anos) estão feridas devido à crise', 'How many Girls (0-17 yrs) are Missing due to the crisis': 'Quantas garotas (0-17 anos) estão perdidas devido à crise', 'How many Men (18 yrs+) are Dead due to the crisis': 'Quantos homens (18 anos+) estão mortos devido à crise', 'How many Men (18 yrs+) are Injured due to the crisis': 'Quantos homens (18 anos +) são feridos devido à crise', 'How many Men (18 yrs+) are Missing due to the crisis': 'Quantos homens (18 anos +) estão ausentes devido à crise', 'How many Women (18 yrs+) are Dead due to the crisis': 'Quantas mulheres (+18 anos) estão mortas devido à crise', 'How many Women (18 yrs+) are Injured due to the crisis': 'Quantas mulheres (+18 anos) estão feridas devido à crise', 'How many Women (18 yrs+) are Missing due to the crisis': 'Quantas mulheres acima de 18 anos estão ausentes devido à crise', 'How many days will the supplies last?': 'Quantos dias irão durar os abastecimentos?', 'How many new cases have been admitted to this facility in the past 24h?': 'Quantos novos casos tenham sido admitidos a esta facilidade nas últimas 24 horas?', 'How many of the patients with the disease died in the past 24h at this facility?': 'Como muitos dos pacientes com a doença morreram nas últimas 24 horas nesta unidade?', 'How many patients with the disease are currently hospitalized at this facility?': 'Quantos pacientes com a doença estão atualmente internados nesta instalação?', 'How much detail is seen. A high Zoom level means lot of detail, but not a wide area. A low Zoom level means seeing a wide area, but not a high level of detail.': 'Quanto detalhe é visto. Um nível alto de Zoom mostra muitos detalhes, mas não uma grande área. Um nível de Zoom baixo significa ver uma grande área, mas não com um alto nível de detalhe.', 'Human Resource': 'Recursos humanos', 'Human Resource Details': 'Detalhes de Recursos Humanos', 'Human Resource Management': 'Gerenciamento de recursos humanos', 'Human Resource added': 'Recurso humano adicionado', 'Human Resource removed': 'Recursos Humanos removido', 'Human Resource updated': 'Recursos Humanos atualizado', 'Human Resources': 'Recursos Humanos', 'Human Resources Management': 'Gerenciamento de Recursos Humanos', 'Humanitarian NGO': 'ONG humanitária', 'Hurricane': 'Furacão', 'Hurricane Force Wind': 'Furacão Força Vento', 'Hybrid Layer': 'Hybrid Layer', 'Hygiene': 'Higiene', 'Hygiene NFIs': 'Higiene NFIs', 'Hygiene kits received': 'Kits de higiene recebido', 'Hygiene kits, source': 'Kits de higiene, origem', 'Hygiene practice': 'Prática de higiene', 'Hygiene problems': 'PROBLEMAS DE HIGIENE', 'I accept. Create my account.': 'I accept. Create my account.', 'I am available in the following area(s)': 'Estou disponível na(s) seguinte(s) área(s)', 'ID Tag': 'Etiqueta de Identificação', 'ID Tag Number': 'Número da Etiqueta de Identificação', 'ID type': 'Tipo de ID', 'Ice Pressure': 'Pressão de gelo', 'Iceberg': 'Icebergue', 'Identification': 'Identification', 'Identification Report': 'Identificação Relatório', 'Identification Reports': 'Relatórios de Identificação', 'Identification Status': 'Status da Identificação', 'Identified as': 'Identificado como', 'Identified by': 'Identificado por', 'Identity': 'Identidade', 'Identity Details': 'Detalhes da identidade', 'Identity added': 'Identidade incluída', 'Identity deleted': 'Identidade excluída', 'Identity updated': 'Identidade atualizada', 'If Staff have login accounts then they are given access to edit the details of the': 'Se o pessoal tiver contas de login, então lhes é dado acesso para editar os detalhes do', 'If a ticket was issued then please provide the Ticket ID.': 'Se um bilhete foi emitido então por favor forneça o ID do bilhete.', 'If a user verifies that they own an Email Address with this domain, the Approver field is used to determine whether & by whom further approval is required.': 'Se um usuário verifica que eles possuem um endereço de email com este domínio, o campo Aprovador é utilizado para determinar se e por quem aprovação adicional é necessária.', 'If it is a URL leading to HTML, then this will downloaded.': 'Se for uma URL levando a HTML, então este será baixado.', 'If neither are defined, then the Default Marker is used.': 'Se nem são definidos, então o Marcador Padrão é utilizado.', 'If no marker defined then the system default marker is used': 'Se nenhum marcador definido, o marcador padrão do sistema é utilizada', 'If no, specify why': 'Se não, especifique por que', 'If none are selected, then all are searched.': 'Se nenhuma for selecionada, então todos são procurados.', "If selected, then this Asset's Location will be updated whenever the Person's Location is updated.": 'Se selecionado, esta localização do ativo será atualizado sempre que a localização da pessoa é atualizada.', 'If the location is a geographic area, then state at what level here.': 'Se o local é uma área geográfica, então defina em que nível aqui.', 'If the request is for %s, please enter the details on the next screen.': 'If the request is for %s, please enter the details on the next screen.', 'If the request is for type "Other", you should enter a summary of the request here.': 'Se o pedido for para o tipo \ " Outro", você deve digitar um resumo do pedido aqui.', 'If the request type is "Other", please enter request details here.': 'Se o tipo de pedido é "other", por favor, digite aqui detalhes do pedido.', "If this configuration represents a region for the Regions menu, give it a name to use in the menu. The name for a personal map configuration will be set to the user's name.": 'Se esta configuração representa uma região para o menu regiões, dê-lhe um nome a ser utilizado no menu. O nome de uma configuração pessoal do mapa será configurado para o nome do usuário.', "If this field is populated then a user who specifies this Organization when signing up will be assigned as a Staff of this Organization unless their domain doesn't match the domain field.": 'Se esse campo for Preenchido, então, um usuário que especificar esta organização quando se registrar será designado como um agente desta organização a menos que seu domínio não corresponde ao campo de domínio.', 'If this field is populated then a user with the Domain specified will automatically be assigned as a Staff of this Organization': 'Se esse campo for preenchido, o usuário de um específico Domain será automaticamente registrado como funcionário desta organização.', 'If this is set to True then mails will be deleted from the server after downloading.': 'Se isso for ajustado para “True”, as correspondências serão deletadas do servidor depois que o downloading for feito.', "If this is ticked, then this will become the user's Base Location & hence where the user is shown on the Map": 'Se isso for ticado, se tornará a base geográfica do usuário e, consequentemente onde este aparece no mapa.', 'If this record should be restricted then select which role is required to access the record here.': 'Se esse registro deve ser restrito, selecione qual regra é necessária para acessar o record aqui.', 'If this record should be restricted then select which role(s) are permitted to access the record here.': 'Se esse registro deve ser restrito, selectione qual (is) regra (s) serão permitidas para assessá-lo aqui.', 'If yes, specify what and by whom': 'Se SIM, Especifique o quê e por quem', 'If yes, which and how': 'Se sim, quais e como', 'If you do not enter a Reference Document, your email will be displayed to allow this data to be verified.': 'Se você não inserir um documento de referência, seu e-mail será exibido para permitir que esses dados sejam verificados.', "If you don't see the Hospital in the list, you can add a new one by clicking link 'Add Hospital'.": "Se você não vê o Hospital na lista, você pode incluir um novo clicando no link 'incluir Hospital'.", "If you don't see the Office in the list, you can add a new one by clicking link 'Add Office'.": "Se você não vê o escritório na lista, você pode incluir um novo clicando no link 'incluir escritório'.", "If you don't see the Organization in the list, you can add a new one by clicking link 'Add Organization'.": 'Se voce não vê a Organização na lista, voce poderá adicionar uma nova clicando no link "Incluir Organização"', 'If you know what the Geonames ID of this location is then you can enter it here.': 'Se voce conhecer o Geonames ID desta localização então voce poderá inserí-lo aqui.', 'If you know what the OSM ID of this location is then you can enter it here.': 'Se voce conhecer o OSM ID desta localização, então voce pode inserí-lo aqui.', 'If you need to add a new document then you can click here to attach one.': 'Se houver necessidade de incluir um novo documento então voce poderá clicar aqui para anexá-lo.', 'If you want several values, then separate with': 'Se voce deseja varios valores, separe com', 'If you would like to help, then please': 'Se você gostaria de ajudar, então por favor', 'Illegal Immigrant': 'Imigrante Ilegal', 'Image': 'Imagem', 'Image Details': 'Detalhes da Imagem', 'Image File(s), one image per page': 'Image File(s), one image per page', 'Image Tags': 'Imagem Tags', 'Image Type': 'Tipo de Imagem', 'Image Upload': 'Fazer atualizacao Da imagem', 'Image added': 'Imagem Adicionada', 'Image deleted': 'Imagem excluída', 'Image updated': 'Imagem atualizada', 'Imagery': 'Imagens', 'Images': 'Imagens', 'Impact Assessments': 'Avaliações de impacto', 'Impact Details': 'Detalhes de impacto', 'Impact Type': 'Tipo de impacto', 'Impact Type Details': 'Detalhes dos tipos de impacto', 'Impact Type added': 'Tipo de impacto incluído', 'Impact Type deleted': 'Tipo de impacto excluído', 'Impact Type updated': 'Atualização dos tipos de impacto', 'Impact Types': 'Tipos de impactos', 'Impact added': 'Impacto incluído', 'Impact deleted': 'Impacto excluído', 'Impact updated': 'Atualização de impacto', 'Impacts': 'Impactos', 'Import': 'Importação', 'Import & Export Data': 'Importar & Exportar Dados', 'Import Data': 'Importar Dados', 'Import File': 'Import File', 'Import File Details': 'Import File Details', 'Import File deleted': 'Import File deleted', 'Import Files': 'Import Files', 'Import Job Count': 'Import Job Count', 'Import Jobs': 'Importar Tarefas', 'Import New File': 'Import New File', 'Import and Export': 'Importação e Exportação', 'Import from Ushahidi Instance': 'Importação da Instância Ushahidi', 'Import if Master': 'Importar se Mestre', 'Import multiple tables as CSV': 'Importar tabelas multiplas como CSV', 'Import/Export': 'Importar/Exportar', 'Important': 'Importante', 'Importantly where there are no aid services being provided': 'Importante onde não há serviços de apoio a ser prestado', 'Imported': 'Imported', 'Importing data from spreadsheets': 'Importar dados de planilhas', 'Improper decontamination': 'Descontaminação Imprópria', 'Improper handling of dead bodies': 'Manipulação inadequada de cadáveres', 'In Catalogs': 'Em Catálogos', 'In Inventories': 'Em Inventários', 'In Process': 'Em Processo', 'In Progress': 'Em Progresso', 'In Window layout the map maximises to fill the window, so no need to set a large value here.': 'Maximize o ajuste da janela para preenche-la toda, desta forma não será necessário configurar para uso de fonte grande.', 'Inbound Mail Settings': 'Definições de correio de entrada', 'Incident': 'Incidente', 'Incident Categories': 'Categorias Incidente', 'Incident Report': 'Relatório de Incidente', 'Incident Report Details': 'Detalhes do relatório de incidentes', 'Incident Report added': 'Relatório de Incidente incluído', 'Incident Report deleted': 'Relatório de Incidente excluído', 'Incident Report updated': 'Relatório de incidente atualizado', 'Incident Reporting': 'Relatório de incidentes', 'Incident Reporting System': 'Sistema de relatórios de incidentes', 'Incident Reports': 'Relatório de incidentes', 'Incidents': 'incidentes', 'Include any special requirements such as equipment which they need to bring.': 'Include any special requirements such as equipment which they need to bring.', 'Incoming': 'Entrada', 'Incoming Shipment canceled': 'Chegada da encomenda cancelada', 'Incoming Shipment updated': 'Chegada de encomenda actualizada.', 'Incomplete': 'Incompleto', 'Individuals': 'Individuais', 'Industrial': 'Industrial', 'Industrial Crime': 'Crime Industrial', 'Industry Fire': 'Indústria Fogo', 'Infant (0-1)': 'Criança (0-1)', 'Infectious Disease': 'Doença INFECCIOSA', 'Infectious Disease (Hazardous Material)': 'Doenças infecciosas (Material perigoso)', 'Infectious Diseases': 'Doenças infecciosas', 'Infestation': 'Infestação', 'Informal Leader': 'Líder Informal', 'Informal camp': 'Acampamento Informal', 'Information gaps': 'problemas de informação', 'Infusion catheters available': 'Cateteres de infusão disponível', 'Infusion catheters need per 24h': 'Cateteres infusão necessário por 24 H', 'Infusion catheters needed per 24h': 'Cateteres infusão necessário por H', 'Infusions available': 'Infusões disponíveis', 'Infusions needed per 24h': 'Infusões necessário por 24H', 'Inspected': 'Inspecionado', 'Inspection Date': 'Data de Inspeção', 'Inspection date and time': 'Data e hora de inspeção', 'Inspection time': 'Hora da inspeção', 'Inspector ID': 'ID do Inspetor', 'Instant Porridge': 'Mingau Instantâneo', "Instead of automatically syncing from other peers over the network, you can also sync from files, which is necessary where there's no network. You can use this page to import sync data from files and also export data to sync files. Click the link on the right to go to this page.": 'Em vez de sincronizar automaticamente com outros pares pela rede, voce também pode sincronizar com arquivos, o que é necessário quando não há rede. Você pode utilizar esta página para importar dados de sincronização de arquivos e também exportar dados para arquivos de Sincronização. Clique no link à direita para ir para esta página.', 'Institution': 'Instituição', 'Insufficient': 'insuficiente', 'Insufficient privileges': 'Insufficient privileges', 'Insufficient vars: Need module, resource, jresource, instance': 'Variaveis insuficientes: necessario modulo, recurso, jrecurso, instância', 'Insurance Renewal Due': 'Insurance Renewal Due', 'Intake Items': 'Itens de admissão', 'Intergovernmental Organization': 'Organização Intergovernamental', 'Interior walls, partitions': 'Do Interior das paredes, partições', 'Internal State': 'Estado Interno', 'International NGO': 'ONG internacional', 'International Organization': 'Organização Internacional', 'Interview taking place at': 'Entrevista em', 'Invalid': 'Inválido', 'Invalid Query': 'Consulta inválida', 'Invalid email': 'Invalid email', 'Invalid phone number': 'Invalid phone number', 'Invalid phone number!': 'Invalid phone number!', 'Invalid request!': 'Pedido inválido!', 'Invalid ticket': 'Bilhete Inválido', 'Inventories': 'Inventários.', 'Inventory': 'Inventário', 'Inventory Item': 'Item do inventário', 'Inventory Item Details': 'Detalhes do Item de inventário', 'Inventory Item added': 'Item incluído no inventário', 'Inventory Item deleted': 'Item do inventário excluído', 'Inventory Item updated': 'Item de Inventário atualizado', 'Inventory Items': 'Itens do Inventário', 'Inventory Items Available for Request Item': 'Itens de inventário disponíveis para Pedir um Item', 'Inventory Items include both consumable supplies & those which will get turned into Assets at their destination.': 'Itens de invenrário incluem ambos suprimentos consumíveis & aqueles que se transformarão em Ativos no seu destino.', 'Inventory Management': 'Gerenciamento de Inventário', 'Inventory Stock Position': 'Inventory Stock Position', 'Inventory functionality is available for:': 'Inventário de funcionalidades esta disponível para:', 'Inventory of Effects': 'Inventário de Efeitos', 'Is editing level L%d locations allowed?': 'É permitido editar o nível dos locais L%d?', 'Is it safe to collect water?': 'É seguro coletar água?', 'Is this a strict hierarchy?': 'Esta é uma hierarquia rigorosa?', 'Issuing Authority': 'Autoridade emissora', 'It captures not only the places where they are active, but also captures information on the range of projects they are providing in each area.': 'Ele captura não apenas os locais onde elas estão ativas, mas também captura informações sobre o conjunto de projetos que está fornecendo em cada região.', 'Italian': 'Italian', 'Item': 'Item', 'Item Added to Shipment': 'Item Incluído para Embarque', 'Item Catalog Details': 'Detalhes do item do catálogo', 'Item Categories': 'Categorias do Item', 'Item Category': 'Categoria do Item', 'Item Category Details': 'Detalhes da categoria de item', 'Item Category added': 'Categoria de item incluída', 'Item Category deleted': 'Categoria de item excluída', 'Item Category updated': 'Atualização da categoria de item', 'Item Details': 'Detalhes do item', 'Item Pack Details': 'Detalhes do pacote de itens', 'Item Pack added': 'Pacote de itens', 'Item Pack deleted': 'Pacote de itens excluído', 'Item Pack updated': 'Itens de Pacote atualizados', 'Item Packs': 'Item de Pacotes', 'Item added': 'Item incluído', 'Item added to Inventory': 'Itens adicionados ao Inventário', 'Item added to shipment': 'Item incluído para embarque', 'Item already in Bundle!': 'Item já no pacote configurável!', 'Item already in Kit!': 'Item já no Kit!', 'Item already in budget!': 'Item já no Orçamento!', 'Item deleted': 'Item Excluído', 'Item removed from Inventory': 'Item removido do Inventário', 'Item updated': 'Item atualizado', 'Items': 'Itens', 'Items in Category can be Assets': 'itens na categoria podem ser ativos', 'Japanese': 'japonês', 'Jerry can': 'Jerry pode', 'Jew': 'Judeu', 'Job Market': 'Mercado de trabalho', 'Job Role': 'Função de trabalho', 'Job Role Catalog': 'Catalogo de Funçao de trabalho', 'Job Role Details': 'Detalhes da Função', 'Job Role added': 'funçao de trabalho inclusa', 'Job Role deleted': 'Funçao de trabalho excluida', 'Job Role updated': 'Função actualizada', 'Job Roles': 'Funções', 'Job Title': 'Título do Cargo', 'Jobs': 'Tarefas', 'Journal': 'Diário', 'Journal Entry Details': 'Detalhes da Entrada de Diário', 'Journal entry added': 'Entrada de diário incluída', 'Journal entry deleted': 'Entrada de diário removida', 'Journal entry updated': 'Entrada de diário atualizado', 'Key': 'Tecla', 'Key Details': 'Detalhes da Chave', 'Key added': 'Chave adicionada', 'Key deleted': 'Chave removida', 'Key updated': 'Chave actualizada', 'Keys': 'Teclas', 'Kit': 'kit', 'Kit Contents': 'Conteúdo Kit', 'Kit Details': 'Detalhes do Kit', 'Kit Updated': 'Kit de Atualização', 'Kit added': 'Pacote adicionado', 'Kit deleted': 'Kit excluído', 'Kit updated': 'Kit de atualização', 'Kits': 'Kits', 'Known Identities': 'Identidades conhecido', 'Known incidents of violence against women/girls': 'Incidentes de violência conhecidos contra mulheres/garotas', 'Known incidents of violence since disaster': 'Incidentes de violência conhecidos desde o desastre', 'Korean': 'Korean', 'LICENSE': 'LICENÇA', 'Lack of material': 'Falta de material', 'Lack of school uniform': 'Falta de uniforme escolar', 'Lack of supplies at school': 'Falta de suprimentos na escola', 'Lack of transport to school': 'Falta de transporte escolar', 'Lactating women': 'Mulheres lactantes', 'Lahar': 'Lahar', 'Landslide': 'Deslizamento', 'Language': 'Linguagem', 'Last Name': 'sobrenome', 'Last known location': 'Último local conhecido', 'Last name': 'Last name', 'Last synchronization time': 'Horário da última sincronização', 'Last updated': 'Última atualização', 'Last updated ': 'Last updated ', 'Last updated by': 'Última atualização por', 'Last updated on': 'Última Atualização em', 'Latitude': 'Latitude', 'Latitude & Longitude': 'Latitude & Longitude', 'Latitude is North-South (Up-Down).': 'Latitude é sentido norte-sul (emcima-embaixo).', 'Latitude is zero on the equator and positive in the northern hemisphere and negative in the southern hemisphere.': 'Latitude é zero na linha do Equador, positiva no hemisfério norte e negativa no hemisfério sul.', 'Latitude of Map Center': 'Latitude DO MAPA Centro', 'Latitude of far northern end of the region of interest.': 'Latitude do extremo Norte longe do Região de interesse.', 'Latitude of far southern end of the region of interest.': 'Latitude da extremidade sul longe do Região de interesse.', 'Latitude should be between': 'Latitude deve estar entre', 'Latrines': 'Privadas', 'Law enforcement, military, homeland and local/private security': 'Execução da lei militar, interna e segurança local/privada', 'Layer': 'Camada', 'Layer Details': 'Detalhes de Camada', 'Layer ID': 'Layer ID', 'Layer Name': 'Layer Name', 'Layer Type': 'Layer Type', 'Layer added': 'Camada incluída', 'Layer deleted': 'Camada excluída', 'Layer has been Disabled': 'Layer has been Disabled', 'Layer has been Enabled': 'Layer has been Enabled', 'Layer updated': 'Camada atualizada', 'Layers': 'Camadas', 'Layers updated': 'Camadas atualizadas', 'Layout': 'Modelo', 'Leader': 'guia', 'Leave blank to request an unskilled person': 'Leave blank to request an unskilled person', 'Legend Format': 'Formato da Legenda', 'Length (m)': 'Comprimento (m)', 'Level': 'Nível', 'Level 1': 'Nível 1', 'Level 1 Assessment Details': 'Detalhes da Avaliação Nível 1', 'Level 1 Assessment added': 'Avaliação Nível 1 incluído', 'Level 1 Assessment deleted': 'Avaliação Nível 1 excluído', 'Level 1 Assessment updated': 'Avaliação Nível 1 atualizada', 'Level 1 Assessments': 'Avaliações Nível 1', 'Level 2': 'nível 2', 'Level 2 Assessment Details': 'Nível 2 de avaliação Detalhado', 'Level 2 Assessment added': 'Nível 2 avaliação incluído', 'Level 2 Assessment deleted': 'Nível 2 de avaliação excluído', 'Level 2 Assessment updated': 'Nível 2 de avaliação atualizada', 'Level 2 Assessments': 'Nível 2 de Avaliações', 'Level 2 or detailed engineering evaluation recommended': 'Nível 2 ou engenharia detalhada de avaliação recomendado', "Level is higher than parent's": 'Nível superior ao dos pais', 'Library support not available for OpenID': 'Apoio de biblioteca não está disponível para OpenID', 'License Number': 'License Number', 'License Plate': 'License Plate', 'LineString': 'cadeia-de-linhas', 'List': 'Listar', 'List / Add Baseline Types': 'Lista / Incluir Linha de Tipos', 'List / Add Impact Types': 'Lista / Incluir Tipos de Impacto', 'List / Add Services': 'Lista / Incluir Serviços', 'List / Add Types': 'Lista / Incluir Tipos', 'List Activities': 'listar atividades', 'List All': 'Mostrar Tudo', 'List All Assets': 'Lista todos os ativos', 'List All Catalog Items': 'Lista todos os Itens Do Catálogo', 'List All Commitments': 'Lista todos os compromissos', 'List All Entries': 'Listar todas as entradas', 'List All Item Categories': 'Lista todos os itens Categorias', 'List All Memberships': 'Listar Todas As Associações', 'List All Received Shipments': 'Lista todas as transferências Recebidas', 'List All Records': 'Lista todos os registros', 'List All Reports': 'Listar todos os Relatórios', 'List All Requested Items': 'Lista Todos Os itens solicitados', 'List All Requested Skills': 'List All Requested Skills', 'List All Requests': 'Lista Todos Os Pedidos', 'List All Sent Shipments': 'Listar todos os embarques enviados', 'List All Vehicles': 'List All Vehicles', 'List Alternative Items': 'Listar Itens Alternativos', 'List Assessment Summaries': 'Listar Resumos das Avaliações', 'List Assessments': 'Listar as Avaliações', 'List Asset Assignments': 'Listar Atribuições de Ativos', 'List Assets': 'Listar Ativos', 'List Availability': 'Listar Disponibilidade', 'List Baseline Types': 'Lista de Tipos De Linha', 'List Baselines': 'Lista de Linhas', 'List Brands': 'Lista de Marcas', 'List Budgets': 'Listar Orçamentos', 'List Bundles': 'Listar Pacotes', 'List Camp Services': 'Listar Serviços de Acampamento', 'List Camp Types': 'Listar Tipos de Acampamentos', 'List Camps': 'Listar Acampamentos', 'List Catalog Items': 'Lista de Itens Do Catálogo', 'List Catalogs': 'Listar catálogos', 'List Certificates': 'Listar certificados', 'List Certifications': 'Listar certificações', 'List Checklists': 'Lista Listas de Verificação.', 'List Cluster Subsectors': 'Lista Subsetores de Cluster', 'List Clusters': 'Lista Clusters', 'List Commitment Items': 'Lista Itens de Compromisso', 'List Commitments': 'Lista Compromissos', 'List Committed People': 'List Committed People', 'List Competencies': 'Listar competencias', 'List Competency Ratings': 'Listar classificações de competencias', 'List Conflicts': 'Lista Conflitos', 'List Contact Information': 'Listar informações do contato', 'List Contacts': 'Listar contatos', 'List Course Certificates': 'Listar certificados de cursos', 'List Courses': 'Listar Cursos', 'List Credentials': 'Listar credenciais', 'List Current': 'Lista Atual', 'List Documents': 'Listar documentos', 'List Donors': 'Listar doadores', 'List Events': 'Lista de Eventos', 'List Facilities': 'Lista de Facilidades', 'List Feature Classes': 'Listar Classes De Recursos', 'List Feature Layers': 'LISTAr Camadas DE RECURSOS', 'List Flood Reports': 'Listar Relatórios de Inundações', 'List GPS data': 'List GPS data', 'List Groups': 'Listar grupos', 'List Groups/View Members': 'Listar Grupos/visualizar membros', 'List Homes': 'List Homes', 'List Hospitals': 'Listar de Hospitais', 'List Human Resources': 'Lista de Recursos Humanos', 'List Identities': 'Lista de Identidades', 'List Images': 'Lista de Imagens', 'List Impact Assessments': 'Lista de Avaliações De Impacto', 'List Impact Types': 'Lista de Tipos De Impacto', 'List Impacts': 'Lista de impactos', 'List Import Files': 'List Import Files', 'List Incident Reports': 'Lista de relatórios de incidentes', 'List Inventory Items': 'Listar ítens de inventário', 'List Item Categories': 'Listar categorias de ítens', 'List Item Packs': 'Lista pacotes de itens', 'List Items': 'Listar itens', 'List Items in Inventory': 'Lista de Itens no inventário', 'List Job Roles': 'Listar cargos', 'List Keys': 'Listar Chaves', 'List Kits': 'LISTAR Kits', 'List Layers': 'Listar Camadas', 'List Level 1 Assessments': 'Listar avaliações nível 1', 'List Level 1 assessments': 'Listar avaliação nível 1', 'List Level 2 Assessments': 'Listar avaliações nível 2', 'List Level 2 assessments': 'Listar avaliações nível 2', 'List Locations': 'Listar Localizações', 'List Log Entries': 'Listar as entradas de log', 'List Map Configurations': 'Listar configurações de mapa', 'List Markers': 'Listar marcadores', 'List Members': 'Lista de membros', 'List Memberships': 'Lista de associados', 'List Messages': 'Listar Mensagens', 'List Missing Persons': 'Lista de pessoas desaparecidas', 'List Missions': 'Listar Missões', 'List Need Types': 'Listar tipos de necessidades', 'List Needs': 'Lista de Necessidades', 'List Notes': 'Lista de Notas', 'List Offices': 'Lista de Escritórios', 'List Organizations': 'Listar Organizações', 'List Patients': 'List Patients', 'List Peers': 'LISTA DE PARES', 'List Personal Effects': 'Lista de objetos pessoais', 'List Persons': 'LISTA DE PESSOAS', 'List Photos': 'Lista de Fotos', 'List Population Statistics': 'Lista das Estatisticas da População', 'List Positions': 'Lista de Posições', 'List Problems': 'Lista de Problemas', 'List Projections': 'Lista de Projeções', 'List Projects': 'Listar Projectos', 'List Rapid Assessments': 'Listar Avaliações Rápidas', 'List Received Items': 'Listar Elementos Recebidos', 'List Received Shipments': 'Listar Carga Recebida', 'List Records': 'Listar Registros', 'List Registrations': 'Listar Registrações', 'List Relatives': 'List Relatives', 'List Reports': 'Relatórios de Listas', 'List Request Items': 'Pedido de Itens de lista', 'List Requested Skills': 'List Requested Skills', 'List Requests': 'LISTA DE PEDIDOS', 'List Resources': 'Listar Recursos', 'List Rivers': 'Lista de Rios', 'List Roles': 'Listar Funções', 'List Rooms': 'Listar Salas', 'List Scenarios': 'Listar cenários', 'List Sections': 'lista de Seções', 'List Sectors': 'Lista de Sectores', 'List Sent Items': 'Os itens da lista Enviada', 'List Sent Shipments': 'Embarques lista Enviada', 'List Service Profiles': 'Lista de serviços Perfis', 'List Settings': 'Lista de configurações', 'List Shelter Services': 'Lista de serviços de abrigo', 'List Shelter Types': 'Lista de Tipos De Abrigo', 'List Shelters': 'Lista de Abrigos', 'List Skill Equivalences': 'LISTA DE HABILIDADE Equivalências', 'List Skill Provisions': 'Listar suprimento de habilidades', 'List Skill Types': 'Lista de Tipos De Habilidade', 'List Skills': 'LISTA DE HABILIDADES', 'List Solutions': 'Listar Soluções', 'List Staff': 'Listar Pessoal', 'List Staff Members': 'Listar funcionários', 'List Staff Types': 'Listar Tipos De Equipe', 'List Status': 'Listar Status', 'List Subscriptions': 'Lista de Assinaturas', 'List Subsectors': 'Listar Subsetores', 'List Support Requests': 'Listar Pedidos de Suporte', 'List Survey Answers': 'Listar Respostas de Pesquisa', 'List Survey Questions': 'Listar Perguntas da Pesquisa', 'List Survey Sections': 'Listar Seções da Pesquisa', 'List Survey Series': 'Listar Séries de Pesquisa', 'List Survey Templates': 'Listar Modelos de Pesquisa', 'List Tasks': 'Lista de Tarefas', 'List Teams': 'Lista de Equipes', 'List Themes': 'Lista de Temas', 'List Tickets': 'lista de Bilhetes', 'List Tracks': 'Rastreia lista', 'List Trainings': 'Listar Treinamentos', 'List Units': 'Lista de Unidades', 'List Users': 'Mostrar usuários', 'List Vehicle Details': 'List Vehicle Details', 'List Vehicles': 'List Vehicles', 'List Volunteers': 'Mostrar Voluntários', 'List Warehouses': 'Mostrar Depósitos', 'List all': 'Mostrar tudo', 'List available Scenarios': 'Listar Cenários Disponíveis', 'List of CSV files': 'List of CSV files', 'List of CSV files uploaded': 'List of CSV files uploaded', 'List of Items': 'Lista de Itens', 'List of Missing Persons': 'Lista de pessoas desaparecidas', 'List of Peers': 'Lista de pares', 'List of Reports': 'Lista de Relatórios', 'List of Requests': 'Lista de Pedidos', 'List of Spreadsheets': 'Lista de Folhas de Cálculo', 'List of Spreadsheets uploaded': 'Lista de Folhas de Cálculo transferidas', 'List of Volunteers': 'Lista de Voluntários', 'List of Volunteers for this skill set': 'Lista de Voluntários para este conjunto de competências', 'List of addresses': 'Lista de endereços', 'List unidentified': 'Lista não identificada', 'List/Add': 'Lista/incluir', 'Lists "who is doing what & where". Allows relief agencies to coordinate their activities': 'Lista "quem está fazendo o que & aonde". Permite a agências humanitárias coordenar suas atividades', 'Live Help': 'Ajuda ao vivo', 'Livelihood': 'Subsistência', 'Load Cleaned Data into Database': 'Carregue Informações Claras no Banco de Dados', 'Load Raw File into Grid': 'Carregamento de arquivo bruto na Grid', 'Loading': 'Carregando', 'Local Name': 'Nome local', 'Local Names': 'Nomes locais', 'Location': 'Localização', 'Location 1': 'Local 1', 'Location 2': 'Local 2', 'Location Details': 'Detalhes da Localização', 'Location Hierarchy Level 0 Name': 'Nivel Local de hierarquia 0 nome', 'Location Hierarchy Level 1 Name': 'Nivel local de hierarquia 1 nome', 'Location Hierarchy Level 2 Name': 'Nivel local de hierarquia 2 nome', 'Location Hierarchy Level 3 Name': 'Hierarquia local Nível 3 Nome', 'Location Hierarchy Level 4 Name': 'Hierarquia local Nível 4 Nome', 'Location Hierarchy Level 5 Name': 'Hierarquia local Nível 5 Nome', 'Location added': 'Local incluído', 'Location cannot be converted into a group.': 'Local não pode ser convertido em um grupo.', 'Location deleted': 'Localidade excluída', 'Location details': 'Detalhes do Local', 'Location group cannot be a parent.': 'Localização de grupo não pode ser um pai.', 'Location group cannot have a parent.': 'Localização de grupo não tem um pai.', 'Location groups can be used in the Regions menu.': 'Grupos local pode ser utilizado no menu Regiões.', 'Location groups may be used to filter what is shown on the map and in search results to only entities covered by locations in the group.': 'Grupos locais podem ser utilizados para filtrar o que é mostrado no mapa e nos resultados da procura apenas as entidades locais abrangidas no grupo.', 'Location updated': 'Local atualizado', 'Location:': 'Localização:', 'Location: ': 'Location: ', 'Locations': 'Localizações', 'Locations of this level need to have a parent of level': 'Locais de esse nível precisa ter um pai de nível', 'Lockdown': 'BLOQUEIO', 'Log': 'registro', 'Log Entry Details': 'detalhes da entrada de registro', 'Log entry added': 'Entrada de Log incluída', 'Log entry deleted': 'Entrada de Log Excluída', 'Log entry updated': 'Entrada de Log de atualização', 'Login': 'login', 'Logistics': 'Logística', 'Logistics Management System': 'Sistema de Gestão de Logística', 'Logo': 'Logotipo', 'Logo file %s missing!': 'Arquivo de logotipo %s ausente!', 'Logout': 'Deslogar', 'Long Text': 'Texto Longo', 'Longitude': 'Longitude', 'Longitude is West - East (sideways).': 'Longitude é Oeste - Leste (lateral).', 'Longitude is West-East (sideways).': 'Longitude é leste-oeste (direções).', 'Longitude is zero on the prime meridian (Greenwich Mean Time) and is positive to the east, across Europe and Asia. Longitude is negative to the west, across the Atlantic and the Americas.': 'Longitude é zero no primeiro meridiano (Greenwich Mean Time) e é positivo para o leste, em toda a Europa e Ásia. Longitude é negativo para o Ocidente, no outro lado do Atlântico e nas Américas.', 'Longitude is zero on the prime meridian (through Greenwich, United Kingdom) and is positive to the east, across Europe and Asia. Longitude is negative to the west, across the Atlantic and the Americas.': 'Longitude é zero no primeiro meridiano (por meio de Greenwich, Reino Unido) e é positivo para o leste, em toda a Europa e Ásia. Longitude é negativo para o Ocidente, no outro lado do Atlântico e nas Américas.', 'Longitude of Map Center': 'Longitude do Centro do Mapa', 'Longitude of far eastern end of the region of interest.': 'Longitude longe do Oeste no final da região de interesse.', 'Longitude of far western end of the region of interest.': 'Longitude de oeste longínquo no final da Região de interesse.', 'Longitude should be between': 'Longitude deve estar entre', 'Looting': 'Saques', 'Lost': 'Perdido', 'Lost Password': 'Senha Perdida', 'Low': 'Baixo', 'Magnetic Storm': 'Tempestade magnética', 'Major Damage': 'Grandes danos', 'Major expenses': 'Despesas principais', 'Major outward damage': 'Danos exteriores principais', 'Make Commitment': 'Ter obrigação', 'Make New Commitment': 'Fazer Novo Compromisso', 'Make Request': 'Fazer Pedido', 'Make preparations per the <instruction>': 'Fazer Preparações por', 'Male': 'masculino', 'Manage': 'Gerenciar', 'Manage Events': 'Manage Events', 'Manage Relief Item Catalogue': 'Gerenciar Catálogo de Item de Alívio', 'Manage Users & Roles': 'GERENCIAR Usuários & Funções', 'Manage Vehicles': 'Manage Vehicles', 'Manage Warehouses/Sites': 'GERENCIAR Armazéns/Sites', 'Manage Your Facilities': 'Gerenciar suas instalações', 'Manage requests for supplies, assets, staff or other resources. Matches against Inventories where supplies are requested.': 'Gerenciar pedidos de suprimentos, patrimônio, pessoal ou outros recursos. Corresponde aos estoques onde os suprimentos são solicitados.', 'Manage requests of hospitals for assistance.': 'GERENCIAR Pedidos de hospitais para obter assistência.', 'Manage volunteers by capturing their skills, availability and allocation': 'GERENCIAR voluntários por captura sua capacidade, Alocação e disponibilidade', 'Manager': 'Gerente', 'Managing Office': 'Gerenciando Office', 'Mandatory. In GeoServer, this is the Layer Name. Within the WFS getCapabilities, this is the FeatureType Name part after the colon(:).': 'Obrigatório. Em GeoServer, este é o nome Da Camada. No getCapabilities WFS, este é o nome da parte FeatureType após os dois pontos (:).', 'Mandatory. The URL to access the service.': 'Obrigatório. A URL para acessar o serviço.', 'Manual': 'Manual', 'Manual Synchronization': 'Sincronização Manual', 'Many': 'Muitos', 'Map': 'Mapa', 'Map Center Latitude': 'Latitude do Centro do Mapa', 'Map Center Longitude': 'Longitude do centro do mapa', 'Map Configuration': 'Configuração de Mapa', 'Map Configuration Details': 'Detalhes de configuração de mapa', 'Map Configuration added': 'Configuração de mapa incluído', 'Map Configuration deleted': 'Configuração de mapa excluído', 'Map Configuration removed': 'Configuração de mapa removido', 'Map Configuration updated': 'Configuração de mapa atualizada', 'Map Configurations': 'Configuracões de mapa', 'Map Height': 'Altura do Mapa', 'Map Service Catalog': 'Catálogo do serviço de mapas', 'Map Settings': 'Configurações do Mapa', 'Map Viewing Client': 'Cliente de visualização do mapa', 'Map Width': 'Largura do mapa', 'Map Zoom': 'Zoom do mapa', 'Map of Hospitals': 'Mapa de Hospitais', 'MapMaker Hybrid Layer': 'MapMaker Hybrid Layer', 'MapMaker Layer': 'MapMaker Layer', 'Maps': 'Maps', 'Marine Security': 'Segurança da marina', 'Marital Status': 'Estado Civil', 'Marker': 'Marcador', 'Marker Details': 'Detalhes do Marcador', 'Marker added': 'Marcador incluído', 'Marker deleted': 'Marcador removido', 'Marker updated': 'Marcador atualizado', 'Markers': 'Marcadores', 'Master': 'Master', 'Master Message Log': 'Mensagem de Log principal', 'Master Message Log to process incoming reports & requests': 'Log de Mensagem Principal para processar relatórios de entrada e pedidos', 'Match Percentage': 'Porcentagem de correspondência', 'Match Requests': 'Corresponder Pedidos', 'Match percentage indicates the % match between these two records': 'Porcentagem idêntica indica a % idêntica entre estes dois registros.', 'Match?': 'Combina?', 'Matching Catalog Items': 'Catálogo de itens correspondentes', 'Matching Items': 'Itens correspondentes', 'Matching Records': 'Registros de correspondência', 'Matrix of Choices (Multiple Answers)': 'Matrix de Opções (Respostas Múltiplas)', 'Matrix of Choices (Only one answer)': 'Matrix de Opções (Apenas uma resposta)', 'Matrix of Text Fields': 'Matriz de campos de texto', 'Max Persons per Dwelling': 'Máx. Pessoas por Habitação', 'Maximum Location Latitude': 'Latitude máxima local', 'Maximum Location Longitude': 'Longitude máxima local', 'Medical and public health': 'Saúde Médica e Pública', 'Medium': 'Médio', 'Megabytes per Month': 'Megabytes por mês', 'Members': 'membros', 'Membership': 'Membresia', 'Membership Details': 'Detalhes de Associação', 'Membership added': 'Associação incluído', 'Membership deleted': 'Associação Excluída', 'Membership updated': 'Associação ATUALIZADO', 'Memberships': 'Parcelas', 'Message': 'message', 'Message Details': 'deatlhes de mesagens', 'Message Variable': 'Mensagem variável', 'Message added': 'Mensagem incluída', 'Message deleted': 'Mensagem Excluída', 'Message field is required!': 'Campo mensagem é obrigatório!', 'Message updated': 'Mensagem atualizada', 'Message variable': 'Mensagem variável', 'Messages': 'mensagens.', 'Messaging': 'sistema de mensagens', 'Messaging settings updated': 'Configurações de mensagens atualizadas', 'Meteorite': 'Meteorito', 'Meteorological (inc. flood)': 'Meteorológico (inc. Enchente)', 'Method used': 'Método utilizado', 'Middle Name': 'Nome do meio', 'Migrants or ethnic minorities': 'Imigrantes ou minorias étnicas', 'Mileage': 'Mileage', 'Military': 'Militares', 'Minimum Bounding Box': 'Caixa Delimitadora Mínima', 'Minimum Location Latitude': 'Mínimo Latitude de Localidade', 'Minimum Location Longitude': 'Longitude de Localização Mínima', 'Minimum shift time is 6 hours': 'tempo mínimo de Shift é de 6 horas', 'Minor Damage': 'Dano secundário', 'Minor/None': 'Secundária/Nenhum', 'Minorities participating in coping activities': 'Minorias participando em atividades de cópia', 'Minute': 'Minuto', 'Minutes must be a number between 0 and 60': 'Minutos devem ser um número entre 0 e 60', 'Minutes per Month': 'Minutos por Mês', 'Minutes should be a number greater than 0 and less than 60': 'Minutos devem ser um número maior que 0 e menor que 60', 'Miscellaneous': 'Variados', 'Missing': 'Perdido', 'Missing Person': 'Pessoa desaparecida', 'Missing Person Details': 'Detalhes da pessoa perdida', 'Missing Person Registry': 'Faltando Registro da Pessoa', 'Missing Person Reports': 'Relatórios da pessoa desaparecida', 'Missing Persons': 'Pessoas desaparecidas', 'Missing Persons Registry': 'Registro de pessoas desaparecidas', 'Missing Persons Report': 'Relatório de pessoas desaparecidas', 'Missing Report': 'Relatório de desaparecimento', 'Missing Senior Citizen': 'Cidadão sênior desaparecido', 'Missing Vulnerable Person': 'Pessoa vulnerável desaparecida', 'Mission Details': 'Detalhes da Missão', 'Mission Record': 'Registro da Missão', 'Mission added': 'Missão incluída', 'Mission deleted': 'Missão excluída', 'Mission updated': 'Missão atualizada', 'Missions': 'Missões', 'Mobile': 'telefone celular', 'Mobile Basic Assessment': 'Taxação básica móvel', 'Mobile Phone': 'Telefone celular', 'Mode': 'modo', 'Model/Type': 'Modelo/Tipo', 'Modem': 'Modem', 'Modem Settings': 'Configurações do Modem', 'Modem settings updated': 'Configurações de modem atualizadas', 'Moderate': 'moderate', 'Moderator': 'moderator', 'Modify Information on groups and individuals': 'Modificar Informações sobre grupos e pessoas', 'Modifying data in spreadsheet before importing it to the database': 'Modificando dados na planilha antes de importá-los para o banco de dados', 'Module': 'Módulo', 'Module disabled!': 'Módulo desativado!', 'Module provides access to information on current Flood Levels.': 'Módulo fornece acesso a informações na atual Onda níveis.', 'Monday': 'segunda-feira', 'Monthly Cost': 'Custo mensal', 'Monthly Salary': 'Salário mensal', 'Months': 'meses', 'Morgue': 'Morgue', 'Morgue Details': 'Morgue Details', 'Morgue Status': 'Situação do necrotério', 'Morgue Units Available': 'Unidades disponíveis no necrotério', 'Morgues': 'Morgues', 'Mosque': 'Mesquita', 'Motorcycle': 'Motocicleta', 'Moustache': 'Bigode', 'MultiPolygon': 'multipolygon', 'Multiple': 'Múltiplos', 'Multiple Choice (Multiple Answers)': 'Múltipla escolha (Várias Respostas)', 'Multiple Choice (Only One Answer)': 'Múltipla Escolha (Apenas uma resposta)', 'Multiple Matches': 'Múltiplas Correspondências', 'Multiple Text Fields': 'Vários campos de texto', 'Muslim': 'Muçulmano', 'Must a location have a parent location?': 'Um local deve ter uma posição pai?', 'My Current function': 'Minha função Atual', 'My Details': 'My Details', 'My Tasks': 'Minhas tarefas', 'My Volunteering': 'My Volunteering', 'N/A': 'n/d', 'NO': 'no', 'NZSEE Level 1': 'NZSEE Nível 1', 'NZSEE Level 2': 'NZSEE Nível 2', 'Name': 'nome', 'Name and/or ID': 'Nome E/OU ID', 'Name of the file (& optional sub-path) located in static which should be used for the background of the header.': 'O nome do arquivo (& sub OPCIONAL-path) localizado no estáticamente que deve ser utilizado para o segundo plano do Cabeçalho.', 'Name of the file (& optional sub-path) located in static which should be used for the top-left image.': 'Nome do arquivo (e sub-caminho opcional) localizado estático que deveria ser utilizado para a imagem superior esquerda.', 'Name of the file (& optional sub-path) located in views which should be used for footer.': 'Nome do arquivo (e sub-caminho opcional) localizado nas visualizações que deve ser utilizado no rodapé.', 'Name of the person in local language and script (optional).': 'Nome da pessoa no idioma local e script local (opcional).', 'Name or Job Title': 'Nome ou cargo', 'Name, Org and/or ID': 'Nome, organização e/ou ID.', 'Name/Model/Type': 'Nome/Modelo/Tipo', 'Names can be added in multiple languages': 'Nomes podem ser adicionados em múltiplos idiomas', 'National': 'Nacional', 'National ID Card': 'Cartão de ID Nacional', 'National NGO': 'Nacional ONG', 'Nationality': 'Nacionalidade', 'Nationality of the person.': 'Nacionalidade da pessoa.', 'Nautical Accident': 'Acidente Náutico', 'Nautical Hijacking': 'Sequestro Náutico', 'Need Type': 'Precisa de Tipo', 'Need Type Details': 'Tipo precisa de Detalhes', 'Need Type added': 'Precisa de tipo incluído', 'Need Type deleted': 'Precisa de Tipo excluído', 'Need Type updated': 'Tipo de necessidade atualizada', 'Need Types': 'Tipos de necessidade', "Need a 'url' argument!": "Precisa de um argumento ' url!", 'Need added': 'Necessidade incluída', 'Need deleted': 'Necessidade excluída', 'Need to be logged-in to be able to submit assessments': 'Precisa estar conectado ao programa para conseguir submeter avaliações', 'Need to configure Twitter Authentication': 'Precisa configurar a autenticação do Twitter', 'Need to specify a Budget!': 'É necessário especificar um orçamento!', 'Need to specify a Kit!': 'É necessário especificar um Kit!', 'Need to specify a Resource!': 'É necessário especificar um recurso!', 'Need to specify a bundle!': 'É necessário especificar um pacote!', 'Need to specify a group!': 'É necessário especificar um grupo!', 'Need to specify a location to search for.': 'É necessário especificar um local para procurar.', 'Need to specify a role!': 'Será necessário especificar um papel!', 'Need to specify a table!': 'Será necessário especificar uma tabela!', 'Need to specify a user!': 'Será necessário especificar um usuário!', 'Need updated': 'Precisa de atualização', 'Needs': 'necessidades', 'Needs Details': 'detalhes necessarios', 'Needs Maintenance': 'Necessita Manutenção', 'Needs to reduce vulnerability to violence': 'Necessidade de reduzir a vulnerabilidade à violência.', 'Negative Flow Isolation': 'NEGATIVO Fluxo ISOLAMENTO', 'Neighborhood': 'Bairro', 'Neighbouring building hazard': 'Risco de construção vizinhos', 'Neonatal ICU': 'Neonatal ICU', 'Neonatology': 'Neonatologia', 'Network': 'rede', 'Neurology': 'Neurologia', 'New': 'Novo(a)', 'New Assessment reported from': 'Nova Avaliação relatada a partir de', 'New Certificate': 'Novo Certificado', 'New Checklist': 'Nova Verificação', 'New Entry': 'Nova Entrada', 'New Event': 'Novo Evento', 'New Home': 'New Home', 'New Item Category': 'Nova Categoria de Ítem', 'New Job Role': 'Novo Papel', 'New Location': 'Novo Local', 'New Location Group': 'Novo Grupo de Locais', 'New Patient': 'New Patient', 'New Peer': 'Novo Par', 'New Record': 'Novo Registro', 'New Relative': 'New Relative', 'New Request': 'Nova Requisição', 'New Scenario': 'Novo Cenário', 'New Skill': 'Nova Habilidade', 'New Solution Choice': 'Escolha nova solução', 'New Staff Member': 'Novo membro da equipe', 'New Support Request': 'Novo pedido de suporte', 'New Synchronization Peer': 'Novo par de sincronização', 'New Team': 'Nova equipe', 'New Ticket': 'New Ticket', 'New Training Course': 'Novo Curso de Treinamento', 'New Volunteer': 'Novo Voluntário', 'New cases in the past 24h': 'Novos casos nas últimas 24H', 'News': 'Notícias', 'Next': 'Seguinte', 'No': 'no', 'No Activities Found': 'Não há actividades', 'No Activities currently registered in this event': 'No Activities currently registered in this event', 'No Alternative Items currently registered': 'Nenhum item alternativo atualmente registrado', 'No Assessment Summaries currently registered': 'Nenhum Sumário De Avaliação actualmente registrado', 'No Assessments currently registered': 'Nenhuma Avaliação actualmente registrada', 'No Asset Assignments currently registered': 'Nenhum ativo designado encontra-se atualmente registrado', 'No Assets currently registered': 'Sem Ativos registrados atualmente', 'No Assets currently registered in this event': 'Sem ativos atualmente registrados neste evento', 'No Assets currently registered in this scenario': 'Sem ativos atualmente registrados neste cenário', 'No Baseline Types currently registered': 'Nenhum tipo de base line registrado atualmente', 'No Baselines currently registered': 'Nenhuma linha base registrada atualmente', 'No Brands currently registered': 'Sem Marcas atualmente registrado', 'No Budgets currently registered': 'Nenhum Dos Orçamentos registrados atualmente', 'No Bundles currently registered': 'Nenhum pacote atualmente registrado', 'No Camp Services currently registered': 'Nenhum serviço de acampamento atualmente registrado', 'No Camp Types currently registered': 'Nenhum tipo de acampamento atualmente registrado', 'No Camps currently registered': 'Sem Acampamentos atualmente registrados', 'No Catalog Items currently registered': 'Nenhum itens do catálogo registrado atualmente', 'No Catalogs currently registered': 'Nenhum catálogo atualmente registrado', 'No Checklist available': 'Checklist não disponível', 'No Cluster Subsectors currently registered': 'Nenhum sub-setor de cluster registrado atualmente', 'No Clusters currently registered': 'Nenhum Cluster registrado atualmente', 'No Commitment Items currently registered': 'Nenhum Item de Compromisso registrado atualmente', 'No Commitments': 'Sem Compromissos', 'No Credentials currently set': 'Nenhuma credencial atualmente configurada', 'No Details currently registered': 'Nenhum detalhes registrado atualmente', 'No Documents currently attached to this request': 'No Documents currently attached to this request', 'No Documents found': 'Nenhum Documento encontrado', 'No Donors currently registered': 'Sem doadores registrados atualmente', 'No Events currently registered': 'Não há eventos atualmente registrados', 'No Facilities currently registered in this event': 'Não há Recursos atualmente registrado nesse evento', 'No Facilities currently registered in this scenario': 'Não há recursos atualmente registrados neste cenário', 'No Feature Classes currently defined': 'Nenhuma Classe de Componentes atualmente definidos', 'No Feature Layers currently defined': 'Nenhuma Camada de Componentes atualmente definidos', 'No Flood Reports currently registered': 'Nenhum relatório de Inundação atualmente registrado', 'No GPS data currently registered': 'No GPS data currently registered', 'No Groups currently defined': 'Não há Grupos definidos atualmente', 'No Groups currently registered': 'Nenhum Grupo atualmente registrado', 'No Homes currently registered': 'No Homes currently registered', 'No Hospitals currently registered': 'Nenhum hospital atualmente registrado', 'No Human Resources currently registered in this event': 'Nao há recursos humanos atualmente registrados nesse evento', 'No Human Resources currently registered in this scenario': 'Sem recursos humanos atualmente registrados neste cenário', 'No Identification Report Available': 'Nenhum Relatório de Identificação Disponível', 'No Identities currently registered': 'Nenhuma Identidade atualmente registrada', 'No Image': 'Nenhuma Imagem', 'No Images currently registered': 'Nenhuma Imagem atualmente registrada', 'No Impact Types currently registered': 'Nenhum tipo de impacto atualmente registrado', 'No Impacts currently registered': 'Nenhum Impacto atualmente registrado', 'No Import Files currently uploaded': 'No Import Files currently uploaded', 'No Incident Reports currently registered': 'Nenhum relatório de incidente registrado atualmente', 'No Incoming Shipments': 'Nenhum Embarque de Entrada', 'No Inventories currently have suitable alternative items in stock': 'No Inventories currently have suitable alternative items in stock', 'No Inventories currently have this item in stock': 'No Inventories currently have this item in stock', 'No Inventory Items currently registered': 'Nenhum Item de Inventário registrado atualmente', 'No Item Categories currently registered': 'Nenhuma Categoria de Item atualmente registrada', 'No Item Packs currently registered': 'Nenhum Pacote de Itens atualmente registrado', 'No Items currently registered': 'Nenhum item registrado atualmente', 'No Items currently registered in this Inventory': 'Sem itens registrados atualmente neste inventário', 'No Keys currently defined': 'Nenhuma chave definida no momento', 'No Kits currently registered': 'Nenhum kit registrado no momento', 'No Level 1 Assessments currently registered': 'Nenhuma avaliação nível 1 registrada no momento', 'No Level 2 Assessments currently registered': 'Nenhum nível 2 Avaliações atualmente registrado', 'No Locations currently available': 'Locais Não disponíveis atualmente', 'No Locations currently registered': 'Locais Não registrados atualmente', 'No Map Configurations currently defined': 'Nenhuma configuração de Mapa estão atualmente definidos', 'No Map Configurations currently registered in this event': 'Nenhuma configuração de Mapa esta atualmente registrado nesse evento', 'No Map Configurations currently registered in this scenario': 'Nenhuma configuração de Mapa está atualmente registrado neste cenário', 'No Markers currently available': 'Não há marcadores atualmente disponíveis', 'No Match': 'Sem correspondência', 'No Matching Catalog Items': 'Nenhum Item de Catálogo Correspondente', 'No Matching Items': 'Sem itens correspondentes', 'No Matching Records': 'Sem registros correspondentes', 'No Members currently registered': 'Sem membros registrados atualmente', 'No Memberships currently defined': 'Sem Associações definidas atualmente', 'No Memberships currently registered': 'Sem Associações registradas atualmente', 'No Messages currently in Outbox': 'Nenhuma mensagem na Caixa de saída', 'No Need Types currently registered': 'Sem necessidade, Tipos atualmente registrados', 'No Needs currently registered': 'Sem necessidade, atualmente registrado', 'No Offices currently registered': 'Nenhum Escritório registrado atualmente', 'No Offices found!': 'Menhum Escritório localizado!', 'No Organizations currently registered': 'Número de Organizações atualmente registradas', 'No Packs for Item': 'No Packs for Item', 'No Patients currently registered': 'No Patients currently registered', 'No People currently committed': 'No People currently committed', 'No People currently registered in this camp': 'Nenhuma pessoa registrada atualmente neste campo', 'No People currently registered in this shelter': 'Nenhuma pessoa registrada atualmente neste abrigo', 'No Persons currently registered': 'Nenhuma pessoa atualmente registrada', 'No Persons currently reported missing': 'nenhuma pessoa reportada atualmente como perdida', 'No Persons found': 'Nenhuma pessoa localizada', 'No Photos found': 'Nenhuma Foto localizada', 'No Picture': 'Nenhuma imagem', 'No Population Statistics currently registered': 'Nenhuma estatística populacional atualmente registrada', 'No Presence Log Entries currently registered': 'Nenhuma entrada no log Presença atualmente registrado', 'No Problems currently defined': 'Nenhum Problema atualmente definido', 'No Projections currently defined': 'Nenhuma projeção atualmente definida', 'No Projects currently registered': 'Nenhum projeto atualmente registrado', 'No Rapid Assessments currently registered': 'Nenhuma Tributação Rápida atualmente registrada', 'No Ratings for Skill Type': 'No Ratings for Skill Type', 'No Received Items currently registered': 'Nenhum item recebido atualmente registrado', 'No Received Shipments': 'Entregas/Despachos não recebidos', 'No Records currently available': 'Registros atualmente não disponíveis', 'No Relatives currently registered': 'No Relatives currently registered', 'No Request Items currently registered': 'Não há items de Pedidos registados', 'No Requests': 'Não há pedidos', 'No Rivers currently registered': 'Não Rios atualmente registrado', 'No Roles currently defined': 'Nenhumas funções atualmente definidas', 'No Rooms currently registered': 'Nenhuma sala atualmente registrada', 'No Scenarios currently registered': 'Nenhum cenário atualmente registrado', 'No Sections currently registered': 'Sem seções atualmente registradas', 'No Sectors currently registered': 'setores nao atualmente registrados', 'No Sent Items currently registered': 'Nenhum item Enviado atualmente registrado', 'No Sent Shipments': 'Nenhum carregamento enviado', 'No Settings currently defined': 'configuraçoes atualmente nao definida', 'No Shelter Services currently registered': 'nenhum serviço de abrigo atualmente registrado', 'No Shelter Types currently registered': 'Nenhum tipo de abrigo registrado atualmente', 'No Shelters currently registered': 'abrigos atualmente nao registrados', 'No Skills currently requested': 'No Skills currently requested', 'No Solutions currently defined': 'Sem Soluções actualmente definidas', 'No Staff Types currently registered': 'Sem Tipos de Funcionários actualmente registrados', 'No Staff currently registered': 'Sem Funcionários actualmente registrados', 'No Subscription available': 'Nenhuma assinatura disponível', 'No Subsectors currently registered': 'Nenhum sub setor atualmente registrado', 'No Support Requests currently registered': 'Nenhum suporte a pedido atualmente registrado', 'No Survey Answers currently entered.': 'Nenhuma resposta de pesquisa atualmente inscrita.', 'No Survey Answers currently registered': 'Nenhuma resposta a pesquisa atualmente registrada', 'No Survey Questions currently registered': 'Nenhuma pergunta de pesquisa atualmente registrada', 'No Survey Sections currently registered': 'Nenhuma seção de pesquisa atualmente registrada', 'No Survey Series currently registered': 'Nenhuma série de pesquisa atualmente registrada', 'No Survey Template currently registered': 'Nenhum Modelo de Pesquisa atualmente registrado', 'No Tasks currently registered in this event': 'No Tasks currently registered in this event', 'No Tasks currently registered in this scenario': 'No Tasks currently registered in this scenario', 'No Tasks with Location Data': 'Nenhuma tarefa com local de dados', 'No Teams currently registered': 'Nenhuma equipe atualmente registrada', 'No Themes currently defined': 'Nenhum Tema atualmente definido', 'No Tickets currently registered': 'Sem ingressos atualmente registrados', 'No Tracks currently available': 'nenhum rastreamento atualmente disponível', 'No Users currently registered': 'Nenhum Usuário actualmente registrado', 'No Vehicle Details currently defined': 'No Vehicle Details currently defined', 'No Vehicles currently registered': 'No Vehicles currently registered', 'No Volunteers currently registered': 'Nenhum Voluntário actualmente registrado', 'No Warehouses currently registered': 'Nenhum Armazém actualmente registrado', 'No access at all': 'Nenhum acesso', 'No access to this record!': 'Não há acesso a esta entrada!', 'No action recommended': 'Nenhuma acção recomendada', 'No conflicts logged': 'Nenhum conflito registrado', 'No contact information available': 'Nenhuma informações de contato disponível', 'No contact method found': 'No contact method found', 'No contacts currently registered': 'Nenhum contato atualmente registrado', 'No data in this table - cannot create PDF!': 'Nenhum dado nesta tabela- PDF não pode ser criado!', 'No databases in this application': 'Nenhum banco de dados neste aplicativo', 'No dead body reports available': 'Nenhum relatório de óbito disponível', 'No entries found': 'Nenhum artigo encontrado', 'No entries matching the query': 'Nenhuma entrada correspondente a consulta', 'No entry available': 'Nenhuma entrada disponível', 'No forms to the corresponding resource have been downloaded yet.': 'No forms to the corresponding resource have been downloaded yet.', 'No location known for this person': 'Nenhum local conhecido para essa pessoa', 'No locations found for members of this team': 'Locais não localizado para membros deste equipe', 'No log entries matching the query': 'Nenhuma entrada de log correspondente a consulta', 'No match': 'No match', 'No matching records found': 'No matching records found', 'No messages in the system': 'Nenhuma mensagem no sistema', 'No notes available': 'Notas não disponíveis', 'No peers currently registered': 'Não há pares registrados atualmente', 'No pending registrations found': 'Não foram encontrados registros pendentes', 'No pending registrations matching the query': 'Não foram encontrados registros pendentes correspondentes à consulta efetuada', 'No person record found for current user.': 'Nenhum registro de pessoa localizado para o usuário atual.', 'No problem group defined yet': 'Nenhum grupo problema definido ainda', 'No records matching the query': 'Sem registros correspondentes a consulta', 'No report available.': 'Nenhum Relatório disponível.', 'No reports available.': 'Não há relatórios disponíveis.', 'No reports currently available': 'Não há relatórios disponíveis actualmente', 'No requests found': 'Não foram foram encontrados pedidos', 'No resources currently reported': 'Recursos não reportados actualmente', 'No service profile available': 'Nenhum perfil de serviço disponível', 'No skills currently set': 'Não há habilidades atualmente configuradas', 'No staff members currently registered': 'Nenhum membro da equipe atualmente registrado', 'No staff or volunteers currently registered': 'Nenhum funcionário ou voluntário atualmente registrado', 'No status information available': 'Informação não está disponível', 'No synchronization': 'Sem Sincronização', 'No tasks currently assigned': 'No tasks currently assigned', 'No tasks currently registered': 'Nenhuma tarefa atualmente registrada', 'No template found!': 'Nenhum modelo localizado!', 'No units currently registered': 'Nenhuma unidade actualmente registrada', 'No volunteer availability registered': 'Sem disponibilidade de voluntário registrada', 'No volunteers currently registered': 'Nenhum Voluntário actualmente registrado', 'Non-structural Hazards': 'Riscos não-estruturais', 'None': 'Nenhum', 'None (no such record)': 'Nenhum (sem registro )', 'Noodles': 'Macarrão', 'Normal': 'Normal', 'Not Applicable': 'Não se aplica', 'Not Authorised!': 'Não Autorizado!', 'Not Possible': 'Impossível', 'Not Set': 'não configurado', 'Not authorised!': 'Não autorizado!', 'Not installed or incorrectly configured.': 'Não instalado ou Configurado Incorretamente.', 'Note': 'Nota', 'Note Details': 'Detalhes da Nota', 'Note Status': 'Status da Nota', 'Note Type': 'Tipo de nota', 'Note added': 'Nota Incluída', 'Note deleted': 'NOTA Excluída', 'Note that this list only shows active volunteers. To see all people registered in the system, search from this screen instead': 'Observer que essa lista mostra apenas voluntários ativos. Para ver todas as pessoas registradas no sistema, procure a partir deste ecrã em vez de', 'Note updated': 'Nota atualizada', 'Notes': 'Observações', 'Notice to Airmen': 'Aviso ao piloto', 'Number': 'número', 'Number of Columns': 'Número de colunas', 'Number of Patients': 'Número de Pacientes', 'Number of People Required': 'Number of People Required', 'Number of Rows': 'Número de Linhas', 'Number of additional beds of that type expected to become available in this unit within the next 24 hours.': 'Número de camas adicionais de tipo esperado tornar disponível nesta unidade nas próximas 24 horas.', 'Number of alternative places for studying': 'Número de locais alternativos para estudar', 'Number of available/vacant beds of that type in this unit at the time of reporting.': 'Número de camas disponíveis/livre desse tipo nesta unidade no momento do relatório.', 'Number of bodies found': 'Number of bodies found', 'Number of deaths during the past 24 hours.': 'Número de mortes durante as últimas 24 horas.', 'Number of discharged patients during the past 24 hours.': 'Número de pacientes Descarregados durante as últimas 24 horas.', 'Number of doctors': 'Número de médicos', 'Number of in-patients at the time of reporting.': 'Número de pacientes internos na hora do relatório.', 'Number of newly admitted patients during the past 24 hours.': 'Número de pacientes admitidos durante as últimas 24 horas.', 'Number of non-medical staff': 'Número de funcionários não-médico', 'Number of nurses': 'Número de enfermeiras', 'Number of private schools': 'Número de escolas privadas', 'Number of public schools': 'Número de escolas públicas', 'Number of religious schools': 'Número de escolas religiosas', 'Number of residential units': 'Número de unidades residenciais', 'Number of residential units not habitable': 'Unidades de número residencial não habitáveis', 'Number of vacant/available beds in this hospital. Automatically updated from daily reports.': 'Número de leitos vagos/disponíveis nesse hospital. Atualizado automaticamente a partir de relatórios diários.', 'Number of vacant/available units to which victims can be transported immediately.': 'Número de unidades vagas/disponíveis em que vítimas podem ser transportadas imediatamente.', 'Number or Label on the identification tag this person is wearing (if any).': 'Número ou código na etiqueta de identificação que a pessoa está usando (se houver).', 'Number or code used to mark the place of find, e.g. flag code, grid coordinates, site reference number or similar (if available)': 'Número ou código utilizado para marcar o local de localização, por exemplo, código de bandeira, grade de coordenadas, número de referência do site ou similar (se disponível)', 'Number/Percentage of affected population that is Female & Aged 0-5': 'Número/percentagem da população afetada que é uma mulher entre 0 e 5 anos', 'Number/Percentage of affected population that is Female & Aged 13-17': 'Número/percentagem da população afetadas do sexo feminino entre 13 e 17 anos', 'Number/Percentage of affected population that is Female & Aged 18-25': 'Número/percentagem da população afetada que é Mulher com 18-25 anos', 'Number/Percentage of affected population that is Female & Aged 26-60': 'Número/percentagem da população afetada que é Mulher com 26-60 anos', 'Number/Percentage of affected population that is Female & Aged 6-12': 'Número/percentagem da população afetada que é Mulher com 6-12 anos', 'Number/Percentage of affected population that is Female & Aged 61+': 'Número/percentagem da população afetada que é Mulher > 61 anos', 'Number/Percentage of affected population that is Male & Aged 0-5': 'Número/percentagem da população afetada que é Homem com 0-5 anos', 'Number/Percentage of affected population that is Male & Aged 13-17': 'Número/percentagem da população afetada que é Homem com 13-17 anos', 'Number/Percentage of affected population that is Male & Aged 18-25': 'Número/percentagem da população afetada que é Homem com 18-25 anos', 'Number/Percentage of affected population that is Male & Aged 26-60': 'Número/percentagem de população afetada que é do sexo masculino & Idade 26-60', 'Number/Percentage of affected population that is Male & Aged 6-12': 'Número/percentagem de população afectada que é do sexo masculino & Idade 6-12', 'Number/Percentage of affected population that is Male & Aged 61+': 'Número/percentagem da população afetada que é do sexo masculino & Idade 61+', 'Nursery Beds': 'Camas de berçario', 'Nutrition': 'Nutrição', 'Nutrition problems': 'Problemas nutricionais', 'OK': 'OK', 'OR Reason': 'Ou Razão', 'OR Status': 'Ou Status', 'OR Status Reason': 'Ou razão do status', 'OR a site OR a location': 'OU um site OU um local', 'Observer': 'observador', 'Obsolete': 'Obsoleto', 'Obstetrics/Gynecology': 'Obstetrícia/Ginecologia', 'Office': 'escritório', 'Office Address': 'Endereço do escritório', 'Office Details': 'Detalhes do Escritório.', 'Office Phone': 'Telefone do escritório', 'Office added': 'Escritório', 'Office deleted': 'Escritório excluído', 'Office updated': 'Escritório atualizado', 'Offices': 'Escritórios', 'Offices & Warehouses': 'Escritórios & Armazéns', 'Offline Sync': 'Sincronização desconectada.', 'Offline Sync (from USB/File Backup)': 'Off-line (Sync a partir do USB/arquivo de Backup)', 'Older people as primary caregivers of children': 'Pessoas mais velhas como responsáveis primárias de crianças', 'Older people in care homes': 'Pessoas mais velhas em casas de cuidados', 'Older people participating in coping activities': 'Pessoas mais antigos participantes em lidar atividades', 'Older person (>60 yrs)': 'Idosos (>60 anos)', 'On by default?': 'Por padrão?', 'On by default? (only applicable to Overlays)': 'Por padrão? (apenas aplicável para Sobreposições)', 'One Time Cost': 'Custo Único', 'One time cost': 'Custo único', 'One-time': 'Único', 'One-time costs': 'Custos únicos', 'Oops! Something went wrong...': 'Oops! Algo deu errado...', 'Oops! something went wrong on our side.': 'Oops! algo deu errado do nosso lado.', 'Opacity (1 for opaque, 0 for fully-transparent)': 'Opacidade (1 para opaco, 0 para totalmente transparente)', 'Open': 'Abrir', 'Open area': 'Abrir área', 'Open recent': 'Abrir recente', 'Operating Rooms': 'Salas operacionais', 'Optional': 'Optional', 'Optional Subject to put into Email - can be used as a Security Password by the service provider': 'Optional Subject to put into Email - can be used as a Security Password by the service provider', 'Optional link to an Incident which this Assessment was triggered by.': 'Link opcional para um incidente que esta avaliação foi desencadeada por.', 'Optional selection of a MapServer map.': 'Optional selection of a MapServer map.', 'Optional selection of a background color.': 'Optional selection of a background color.', 'Optional selection of an alternate style.': 'Optional selection of an alternate style.', 'Optional. If you wish to style the features based on values of an attribute, select the attribute to use here.': 'opcional Se você desejar apresenta o estilo com base nos valores de um atributo, Selecione o atributo a ser utilizado aqui.', 'Optional. In GeoServer, this is the Workspace Namespace URI (not the name!). Within the WFS getCapabilities, this is the FeatureType Name part before the colon(:).': 'opcional Em GeoServer, esta é a área de trabalho Namespace URI (não o nome!). Dentro do getCapabilities WFS, este é parte do nome FeatureType antes dos dois pontos (:).', 'Optional. In GeoServer, this is the Workspace Namespace URI. Within the WFS getCapabilities, this is the FeatureType Name part before the colon(:).': 'optional. Em GeoServer, este é o espaço de Nomes URI. No getCapabilities WFS, este é o nome da parte FeatureType antes de os dois pontos (:).', 'Optional. The name of an element whose contents should be a URL of an Image file put into Popups.': 'opcional O nome de um elemento cujo conteúdo deve ser uma URL de um arquivo de imagem para Popups.', 'Optional. The name of an element whose contents should be put into Popups.': 'opcional O nome de um elemento cujo conteúdo deve ser adicionado em Popups.', "Optional. The name of the geometry column. In PostGIS this defaults to 'the_geom'.": "opcional O nome da coluna de geometria. Em PostGIS padroniza para 'the_geom'.", 'Optional. The name of the schema. In Geoserver this has the form http://host_name/geoserver/wfs/DescribeFeatureType?version=1.1.0&;typename=workspace_name:layer_name.': 'opcional O nome do esquema. Em Geoserver isto tem o formato http://host_name/geoserver/wfs/DescribeFeatureType?version=1.1.0&;typename=workspace_name:layer_name.', 'Options': 'opções', 'Organisation': 'Organização', 'Organization': 'Organização', 'Organization Details': 'Detalhes da Organização', 'Organization Registry': 'Registro de Organização', 'Organization added': 'Organização incluída', 'Organization deleted': 'Organização excluída', 'Organization updated': 'Organização atualizada', 'Organizations': 'Organizações', 'Origin': 'Origem', 'Origin of the separated children': 'Origem das crianças separadas', 'Other': 'outro', 'Other (describe)': 'Outros (descreva)', 'Other (specify)': 'Outros motivos (especifique)', 'Other Evidence': 'outras evidencias', 'Other Faucet/Piped Water': 'Outras Torneiras /Agua Encanada', 'Other Isolation': 'Outro Isolamento', 'Other Name': 'outro nome', 'Other activities of boys 13-17yrs': 'Outras atividades de garotos 13-17anos', 'Other activities of boys 13-17yrs before disaster': 'Outras atividades de garotos 17-13anos antes do desastre', 'Other activities of boys <12yrs': 'Outras atividades de garotos <12 anos', 'Other activities of boys <12yrs before disaster': 'Outras atividades de garotos <12anos antes do desastre', 'Other activities of girls 13-17yrs': 'Outras atividades de meninas 13-17anos', 'Other activities of girls 13-17yrs before disaster': 'Outras atividades de meninas 13-17anos antes do desastre', 'Other activities of girls<12yrs': 'Outras atividades de garotas<12anos', 'Other activities of girls<12yrs before disaster': 'Outras atividades de garotas<12anos antes do desastre', 'Other alternative infant nutrition in use': 'Nutrição infantil alternativa em uso', 'Other alternative places for study': 'Outros locais alternativos para estudo', 'Other assistance needed': 'Outra assistência necessária', 'Other assistance, Rank': 'Outra assistência, Número', 'Other current health problems, adults': 'Outros problemas actuais de saúde, adultos', 'Other current health problems, children': 'Outros problemas actuais de saúde, crianças', 'Other events': 'outros eventos', 'Other factors affecting school attendance': 'Outros fatores que afetam a frequencia escolar', 'Other major expenses': 'outras despesas importantes', 'Other non-food items': 'Outros itens não alimentícios', 'Other recommendations': 'Outras recomendações', 'Other residential': 'Outros residentes', 'Other school assistance received': 'Assistência de outra escola recebida', 'Other school assistance, details': 'Assistência de outra escola, detalhes', 'Other school assistance, source': 'Assistência de outra escola, origem', 'Other settings can only be set by editing a file on the server': 'Outras configurações só podem ser definidas editando um arquivo no servidor', 'Other side dishes in stock': 'Pratos outro lado em ações', 'Other types of water storage containers': 'Outros tipos de recipientes de armazenamento de água', 'Other ways to obtain food': 'Outras maneiras de obter alimentos', 'Outbound Mail settings are configured in models/000_config.py.': 'Definições de correio de saída são configurados em modelos/000_config..py', 'Outbox': 'Caixa de Saída', 'Outgoing SMS Handler': 'Saída do Manipulador SMS', 'Outgoing SMS handler': 'Manipulador de SMS de saída', 'Overall Hazards': 'Riscos gerais', 'Overhead falling hazard': 'Risco de queda sobrecarga', 'Overland Flow Flood': 'Por via terrestre Fluxo de Enchente', 'Owned Resources': 'Recursos Próprios', 'PAHO UID': 'OPS UID', 'PDAM': 'PDAM', 'PDF File': 'PDF File', 'PIN': 'alfinete', 'PIN number': 'Número do pino', 'PIN number ': 'PIN number ', 'PL Women': 'Mulheres PL', 'Pack': 'Pacote', 'Packs': 'Pacotes', 'Page': 'Page', 'Parameters': 'Parâmetros de Monitoramento', 'Parapets, ornamentation': 'Passarelas, ornamentação', 'Parent': 'parent', 'Parent Office': 'Escritório Principal', "Parent level should be higher than this record's level. Parent level is": 'Nível dos pais deve ser maior que o nível do registro. Nível do Pai é', 'Parent needs to be of the correct level': 'Pai precisa ser do nível correto', 'Parent needs to be set': 'Principal precisa ser configurado', 'Parent needs to be set for locations of level': 'Principal precisa ser configurado para locais de nível', 'Parents/Caregivers missing children': 'Pais/cuidadores de crianças desaparecidas', 'Parking Area': 'Parking Area', 'Partial': 'Parcial', 'Participant': 'Participante', 'Pashto': 'Pachto', 'Pass': 'Passou', 'Passport': 'passaporte', 'Password': 'senha', "Password fields don't match": 'Os campos de senha não são iguais.', 'Path': 'Caminho', 'Pathology': 'Patologia', 'Patient': 'Patient', 'Patient Details': 'Patient Details', 'Patient Tracking': 'Patient Tracking', 'Patient added': 'Patient added', 'Patient deleted': 'Patient deleted', 'Patient updated': 'Patient updated', 'Patients': 'Pacientes', 'Pediatric ICU': 'UTI Pediatrica', 'Pediatric Psychiatric': 'Psiquiátrico Pediátra', 'Pediatrics': 'Pediatria', 'Peer': 'Membro', 'Peer Details': 'Detalhes do Membro', 'Peer Registration': 'Registro de par', 'Peer Registration Details': 'Detalhes de Registro do Par', 'Peer Registration Request': 'Requerido Registro do Par', 'Peer Type': 'Por Tipo', 'Peer UID': 'Por UID', 'Peer added': 'Membro adicionado', 'Peer deleted': 'Membro excluído', 'Peer not allowed to push': 'Peer não permitido para envio', 'Peer registration request added': 'Registro Requerido do Par adicionado', 'Peer registration request deleted': 'Registro requerido do par excluído', 'Peer registration request updated': 'Registro requerido do par atualizado', 'Peer updated': 'PAR ATUALIZADO', 'Peers': 'Pares', 'Pending': 'pendente', 'Pending Requests': 'PEDIDOS PENDENTES', 'People': 'pessoas', 'People Needing Food': 'Pessoas precisando de alimento', 'People Needing Shelter': 'Pessoas precisando de abrigo', 'People Needing Water': 'Pessoas precisando de água', 'People Trapped': 'Pessoas presas', 'Performance Rating': 'Classificação da Performance', 'Person': 'pessoa', 'Person 1': 'Pessoa 1', 'Person 1, Person 2 are the potentially duplicate records': 'Pessoa 1, Pessoa 2 são os registros potencialmente duplicados', 'Person 2': 'Pessoa 2', 'Person De-duplicator': 'Anti-duplicador de Pessoas', 'Person Details': 'Detalhes Pessoais', 'Person Finder': 'Buscador de pessoas', 'Person Registry': 'Registro De Pessoa', 'Person added': 'Pessoa Incluída', 'Person added to Commitment': 'Person added to Commitment', 'Person deleted': 'Pessoa removida', 'Person details updated': 'Detalhes pessoais actualizados', 'Person interviewed': 'Pessoa entrevistada', 'Person missing': 'Pessoa perdida', 'Person must be specified!': 'Person must be specified!', 'Person removed from Commitment': 'Person removed from Commitment', 'Person reporting': 'Pessoa relatando', 'Person who has actually seen the person/group.': 'Pessoa que tenha realmente visto a pessoa/Grupo.', 'Person/Group': 'Pessoa/Grupo', 'Personal': 'Pessoal', 'Personal Data': 'Dados pessoais', 'Personal Effects': 'Efeitos pessoal', 'Personal Effects Details': 'Detalhes dos Efeitos Pessoais', 'Personal Map': 'Mapa De Pessoal', 'Personal Profile': 'Perfil pessoal', 'Personal impact of disaster': 'Impacto de desastre pessoal', 'Persons': 'Pessoas', 'Persons in institutions': 'Pessoas em instituições', 'Persons with disability (mental)': 'Pessoas com deficiência (mental)', 'Persons with disability (physical)': 'Pessoas com deficiência (física)', 'Phone': 'telefone', 'Phone 1': 'Telefone 1', 'Phone 2': 'Telefone 2', "Phone number to donate to this organization's relief efforts.": 'Número de telefone para doar ao serviço de assistência social desta organização', 'Phone/Business': 'Telefone comercial', 'Phone/Emergency': 'Telefone de emergência', 'Phone/Exchange': 'Telefone/Exchange', 'Phone/Exchange (Switchboard)': 'Telefone/Câmbio (Central)', 'Photo': 'foto', 'Photo Details': 'Foto com detalhes', 'Photo Taken?': 'Foto tomada?', 'Photo added': 'Foto adicionada (ou incluída)', 'Photo deleted': 'Foto deletada (apagada, excluída em definitivo)', 'Photo updated': 'Foto ATUALIZADA', 'Photograph': 'Fotografia ou Arte Fotográfica', 'Photos': 'fotos, imagens fotográficas', 'Physical Description': 'Descrição física', 'Physical Safety': 'Segurança Física', 'Picture': 'Imagem', 'Picture upload and finger print upload facility': 'Fazer upload de imagem e impressão dedo upload facility', 'Place': 'Local', 'Place of Recovery': 'Local de recuperação', 'Places for defecation': 'Locais para a defecação', 'Places the children have been sent to': 'Lugares que as crianças foram enviadas para', 'Planner': 'Planejador', 'Playing': 'Reproduzindo', "Please come back after sometime if that doesn't help.": 'Por favor, volte após algum tempo se isso não ajuda.', 'Please correct all errors.': 'Por favor CORRIJA todos os erros.', 'Please enter a First Name': 'Por favor insira um primeiro nome', 'Please enter a first name': 'Por favor insira um primeiro nome', 'Please enter a number only': 'Please enter a number only', 'Please enter a person': 'Insira uma pessoa', 'Please enter a site OR a location': 'Por favor digite um site ou um local', 'Please enter a valid email address': 'Please enter a valid email address', 'Please enter the first few letters of the Person/Group for the autocomplete.': 'Por favor Digite as primeiras letras do Pessoa/Grupo para o AutoCompletar.', 'Please enter the recipient': 'Por favor Digite o destinatário', 'Please fill this!': 'Por favor preencha isso!', 'Please give an estimated figure about how many bodies have been found.': 'Please give an estimated figure about how many bodies have been found.', 'Please provide the URL of the page you are referring to, a description of what you expected to happen & what actually happened.': 'Por favor Forneça a URL da página que você está fazendo referência à, uma descrição do que você esperava que acontecesse & O que realmente aconteceu.', 'Please provide the URL of the page you are referring to, a description of what you expected to happen & what actually happened. If a ticket was issued then please provide the Ticket ID.': 'Por favor Forneça a URL da página que você está fazendo referência à, uma descrição do que você esperava que acontecesse & O que realmente aconteceu. Se um bilhete foi emitido então por favor forneça o ID do bilhete.', 'Please report here where you are:': 'Por favor informe aqui onde você está:', 'Please select': 'Por favor Selecione', 'Please select another level': 'Por favor selecione outro nível', 'Please sign-up with your Cell Phone as this allows us to send you Text messages. Please include full Area code.': 'Por favor inscrever-se com seu celular como isso nos permite lhe enviar mensagens de texto. Por favor inclua código de Área total.', 'Please specify any problems and obstacles with the proper handling of the disease, in detail (in numbers, where appropriate). You may also add suggestions the situation could be improved.': 'Por favor especifique quaisquer problemas e obstáculos com a manipulação correcta da doença, em detalhes (em números, se for o caso). Pode também dar sugestões - a situação pode ser melhorada.', 'Please use this field to record any additional information, including a history of the record if it is updated.': 'Por favor utilize esse campo para registrar quaisquer informações adicionais, incluindo um histórico do registro se ele estiver sendo atualizado.', 'Please use this field to record any additional information, including any Special Needs.': 'Por favor utilize esse campo para registrar quaisquer informações adicionais, incluindo quaisquer necessidades especiais.', 'Please use this field to record any additional information, such as Ushahidi instance IDs. Include a history of the record if it is updated.': 'Por favor utilize esse campo para registrar quaisquer informações adicionais, como IDs de instância Ushahidi. Incluir o histórico do registo se este fôr actualizado.', 'Pledge Support': 'Suporte da promessa', 'Point': 'Ponto', 'Poisoning': 'Envenenamento', 'Poisonous Gas': 'Gás venenoso', 'Police': 'Polícia', 'Pollution and other environmental': 'Poluição ambiental e outras', 'Polygon': 'Polígono', 'Polygon reference of the rating unit': 'Polígono de referência da unidade de classificação', 'Poor': 'Pobre', 'Population': 'População', 'Population Statistic Details': 'População Estatística Detalhes', 'Population Statistic added': 'População Estatística incluída', 'Population Statistic deleted': 'População Estatística excluído', 'Population Statistic updated': 'População De Estatística atualizada', 'Population Statistics': 'Estatísticas De população', 'Population and number of households': 'população e número de residentes', 'Popup Fields': 'Pop-up Campos', 'Popup Label': 'Rótulo do pop-up', 'Porridge': 'mingau', 'Port': 'porta', 'Port Closure': 'Porta Encerramento', 'Portuguese': 'Português', 'Portuguese (Brazil)': 'Português (Brasil)', 'Position': 'Posição', 'Position Catalog': 'Catálogo de posições', 'Position Details': 'detalhamento do cargo', 'Position added': 'Cargo inserido', 'Position deleted': 'Cargo excluído', 'Position updated': 'Posição atualizada', 'Positions': 'cargos', 'Postcode': 'Código Postal', 'Poultry': 'Aves', 'Poultry restocking, Rank': 'Reabastecimento de aves domésticas, posição', 'Pounds': 'Libras', 'Power Failure': 'Falha de Energia', 'Powered by Sahana Eden': 'Desenvolvido pela Sahana Eden', 'Pre-cast connections': 'Conexões-cast pré', 'Preferred Name': 'Nome Preferido', 'Pregnant women': 'Mulheres grávidas', 'Preliminary': 'Preliminar', 'Presence': 'Presença', 'Presence Condition': 'Condição de Presença', 'Presence Log': 'Log de Presença', 'Previous': 'Anterior', 'Primary Name': 'Nome Principal', 'Primary Occupancy': 'Principal Ocupação', 'Priority': 'priority', 'Priority from 1 to 9. 1 is most preferred.': 'Prioridade de 1 a 9. 1 é preferível', 'Private': 'Privado', 'Problem': 'Problema do', 'Problem Administration': 'Gestão de problema', 'Problem Details': 'Detalhes do Problema', 'Problem Group': 'Grupo do Problema', 'Problem Title': 'Título do Problema', 'Problem added': 'Problema incluído', 'Problem connecting to twitter.com - please refresh': 'Problema ao conectar-se ao twitter.com, tente novamente', 'Problem deleted': 'Problema Excluído', 'Problem updated': 'Problema Atualizado', 'Problems': 'Problemas', 'Procedure': 'Procedimento', 'Process Received Shipment': 'Processo recebeu embarque', 'Process Shipment to Send': 'Processar remessa a enviar', 'Profile': 'profile', 'Project': 'projeto', 'Project Details': 'Detalhes do Projeto', 'Project Status': 'Status do Projeto', 'Project Tracking': 'Acompanhamento do Projeto', 'Project added': 'Projeto incluído', 'Project deleted': 'Projeto Excluído', 'Project has no Lat/Lon': 'Projeto não possui Latitude/Longitude', 'Project updated': 'Projeto ATUALIZADO', 'Projection': 'Projeção', 'Projection Details': 'Detalhes da Projeção', 'Projection Type': 'Projection Type', 'Projection added': 'Projeção incluída', 'Projection deleted': 'Projeção excluída', 'Projection updated': 'Projecção atualizada', 'Projections': 'projeções', 'Projects': 'projetos', 'Property reference in the council system': 'Referência de propriedade no sistema do conselho', 'Protected resource': 'Recurso protegido', 'Protection': 'Protecção', 'Provide Metadata for your media files': 'Fornecer Metadados para os seus ficheiros media', 'Provide a password': 'Provide a password', 'Provide an optional sketch of the entire building or damage points. Indicate damage points.': 'Fornecer um retrato opcional de todo o edifício ou áreas danificadas. Pontos danos indicar.', 'Proxy-server': 'Servidor Proxy', 'Psychiatrics/Adult': 'Psiquiatras/Adulto', 'Psychiatrics/Pediatric': 'Psiquiatras/Pediátrica', 'Public': 'Público', 'Public Event': 'Evento público', 'Public and private transportation': 'Transporte Público e Privado', 'Public assembly': 'Assembléia Pública', 'Pull tickets from external feed': 'Pull de bilhetes alimentação externa', 'Punjabi': 'Punjabi', 'Purchase Date': 'Data de aquisição', 'Push tickets to external system': 'BILHETES Push PARA sistema externo', 'Pyroclastic Flow': 'Pyroclastic FLuxo', 'Pyroclastic Surge': 'Pyroclastic Aumento', 'Python Serial module not available within the running Python - this needs installing to activate the Modem': 'Módulo Serial Python não disponíveis no a execução Python-isto tem de instalar para ativar o Modem', 'Quantity': 'Quantidade', 'Quantity Committed': 'Quantidade Comprometida', 'Quantity Fulfilled': 'Quantidade Preenchida', "Quantity in %s's Inventory": 'Quantidade de %s do Inventário', 'Quantity in Transit': 'Quantidade em Trânsito', 'Quarantine': 'Quarentena', 'Queries': 'Buscas', 'Query': 'Busca', 'Queryable?': 'Consultável?', 'RC frame with masonry infill': 'Quadro de RC com aterros de alvenaria', 'RECORD A': 'Registro A', 'RECORD B': 'REGISTRO B', 'Race': 'Corrida', 'Radio': 'Radio', 'Radio Callsign': 'Rádio Chamada', 'Radio Details': 'Radio Details', 'Radiological Hazard': 'Risco Radiológico', 'Radiology': 'Radiologia', 'Railway Accident': 'Acidente Ferroviário', 'Railway Hijacking': 'Sequestro Ferroviário', 'Rain Fall': 'Queda de Chuva', 'Rapid Assessment': 'Avaliação Rápida', 'Rapid Assessment Details': 'Rápida Avaliação Detalhes', 'Rapid Assessment added': 'Rapid Avaliação incluído', 'Rapid Assessment deleted': 'Rápida Avaliação excluído', 'Rapid Assessment updated': 'Rapid avaliação atualizada', 'Rapid Assessments': 'Rapid Avaliações', 'Rapid Assessments & Flexible Impact Assessments': 'Rapid Avaliações & Flexível Impacto Avaliações', 'Rapid Close Lead': 'Fechamento Lead rápido', 'Rapid Data Entry': 'Entrada de dados rápida', 'Rating Scale': 'Escala de avaliação', 'Raw Database access': 'Acesso bruto a Base de dados', 'Read-Only': 'somente para leitura', 'Read-only': 'somente para leitura', 'Receive': 'Receber', 'Receive Items': 'Aceitar itens', 'Receive New Shipment': 'Receber Novos Embarques', 'Receive Shipment': 'Receber carregamento', 'Receive this shipment?': 'Receber esse embarque?', 'Received': 'Recebido', 'Received By': 'Recebido Por', 'Received By Person': 'Recebido Por Pessoa', 'Received Item Details': 'Detalhes do item recebido', 'Received Item deleted': 'Recebido item excluído', 'Received Item updated': 'Item recebido atualizado', 'Received Shipment Details': 'Lista de remessa de mercadorias/produtos', 'Received Shipment canceled': 'Remessa de produtos cancelada', 'Received Shipment canceled and items removed from Inventory': 'Recebido carregamento cancelado e itens removidos do inventário', 'Received Shipment updated': 'Carregamento Recebido Atualizado', 'Received Shipments': 'Carregamento de produtos recebido', 'Receiving and Sending Items': 'Receber e enviar Itens', 'Recipient': 'destinatário', 'Recipients': 'destinatários', 'Recommendations for Repair and Reconstruction or Demolition': 'Recomendações para reparo e reconstrução ou demolição', 'Record': 'registro', 'Record Details': 'Detalhes do Registro', 'Record Saved': 'Registro Gravado', 'Record added': 'Registro incluído', 'Record any restriction on use or entry': 'Registro de qualquer restrição à utilização ou entrada', 'Record deleted': 'Registro excluído', 'Record last updated': 'Último registro atualizado', 'Record not found': 'Registro não encontrado', 'Record not found!': 'Registro não encontrado!', 'Record updated': 'registro atualizado', 'Recording and Assigning Assets': 'Ativos de Gravação e Designação', 'Records': 'Registros', 'Recovery': 'recuperação', 'Recovery Request': 'pedido de recuperação', 'Recovery Request added': 'Pedido de recuperação adicionado', 'Recovery Request deleted': 'Pedido de recuperação apagado', 'Recovery Request updated': 'Pedido de recuperação atualizado', 'Recovery Requests': 'Pedidos de recuperação', 'Recruitment': 'Recrutamento', 'Recurring': 'Recorrente', 'Recurring Cost': 'Custo recorrente', 'Recurring cost': 'Custo recorrente', 'Recurring costs': 'Custos recorrentes', 'Red': 'vermelho', 'Red Cross / Red Crescent': 'Cruz Vermelha / Red Crescent', 'Reference Document': 'Documento de referência', 'Refresh Rate (seconds)': 'Taxa de Atualização (Segundos)', 'Region Location': 'Localizaçao da regiao', 'Regional': 'regional', 'Regions': 'Regiões', 'Register': 'registro', 'Register Person': 'REGISTRAR PESSOA', 'Register Person into this Camp': 'Registrar Pessoa neste Acampamento', 'Register Person into this Shelter': 'REGISTRAR PESSOA PARA ESTE Abrigo', 'Register them as a volunteer': 'Registrá-los como voluntários', 'Registered People': 'Pessoas Registradas', 'Registered users can': 'Os usuários registrados podem', 'Registration': 'Inscrição', 'Registration Details': 'Detalhes da Inscrição', 'Registration added': 'Inscrição adicionada', 'Registration entry deleted': 'Inscrição excluída', 'Registration is still pending approval from Approver (%s) - please wait until confirmation received.': 'Registro ainda está pendente de aprovação do Aprovador (%s) - Por favor, aguarde até a confirmação recebida.', 'Registration key': 'Registration key', 'Registration updated': 'Inscrição atualizada', 'Rehabilitation/Long Term Care': 'Reabilitação/Cuidados de Longo Termo', 'Reinforced masonry': 'Alvenaria reforçada', 'Rejected': 'rejeitado', 'Relative Details': 'Relative Details', 'Relative added': 'Relative added', 'Relative deleted': 'Relative deleted', 'Relative updated': 'Relative updated', 'Relatives': 'Relatives', 'Relief': 'Alivio', 'Relief Team': 'Equipe de socorro', 'Religion': 'Religião', 'Religious': 'Religiosas', 'Religious Leader': 'Líder religioso', 'Relocate as instructed in the <instruction>': 'Relocalizar conforme instruído no', 'Remove': 'remover', 'Remove Activity from this event': 'Remove Activity from this event', 'Remove Asset from this event': 'Remover ativo deste evento', 'Remove Asset from this scenario': 'Remover ativo deste cenário', 'Remove Document from this request': 'Remove Document from this request', 'Remove Facility from this event': 'Remover recurso deste evento', 'Remove Facility from this scenario': 'Remover recurso deste cenário', 'Remove Human Resource from this event': 'REMOVER RECURSOS HUMANOS A partir deste evento', 'Remove Human Resource from this scenario': 'REMOVER RECURSOS HUMANOS A partir deste cenário', 'Remove Item from Inventory': 'Remover Item do Inventário', 'Remove Map Configuration from this event': 'REMOVER Mapa de configuração a partir deste evento', 'Remove Map Configuration from this scenario': 'REMOVER Mapa de configuração a partir deste cenário', 'Remove Person from Commitment': 'Remove Person from Commitment', 'Remove Skill': 'Remove Skill', 'Remove Skill from Request': 'Remove Skill from Request', 'Remove Task from this event': 'Remove Task from this event', 'Remove Task from this scenario': 'Remove Task from this scenario', 'Remove this asset from this event': 'REMOVER este recurso a partir deste evento', 'Remove this asset from this scenario': 'Remover este recurso deste cenário', 'Remove this facility from this event': 'Remove this facility from this event', 'Remove this facility from this scenario': 'Remove this facility from this scenario', 'Remove this human resource from this event': 'Remove this human resource from this event', 'Remove this human resource from this scenario': 'Remove this human resource from this scenario', 'Remove this task from this event': 'Remove this task from this event', 'Remove this task from this scenario': 'Remove this task from this scenario', 'Repair': 'REPARO', 'Repaired': 'Reparado', 'Repeat your password': 'REPITA sua senha', 'Replace': 'TROCAR', 'Replace if Master': 'Substituir se Principal', 'Replace if Newer': 'Substituir se o Mais Recente', 'Report': 'Relatório', 'Report Another Assessment...': 'Adicionar Outro Relatório De Avaliação....', 'Report Details': 'Detalhes do Relatório', 'Report Resource': 'Reportar Recursos', 'Report Types Include': 'Tipos de relatório incluem', 'Report added': 'Relatório incluído', 'Report deleted': 'Relatório removido', 'Report my location': 'Relate meu local', 'Report the contributing factors for the current EMS status.': 'Reportar os factores que contribuem para a situação EMS actual.', 'Report the contributing factors for the current OR status.': 'Reportar os factores que contribuem para a situação OR actual.', 'Report them as found': 'Reportar como encontrados', 'Report them missing': 'Reportar como perdidos', 'Report updated': 'Relatório atualizado', 'ReportLab module not available within the running Python - this needs installing for PDF output!': 'O módulo de ReportLab não disponíveis na execução Python - isto requer a instalação para a entrega em PDF!', 'ReportLab not installed': 'ReportLab não instalado', 'Reporter': 'Relator', 'Reporter Name': 'Nome do Relator', 'Reporting on the projects in the region': 'Relatórios sobre os projetos na região', 'Reports': 'Relatórios', 'Request': 'Pedido', 'Request Added': 'Pedido Incluído', 'Request Canceled': 'Pedido Cancelado', 'Request Details': 'Detalhes do Pedido', 'Request From': 'Pedido De', 'Request Item': 'Item de pedido', 'Request Item Details': 'Detalhes do item de pedido', 'Request Item added': 'Item incluído no pedido', 'Request Item deleted': 'Item de pedido excluído', 'Request Item from Available Inventory': 'PEDIDO DE Item de Inventário Disponível', 'Request Item updated': 'Pedido actualizado', 'Request Items': 'Itens de pedido', 'Request New People': 'Request New People', 'Request Status': 'Status do Pedido', 'Request Type': 'Tipo de Pedido', 'Request Updated': 'Solicitação atualizada', 'Request added': 'Pedido adicionado', 'Request deleted': 'Solicitação excluída', 'Request for Role Upgrade': 'Pedido de upgrade de função', 'Request updated': 'Pedido actualizado', 'Request, Response & Session': 'Pedido, Resposta & Sessão', 'Requested': 'solicitado', 'Requested By': 'Solicitado Por', 'Requested By Facility': 'Solicitado Pela Instalação', 'Requested By Site': 'Solicitado Por Site', 'Requested From': 'Solicitada a Partir de', 'Requested Items': 'Itens solicitados', 'Requested Skill': 'Requested Skill', 'Requested Skill Details': 'Requested Skill Details', 'Requested Skill updated': 'Requested Skill updated', 'Requested Skills': 'Requested Skills', 'Requested by': 'Solicitado Por', 'Requested on': 'Em solicitada', 'Requester': 'Solicitante', 'Requests': 'Pedidos', 'Requests Management': 'Gerenciamento de Pedidos', 'Required Skill': 'Required Skill', 'Requires Login!': 'É necessário fazer login!', 'Rescue and recovery': 'Resgate e recuperação', 'Reset': 'Restaurar', 'Reset Password': 'restabelecer senha', 'Resolve': 'Resolver', 'Resolve Conflict': 'Resolver Conflito', 'Resolve link brings up a new screen which helps to resolve these duplicate records and update the database.': 'Resolva link que levará até uma nova tela que ajudará a resolver esses registros duplicados e atualizar o banco de dados.', 'Resource': 'Recurso', 'Resource Details': 'Detalhes do recurso', 'Resource added': 'Recurso incluído', 'Resource deleted': 'Recurso Excluído', 'Resource updated': 'Recurso atualizado', 'Resources': 'Recursos', 'Respiratory Infections': 'Infecções respiratórias', 'Response': 'Resposta', 'Restricted Access': 'Acesso Restrito', 'Restricted Use': 'Uso restrito', 'Results': 'results', 'Retail Crime': 'Crime a varejo', 'Retrieve Password': 'Recuperar Senha', 'Return': 'Retorno', 'Return to Request': 'Retornar ao pedido', 'Returned': 'Retornado', 'Returned From': 'Retornado a partir de', 'Returned Status': 'Retornado Status', 'Review Incoming Shipment to Receive': 'Revisão da Remessa de Entrada para Receber', 'Rice': 'Arroz', 'Riot': 'Motim', 'River': 'Rio', 'River Details': 'Detalhes do Rio', 'River added': 'Rio adicionado', 'River deleted': 'Rio deletado', 'River updated': 'Rio atualizado', 'Rivers': 'Rios', 'Road Accident': 'Acidente na rua/estrada', 'Road Closed': 'Rua/Estrada fechada', 'Road Conditions': 'Condições da Estrada', 'Road Delay': 'Atraso de Estrada', 'Road Hijacking': 'Sequestro de Estrada', 'Road Usage Condition': 'Condição de Uso de Estrada', 'Roads Layer': 'Roads Layer', 'Role': 'Função', 'Role Details': 'Detalhes da Função', 'Role Required': 'Função requerida', 'Role Updated': 'Funções atualizadas', 'Role added': 'Regra incluída', 'Role deleted': 'Função excluída', 'Role updated': 'Funções atualizadas', 'Role-based': 'Baseada em regra', 'Roles': 'Funções', 'Roles Permitted': 'Funções Permitidas', 'Roof tile': 'Telhado lado a lado', 'Roofs, floors (vertical load)': 'Telhados, pisos (carga vertical)', 'Room': 'Sala', 'Room Details': 'Detalhes da sala', 'Room added': 'Sala incluída', 'Room deleted': 'Sala excluída', 'Room updated': 'Sala atualizada', 'Rooms': 'Salas', 'Roster': 'Lista', 'Row Choices (One Per Line)': 'Opções da linha (Um por linha)', 'Rows in table': 'Linhas na tabela', 'Rows selected': 'Linhas Selecionadas', 'Run Functional Tests': 'Executar testes funcionais', 'Run Interval': 'Intervalo de execução', 'Running Cost': 'Custo corrente', 'Russian': 'Russian', 'SMS Modems (Inbound & Outbound)': 'SMS Modems (Inbound & Outbound)', 'SMS Outbound': 'SMS Outbound', 'SMS Settings': 'SMS Settings', 'SMS settings updated': 'SMS settings updated', 'SMTP to SMS settings updated': 'SMTP to SMS settings updated', 'Safe environment for vulnerable groups': 'Ambiente seguro para grupos vulneráveis', 'Safety Assessment Form': 'Formulário de avaliação de segurança', 'Safety of children and women affected by disaster?': 'Segurança das crianças e mulheres afetadas pela catástrofe?', 'Sahana Administrator': 'Sahana AdmiNistrador', 'Sahana Agasti': 'Sahana Agasti', 'Sahana Blue': 'Sahana Azul', 'Sahana Community Chat': 'Sahana COMUNIDADE de BATE-PAPO', 'Sahana Eden': 'Sahana Eden', 'Sahana Eden <=> Other': 'Sahana Eden <=> Outros', 'Sahana Eden <=> Sahana Eden': 'Sahana Éden <=> Sahana Éden', 'Sahana Eden Humanitarian Management Platform': 'plataforma de gerenciamento humanitário Sahana Éden', 'Sahana Eden Website': 'SITE Sahana Éden', 'Sahana Green': 'Sahana Verde', 'Sahana Steel': 'Sahana Steel', 'Sahana access granted': 'Acesso Sahana CONCEDIDO', 'Salted Fish': 'Peixe Salgado', 'Sanitation problems': 'Problemas de saneamento', 'Satellite': 'satélite', 'Satellite Layer': 'Satellite Layer', 'Satellite Office': 'Escritório experimental', 'Saturday': 'SAturday', 'Save': 'armazenar', 'Saved.': 'armazenado.', 'Saving...': 'Guardando...', 'Scale of Results': 'Nível de Resultados', 'Scanned Copy': 'Scanned Copy', 'Scanned Forms Upload': 'Scanned Forms Upload', 'Scenario': 'Cenário', 'Scenario Details': 'Detalhes do Cenário', 'Scenario added': 'Cenário incluído', 'Scenario deleted': 'Cenário excluído', 'Scenario updated': 'Cenário atualizado', 'Scenarios': 'Cenários', 'Schedule': 'Horário', 'Schema': 'Esquema', 'School': 'Escola', 'School Closure': 'Encerramento Escolar', 'School Lockdown': 'Bloqueio escolar', 'School Teacher': 'Professor de escola', 'School activities': 'Actividades escolares', 'School assistance': 'Assistência escolar', 'School attendance': 'Presença escolar', 'School destroyed': 'Escola Destruída', 'School heavily damaged': 'Escola fortemente danificada', 'School tents received': 'Tendas da escola recebidas', 'School tents, source': 'Tendas de escolha, origem', 'School used for other purpose': 'Escola utilizada para outros fins', 'School/studying': 'Escola/estudando', 'Schools': 'Escolas', 'Search': 'Pesquisar', 'Search Activities': 'procurar atividades', 'Search Activity Report': 'Relatório de pesquisa de atividades', 'Search Addresses': 'procurar endereços', 'Search Alternative Items': 'Procurar itens alternativos', 'Search Assessment Summaries': 'Procura De Avaliação De RESUMOS', 'Search Assessments': 'Avaliações de procura', 'Search Asset Assignments': 'Procurar ATIVO Designações', 'Search Asset Log': 'Procurar log de ativo', 'Search Assets': 'Procurar Recursos', 'Search Baseline Type': 'Procurar Typo de Base', 'Search Baselines': 'Procurar Bases', 'Search Brands': 'Procurar Marcas', 'Search Budgets': 'Procura Orçamentos', 'Search Bundles': 'PACOTES Configuráveis de procura', 'Search Camp Services': 'Procurar Serviços de Acampamento', 'Search Camp Types': 'Procurar Tipos De Acampamento', 'Search Camps': 'Procurar acampamentos', 'Search Catalog Items': 'Itens de procura De Catálogo', 'Search Catalogs': 'Procurar nos Catálogos', 'Search Certificates': 'Procurar Certificados', 'Search Certifications': 'Procurar Certificações', 'Search Checklists': 'Listas De procura', 'Search Cluster Subsectors': 'Procura De Cluster Subsectores', 'Search Clusters': 'Clusters de procura', 'Search Commitment Items': 'Itens de procura Compromisso', 'Search Commitments': 'Compromissos de procura', 'Search Committed People': 'Search Committed People', 'Search Competencies': 'Procurar Competências', 'Search Competency Ratings': 'Procurar Indices de Competência', 'Search Contact Information': 'Procurar informações de contato', 'Search Contacts': 'Buscar contatos', 'Search Course Certificates': 'procura Certificados de Curso', 'Search Courses': 'Procurar Cursos', 'Search Credentials': 'Credenciais de busca', 'Search Documents': 'Pesquisar documentos', 'Search Donors': 'Procura de Doadores', 'Search Entries': 'Pesquisar Entradas', 'Search Events': 'Pesquisar Eventos', 'Search Facilities': 'Pesquisar Instalações', 'Search Feature Class': 'Pesquisar classe de dispositivos', 'Search Feature Layers': 'Pesquisar camadas do dispositivo', 'Search Flood Reports': 'Pesquisar relatórios de inundação', 'Search GPS data': 'Search GPS data', 'Search Groups': 'Buscar Grupos', 'Search Homes': 'Search Homes', 'Search Human Resources': 'Pesquise recursos humanos.', 'Search Identity': 'Buscar Identidade', 'Search Images': 'Procurar Imagens', 'Search Impact Type': 'Procurar Tipo de Impacto', 'Search Impacts': 'Procurar Impactos', 'Search Import Files': 'Search Import Files', 'Search Incident Reports': 'Procurar Relatórios de Incidentes', 'Search Inventory Items': 'Procurar Entradas De Inventário', 'Search Inventory items': 'Procurar Entradas De Inventário', 'Search Item Categories': 'Buscar categorias de Item', 'Search Item Packs': 'Buscar pocotes de itens', 'Search Items': 'Buscar Itens', 'Search Job Roles': 'Pesquise papéis de trabalho', 'Search Keys': 'Procurar chaves', 'Search Kits': 'Procurar kits', 'Search Layers': 'Procurar camadas', 'Search Level': 'Search Level', 'Search Level 1 Assessments': 'Procurar Avaliações Nível 1', 'Search Level 2 Assessments': 'Procurar Avaliações Nível 2', 'Search Locations': 'Procurar Localidades', 'Search Log Entry': 'Procura de entrada de Log', 'Search Map Configurations': 'Pesquise mapa de configurações.', 'Search Markers': 'Marcadores De procura', 'Search Member': 'Procurar Membro', 'Search Membership': 'Procurar filiação', 'Search Memberships': 'Pesquisar Associações', 'Search Missions': 'Procurar Missões', 'Search Need Type': 'Procura Precisa De Tipo', 'Search Needs': 'Procura precisa', 'Search Notes': 'Notes procura', 'Search Offices': 'Escritórios de procura', 'Search Organizations': 'Pesquisar Organizações', 'Search Patients': 'Search Patients', 'Search Peer': 'PROCURA Par', 'Search Personal Effects': 'Procura objetos pessoais', 'Search Persons': 'Buscar Membros', 'Search Photos': 'Procura Fotos', 'Search Population Statistics': 'Procurar Estatística de População', 'Search Positions': 'Procura de Posições', 'Search Problems': 'Procura de Problemas', 'Search Projections': 'Projeções de procura', 'Search Projects': 'Procura de Projetos', 'Search Rapid Assessments': 'Procura de Avaliações Rápidas', 'Search Received Items': 'Procura de Itens Recebidos', 'Search Received Shipments': 'Embarques de procura Recebidos', 'Search Records': 'registros de procura', 'Search Registations': 'Registations procura', 'Search Registration Request': 'Pedido de registro de procura', 'Search Relatives': 'Search Relatives', 'Search Report': 'Procurar Relatório', 'Search Reports': 'Procurar Relatórios', 'Search Request': 'pedido de pesquisa', 'Search Request Items': 'Pedido de procura de Itens', 'Search Requested Items': 'Procura de itens solicitados', 'Search Requested Skills': 'Search Requested Skills', 'Search Requests': 'Procura de solicitações', 'Search Resources': 'Pesquisa de recursos', 'Search Rivers': 'Rios procura', 'Search Roles': 'Pesquisa de papéis', 'Search Rooms': 'Procurar Salas', 'Search Scenarios': 'Procurar cenários', 'Search Sections': 'As Seções de procura', 'Search Sectors': 'Procurar Setores', 'Search Sent Items': 'Procurar Itens Enviados', 'Search Sent Shipments': 'Procurar Despachos Enviados', 'Search Service Profiles': 'Serviço de procura Perfis', 'Search Settings': 'Definições de Pesquisa', 'Search Shelter Services': 'Procura Abrigo de serviços', 'Search Shelter Types': 'Procura tipos de Abrigo', 'Search Shelters': 'Procurar Abrigos', 'Search Skill Equivalences': 'Procurar equivalencias de habilidades', 'Search Skill Provisions': 'Procurar Disposições de habilidade', 'Search Skill Types': 'Pesquisar Tipos de Habilidades', 'Search Skills': 'Pesquisar Habilidades', 'Search Solutions': 'Pesquisar Soluções', 'Search Staff': 'Busca de pessoal', 'Search Staff Types': 'Busca de tipo de pessoal', 'Search Staff or Volunteer': 'Procurar Funcionário ou Voluntário', 'Search Status': 'Busca de status', 'Search Subscriptions': 'Busca de assinaturas', 'Search Subsectors': 'Buscar subsetores', 'Search Support Requests': 'Pedidos de suporte a pesquisa', 'Search Tasks': 'Tarefa de Pesquisa', 'Search Teams': 'Times de pesquisa', 'Search Themes': 'Temas de pesquisa', 'Search Tickets': 'Buscar Bilhetes', 'Search Tracks': 'Procurar Trilhas', 'Search Trainings': 'Buscar Treinamentos', 'Search Twitter Tags': 'Procurar Twitter Tags', 'Search Units': 'Procura Unidades', 'Search Users': 'Procurar Usuários', 'Search Vehicle Details': 'Search Vehicle Details', 'Search Vehicles': 'Search Vehicles', 'Search Volunteer Availability': 'Buscar Disponibilidade para Voluntáriado', 'Search Volunteers': 'Procura Voluntários', 'Search Warehouses': 'procura Warehouses', 'Search and Edit Group': 'Procurar e editar GRUPO', 'Search and Edit Individual': 'Procurar e Editar Individual', 'Search for Staff or Volunteers': 'Pesquise por funcionários ou voluntários', 'Search for a Location by name, including local names.': 'Pesquisar local por nome, incluindo nomes locais.', 'Search for a Person': 'Procurar Pessoa', 'Search for a Project': 'Procurar Projecto', 'Search for a shipment by looking for text in any field.': 'Procurar carga fazendo uma pesquisa de texto em qualquer campo.', 'Search for a shipment received between these dates': 'Procurar carga recebida entre estas datas', 'Search for a vehicle by text.': 'Search for a vehicle by text.', 'Search for an Organization by name or acronym': 'Procurar por uma Organização por nome ou iniciais', 'Search for an Organization by name or acronym.': 'Procurar por uma organização por nome ou iniciais.', 'Search for an asset by text.': 'Pesquisar um recurso por texto.', 'Search for an item by category.': 'Procurar por categoria.', 'Search for an item by Year of Manufacture.': 'Search for an item by Year of Manufacture.', 'Search for an item by brand.': 'Search for an item by brand.', 'Search for an item by catalog.': 'Search for an item by catalog.', 'Search for an item by category.': 'Search for an item by category.', 'Search for an item by its code, name, model and/or comment.': 'Search for an item by its code, name, model and/or comment.', 'Search for an item by text.': 'Procurar por texto.', 'Search for asset by country.': 'Procurar bens por país.', 'Search for asset by location.': 'Search for asset by location.', 'Search for office by country.': 'Procurar escritórios por país.', 'Search for office by location.': 'Search for office by location.', 'Search for office by organization.': 'Procurar escritórios por organização.', 'Search for office by text.': 'Procura por texto do gabinete.', 'Search for vehicle by location.': 'Search for vehicle by location.', 'Search for warehouse by country.': 'Pesquise por depósito por país.', 'Search for warehouse by location.': 'Search for warehouse by location.', 'Search for warehouse by organization.': 'Pesquise por depósito por organização.', 'Search for warehouse by text.': 'Pesquise por depósito via campo-texto.', 'Search here for a person record in order to:': 'Buscar aqui por um registro de pessoa a fim de:', 'Search messages': 'Mensagens de Procura', 'Searching for different groups and individuals': 'Procurar diferentes grupos e indivíduos', 'Secondary Server (Optional)': 'Servidor secundário (opcional)', 'Seconds must be a number between 0 and 60': 'Segundos deve ser um número entre 0 e 60', 'Section': 'Section', 'Section Details': 'Seção Detalhes', 'Section deleted': 'Seção excluído', 'Section updated': 'Seção atualizada', 'Sections': 'Seções', 'Sections that are part of this template': 'Sections that are part of this template', 'Sections that can be selected': 'Sections that can be selected', 'Sector': 'setor', 'Sector Details': 'Detalhes do Setor', 'Sector added': 'Sector incluído', 'Sector deleted': 'Sector apagado', 'Sector updated': 'Setor atualizado', 'Sector(s)': 'Setor(es)', 'Sectors': 'Setores', 'Security Status': 'Status de Segurança', 'Security problems': 'Problemas de Segurança', 'See All Entries': 'Ver todas as entradas', 'See all': 'Ver tudo', 'See unassigned recovery requests': 'Consulte Pedidos de recuperação designado', 'Seen': 'Visto', 'Select': 'select', 'Select Items from the Request': 'Selecionar itens do pedido', 'Select Items from this Inventory': 'Selecionar itens a partir deste Inventário', 'Select Organization': 'Selecionar Organização', 'Select Skills from the Request': 'Select Skills from the Request', "Select a Room from the list or click 'Add Room'": "Escolha uma sala da lista ou clique 'Incluir sala'", 'Select a location': 'Selecionar um local', "Select a manager for status 'assigned'": "Select a manager for status 'assigned'", "Select a person in charge for status 'assigned'": "Selecione uma pessoa responsável para status 'DESIGNADO'", 'Select a question from the list': 'Selecione uma pergunta a partir da lista', 'Select a range for the number of total beds': 'Selecione um intervalo para o número de camas total', 'Select all that apply': 'Selecione todas as que se applicam', 'Select an Organization to see a list of offices': 'Selecione uma organização para ver uma lista de escritórios', 'Select the overlays for Assessments and Activities relating to each Need to identify the gap.': 'Selecione as sobreposições de avaliação e actividades relacionadas com cada necessidade para identificar as lacunas.', 'Select the person assigned to this role for this project.': 'Selecione a pessoa designada para essa função neste projeto.', "Select this if all specific locations need a parent at the deepest level of the location hierarchy. For example, if 'district' is the smallest division in the hierarchy, then all specific locations would be required to have a district as a parent.": "Selecione isto se todas as localidades especificas precisarem de um pai no nível mais alto da hierarquia. Por exemplo, se 'distrito' é a menor divisão na hierarquia e, em seguida, todos os locais específicos seriam obrigados a ter um distrito como um pai.", "Select this if all specific locations need a parent location in the location hierarchy. This can assist in setting up a 'region' representing an affected area.": 'Selecione isto se todos os locais específicos de uma posição pai na hierarquia do local. Isso pode ajudar na configuração de uma "região" representando uma área afetada.', 'Select to show this configuration in the Regions menu.': 'Selecione para mostrar essa configuração no menu regiões.', 'Select to show this configuration in the menu.': 'Select to show this configuration in the menu.', 'Selected Jobs': 'Selected Jobs', 'Selects what type of gateway to use for outbound SMS': 'Selects what type of gateway to use for outbound SMS', 'Selects whether to use a Modem, Tropo or other Gateway for sending out SMS': 'Selecione se vau utilizar um Modem, Tropo ou outro Gateway para enviar SMS', 'Send': 'Envie', 'Send Alerts using Email &/or SMS': 'Envio de alertas usando e-mail e/ou SMS', 'Send Commitment as Shipment': 'Enviar compromisso como carregamento', 'Send New Shipment': 'Enviar nova remessa', 'Send Notification': 'Enviar notificação', 'Send Shipment': 'Enviar Carregamento', 'Send a message to this person': 'Enviar uma mensagem para esta pessoa', 'Send a message to this team': 'Enviar uma mensagem para essa equipe', 'Send from %s': 'Enviar de %s', 'Send message': 'Enviar mensagem', 'Send new message': 'Enviar nova mensagem', 'Sends & Receives Alerts via Email & SMS': 'Envia & Recebe Alertas via E-Mail & SMS', 'Senior (50+)': 'Sênior (50+)', 'Sent': 'Enviadas', 'Sent By': 'Enviado Por', 'Sent By Person': 'Enviado Por Pessoa', 'Sent Item Details': 'Detalhes do Item enviado', 'Sent Item deleted': 'Enviado Item excluído', 'Sent Item updated': 'Enviado Item atualizado', 'Sent Shipment Details': 'Enviado Detalhes de Embarque', 'Sent Shipment canceled': 'Enviado Carregamento cancelado', 'Sent Shipment canceled and items returned to Inventory': 'Enviado Carregamento cancelado e itens retornado ao Inventário', 'Sent Shipment updated': 'Enviado Embarque atualizado', 'Sent Shipments': 'Remessas Enviadas', 'Separated children, caregiving arrangements': 'Crianças separados, disposições caregiving', 'Serial Number': 'Numero de série', 'Series': 'serie', 'Server': 'servidor', 'Service': 'serviço', 'Service Catalog': 'Catálogo de Serviços', 'Service Due': 'Service Due', 'Service or Facility': 'Serviço ou facilidade', 'Service profile added': 'Perfil de serviço adicionado', 'Service profile deleted': 'Perfil de serviço Excluído', 'Service profile updated': 'Perfil de serviço atualizado', 'Services': 'Serviços', 'Services Available': 'Serviços Disponíveis', 'Set Base Site': 'Definir base de dados do site', 'Set By': 'Definido por', 'Set True to allow editing this level of the location hierarchy by users who are not MapAdmins.': 'Configure como True para permitir que este nível da hierarquia do local possa ser editado por usuários que não sejam administradores.', 'Setting Details': 'Detalhes de ajuste', 'Setting added': 'Configuração adicionada', 'Setting deleted': 'Configuração Excluída', 'Setting updated': 'Configuração atualizada', 'Settings': 'Ajustes', 'Settings updated': 'Ajustes atualizados', 'Settings were reset because authenticating with Twitter failed': 'As configurações foram redefinidas porque a autenticação com Twitter falhou', 'Settings which can be configured through the web interface are available here.': 'As configurações que podem ser definidas através da interface da web estão disponíveis aqui.', 'Severe': 'Severo', 'Severity': 'Gravidade', 'Share a common Marker (unless over-ridden at the Feature level)': 'Compartilhar um marcador comum (a não ser que abaixo-assinado ao nível de Componente)', 'Shelter': 'Abrigo', 'Shelter & Essential NFIs': 'Abrigo & NFIs Essenciais', 'Shelter Details': 'Detalhes de Abrigo', 'Shelter Name': 'Nome de Abrigo', 'Shelter Registry': 'Registro de Abrigo', 'Shelter Service': 'Serviço de Abrigo', 'Shelter Service Details': 'Detalhes do serviço de abrigo', 'Shelter Service added': 'Serviço de Abrigo incluído', 'Shelter Service deleted': 'Serviço de Abrigo excluído', 'Shelter Service updated': 'Atualização de serviços de abrigo', 'Shelter Services': 'Serviços de abrigo', 'Shelter Type': 'Tipo de abrigo', 'Shelter Type Details': 'Detalhes do tiipo de abrigo', 'Shelter Type added': 'Tipo de abrigo incluído', 'Shelter Type deleted': 'Tipo de abrigo excluído', 'Shelter Type updated': 'Abrigos Tipo De atualização', 'Shelter Types': 'Tipos De abrigo', 'Shelter Types and Services': 'Abrigo Tipos e serviços', 'Shelter added': 'Abrigo incluído', 'Shelter deleted': 'Abrigo excluído', 'Shelter updated': 'Abrigo atualizado', 'Shelter/NFI Assistance': 'Abrigo/ Assistência NFI', 'Shelters': 'Abrigos', 'Shipment Created': 'Embarque Criado', 'Shipment Items': 'Itens de Carregamento', 'Shipment Items received by Inventory': 'Itens de Remessa recebidos pelo Inventário', 'Shipment Items sent from Inventory': 'Itens de Remessa enviados pelo Inventário', 'Shipment to Send': 'Carga para Enviar', 'Shipments': 'Remessas', 'Shipments To': 'Remessas Para', 'Shooting': 'Tiroteio', 'Short Assessment': 'Curta Avaliação', 'Short Description': 'Breve Descrição', 'Show Checklist': 'Mostrar Lista De Verificação', 'Show Details': 'Mostrar detalhes', 'Show Map': 'Mostrar Mapa', 'Show Region in Menu?': 'Mostrar Região no Menu?', 'Show in Menu?': 'Show in Menu?', 'Show on Map': 'Mostrar no mapa', 'Show on map': 'Mostrar no mapa', 'Sign-up as a volunteer': 'Inscrever-se como um voluntário', 'Sign-up for Account': 'Inscrever-se para conta', 'Sign-up succesful - you should hear from us soon!': 'Sua inscriçao foi feita com sucesso - aguarde notícias em breve!', 'Sindhi': 'Sindi', 'Single PDF File': 'Single PDF File', 'Site': 'site', 'Site Administration': 'Administração do site', 'Site or Location': 'Sítio ou Local', 'Sites': 'sites', 'Situation': 'Situação', 'Situation Awareness & Geospatial Analysis': 'Situação Reconhecimento & Geoespaciais Análise', 'Sketch': 'Esboço', 'Skill': 'QUALIFICAÇÃO', 'Skill Catalog': 'Catálogo de Conhecimentos', 'Skill Details': 'Detalhes das habilidades', 'Skill Equivalence': 'Equivalência de Conhecimentos', 'Skill Equivalence Details': 'Detalhes da Equivalência de Habilidade', 'Skill Equivalence added': 'Equivalência de Habilidade incluída', 'Skill Equivalence deleted': 'Equivalência de Habilidade excluída', 'Skill Equivalence updated': 'Equivalência de Habilidade atualizada', 'Skill Equivalences': 'Equivalências de habilidade', 'Skill Provision': 'Provisão de Habilidade', 'Skill Provision Catalog': 'Catálogo de habilidades disponível', 'Skill Provision Details': 'Detalhes de habilidades disponível', 'Skill Provision added': 'Provisão de Habilidade incluída', 'Skill Provision deleted': 'Catalogo de habilidades excluído', 'Skill Provision updated': 'Catálogo de habilidades atualizado', 'Skill Provisions': 'Habilidades disponíveis', 'Skill Status': 'Status da Habilidade', 'Skill TYpe': 'Tipo de habilidade', 'Skill Type': 'Skill Type', 'Skill Type Catalog': 'Catálogo de tipos de habilidades', 'Skill Type Details': 'Detalhes do tipo de habilidade', 'Skill Type added': 'Tipo de habilidade incluído', 'Skill Type deleted': 'Tipo de habilidade excluído', 'Skill Type updated': 'Tipo de habilidade atualizado', 'Skill Types': 'Tipos de habilidade', 'Skill added': 'Habilidade incluída', 'Skill added to Request': 'Skill added to Request', 'Skill deleted': 'Habilidade Excluída', 'Skill removed': 'Skill removed', 'Skill removed from Request': 'Skill removed from Request', 'Skill updated': 'Habilidade ATUALIZADA', 'Skill/Training': 'Habilidades/Treinamento', 'Skills': 'Habilidades', 'Skills Catalog': 'Catálogo de habilidades', 'Skills Management': 'Gerenciamento das Habilidades', 'Skype': 'Skype', 'Skype ID': 'ID DO Skype', 'Slightly Damaged': 'Ligeiramente Danificado', 'Slope failure, debris': 'falha de inclinação, destroços', 'Small Trade': 'Pequeno Comércio', 'Smoke': 'Fumaça', 'Snapshot': 'snapshot', 'Snapshot Report': 'Relatório de snapshot', 'Snow Fall': 'Queda de neve , nevasca', 'Snow Squall': 'Rajada de neve', 'Soil bulging, liquefaction': 'abaulamento do solo, liquefação', 'Solid waste': 'Resíduos sólidos', 'Solution': 'Solução', 'Solution Details': 'Detalhes da Solução', 'Solution Item': 'Item de Solução', 'Solution added': 'Solução adicionada', 'Solution deleted': 'Solução excluída', 'Solution updated': 'Solução atualizada', 'Solutions': 'Soluções', 'Some': 'Algum', 'Sorry - the server has a problem, please try again later.': 'Sorry - the server has a problem, please try again later.', 'Sorry that location appears to be outside the area of the Parent.': 'Desculpe ! Essa localização está fora da área do Pai.', 'Sorry that location appears to be outside the area supported by this deployment.': 'Desculpe ! Essa localização parece estar fora da área suportada por esta implementação.', 'Sorry, I could not understand your request': 'Desculpe, eu não pude entender o seu pedido', 'Sorry, only users with the MapAdmin role are allowed to create location groups.': 'Desculpe, apenas usuários com o perfil MapAdmin tem permissão para criar locais dos grupos.', 'Sorry, only users with the MapAdmin role are allowed to edit these locations': 'Desculpe, apenas usuários com o perfil MapAdmin tem permissão para editar estes locais', 'Sorry, something went wrong.': 'Desculpe, algo deu errado.', 'Sorry, that page is forbidden for some reason.': 'Desculpe ! Esta página tem acesso restrito por alguma razão.', 'Sorry, that service is temporary unavailable.': 'Desculpe ! Este serviço está indisponível temporariamente.', 'Sorry, there are no addresses to display': 'Desculpe ! Não há endereços para visualizar.', "Sorry, things didn't get done on time.": 'Desculpe ! As tarefas não foram concluídas em tempo útil.', "Sorry, we couldn't find that page.": 'Desculpe, não foi possível localizar essa página.', 'Source': 'source', 'Source ID': 'ID de origem', 'Source Time': 'Origem do tempo', 'Sources of income': 'Fontes de rendimento', 'Space Debris': 'Destroços Espaciais', 'Spanish': 'espanhol', 'Special Ice': 'Gelo Especial', 'Special Marine': 'Marinha especial', 'Specialized Hospital': 'Hospital especializado.', 'Specific Area (e.g. Building/Room) within the Location that this Person/Group is seen.': 'Área específica (exemplo: edifício/quarto) com a localização de onde essa pessoa/grupo é visto.', 'Specific locations need to have a parent of level': 'Locais específicos precisam ter um nível paterno.', 'Specify a descriptive title for the image.': 'Especifique um título descritivo para a imagem.', 'Specify the bed type of this unit.': 'Especifique o tipo de cama dessa unidade.', 'Specify the number of available sets': 'Especificar o número de conjuntos disponíveis', 'Specify the number of available units (adult doses)': 'Especifique o número de unidades disponíveis (doses para adultos)', 'Specify the number of available units (litres) of Ringer-Lactate or equivalent solutions': 'Especificar o número de unidades disponíveis (litros) de Ringer-Lactato ou soluções equivalentes', 'Specify the number of sets needed per 24h': 'Especificar o número de conjuntos necessários por 24h', 'Specify the number of units (adult doses) needed per 24h': 'Especificar o número de unidades (doses para adultos) necessário por 24h', 'Specify the number of units (litres) of Ringer-Lactate or equivalent solutions needed per 24h': 'Especificar o número de unidades (litros) de Ringer-Lactato ou soluções equivalentes necessárias para 24h', 'Speed': 'Speed', 'Spherical Mercator?': 'Mapa Mercator Esférico?', 'Spreadsheet Importer': 'PLANILHA IMPORTADOR', 'Spreadsheet uploaded': 'Planilha transferido por UPLOAD', 'Spring': 'Primavera', 'Squall': 'Rajada', 'Staff': 'Equipe', 'Staff & Volunteers': 'Colaboradores & Voluntários', 'Staff 2': 'Equipe 2', 'Staff Details': 'Equipe Detalhes', 'Staff ID': 'ID da equipe', 'Staff List': 'Lista de pessoal', 'Staff Member Details': 'Detalhes de membro da equipe', 'Staff Members': 'Membros da equipe', 'Staff Record': 'Registro de pessoal', 'Staff Type Details': 'Equipe Tipo Detalhes', 'Staff Type added': 'Equipe tipo incluído', 'Staff Type deleted': 'Tipo De equipe excluído', 'Staff Type updated': 'Equipe Tipo De atualização', 'Staff Types': 'Tipos de equipe', 'Staff added': 'Equipe incluída', 'Staff and Volunteers': 'Funcionários e Voluntários', 'Staff deleted': 'Equipe excluída', 'Staff member added': 'Membro da equipe incluído', 'Staff member updated': 'Membro da equipe atualizado', 'Staff present and caring for residents': 'Equipe presente e cuidando de moradores', 'Staff updated': 'Equipe atualizado', 'Staff2': 'staff2', 'Staffing': 'Equipe', 'Stairs': 'Escadas', 'Start Date': 'Data do início', 'Start date': 'Data Inicial', 'Start of Period': 'Início do Período', 'State': 'Status', 'Stationery': 'Papel de Carta', 'Status': 'Status', 'Status Report': 'Relatório de status', 'Status Updated': 'Status atualizado', 'Status added': 'Estado adicionado', 'Status deleted': 'Estado excluído', 'Status of clinical operation of the facility.': 'Estado da operação clínica da instalação.', 'Status of general operation of the facility.': 'Estado da operação geral da instalação.', 'Status of morgue capacity.': 'Estado da capacidade da morgue.', 'Status of operations of the emergency department of this hospital.': 'Estado das operações do Departamento de Emergência deste hospital.', 'Status of security procedures/access restrictions in the hospital.': 'Estado dos procedimentos de segurança/Restrições de Acesso no hospital.', 'Status of the operating rooms of this hospital.': 'Status das salas de operação deste hospital.', 'Status updated': 'Status atualizado', 'Steel frame': 'Estrutura de aço', 'Stolen': 'Roubado', 'Store spreadsheets in the Eden database': 'Arquivar as planilhas no banco de dados Eden', 'Storeys at and above ground level': 'Andares e no nível do solo acima', 'Storm Force Wind': 'Tempestade Força Vento', 'Storm Surge': 'ressaca', 'Stowaway': 'Penetra', 'Street Address': 'Endereço residencial', 'Streetview Enabled?': 'Streetview Enabled?', 'Strong Wind': 'vento forte', 'Structural': 'estrutural', 'Structural Hazards': 'riscos estruturais', 'Style': 'Style', 'Style Field': 'Estilo do Campo', 'Style Values': 'Estilo dos Valores', 'Sub-type': 'Subtipo', 'Subject': 'assunto', 'Submission successful - please wait': 'envio bem sucedido - por favor aguarde', 'Submission successful - please wait...': 'envio bem sucedido - por favor aguarde...', 'Submit New': 'Submeter Novamente', 'Submit New (full form)': 'Submeter Novo (formulário completo)', 'Submit New (triage)': 'Submeter novo (triagem)', 'Submit a request for recovery': 'envie um pedido de recuperação', 'Submit new Level 1 assessment (full form)': 'Submeter novo nível 1 de avaliação (formulário completo)', 'Submit new Level 1 assessment (triage)': 'Submeter novo nível 1 de avaliação (triagem)', 'Submit new Level 2 assessment': 'Submeter novo nível 2 de avaliação', 'Subscription Details': 'Detalhes da Assinatura', 'Subscription added': 'Assinatura Incluída', 'Subscription deleted': 'Assinatura Excluída', 'Subscription updated': 'Assinatura ATUALIZADO', 'Subscriptions': 'assinaturas', 'Subsector': 'Subsetor', 'Subsector Details': 'Detalhes de subsetor', 'Subsector added': 'Subsetor incluído', 'Subsector deleted': 'Subsetor excluído', 'Subsector updated': 'Subsetor atualizado', 'Subsectors': 'Subsetores', 'Subsistence Cost': 'custo de subsistencia', 'Suburb': 'Subúrbio', 'Suggest not changing this field unless you know what you are doing.': 'Sugerimos não alterar esse campo a menos que você saiba o que está fazendo.', 'Summary': 'Sumário', 'Summary by Administration Level': 'Resumo por Nível de Administração', 'Sunday': 'Domingo', 'Supervisor': 'Supervisor', 'Supplies': 'Suprimentos', 'Supply Chain Management': 'Supply Chain Management', 'Supply Item Categories': 'Supply Item Categories', 'Support Request': 'Pedido de Suporte', 'Support Requests': 'Pedidos de Suporte', 'Supports the decision making of large groups of Crisis Management Experts by helping the groups create ranked list.': 'Suporta a tomada de decisão de grandes grupos de Especialistas em Gestão de Crises ajudando os grupos a criar listas de classificados.', 'Sure you want to delete this object?': 'Tem certeza que você quer excluir este objeto?', 'Surgery': 'Cirurgia', 'Survey Answer': 'Resposta da Pesquisa', 'Survey Answer Details': 'Detalhes da Resposta da Pesquisa', 'Survey Answer added': 'Incluído Resposta da Pesquisa', 'Survey Answer deleted': 'Excluído a Resposta da Pesquisa', 'Survey Answer updated': 'Resposta da Pesquisa atualizada', 'Survey Module': 'Módulo de Pesquisa', 'Survey Name': 'Nome da Pesquisa', 'Survey Question': 'Questão de Pesquisa de Opinião', 'Survey Question Details': 'Detalhes da Pergunta de Pesquisa', 'Survey Question Display Name': 'Nome da pergunta de pesquisa', 'Survey Question added': 'Pergunta de pesquisa incluída', 'Survey Question deleted': 'Pergunta de pesquisa excluída', 'Survey Question updated': 'Pergunta de pesquisa atualizada', 'Survey Section': 'Seção da Pesquisa de Opinião', 'Survey Section Details': 'Detalhes de Seção de Pesquisa', 'Survey Section Display Name': 'Seção de pesquisa do nome de exibição', 'Survey Section added': 'Seção de Pesquisa incluída', 'Survey Section deleted': 'Seção de Pesquisa excluída', 'Survey Section updated': 'Seção de pesquisa atualizada', 'Survey Series': 'Série de Pesquisa', 'Survey Series Details': 'Série de Pesquisa Detalhes', 'Survey Series Name': 'Nome de Série de Pesquisa', 'Survey Series added': 'Série de Pesquisa incluída', 'Survey Series deleted': 'Série de Pesquisa excluída', 'Survey Series updated': 'Série de Pesquisa atualizada', 'Survey Template': 'Modelo de Pesquisa de Opinião', 'Survey Template Details': 'Definir detalhes do formulário', 'Survey Template added': 'Modelo de Pesquisa incluído', 'Survey Template deleted': 'Modelo de Pesquisa excluído', 'Survey Template updated': 'Definição de formulário actualizada', 'Survey Templates': 'Definir formulários', 'Symbology': 'Simbologia', 'Sync Conflicts': 'Conflitos de Sincronização', 'Sync History': 'Histórico de Sincronização', 'Sync Now': 'Sincronizar Agora', 'Sync Partners': 'Sincronizar parceiros', 'Sync Partners are instances or peers (SahanaEden, SahanaAgasti, Ushahidi, etc.) that you want to sync information with. Click on the link on the right to go the page where you can add sync partners, search for sync partners and modify them.': 'PARCEIROS DE Sincronização são instâncias ou PARES (SahanaEden, SahanaAgasti, Ushahidi, etc. ) que você deseja a informação de sincronização com. Clique no link sobre o direito de ir a página em que você pode incluir parceiros de sincronização, procurar por parceiros de sincronização e Modificá-las.', 'Sync Pools': 'Conjuntos de Sincronização', 'Sync Schedule': 'Planejamento de Sincronização', 'Sync Settings': 'Configurações de Sincronização', 'Sync process already started on': 'Processo de Sincronização já iniciado em', 'Sync process already started on ': 'Sync process already started on ', 'Synchronisation': 'Sincronização', 'Synchronization': 'Sincronização', 'Synchronization Conflicts': 'Conflitos de Sincronização', 'Synchronization Details': 'Detalhes de Sincronização', 'Synchronization History': 'Histórico de Sincronização', 'Synchronization Peers': 'Parceiros de Sincronização', 'Synchronization Settings': 'Configurações de sincronização', 'Synchronization allows you to share data that you have with others and update your own database with latest data from other peers. This page provides you with information about how to use the synchronization features of Sahana Eden': 'Sincronização permite compartilhar dados que você tenha com outros e Atualizar seu próprio banco de dados com informações recentes de outros parceiros. Esta página fornece informações sobre como utilizar os recursos de sincronização de Sahana Éden', 'Synchronization not configured.': 'Sincronização não Configurada.', 'Synchronization settings updated': 'Configurações de sincronização atualizadas', 'Syncronisation History': 'Histórico De Sincronização', "System's Twitter account updated": 'DO SISTEMA Chilreiam conta ATUALIZADO', 'Tags': 'Tags', 'Take shelter in place or per <instruction>': 'Abrigue-se no local ou por', 'Task': 'Task', 'Task Details': 'Detalhes da Tarefa', 'Task List': 'Lista de tarefas', 'Task Status': 'Status da tarefa', 'Task added': 'Task Inclusa', 'Task deleted': 'Tarefa excluída', 'Task removed': 'Task removed', 'Task updated': 'Tarefa atualizada', 'Tasks': 'Tarefas', 'Team': 'Equipe', 'Team Description': 'Descrição da Equipe', 'Team Details': 'Detalhes da Equipe', 'Team ID': 'ID da Equipe', 'Team Id': 'Id da Equipe', 'Team Leader': 'Líder de Equipe', 'Team Member added': 'Membro da equipe incluído', 'Team Members': 'Membros da equipe', 'Team Name': 'Nome da equipe', 'Team Type': 'Tipo de equipe', 'Team added': 'Equipe incluída', 'Team deleted': 'Equipe excluída', 'Team updated': 'Equipa actualizada', 'Teams': 'Equipes', 'Technical testing only, all recipients disregard': 'Apenas teste técnico, todos os recipientes ignorem', 'Telecommunications': 'Telecomunicações', 'Telephone': 'Telefone', 'Telephone Details': 'Telephone Details', 'Telephony': 'Telefonia', 'Tells GeoServer to do MetaTiling which reduces the number of duplicate labels.': 'Tells GeoServer to do MetaTiling which reduces the number of duplicate labels.', 'Temp folder %s not writable - unable to apply theme!': 'PASTA Temp%s não gravável-impossível aplicar tema!', 'Template Name': 'Template Name', 'Template file %s not readable - unable to apply theme!': 'Modelo% arquivo não é Legível-impossível aplicar tema!', 'Templates': 'modelos', 'Term for the fifth-level within-country administrative division (e.g. a voting or postcode subdivision). This level is not often used.': 'Termo para o 5º nível de divisão administrativa nacional (por exemplo, uma subdivisão de código postal ou de zona de votação). Este nível não é frequentemente utilizado.', 'Term for the fourth-level within-country administrative division (e.g. Village, Neighborhood or Precinct).': 'Termo para o 4º nível de divisão administrativa nacional(por exemplo, vila, bairro ou distrito).', 'Term for the primary within-country administrative division (e.g. State or Province).': 'Prazo para a principal divisão administrativa dentro do país (i.e. Estado ou Distrito).', 'Term for the secondary within-country administrative division (e.g. District or County).': 'Prazo para a Secundária divisão administrativa dentro do país (por exemplo, Bairro ou Município).', 'Term for the secondary within-country administrative division (e.g. District).': 'Prazo para a Secundária divisão administrativa dentro do país (i.e. Bairro).', 'Term for the third-level within-country administrative division (e.g. City or Town).': 'Prazo para o 3ᵉʳ nível de divisão administrativa dentro do país (por exemplo, Cidade ou Municipio).', 'Term for the top-level administrative division (i.e. Country).': 'Prazo para a divisão administrativa de nível superior (por exemplo País).', 'Term for the top-level administrative division (typically Country).': 'Prazo para a divisão administrativa de nível superior (geralmente País).', 'Terms of Service\n\nYou have to be eighteen or over to register as a volunteer.': 'Terms of Service\n\nYou have to be eighteen or over to register as a volunteer.', 'Terms of Service:': 'Terms of Service:', 'Territorial Authority': 'Autoridade territoriais', 'Terrorism': 'Terrorismo', 'Tertiary Server (Optional)': 'Servidor terciário (opcional)', 'Text': 'texto', 'Text Color for Text blocks': 'Cor de texto para os blocos de texto', 'Text before each Text Field (One per line)': 'Texto antes de cada campo de texto (um por linha)', 'Thank you for validating your email. Your user account is still pending for approval by the system administator (%s).You will get a notification by email when your account is activated.': 'Obrigado para validar seu e-mail. Sua conta de usuário ainda está pendente para aprovação pelo administrador do Sistema (%s). você receberá uma notificação por e-mail quando sua conta esteja ativada.', 'Thanks for your assistance': 'Obrigado por sua ajuda', 'The': 'O', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1 == db.table2.field2" results in a SQL JOIN.': 'O "query" é uma condição como "db.table1.field1==\'value\'". Algo como "db.table1.field1 == db.table2.field2" resulta em uma junção SQL.', 'The Area which this Site is located within.': 'A área que este Site está localizado', 'The Assessments module allows field workers to send in assessments.': 'O Modulo Avaliações permite aos trabalhadores de campo que enviem avaliações.', 'The Author of this Document (optional)': 'O autor deste documento (opcional)', 'The Building Asssesments module allows building safety to be assessed, e.g. after an Earthquake.': 'O módulo avaliações De Construção permite a segurança edifício a ser avaliada, por exemplo, depois de um terremoto.', 'The Camp this Request is from': 'O Alojamento neste pedido é de', 'The Camp this person is checking into.': 'O Alojamento que esta pessoa está se registrando.', 'The Current Location of the Person/Group, which can be general (for Reporting) or precise (for displaying on a Map). Enter a few characters to search from available locations.': 'O local atual do Usuário/Grupo, que pode ser geral (para relatórios) ou precisa (para exibir em um mapa). Digite alguns caracteres para procurar nos locais disponíveis.', "The Donor(s) for this project. Multiple values can be selected by holding down the 'Control' key.": "O doador(s) para este projeto. Vários valores podem ser selecionados ao manter pressionado a chave 'control'", 'The Email Address to which approval requests are sent (normally this would be a Group mail rather than an individual). If the field is blank then requests are approved automatically if the domain matches.': 'O endereço de e-mail para onde os pedidos de aprovação são enviados (normalmente seria um correio de Grupo ao invés de um individual). Se o campo estiver em branco, os pedidos são aprovados automaticamente se o domínio corresponder.', 'The Incident Reporting System allows the General Public to Report Incidents & have these Tracked.': 'O Sistema de Comunicação de Incidentes permite o Público em Geral reportar incidentes & ter esses rastreados.', 'The Location the Person has come from, which can be general (for Reporting) or precise (for displaying on a Map). Enter a few characters to search from available locations.': 'A Localização da Pessoa vem do, que pode ser geral (para relatórios) ou precisa (para exibir em um mapa). Digite alguns caracteres para procurar nos locais disponíveis.', 'The Location the Person is going to, which can be general (for Reporting) or precise (for displaying on a Map). Enter a few characters to search from available locations.': 'O local que a pessoa vai, que pode ser genérico (para Relatórios) ou preciso (para exibir em um mapa). Digite alguns caracteres para procurar nos locais disponíveis.', 'The Media Library provides a catalog of digital media.': 'A Biblioteca de mídias fornece um catálogo de mídia digital.', 'The Messaging Module is the main communications hub of the Sahana system. It is used to send alerts and/or messages using SMS & Email to various groups and individuals before, during and after a disaster.': 'O módulo de mensagens é o hub de comunicação principal do sistema Sahana. É utilizado para enviar alertas e/ou mensagens utilizando o SMS & e-mail para diferentes grupos e indivíduos antes, durante e após um desastre.', 'The Organization Registry keeps track of all the relief organizations working in the area.': 'O registro Da Organização mantém controle de todos as organizações de apoio que trabalham na área.', 'The Organization Registry keeps track of all the relief organizations working in the disaster region. It captures not only the places where they are active, but also captures information on the range of projects they are providing in each area.': 'O registro da Organização mantém controle de todas organizações de ajuda trabalhando numa região de desastre. Ele captura não apenas os locais onde elas estão ativas, mas também captura informações sobre o conjunto de projetos que está fornecendo em cada região.', 'The Patient Tracking system keeps track of all the evacuated patients & their relatives.': 'The Patient Tracking system keeps track of all the evacuated patients & their relatives.', 'The Person currently filling this Role.': 'A pessoa atualmente preenchendo esta função.', 'The Project Tracking module allows the creation of Activities to meet Gaps in Needs Assessments.': 'O módulo acompanhamento do projeto permite a criação de atividades para preencher Lacunas nas avaliações de necessidades.', 'The Requests Management System is a central online repository where all relief organizations, relief workers, government agents and camp sites for displaced personnel can coordinate the supply of aid with their demand. It allows users to allocate the available resources to fulfill the demands effectively and efficiently.': 'O sistema De Gerenciamento De Pedidos é um repositório online central em todas as organizações de ajuda, trabalhadores de assistência, agentes do governo e sites de acampamento para a equipe de refugiados pode coordenar o fornecimento da ajuda com seu pedido. Ela permite que usuários aloquem os recursos disponíveis para suprir as demandas de forma efetiva e eficiente.', 'The Role this person plays within this hospital.': 'A Função desta pessoa neste hospital.', 'The Role to which this Role reports.': 'A função à qual essa função responde.', 'The Shelter Registry tracks all shelters and stores basic details regarding them. It collaborates with other modules to track people associated with a shelter, the services available etc.': 'O registro do Abrigo rastreia todos os detalhes básicos abrigos e armazena sobre eles. Ele colabora com outros módulos para rastrear as pessoas associadas com um abrigo, os serviços disponíveis etc.', 'The Shelter this Request is from': 'O pedido deste abrigo é de', 'The Shelter this Request is from (optional).': 'O pedido este Abrigo é de (opcional).', 'The Shelter this person is checking into.': 'O abrigo esta pessoa está verificando no.', 'The URL for the GetCapabilities of a WMS Service whose layers you want accessible via the Map.': 'A URL para o GetCapabilities de um serviço WMS cujas camadas você deseja acessíveis através do mapa.', 'The URL for the GetCapabilities page of a Web Map Service (WMS) whose layers you want available via the Browser panel on the Map.': 'A URL para a página do GetCapabilities de um Web Map Service (WMS), cujas camadas que você deseja disponíveis através do painel do navegador no Mapa.', "The URL of the image file. If you don't upload an image file, then you must specify its location here.": 'A URL do arquivo de imagem. Se voce não fizer o upload de um arquivo de imagem, então voce deverá especificar sua localização aqui.', 'The URL of your web gateway without the post parameters': 'A URL de seu gateway da web sem os parâmetros post', 'The URL to access the service.': 'A URL para acessar o serviço.', 'The Unique Identifier (UUID) as assigned to this facility by the government.': 'O Idenfificador Único (UUID) conforme designado pelo governo para esta filial.', 'The asset must be assigned to a site OR location.': 'O ativo deve ser assinalado para um site ou local.', 'The attribute which is used for the title of popups.': 'O atributo que é usado para o título de popups.', 'The attribute within the KML which is used for the title of popups.': 'O Atributo dentro do KML que é utilizado para o título dos pop-ups.', 'The attribute(s) within the KML which are used for the body of popups. (Use a space between attributes)': 'O Atributo(s) no KML que são utilizados para o corpo dos pop-ups. ( utilizar um espaço entre atributos )', 'The body height (crown to heel) in cm.': 'A altura do corpo (cabeça até o calcanhar) em cm.', 'The contact person for this organization.': 'A pessoa de contato nessa organização.', 'The country the person usually lives in.': 'O país que a pessoa vive habitualmente', 'The default Facility for which this person is acting.': 'The default Facility for which this person is acting.', 'The default Facility for which you are acting.': 'The default Facility for which you are acting.', 'The default Organization for whom this person is acting.': 'A Organização padrão para quem esta pessoa está atuando.', 'The default Organization for whom you are acting.': 'A Organização padrão para quem você está atuando.', 'The duplicate record will be deleted': 'O registro duplicado será excluído', 'The first or only name of the person (mandatory).': 'O primeiro nome ou único nome da pessoa (obrigatório).', 'The form of the URL is http://your/web/map/service?service=WMS&request=GetCapabilities where your/web/map/service stands for the URL path to the WMS.': 'O formulário da URL é http://your/web/map/service?service=WMS&request=GetCapabilities where your/web/map/service que representa o caminho da URL para o WMS.', 'The language you wish the site to be displayed in.': 'O idioma que você deseja que o site seja exibido.', 'The last known location of the missing person before disappearance.': 'A última localização conhecida da pessoa desaparecida antes do desaparecimento.', 'The level at which Searches are filtered.': 'The level at which Searches are filtered.', 'The list of Brands are maintained by the Administrators.': 'A lista de Marcas serão mantidas pelos administradores.', 'The list of Catalogs are maintained by the Administrators.': 'A lista de catálogos é mantida pelos administradores.', 'The list of Item categories are maintained by the Administrators.': 'A lista de categorias dos itens são mantidas pelos administradores.', 'The map will be displayed initially with this latitude at the center.': 'O mapa será exibido inicialmente com esta latitude no centro.', 'The map will be displayed initially with this longitude at the center.': 'O mapa será exibido inicialmente com esta longitude no centro.', 'The minimum number of features to form a cluster.': 'O número mínimo de recursos para formar um cluster.', 'The name to be used when calling for or directly addressing the person (optional).': 'O nome a ser usado ao chamar por ou diretamente endereçar a pessoa (opcional).', 'The next screen will allow you to detail the number of people here & their needs.': 'A próxima tela permitirá que você detalhe o número de pessoas aqui e as suas necessidades.', 'The number of Units of Measure of the Alternative Items which is equal to One Unit of Measure of the Item': 'O número de unidades de medida dos Itens alternativos é igual a uma unidade de medida do Item', 'The number of pixels apart that features need to be before they are clustered.': 'O número de separado de pixels de funcionalidades tem que ser antes que eles sejam agrupados.', 'The number of tiles around the visible map to download. Zero means that the 1st page loads faster, higher numbers mean subsequent panning is faster.': 'O número de títulos em torno do mapa visível para fazer download. Zero significa que a primeira página carrega mais rápido, números maiores que zero significam que as paginas seguintes são mais rápida.', 'The person at the location who is reporting this incident (optional)': 'A pessoa no local que está relatando este incidenten (opcional)', 'The person reporting the missing person.': 'A pessoa reportando o desaparecimento de alguem', 'The post variable containing the phone number': 'A variavel post contendo o numero de telefone', 'The post variable on the URL used for sending messages': 'A variável post no URL é utilizada para enviar mensagens', 'The post variables other than the ones containing the message and the phone number': 'As variáveis post diferentes das que contém a mensagem e o número de telefone', 'The serial port at which the modem is connected - /dev/ttyUSB0, etc on linux and com1, com2, etc on Windows': 'A porta serial no qual o modem está conectado-/dev/ttyUSB0, etc. No linux e com1, com2, etc. No Windows', 'The server did not receive a timely response from another server that it was accessing to fill the request by the browser.': 'O servidor não receber uma resposta oportuna de outro servidor que ele estava acessando para preencher o pedido pelo navegador.', 'The server received an incorrect response from another server that it was accessing to fill the request by the browser.': 'O servidor recebeu uma resposta incorreta a partir de outro servidor que ele estava acessando para preencher o pedido pelo navegador.', 'The site where this position is based.': 'O local onde esta posição se baseia.', 'The staff responsibile for Facilities can make Requests for assistance. Commitments can be made against these Requests however the requests remain open until the requestor confirms that the request is complete.': 'O pessoal responsável pelas Instalações podem fazer pedidos de assistência. Compromissos podem ser feitas em relação a esses pedidos no entanto os pedidos permanecem abertas até o SOLICITANTE confirma que o pedido foi concluído.', 'The subject event no longer poses a threat or concern and any follow on action is described in <instruction>': 'O acontecimento já não representa uma ameaça ou preocupação e a ação a ser tomada é descrita em<instruction>', 'The time at which the Event started.': 'O momento em que o evento começou.', 'The time difference between UTC and your timezone, specify as +HHMM for eastern or -HHMM for western timezones.': 'The time difference between UTC and your timezone, specify as +HHMM for eastern or -HHMM for western timezones.', 'The title of the WMS Browser panel in the Tools panel.': 'O título do painel do navegador WMS em ferramentas.', 'The token associated with this application on': 'O token associado a este aplicativo em', 'The unique identifier which identifies this instance to other instances.': 'O indentificador único diferencia esta instância de outras.', 'The way in which an item is normally distributed': 'O modo em que um item é normalmente distribuído', 'The weight in kg.': 'O peso em quilogramas.', 'Theme': 'Tema', 'Theme Details': 'Detalhes do Tema', 'Theme added': 'Tema incluído', 'Theme deleted': 'Tema excluído', 'Theme updated': 'Tema atualizado', 'Themes': 'Temas', 'There are errors': 'Há erros', 'There are insufficient items in the Inventory to send this shipment': 'não há itens suficientes no armazém para o envio desse carregamento', 'There are multiple records at this location': 'Há vários registros neste local', 'There are not sufficient items in the Inventory to send this shipment': 'não há itens suficientes no inventário para enviar esse carregamento', 'There is no address for this person yet. Add new address.': 'Não há endereço para esta pessoa ainda. Adicionar novo endereço.', 'There was a problem, sorry, please try again later.': 'There was a problem, sorry, please try again later.', 'These are settings for Inbound Mail.': 'Estas são as configurações para Correio de entrada.', 'These are the Incident Categories visible to normal End-Users': 'Estes são as Categorias de incidentes visíveis para usuários finais normais.', 'These need to be added in Decimal Degrees.': 'estas precisam ser incluídas em graus decimais.', 'They': 'Eles', 'This appears to be a duplicate of': 'Isto parece ser duplicado de', 'This appears to be a duplicate of ': 'This appears to be a duplicate of ', 'This email address is already in use': 'This email address is already in use', 'This file already exists on the server as': 'Este arquivo já existe como no servidor', 'This is appropriate if this level is under construction. To prevent accidental modification after this level is complete, this can be set to False.': 'Isso é apropriado se esse nível estiver em construção. Para evitar modificação acidental após esse nível estar concluído, pode ser configurado como False.', 'This is the way to transfer data between machines as it maintains referential integrity.': 'Este é o caminho para a transferência de dados entre máquinas que mantém a integridade referencial.', 'This is the way to transfer data between machines as it maintains referential integrity...duplicate data should be removed manually 1st!': 'Este é o caminho para a transferência de dados entre máquinas que mantém a integridade referencial...duplicado dados devem ser removidos manualmente 1ᵉʳ!', 'This level is not open for editing.': 'Este nível não é aberto para edição.', 'This might be due to a temporary overloading or maintenance of the server.': 'Isso pode ser devido a uma sobrecarga temporária ou manutenção do servidor.', 'This module allows Inventory Items to be Requested & Shipped between the Inventories of Facilities.': 'Este módulo permite que itens de inventário sejam Solicitados & Enviados entre os Inventários das instalações.', 'This module allows you to manage Events - whether pre-planned (e.g. exercises) or Live Incidents. You can allocate appropriate Resources (Human, Assets & Facilities) so that these can be mobilized easily.': 'This module allows you to manage Events - whether pre-planned (e.g. exercises) or Live Incidents. You can allocate appropriate Resources (Human, Assets & Facilities) so that these can be mobilized easily.', 'This module allows you to plan scenarios for both Exercises & Events. You can allocate appropriate Resources (Human, Assets & Facilities) so that these can be mobilized easily.': 'Este módulo permite que você planeje cenários para os Exercícios & Eventos. Você pode alocar apropriado recursos (humanos, Ativos e Recursos) para que estes possam ser mobilizados facilmente.', 'This page shows you logs of past syncs. Click on the link below to go to this page.': 'Esta página mostra as logs das sincronizações passadas. Clique no link abaixo para ir para essa página.', 'This screen allows you to upload a collection of photos to the server.': 'Esta tela permite que você faça upload de um conjunto de fotografias para o servidor.', 'This setting can only be controlled by the Administrator.': 'Esta definicão só pode ser controlado pelo administrador.', 'This shipment has already been received.': 'Este carregamento já foi recebido.', 'This shipment has already been sent.': 'Este carregamento já foi enviado.', 'This shipment has not been received - it has NOT been canceled because can still be edited.': 'Este carregamento não foi recebido-ele não foi cancelado porque ainda pode ser editado.', 'This shipment has not been sent - it has NOT been canceled because can still be edited.': 'Este carregamento não foi enviado- ele não foi cancelado porque ainda pode ser editado.', 'This shipment will be confirmed as received.': 'Este carregamento será confirmado como recebido.', 'This value adds a small mount of distance outside the points. Without this, the outermost points would be on the bounding box, and might not be visible.': 'Esse valor inclui um pequeno valor de distância fora dos pontos. Sem isto, os pontos mais afastados estariam na caixa delimitadora, e podem não estar visíveis.', 'This value gives a minimum width and height in degrees for the region shown. Without this, a map showing a single point would not show any extent around that point. After the map is displayed, it can be zoomed as desired.': 'Este valor fornece uma largura e altura minimas em graus para a região mostrada. Sem isto, um mapa que mostre um ponto único não mostraria nenhuma extensão ao redor desse ponto. Depois que o mapa for exibido, pode ser ampliado, conforme desejado.', 'Thunderstorm': 'Trovoada', 'Thursday': 'Quinta-feira', 'Ticket': 'Bilhete', 'Ticket Details': 'Detalhes do bilhete', 'Ticket ID': 'ID do Bilhete', 'Ticket added': 'Bilhete incluído', 'Ticket deleted': 'Bilhete removido', 'Ticket updated': 'Bilhete atualizado', 'Ticketing Module': 'Módulo de bilhetes', 'Tickets': 'Bilhetes', 'Tiled': 'Tiled', 'Tilt-up concrete': 'Inclinar concreto', 'Timber frame': 'Quadro de madeira', 'Timeline': 'Prazo', 'Timeline Report': 'Relatório de períodos de tempo', 'Timestamp': 'Timestamp', 'Timestamps can be correlated with the timestamps on the photos to locate them on the map.': 'Timestamps can be correlated with the timestamps on the photos to locate them on the map.', 'Title': 'título', 'Title to show for the Web Map Service panel in the Tools panel.': 'Título para mostrar o painel de serviço de Mapa da Web no painel de Ferramentas.', 'To': 'para', 'To Location': 'Localidade de destino', 'To Person': 'Para Pessoa', 'To begin the sync process, click the button on the right =>': 'Para iniciar o processo de Sincronização, clique no botão à direita.', 'To begin the sync process, click the button on the right => ': 'To begin the sync process, click the button on the right => ', 'To begin the sync process, click this button =>': 'Para iniciar o processo de Sincronização, clique neste botão.', 'To begin the sync process, click this button => ': 'To begin the sync process, click this button => ', 'To create a personal map configuration, click': 'Para criar uma configuração do mapa pessoal, clique', 'To create a personal map configuration, click ': 'To create a personal map configuration, click ', 'To edit OpenStreetMap, you need to edit the OpenStreetMap settings in models/000_config.py': 'Para editar OpenStreetMap, você precisa editar as configurações do OpenStreetMap em models/000_config.py', 'To search by job title, enter any portion of the title. You may use % as wildcard.': 'Para pesquisar por título, digite qualquer parte do título. Pode utilizar o % como um substituto para qualquer caracter.', "To search by person name, enter any of the first, middle or last names, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all persons.": "Para pesquisar por nome, digite qualquer do primeiro, meio ou últimos nomes, separados por espaços. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todas as pessoas.", "To search for a body, enter the ID tag number of the body. You may use % as wildcard. Press 'Search' without input to list all bodies.": "Para procurar um corpo, digite o número da ID do corpo. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todos os organismos.", "To search for a hospital, enter any of the names or IDs of the hospital, or the organization name or acronym, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all hospitals.": "Para procurar um hospital, digite qualquer um dos nomes ou IDs do hospital, ou o nome da organização ou Acrônimo, separados por espaços. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todos os hospitais.", "To search for a hospital, enter any of the names or IDs of the hospital, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all hospitals.": "Para procurar um hospital, digite qualquer um dos nomes ou IDs do hospital, separados por espaços. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todos os hospitais.", "To search for a location, enter the name. You may use % as wildcard. Press 'Search' without input to list all locations.": "Para procurar um local, digite o nome. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todos os locais.", "To search for a patient, enter any of the first, middle or last names, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all patients.": "To search for a patient, enter any of the first, middle or last names, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all patients.", "To search for a person, enter any of the first, middle or last names and/or an ID number of a person, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all persons.": "Para procurar por uma pessoa, digite qualquer do primeiro, meio ou últimos nomes e/ou um número de ID de uma pessoa, separados por espaços. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todas as pessoas.", "To search for a person, enter any of the first, middle or last names, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all persons.": "Para procurar por uma pessoa, digite ou o primeiro nome, ou o nome do meio ou sobrenome, separados por espaços. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todas as pessoas.", "To search for an assessment, enter any portion the ticket number of the assessment. You may use % as wildcard. Press 'Search' without input to list all assessments.": "Para procurar por uma avaliação, digite qualquer parte o número da permissão da avaliação. Pode utilizar o % como um substituto para qualquer caracter. PRESSIONE ' Search' sem entrada para listar todas as avaliações.", 'To variable': 'Para variável', 'Tools': 'ferramentas', 'Tornado': 'tornado', 'Total': 'Total', 'Total # of Target Beneficiaries': 'Nº Total de Beneficiários De Destino', 'Total # of households of site visited': 'Nº Total de famílias de site Visitado', 'Total Beds': 'Total de Camas', 'Total Beneficiaries': 'Total de Beneficiários', 'Total Cost per Megabyte': 'Custo Total por Megabyte', 'Total Cost per Minute': 'Custo Total por Minuto', 'Total Monthly': 'Total Mensal', 'Total Monthly Cost': 'Custo Total mensal', 'Total Monthly Cost:': 'Custo Total mensal:', 'Total Monthly Cost: ': 'Total Monthly Cost: ', 'Total One-time Costs': 'Total Um tempo de Custos', 'Total Persons': 'Totalizar Pessoas', 'Total Recurring Costs': 'Totalizar Custos Recorrentes', 'Total Unit Cost': 'Total do custo unitário', 'Total Unit Cost:': 'Custo Unitário Total:', 'Total Unit Cost: ': 'Total Unit Cost: ', 'Total Units': 'Total de unidades', 'Total gross floor area (square meters)': 'Total de área bruta (metros quadrados)', 'Total number of beds in this hospital. Automatically updated from daily reports.': 'Número Total de leitos neste hospital. Atualizado automaticamente a partir de relatórios diários.', 'Total number of houses in the area': 'Número Total de casas na área', 'Total number of schools in affected area': 'Número Total de escolas em área afetada', 'Total population of site visited': 'Totalizar População do site Visitado', 'Totals for Budget:': 'Total para Orçamento', 'Totals for Bundle:': 'Total do Pacote', 'Totals for Kit:': 'Totais para Kit', 'Tourist Group': 'Grupo turístico', 'Town': 'Urbano', 'Traces internally displaced people (IDPs) and their needs': 'Rastreia pessoas deslocadas internamente (PDI) e suas necessidades', 'Tracing': 'Rastreio', 'Track': 'Rastrear', 'Track Details': 'Detalhes do restraio', 'Track deleted': 'Rastreio excluído', 'Track updated': 'Rastreamento atualizado', 'Track uploaded': 'Rastreamento enviado', 'Track with this Person?': 'RASTREAR com esta pessoa?', 'Tracking of Patients': 'Tracking of Patients', 'Tracking of Projects, Activities and Tasks': 'Rastreamento de projetos, atividades e tarefas', 'Tracking of basic information on the location, facilities and size of the Shelters': 'Rastreamento de informações básicas sobre a localização, instalações e tamanho dos abrigos', 'Tracks': 'Tracks', 'Tracks the location, distibution, capacity and breakdown of victims in Shelters': 'Rastreia o local, distribuição, capacidade e discriminação da vítima em Abrigos', 'Traffic Report': 'Relatório de tráfego', 'Training': 'Treinamento', 'Training Course Catalog': 'Catálogo de cursos de treinamento', 'Training Details': 'Detalhes do treinamento', 'Training added': 'Treinamento incluído', 'Training deleted': 'Treinamento excluído', 'Training updated': 'Treinamento atualizado', 'Trainings': 'Treinamentos', 'Transit': 'Trânsito', 'Transit Status': 'Status do Transito', 'Transition Effect': 'Efeito de Transição', 'Transparent?': 'TRANSPARENTE?', 'Transportation assistance, Rank': 'Assistência de transporte, Classificação', 'Trauma Center': 'Centro de traumas', 'Travel Cost': 'Custo da Viagem', 'Tropical Storm': 'Tempestade Tropical', 'Tropo': 'substiuir, mudar', 'Tropo Messaging Token': 'Sinal de Mensagem Tropo', 'Tropo Settings': 'Configurações esteja doido parceiro', 'Tropo Voice Token': 'Sinal de Voz Tropo', 'Tropo settings updated': 'Configurações Tropo Atualizadas', 'Truck': 'Caminhão', 'Try checking the URL for errors, maybe it was mistyped.': 'Tente verificar se existem erros na URL, talvez tenha sido um erro de digitação', 'Try hitting refresh/reload button or trying the URL from the address bar again.': 'Tente apertar o botão atualizar/recarregar ou tente a URL a partir da barra de endereços novamente', 'Try refreshing the page or hitting the back button on your browser.': 'Tente atualizar a página ou apertar o botão voltar em seu navegador.', 'Tsunami': 'Tsunami', 'Tuesday': 'Terça-feira', 'Twitter': 'Twitter', 'Twitter ID or #hashtag': 'ID Twitter ou #hashtag', 'Twitter Settings': 'Configurações do Twitter', 'Type': 'type', 'Type of Construction': 'Tipo de Construção', 'Type of water source before the disaster': 'Tipo de fonte de água antes do desastre', "Type the first few characters of one of the Person's names.": 'Digite os primeiros caracteres de um dos nomes da pessoa.', 'UID': 'uid', 'UN': 'ONU', 'URL': 'Localizador-Padrão de Recursos', 'UTC Offset': 'UTC Offset', 'Un-Repairable': 'ONU-Reparáveis', 'Unable to parse CSV file!': 'Não é possível analisar Arquivo CSV!', 'Understaffed': 'Pessoal', 'Unidentified': 'Não identificado', 'Unit Cost': 'Custo por unidade', 'Unit added': 'Unidade incluída', 'Unit deleted': 'Unidade Excluída', 'Unit of Measure': 'Unidade de medida', 'Unit updated': 'Unidade Atualizados', 'Units': 'Unidades', 'Unknown': 'unknown', 'Unknown Peer': 'Peer desconhecido', 'Unknown type of facility': 'Tipo desconhecido de instalação', 'Unreinforced masonry': 'Alvenaria obras', 'Unresolved Conflicts': 'Conflitos não resolvidos', 'Unsafe': 'Inseguro', 'Unselect to disable the modem': 'Desmarcar para desativar o modem', 'Unselect to disable this API service': 'Unselect to disable this API service', 'Unselect to disable this SMTP service': 'Unselect to disable this SMTP service', 'Unsent': 'não enviado', 'Unsupported data format!': 'Formato de dados não Suportado!', 'Unsupported method!': 'Método não Suportado!', 'Update': 'atualização', 'Update Activity Report': 'Atualizar Relatório de atividade', 'Update Cholera Treatment Capability Information': 'Atualizar informações de capacidade de tratamento de Cólera', 'Update Request': 'Atualizar Pedido', 'Update Service Profile': 'Atualizar Perfil de Serviço', 'Update Status': 'Status da Atualização', 'Update Task Status': 'Atualizar Status da Tarefa', 'Update Unit': 'Atualizar Unidade', 'Update if Master': 'Atualizar se for o principal', 'Update if Newer': 'Atualizar se Mais Recente', 'Update your current ordered list': 'ATUALIZE a seu atual lista ordenada', 'Updated By': 'Atualizado por', 'Upload Comma Separated Value File': 'Upload Comma Separated Value File', 'Upload Format': 'Upload Format', 'Upload OCR Form': 'Upload OCR Form', 'Upload Photos': 'Fazer Upload de Fotos', 'Upload Spreadsheet': 'Fazer atualizacao de Planilha', 'Upload Track': 'Pista de carregamento', 'Upload a CSV file': 'Upload a CSV file', 'Upload a CSV file formatted according to the Template.': 'Upload a CSV file formatted according to the Template.', 'Upload a Spreadsheet': 'Fazer Upload de uma planilha', 'Upload an image file (bmp, gif, jpeg or png), max. 300x300 pixels!': 'Fazer Upload de um arquivo de imagem (bmp, gif, jpeg ou png), máx. 300x300 pixels!', 'Upload an image file here.': 'Fazer atualizacao de um arquivo de imagem aqui.', "Upload an image file here. If you don't upload an image file, then you must specify its location in the URL field.": 'Fazer atualizacao de um arquivo de imagem aqui. Se voce não fizer o upload de um arquivo de imagem, então voce deverá especificar sua localização no campo URL', 'Upload an image, such as a photo': 'Fazer Upload de uma imagem, como uma foto', 'Uploaded': 'Uploaded', 'Urban Fire': 'Incêndio urbano', 'Urban area': 'Zona Urbana', 'Urdu': 'Urdu', 'Urgent': 'Urgente', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Utilize (...)&(...) para e, (...)|(...) ou para, e ~(...) para não para construir consultas mais complexas.', 'Use Geocoder for address lookups?': 'Utiliza Geocodificador para consultas de endereços?', 'Use default': 'usar o padrão', 'Use these links to download data that is currently in the database.': 'Use estes links para fazer o download de dados actualmente na base de dados.', 'Use this to set the starting location for the Location Selector.': 'Use this to set the starting location for the Location Selector.', 'Used by IRS & Assess': 'Utilizado pela Receita Federal & Avaliar', 'Used in onHover Tooltip & Cluster Popups to differentiate between types.': 'Utilizado em onHover De Dicas & Cluster Popups para diferenciar entre tipos.', 'Used to build onHover Tooltip & 1st field also used in Cluster Popups to differentiate between records.': 'Utilizado para construir onHover Dicas & primeiro campo também utilizado no Popups Cluster para diferenciar entre os registros.', 'Used to check that latitude of entered locations is reasonable. May be used to filter lists of resources that have locations.': 'Usado para verificar latitude de locais inseridos é razoável. Pode ser utilizado para filtrar listas de recursos que possuem locais.', 'Used to check that longitude of entered locations is reasonable. May be used to filter lists of resources that have locations.': 'Usado para verificar que longitude de locais inserido é razoável. Pode ser utilizado para filtrar listas de recursos que possuem locais.', 'Used to import data from spreadsheets into the database': 'Para importar dados utilizada a partir de planilhas no banco de dados', 'Used within Inventory Management, Request Management and Asset Management': 'Utilizado no gerenciamento de inventário, gerenciamento de Pedido e gerenciamento de ativos', 'User': 'usuário', 'User Account has been Disabled': 'Conta de Usuário foi Desativado', 'User Details': 'Detalhes do Usuário', 'User ID': 'User ID', 'User Management': 'gerenciamento do usuário', 'User Profile': 'Perfil do Utilizador', 'User Requests': 'Pedidos do Utilizador', 'User Updated': 'Utilizador actualizado', 'User added': 'Usuário Incluído', 'User already has this role': 'Usuário já tem essa função', 'User deleted': 'Usuário Excluído', 'User updated': 'Utilizador actualizado', 'Username': 'userName', 'Users': 'usuários', 'Users removed': 'Utilizadores removidos', 'Uses the REST Query Format defined in': 'Utiliza o formato de consulta REST definido em', 'Ushahidi': 'Ushahidi', 'Utilities': 'Serviços Públicos', 'Utility, telecommunication, other non-transport infrastructure': 'Serviços Públicos, telecomunicações, outra infra-estrutura não-transporte', 'Vacancies': 'Vagas', 'Value': 'value', 'Various Reporting functionalities': 'Diversas funcionalidades de relatório', 'Vehicle': 'veículo', 'Vehicle Crime': 'Roubo/Furto de veículo', 'Vehicle Details': 'Vehicle Details', 'Vehicle Details added': 'Vehicle Details added', 'Vehicle Details deleted': 'Vehicle Details deleted', 'Vehicle Details updated': 'Vehicle Details updated', 'Vehicle Management': 'Vehicle Management', 'Vehicle Types': 'Tipos de veículo', 'Vehicle added': 'Vehicle added', 'Vehicle deleted': 'Vehicle deleted', 'Vehicle updated': 'Vehicle updated', 'Vehicles': 'Vehicles', 'Vehicles are assets with some extra details.': 'Vehicles are assets with some extra details.', 'Verification Status': 'Status de verificação', 'Verified?': 'Verificado?', 'Verify password': 'Verificar senha', 'Version': 'Version', 'Very Good': 'Muito bom', 'Very High': 'muito alto', 'View Alerts received using either Email or SMS': 'Visualizar alertas utilizando quer o correio electrónico quer SMS.', 'View All': 'Visualizar todos', 'View All Tickets': 'View All Tickets', 'View Error Tickets': 'Ver bilhetes de erro', 'View Fullscreen Map': 'Visualização Inteira Mapa', 'View Image': 'Visualizar imagem', 'View Items': 'Ver itens', 'View On Map': 'Visualizar no mapa', 'View Outbox': 'Visualização Outbox', 'View Picture': 'Visualização de imagem', 'View Results of completed and/or partially completed assessments': 'View Results of completed and/or partially completed assessments', 'View Settings': 'Ver Configurações', 'View Tickets': 'Visualizar Bilhetes', 'View and/or update their details': 'Visualizar e/ou actualizar os seus detalhes', 'View or update the status of a hospital.': 'VISUALIZAR ou atualizar o status de um hospital.', 'View pending requests and pledge support.': 'Visualizar pedidos pendentes e suporte promessa.', 'View the hospitals on a map.': 'Visualizar os hospitais em um mapa.', 'View/Edit the Database directly': 'Visualizar/Editar o banco de dados diretamente', "View/Edit the Database directly (caution: doesn't respect the framework rules!)": 'Visualizar/Alterar a base de dados directamente ( cuidado : não cumpre com as regras da infraestrutura ! ) ).', 'Village': 'Vila', 'Village Leader': 'Líder da Aldeia', 'Visible?': 'Visível?', 'Visual Recognition': 'Reconhecimento visual', 'Volcanic Ash Cloud': 'Nuvem de cinzas vulcânicas', 'Volcanic Event': 'Evento vulcânico', 'Volume (m3)': 'Volume (m3)', 'Volunteer Availability': 'Disponibilidade de Voluntário', 'Volunteer Details': 'Detalhes do voluntário', 'Volunteer Information': 'Voluntário Informações', 'Volunteer Management': 'Gestão de voluntário', 'Volunteer Project': 'Projeto voluntário', 'Volunteer Record': 'Voluntário Registro', 'Volunteer Request': 'Pedido voluntário', 'Volunteer added': 'Voluntário incluído', 'Volunteer availability added': 'Disponibilidade de voluntário incluída', 'Volunteer availability deleted': 'Disponibilidade de voluntário excluída', 'Volunteer availability updated': 'Disponibilidade de voluntário atualizada', 'Volunteer deleted': 'Voluntário excluído', 'Volunteer details updated': 'Atualização dos detalhes de voluntários', 'Volunteer updated': 'Voluntário atualizado', 'Volunteers': 'Voluntários', 'Volunteers List': 'Voluntários Lista', 'Volunteers were notified!': 'Voluntários foram notificados!', 'Vote': 'voto', 'Votes': 'votos', 'WASH': 'LAVAR', 'WMS Browser Name': 'WMS Nome do Navegador', 'WMS Browser URL': 'WMS Navegador URL', 'Walking Only': 'Apenas andando', 'Wall or other structural damage': 'Parede ou outros danos estruturais', 'Warehouse': 'Depósito', 'Warehouse Details': 'Detalhes do Armazém', 'Warehouse added': 'Warehouse incluído', 'Warehouse deleted': 'Deposito apagado', 'Warehouse updated': 'Warehouse ATUALIZADO', 'Warehouses': 'Armazéns', 'WatSan': 'WatSan', 'Water Sanitation Hygiene': 'Saneamento de água', 'Water collection': 'Coleta de água', 'Water gallon': 'Galão de água', 'Water storage containers in households': 'Recipientes de armazenamento de água nos domicílios', 'Water supply': 'Abastecimento de água', 'Waterspout': 'Waterspout', 'We have tried': 'We have tried', 'Web API settings updated': 'Web API settings updated', 'Web Map Service Browser Name': 'Nome do mapa da Web navegador de serviços', 'Web Map Service Browser URL': 'Web Mapa Do navegador de Serviços URL', 'Website': 'WebSite', 'Wednesday': 'Wednesday', 'Weight': 'peso', 'Weight (kg)': 'peso (kg)', 'Welcome to the Sahana Portal at': 'Bem-vindo ao Portal Sahana em', 'Well-Known Text': 'Texto bem conhecido', 'What order to be contacted in.': 'What order to be contacted in.', 'Wheat': 'Trigo', 'When a map is displayed that focuses on a collection of points, the map is zoomed to show just the region bounding the points.': 'Quando o mapa é que exibido incide sobre um conjunto de pontos, o mapa é aproximado para mostrar apenas a região delimitadora dos pontos.', 'When reports were entered': 'Quando os relatórios foram Digitados', "When syncing data with others, conflicts happen in cases when two (or more) parties want to sync information which both of them have modified, i.e. conflicting information. Sync module tries to resolve such conflicts automatically but in some cases it can't. In those cases, it is up to you to resolve those conflicts manually, click on the link on the right to go to this page.": 'Quando Sincronizando dados com outros, os conflitos acontecem em casos onde dois (ou mais) grupos desejam sincronizar informações que os dois tenham modificado, ou seja, informações conflitantes. Módulo de sincronização tenta resolver esses conflitos automaticamente mas em alguns casos isso não consegue. Nesses casos, cabe a si resolver esses conflitos manualmente, clique no link à direita para ir para esta página.', 'Whiskers': 'Bigodes', 'Who is doing what and where': 'Quem está a fazer o quê e onde', 'Who usually collects water for the family?': 'Quem habitualmente colecta água para a família ?', 'Width': 'width', 'Width (m)': 'Largura (m)', 'Wild Fire': 'Fogo Selvagem', 'Wind Chill': 'Vento Frio', 'Window frame': 'Esquadria de janela', 'Winter Storm': 'Tempestade de inverno', 'Women of Child Bearing Age': 'Mulheres da criança Tendo Idade', 'Women participating in coping activities': 'Mulheres que participam em lidar atividades', 'Women who are Pregnant or in Labour': 'Mulheres que esto grávidas ou no trabalho', 'Womens Focus Groups': 'Mulheres de Grupos Foco', 'Wooden plank': 'Tábua de madeira', 'Wooden poles': 'Postes de madeira', 'Working hours end': 'Horas de trabalho final', 'Working hours start': 'Horas de trabalho iniciar', 'Working or other to provide money/food': 'Trabalhando para outros para prover dinheiro / alimentos', 'X-Ray': 'Raio-X', 'XMPP': 'XMPP', 'YES': 'YES', "Yahoo Layers cannot be displayed if there isn't a valid API Key": "Yahoo Layers cannot be displayed if there isn't a valid API Key", 'Year': 'Year', 'Year built': 'Ano de construção', 'Year of Manufacture': 'Ano de fabricação', 'Yellow': 'amarelo', 'Yes': 'YES', 'You are a recovery team?': 'Você é uma equipe de recuperação?', 'You are attempting to delete your own account - are you sure you want to proceed?': 'Você está tentando excluir sua própria conta-Tem certeza de que deseja continuar?', 'You are currently reported missing!': 'Você está atualmente desaparecido!', 'You can change the configuration of synchronization module in the Settings section. This configuration includes your UUID (unique identification number), sync schedules, beacon service and so on. Click the following link to go to the Sync Settings page.': 'Você pode alterar a configuração do Módulo de Sincronização na seção configurações. Essa configuração inclui o seu UUID (número de identificação exclusivo), Planejamentos de Sincronização, serviço Farol e assim por diante. Clique no link a seguir para ir para a página Configurações de Sincronização.', 'You can click on the map below to select the Lat/Lon fields': 'Você pode clicar no mapa abaixo para selecionar os campos Lat/Lon', 'You can select the Draw tool': 'Pode selecionar a ferramenta Desenho', 'You can set the modem settings for SMS here.': 'Pode definir a configuração do modem SMS aqui.', 'You can use the Conversion Tool to convert from either GPS coordinates or Degrees/Minutes/Seconds.': 'Você pode utilizar a ferramenta de conversão para converter coordenadas de GPS ou graus/minutos/segundos.', 'You do no have permission to cancel this received shipment.': 'Você não tem permissão para cancelar o recebimento deste carregamento.', 'You do no have permission to cancel this sent shipment.': 'Você não tem permissão para cancelar o envio desse carregamento.', 'You do no have permission to make this commitment.': 'Você não tem permissão de fazer este compromisso.', 'You do no have permission to receive this shipment.': 'Você não tem permissão para receber este carregamento.', 'You do no have permission to send this shipment.': 'Você não tem permissão para enviar este carregamento.', 'You do not have permission for any facility to make a commitment.': 'Você não tem permissão em qualquer instalação para estabelecer um compromisso.', 'You do not have permission for any facility to make a request.': 'Você não tem permissão em qualquer instalação para fazer um pedido.', 'You do not have permission for any facility to receive a shipment.': 'You do not have permission for any facility to receive a shipment.', 'You do not have permission for any facility to send a shipment.': 'You do not have permission for any facility to send a shipment.', 'You do not have permission for any site to add an inventory item.': 'Você não tem permissão em qualquer site para incluir um item de inventário.', 'You do not have permission for any site to make a commitment.': 'Você não tem permissão em qualquer site para assumir um compromisso.', 'You do not have permission for any site to make a request.': 'Você não tem permissão em qualquer site para fazer um pedido.', 'You do not have permission for any site to perform this action.': 'Você não tem permissão em qualquer site para executar esta ação.', 'You do not have permission for any site to receive a shipment.': 'Você não tem permissão para qualquer site para receber um carregamento.', 'You do not have permission for any site to send a shipment.': 'Você não tem permissão em qualquer site para enviar um carregamento.', 'You do not have permission to cancel this received shipment.': 'Você não tem permissão para cancelar este carregamento recebido.', 'You do not have permission to cancel this sent shipment.': 'Você não tem permissão para cancelar essa remessa enviada.', 'You do not have permission to make this commitment.': 'Você não tem permissão para assumir este compromisso.', 'You do not have permission to receive this shipment.': 'Você não tem permissão para receber esta remessa.', 'You do not have permission to send a shipment from this site.': 'Você não tem permissão para enviar um carregamento a partir deste site.', 'You do not have permission to send this shipment.': 'Você não tem permissão para enviar este carregamento.', 'You have a personal map configuration. To change your personal configuration, click': 'Você tem uma configuração de mapa pessoal. Para alterar a sua configuração pessoal, clique', 'You have a personal map configuration. To change your personal configuration, click ': 'You have a personal map configuration. To change your personal configuration, click ', 'You have found a dead body?': 'Descobriu um cadáver ?', "You have unsaved changes. Click Cancel now, then 'Save' to save them. Click OK now to discard them.": "You have unsaved changes. Click Cancel now, then 'Save' to save them. Click OK now to discard them.", "You haven't made any calculations": 'Não fez quaisquer cálculos.', 'You must be logged in to register volunteers.': 'Você deve estar com login efetuado para registrar voluntários.', 'You must be logged in to report persons missing or found.': 'Você deve estar registrado para informar pessoas desaparecidas ou localizadas.', 'You must provide a series id to proceed.': 'Você deve fornecer um número de série para continuar.', 'You should edit Twitter settings in models/000_config.py': 'Você deve editar as definições do Twitter em modelos/000_config.py', 'Your current ordered list of solution items is shown below. You can change it by voting again.': 'Seu lista de itens de solução pedidos aparece abaixo. Você pode alterá-lo ao votar novamente.', 'Your post was added successfully.': 'O post foi incluído com êxito.', 'Your system has been assigned a unique identification (UUID), which other computers around you can use to identify you. To view your UUID, you may go to Synchronization -> Sync Settings. You can also see other settings on that page.': 'Uma identificação exclusiva (UUID) foi designada para o seu sistema e poderá ser usada por outros computadores ao seu redor para identificá-lo. Para visualizar o seu UUID, você pode ir para Sincronização -> configurações Sync. Você também pode ver outras configurações nesta página.', 'ZIP Code': 'ZIP Code', 'Zero Hour': 'Hora Zero', 'Zinc roof': 'Telhado de Zinco', 'Zoom': 'Zoom', 'Zoom Levels': 'Níveis de Zoom', 'active': 'ativo', 'added': 'incluído', 'all records': 'todos os registros', 'allows a budget to be developed based on staff & equipment costs, including any admin overheads.': 'Permite que um orçamento seja desenvolvido com base em despesas com o pessoal e equipamento, incluindo quaisquer despesas gerais administrativas.', 'allows for creation and management of assessments.': 'allows for creation and management of assessments.', 'allows for creation and management of surveys to assess the damage following a natural disaster.': 'permite a criação e gerenciamento de pesquisas para avaliar os danos após um desastre natural.', 'an individual/team to do in 1-2 days': 'Uma pessoa/Equipe para fazer em 1 Dias-2', 'assigned': 'designado', 'average': 'Na média', 'black': 'Preto', 'blond': 'Loiro', 'blue': 'azul', 'brown': 'Marrom', 'business_damaged': 'business_damaged', 'by': 'por', 'c/o Name': 'c/o Nome', 'can be used to extract data from spreadsheets and put them into database tables.': 'Pode ser utilizado para extrair dados de planilhas e colocá-los em tabelas de dados.', 'cancelled': 'CANCELADO', 'caucasoid': 'Caucasoid', 'check all': 'Verificar Tudo', 'click for more details': 'Clique para mais detalhes', 'click here': 'click here', 'completed': 'Concluído', 'confirmed': 'Confirmado', 'consider': 'considerar', "couldn't be parsed so NetworkLinks not followed.": 'Não pôde ser analisado então o NetworkLinks não seguiu.', 'curly': 'Encaracolado', 'currently registered': 'Atualmente registrados', 'daily': 'Diariamente', 'dark': 'Escuro', 'data uploaded': 'dados carregados', 'database': 'DATABASE', 'database %s select': '% de dados s SELECIONE', 'db': 'dB', 'deceased': 'Falecido', 'delete all checked': 'excluir todos marcados', 'deleted': 'excluídos', 'design': 'projecto', 'diseased': 'Doentes', 'displaced': 'Deslocadas', 'divorced': 'Divorciado', 'done!': 'Pronto!', 'duplicate': 'duplicar', 'edit': 'Editar', 'eg. gas, electricity, water': 'Exemplo: Gás, eletricidade, água', 'embedded': 'integrado', 'enclosed area': 'Área anexada', 'enter a number between %(min)g and %(max)g': 'enter a number between %(min)g and %(max)g', 'enter an integer between %(min)g and %(max)g': 'enter an integer between %(min)g and %(max)g', 'export as csv file': 'Exportar como arquivo cvs.', 'fat': 'Gordura', 'feedback': 'Retorno', 'female': 'Sexo Feminino', 'flush latrine with septic tank': 'esvaziar latrina com tanque séptico', 'food_sources': 'fuentes de alimento', 'forehead': 'testa', 'form data': 'form data', 'found': 'Localizado', 'from Twitter': 'do Twitter', 'getting': 'getting', 'green': 'verde', 'grey': 'cinza', 'here': 'aqui', 'high': 'Alta', 'hourly': 'Por hora', 'households': 'Membros da família', 'identified': 'identificado', 'ignore': 'Ignore', 'in Deg Min Sec format': 'GRAUS Celsius no formato Mín. Segundo', 'in GPS format': 'GPS no formato', 'in Inv.': 'in Inv.', 'inactive': 'inativo', "includes a GroundOverlay or ScreenOverlay which aren't supported in OpenLayers yet, so it may not work properly.": 'Inclui um GroundOverlay ou ScreenOverlay que não são ainda suportados em OpenLayuers, portanto poderá não funcionar na totalidade.', 'injured': 'Feridos', 'insert new': 'inserir novo', 'insert new %s': 'inserir novo %s', 'invalid': 'inválido', 'invalid request': 'PEDIDO INVÁLIDO', 'is a central online repository where information on all the disaster victims and families, especially identified casualties, evacuees and displaced people can be stored. Information like name, age, contact number, identity card number, displaced location, and other details are captured. Picture and finger print details of the people can be uploaded to the system. People can also be captured by group for efficiency and convenience.': 'É um repositório central de informações em tempo real onde vítimas de desastres e seus familiares, especialmente casos isolados, refugiados e pessoas deslocadas podem ser abrigados. Informações como nome, idade, Contate o número de Bilhete de Identidade número, localização Deslocadas, e outros detalhes são capturados. Detalhes de impressão Imagem e Dedo de as pessoas possam ser transferidos por upload para o sistema. As pessoas podem também ser capturados pelo grupo por eficiência e conveniência.', 'is envisioned to be composed of several sub-modules that work together to provide complex functionality for the management of relief and project items by an organization. This includes an intake system, a warehouse management system, commodity tracking, supply chain management, fleet management, procurement, financial tracking and other asset and resource management capabilities': 'tem como visão ser composto de vários sub-módulos que interagem juntos a fim de fornecer funcionalidade complexa para o gerenciamento de itens de ajuda e projeto de uma organização. Isso inclui um sistema de admissão, um sistema de gestão de depósitos, rastreamento de mercadorias, gestão da cadeia de fornecimentos, de gestão da frota, aquisições, recursos de rastreamento financeiro de ativos e outros e gerenciamento de recursos', 'keeps track of all incoming tickets allowing them to be categorised & routed to the appropriate place for actioning.': 'Mantém controle de todos os bilhetes de entrada permitindo que sejam classificados & direcionados ao local apropriado para atuação.', 'latrines': 'privadas', 'leave empty to detach account': 'deixar em branco para desconectar a conta', 'legend URL': 'Legenda URL', 'light': 'luz', 'login': 'login', 'long': 'Longo', 'long>12cm': 'comprimento>12cm', 'low': 'baixo', 'male': 'masculino', 'manual': 'Manual', 'married': 'casado', 'medium': 'médio.', 'medium<12cm': 'médio<12cm', 'meters': 'metros', 'missing': 'ausente', 'module allows the site administrator to configure various options.': 'Módulo permite que o administrador do site configure várias opções.', 'module helps monitoring the status of hospitals.': 'Módulo ajuda monitorando o status de hospitais.', 'module provides a mechanism to collaboratively provide an overview of the developing disaster, using online mapping (GIS).': 'Módulo fornece um mecanismo para colaboração fornecem uma visão geral do desastre de desenvolvimento, utilização de mapeamento online (SIG).', 'mongoloid': 'Mongolóide', 'more': 'Mais', 'n/a': 'n/d', 'negroid': 'Negróide', 'never': 'Nunca', 'new': 'Novo(a)', 'new record inserted': 'Novo registro inserido', 'next 100 rows': 'próximas 100 linhas', 'no': 'no', 'none': 'nenhum', 'normal': 'normal', 'not accessible - no cached version available!': 'Não acessível-nenhuma versão em cache disponível!', 'not accessible - using cached version from': 'Não acessível-Utilizando versão em Cache', 'not specified': 'não especificado', 'num Zoom Levels': 'Num níveis de Zoom', 'obsolete': 'Obsoleto', 'on': 'Ligar', 'once': 'uma vez', 'open defecation': 'Abrir evacuação', 'optional': 'Optional', 'or import from csv file': 'ou importar a partir do arquivo csv', 'other': 'outros', 'over one hour': 'Mais de uma hora', 'people': 'pessoas', 'piece': 'parte', 'pit': 'cova', 'pit latrine': 'cova de latrina', 'postponed': 'Adiado', 'preliminary template or draft, not actionable in its current form': 'Modelo ou rascunho preliminar, não acionável em sua forma atual', 'previous 100 rows': '100 linhas anteriores', 'record does not exist': 'Registro não existe', 'record id': 'ID do Registro', 'red': 'vermelho', 'reported': 'relatado', 'reports successfully imported.': 'relatórios importados com êxito.', 'representation of the Polygon/Line.': 'Representação do polígono /Linha.', 'retired': 'Aposentado', 'retry': 'retry', 'river': 'Rio', 'see comment': 'Veja o comentário', 'selected': 'Selecionado', 'separated': 'Separado', 'separated from family': 'Separados da família', 'shaved': 'raspado', 'short': 'pequeno', 'short<6cm': 'pequeno<6cm', 'sides': 'lados', 'sign-up now': 'Inscreva-se agora', 'single': 'único', 'slim': 'estreito', 'specify': 'Especifique.', 'staff': 'equipe', 'staff members': 'Membros da equipe', 'state': 'Estado', 'state location': 'Localização do Estado', 'straight': 'reto', 'suffered financial losses': 'Sofreram perdas financeiras', 'table': 'table', 'tall': 'Altura', 'this': 'isto', 'times and it is still not working. We give in. Sorry.': 'times and it is still not working. We give in. Sorry.', 'to access the system': 'Para acessar o sistema', 'to download a OCR Form.': 'to download a OCR Form.', 'to reset your password': 'Para Reconfigurar sua senha', 'to verify your email': 'Para verificar seu e-mail', 'tonsure': 'tonsura', 'total': 'Total', 'tweepy module not available within the running Python - this needs installing for non-Tropo Twitter support!': 'Módulo tweepy não disponível com a execução Python-isto necessita da instalação para suporte a tropo Twitter!', 'unable to parse csv file': 'Não é possível analisar arquivo csv', 'uncheck all': 'Desmarcar Tudo', 'unidentified': 'IDENTIFICADO', 'unknown': 'unknown', 'unspecified': 'UNSPECIFIED', 'unverified': 'Não Verificado', 'updated': 'Atualizado', 'updates only': 'Apenas atualizações', 'verified': 'Verificado', 'volunteer': 'voluntário', 'volunteers': 'Voluntários', 'wavy': 'Serpentina', 'weekly': 'Semanalmente', 'white': 'branco', 'wider area, longer term, usually contain multiple Activities': 'maior área, maior prazo, contém usualmente múltiplas actividades', 'widowed': 'Viúvo', 'window': 'janela', 'within human habitat': 'Dentro do habitat humano', 'xlwt module not available within the running Python - this needs installing for XLS output!': 'Módulo Xlwt não disponível no módulo Python sendo executado - isto necessita ser instalado para saída XLS!', 'yes': 'YES', }
61.737082
995
0.74161
39,493
297,511
5.586256
0.132353
0.003236
0.004469
0.001636
0.210572
0.166967
0.142101
0.124129
0.108436
0.09322
0
0.002867
0.147746
297,511
4,818
996
61.749896
0.867232
0.00004
0
0.000415
0
0.047955
0.868241
0.001442
0
0
0
0
0
1
0
true
0.003737
0.007266
0
0.007266
0.001038
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
ed3e7f550a07ae5965b40bbbda69660ec272d2cf
6,077
py
Python
autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
6
2021-03-10T16:23:10.000Z
2022-01-14T04:57:46.000Z
autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
null
null
null
autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
1
2022-01-14T04:57:55.000Z
2022-01-14T04:57:55.000Z
from abc import ABC, abstractmethod import collections import pandas as pd from autoscalingsim.utils.error_check import ErrorChecker class Correlator(ABC): _Registry = {} @abstractmethod def _compute_correlation(self, metrics_vals_1 : pd.Series, metrics_vals_2 : pd.Series, lag : int): pass def __init__(self, config : dict): history_buffer_size_raw = ErrorChecker.key_check_and_load('history_buffer_size', config, self.__class__.__name__) history_buffer_size_value = ErrorChecker.key_check_and_load('value', history_buffer_size_raw, self.__class__.__name__) history_buffer_size_unit = ErrorChecker.key_check_and_load('unit', history_buffer_size_raw, self.__class__.__name__) self.history_buffer_size = pd.Timedelta(history_buffer_size_value, unit = history_buffer_size_unit) max_time_lag_raw = ErrorChecker.key_check_and_load('max_time_lag', config, self.__class__.__name__) max_time_lag_value = ErrorChecker.key_check_and_load('value', max_time_lag_raw, self.__class__.__name__) max_time_lag_unit = ErrorChecker.key_check_and_load('unit', max_time_lag_raw, self.__class__.__name__) self.max_time_lag = pd.Timedelta(max_time_lag_value, unit = max_time_lag_unit) self.associated_service_metric_vals = pd.DataFrame() self.other_service_metric_vals = collections.defaultdict(pd.DataFrame) def _update_data(self, associated_service_metric_vals : pd.DataFrame, other_service_metric_vals : pd.DataFrame): if len(self.associated_service_metric_vals.index) > 0: self.associated_service_metric_vals = self.associated_service_metric_vals.append(associated_service_metric_vals[associated_service_metric_vals.index > max(self.associated_service_metric_vals.index)]) else: self.associated_service_metric_vals = self.associated_service_metric_vals.append(associated_service_metric_vals) if self.associated_service_metric_vals.shape[0] > 0: self.associated_service_metric_vals = self.associated_service_metric_vals[self.associated_service_metric_vals.index >= max(self.associated_service_metric_vals.index) - self.history_buffer_size] for service_name, metric_vals in other_service_metric_vals.items(): if len(self.other_service_metric_vals[service_name].index) > 0: self.other_service_metric_vals[service_name] = self.other_service_metric_vals[service_name].append(metric_vals[metric_vals.index > max(self.other_service_metric_vals[service_name].index)]) else: self.other_service_metric_vals[service_name] = self.other_service_metric_vals[service_name].append(metric_vals) if self.other_service_metric_vals[service_name].shape[0] > 0: self.other_service_metric_vals[service_name] = self.other_service_metric_vals[service_name][self.other_service_metric_vals[service_name].index >= max(self.other_service_metric_vals[service_name].index) - self.history_buffer_size] def get_lagged_correlation(self, associated_service_metric_vals : pd.DataFrame, other_service_metric_vals : pd.DataFrame) -> dict: self._update_data(associated_service_metric_vals, other_service_metric_vals) min_resolution = self._get_minimal_resolution() max_lag = self.max_time_lag // min_resolution lags_range = range(-max_lag, max_lag) lags_per_service = dict() for service_name, metric_vals in self.other_service_metric_vals.items(): other_service_metric_vals_resampled = metric_vals.resample(min_resolution).mean() associated_service_metric_vals_resampled = self.associated_service_metric_vals.resample(min_resolution).mean() common_len = min(associated_service_metric_vals_resampled.shape[0], other_service_metric_vals_resampled.shape[0]) associated_service_metric_vals_inp = associated_service_metric_vals_resampled['value'][-common_len:] other_service_metric_vals_inp = other_service_metric_vals_resampled['value'][-common_len:] if associated_service_metric_vals_inp.shape == other_service_metric_vals_inp.shape: corr_raw = { lag : self._compute_correlation(associated_service_metric_vals_inp, other_service_metric_vals_inp, lag) for lag in lags_range } corr_pruned = { lag : corr for lag, corr in corr_raw.items() if not corr is None} if len(corr_pruned) > 0: linear_correlation_df = pd.DataFrame({'lags': list(corr_pruned.keys()), 'correlation': list(corr_pruned.values())}).set_index('lags') lags_per_service[service_name] = { 'lag': int(linear_correlation_df.correlation.idxmax()) * min_resolution, 'correlation': linear_correlation_df.correlation.max() } return lags_per_service def _get_minimal_resolution(self): minimas_to_consider = [pd.Timedelta(1, unit = 's')] for service_name, metric_vals in self.other_service_metric_vals.items(): if metric_vals.shape[0] > 0: other_service_metric_vals_min_resolution = min(metric_vals.index.to_series().diff()[1:]) if not other_service_metric_vals_min_resolution is pd.NaT: minimas_to_consider.append(other_service_metric_vals_min_resolution) associated_service_metric_vals_min_resolution = min(self.associated_service_metric_vals.index.to_series().diff()[1:]) if not associated_service_metric_vals_min_resolution is pd.NaT: minimas_to_consider.append(associated_service_metric_vals_min_resolution) return min(minimas_to_consider) @classmethod def register(cls, name : str): def decorator(correlator_class): cls._Registry[name] = correlator_class return correlator_class return decorator @classmethod def get(cls, name : str): if not name in cls._Registry: raise ValueError(f'An attempt to use a non-existent {cls.__name__} {name}') return cls._Registry[name] from .correlators import *
57.87619
245
0.751687
803
6,077
5.17061
0.135741
0.156551
0.229287
0.188584
0.661609
0.570087
0.427023
0.329721
0.299374
0.283478
0
0.003158
0.1662
6,077
104
246
58.432692
0.816262
0
0
0.081081
0
0
0.02419
0
0
0
0
0
0
1
0.108108
false
0.013514
0.067568
0
0.27027
0
0
0
0
null
0
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
0
0
0
0
0
0
0
0
0
0
0
2
ed3f423aba07bd3e0294dc5b518080a8998ed87f
1,047
py
Python
sarpy/io/nitf/tres/unclass/ENGRDA.py
anielsen001/sarpy
07bf157f54a5304185fc0e1c34010053fd6ae9d9
[ "MIT" ]
null
null
null
sarpy/io/nitf/tres/unclass/ENGRDA.py
anielsen001/sarpy
07bf157f54a5304185fc0e1c34010053fd6ae9d9
[ "MIT" ]
null
null
null
sarpy/io/nitf/tres/unclass/ENGRDA.py
anielsen001/sarpy
07bf157f54a5304185fc0e1c34010053fd6ae9d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class RECORD(TREElement): def __init__(self, value): super(RECORD, self).__init__() self.add_field('ENGLN', 'd', 2, value) self.add_field('ENGLBL', 's', self.ENGLN, value) self.add_field('ENGMTXC', 'd', 4, value) self.add_field('ENGMTXR', 'd', 4, value) self.add_field('ENGTYP', 's', 1, value) self.add_field('ENGDTS', 'd', 1, value) self.add_field('ENGDTU', 's', 2, value) self.add_field('ENGDATC', 'd', 8, value) self.add_field('ENGDATA', 'b', self.ENGDATC, value) class ENGRDAType(TREElement): def __init__(self, value): super(ENGRDAType, self).__init__() self.add_field('RESRC', 's', 20, value) self.add_field('RECNT', 'd', 3, value) self.add_loop('RECORDSs', self.RECNT, RECORD, value) class ENGRDA(TREExtension): _tag_value = 'ENGRDA' _data_type = ENGRDAType
29.914286
60
0.621777
132
1,047
4.621212
0.371212
0.137705
0.216393
0.25082
0.347541
0.163934
0
0
0
0
0
0.013366
0.213945
1,047
34
61
30.794118
0.727825
0.020057
0
0.083333
0
0
0.118164
0
0
0
0
0
0
1
0.083333
false
0
0.041667
0
0.333333
0
0
0
0
null
0
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
0
0
0
0
0
0
0
0
0
0
0
2
ed44fdb0f01181ea268ba486b1d64620229b6b81
634
py
Python
xos/ec2_observer/steps/__init__.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/ec2_observer/steps/__init__.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/ec2_observer/steps/__init__.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
#from .sync_external_routes import SyncExternalRoutes #from .sync_network_slivers import SyncNetworkSlivers #from .sync_networks import SyncNetworks #from .sync_network_deployments import SyncNetworkDeployments #from .sync_site_privileges import SyncSitePrivilege #from .sync_slice_memberships import SyncSliceMemberships #from .sync_slices import SyncSlices #from .sync_sliver_ips import SyncSliverIps #from .sync_slivers import SyncSlivers #from .sync_users import SyncUsers #from .sync_roles import SyncRoles #from .sync_nodes import SyncNodes #from .sync_images import SyncImages #from .garbage_collector import GarbageCollector
39.625
61
0.865931
76
634
6.960526
0.473684
0.196597
0.056711
0
0
0
0
0
0
0
0
0
0.089905
634
15
62
42.266667
0.916811
0.954259
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
ed4e6dc26f15763248de005c84025114cd89fa6c
436
py
Python
src/infi/mount_utils/solaris/mounter.py
Infinidat/mount-utils
e4e08e21c278a2391494a7b9d9d7efdaeb393a9c
[ "BSD-3-Clause" ]
null
null
null
src/infi/mount_utils/solaris/mounter.py
Infinidat/mount-utils
e4e08e21c278a2391494a7b9d9d7efdaeb393a9c
[ "BSD-3-Clause" ]
null
null
null
src/infi/mount_utils/solaris/mounter.py
Infinidat/mount-utils
e4e08e21c278a2391494a7b9d9d7efdaeb393a9c
[ "BSD-3-Clause" ]
null
null
null
from ..base.mounter import MounterMixin, execute_mount class SolarisMounterMixin(MounterMixin): def _get_fstab_path(self): return "/etc/fstab" def _get_entry_format(self, entry): return entry.get_format_solaris() def mount_entry(self, entry): args = ["-F", entry.get_typename(), entry.get_fsname(), entry.get_dirname()] args.extend(self._format_options(entry)) execute_mount(args)
31.142857
84
0.694954
54
436
5.314815
0.481481
0.111498
0
0
0
0
0
0
0
0
0
0
0.188073
436
13
85
33.538462
0.810734
0
0
0
0
0
0.027523
0
0
0
0
0
0
1
0.3
false
0
0.1
0.2
0.7
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
ed5484913e5b4d8984ea6ca02d8e86830b881e11
4,857
py
Python
app/internal/module/video/database.py
kuropengin/SHINtube-video-api
8a4b068fb95a9a2736b3dba3782dbbbf73815290
[ "MIT" ]
null
null
null
app/internal/module/video/database.py
kuropengin/SHINtube-video-api
8a4b068fb95a9a2736b3dba3782dbbbf73815290
[ "MIT" ]
null
null
null
app/internal/module/video/database.py
kuropengin/SHINtube-video-api
8a4b068fb95a9a2736b3dba3782dbbbf73815290
[ "MIT" ]
null
null
null
import glob import pathlib from .filemanager import filemanager_class class database_class(filemanager_class): def __init__(self): filemanager_class.__init__(self) async def update_info(self, year, cid, vid, title, explanation): # 既存のjsonを読み込み json_file = "/".join([self.video_dir, str(year), cid, vid, "info.json"]) _dict = await self.read_json(json_file) if not _dict: return False # jsonの更新 _dict["title"] = title _dict["explanation"] = explanation # jsonの書き込み if self.write_json(json_file, _dict): return True return False async def encode_result(self, folderpath, resolution, result=True): # 既存のjsonを読み込み json_file = "/".join([folderpath, "info.json"]) _dict = await self.read_json(json_file) if not _dict: return False if result: # 画質の追加 _dict["resolution"].append(f"{resolution}p") _dict["encode_tasks"].remove(f"{resolution}p") else: _dict["encode_error"].append(f"{resolution}p") _dict["encode_tasks"].remove(f"{resolution}p") # jsonの書き込み self.write_json(json_file, _dict) # プレイリストに書き込み playlist = "/".join([folderpath, "playlist.m3u8"]) await self.write_playlist(playlist, resolution) async def encode_task(self, folderpath, resolution): # 既存のjsonを読み込み json_file = "/".join([folderpath, "info.json"]) _dict = await self.read_json(json_file) if not _dict: return False if f"{resolution}p" in _dict["resolution"]: return True # 画質の追加 _dict["encode_tasks"].append(f"{resolution}p") # jsonの書き込み if self.write_json(json_file, _dict): return True return False async def encode_error(self, folderpath, message): # 既存のjsonを読み込み json_file = "/".join([folderpath, "info.json"]) _dict = await self.read_json(json_file) if not _dict: return False # 画質の追加 _dict["encode_error"].append(f"{message}") # jsonの書き込み if self.write_json(json_file, _dict): return True return False async def get_all_info(self): json_files_path = await self.async_wrap(glob.glob)( f"./{self.video_dir}/**/info.json", recursive=True) result = [] for json_file in json_files_path: temp = await self.read_json(json_file) directory = "/".join(json_file.split("/")[:-1]) temp["video_directory"] = directory try: temp["video_file_name"] = glob.glob( f"{directory}/1.*")[0].split("/")[-1] except IndexError: temp["video_file_name"] = None result.append(temp) return result async def get_encode_tasks(self): video_info = await self.get_all_info() result = [] for info in video_info: if len(info["encode_tasks"]) > 0: result.append(info) return result async def list_video_id(self, year, cid): _video_dir = "/".join([self.video_dir, str(year), cid]) temp = await self.async_wrap(glob.glob)(f"{_video_dir}/*") return [video_id.split("/")[-1] for video_id in temp] async def list_link(self, year, cid): _video_dir = "/".join([self.video_dir, str(year), cid]) temp = await self.async_wrap(glob.glob)(f"{_video_dir}/*") result = {} for link_path in temp: json_file = link_path + "/info.json" _dict = await self.read_json(json_file) if not _dict: pass else: result[link_path.split("/")[-1]] = _dict return result async def get_all_info(self): json_files_path = await self.async_wrap(glob.glob)( f"./{self.video_dir}/**/info.json", recursive=True) result = [] for json_file in json_files_path: temp = await self.read_json(json_file) directory = "/".join(json_file.split("/")[:-1]) temp["video_directory"] = directory try: temp["video_file_name"] = glob.glob( f"{directory}/1.*")[0].split("/")[-1] except IndexError: temp["video_file_name"] = None result.append(temp) return result async def get_encode_tasks(self): video_info = await self.get_all_info() result = [] for info in video_info: if len(info["encode_tasks"]) > 0: result.append(info) return result database = database_class()
33.267123
71
0.558369
557
4,857
4.61939
0.136445
0.062184
0.051302
0.04625
0.717062
0.698018
0.688302
0.678197
0.678197
0.678197
0
0.004254
0.322421
4,857
145
72
33.496552
0.777575
0.02656
0
0.713043
0
0
0.104158
0.013152
0
0
0
0
0
1
0.008696
false
0.008696
0.026087
0
0.191304
0
0
0
0
null
0
0
0
0
0
0
0
0
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
2
ed62a4dc340088a21f482019440f649f39123cfc
1,293
py
Python
secretpy/ciphers/rot18.py
tigertv/crypt
e464f998e5540f52e269fe360ec9d3a08e976b2e
[ "MIT" ]
51
2019-01-09T02:38:03.000Z
2022-03-19T19:08:02.000Z
secretpy/ciphers/rot18.py
tigertv/crypt
e464f998e5540f52e269fe360ec9d3a08e976b2e
[ "MIT" ]
7
2019-10-03T19:50:32.000Z
2021-05-28T22:52:09.000Z
secretpy/ciphers/rot18.py
tigertv/crypt
e464f998e5540f52e269fe360ec9d3a08e976b2e
[ "MIT" ]
13
2019-04-16T16:39:44.000Z
2021-06-01T21:50:12.000Z
#!/usr/bin/python from .rot13 import Rot13 import secretpy.alphabets as al class Rot18: """ The Rot18 Cipher """ __rot13 = Rot13() def __init__(self): alphabet = al.ENGLISH half = len(alphabet) >> 1 self.__alphabet = alphabet[:half] + al.DECIMAL[:5] + alphabet[half:] + al.DECIMAL[5:] def __crypt(self, text, alphabet): return self.__rot13.encrypt(text, alphabet=self.__alphabet) def encrypt(self, text, key=None, alphabet=None): """ Encryption method :param text: Text to encrypt :param key: is not used :param alphabet: is not used :type text: string :type key: integer :type alphabet: string :return: text :rtype: string """ return self.__crypt(text, self.__alphabet) def decrypt(self, text, key=None, alphabet=None): """ Decryption method :param text: Text to decrypt :param key: is not used :param alphabet: is not used :type text: string :type key: integer :type alphabet: string :return: text :rtype: string """ return self.__crypt(text, self.__alphabet) def get_fixed_alphabet(self): return self.__alphabet
24.396226
93
0.58314
150
1,293
4.853333
0.3
0.098901
0.049451
0.057692
0.576923
0.458791
0.384615
0.384615
0.384615
0.384615
0
0.019187
0.314772
1,293
52
94
24.865385
0.802483
0.320959
0
0.125
0
0
0
0
0
0
0
0
0
1
0.3125
false
0
0.125
0.125
0.8125
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2