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
1289c7db045e4da596b05e84c658c13587f18f9d
582
py
Python
bert_client.py
patelrajnath/bert-as-service
d7cbea8183046a82ea345d769291f264b3f10977
[ "MIT" ]
null
null
null
bert_client.py
patelrajnath/bert-as-service
d7cbea8183046a82ea345d769291f264b3f10977
[ "MIT" ]
null
null
null
bert_client.py
patelrajnath/bert-as-service
d7cbea8183046a82ea345d769291f264b3f10977
[ "MIT" ]
null
null
null
import time from bert_serving.client import BertClient bc = BertClient(ip='185.190.206.134') start = time.time() encoded = bc.encode(['First do it', 'then do it right', 'then do it better', 'First do it', 'then do it right', 'then do it better', 'First do it', 'then do it right', 'then do it better', 'First do it', 'then do it right', 'then do it better', 'First do it', 'then do it right', 'then do it better', 'First do it', 'then do it right', 'then do it better']) print(time.time()-start) print(type(encoded))
44.769231
117
0.604811
94
582
3.734043
0.255319
0.205128
0.273504
0.222222
0.615385
0.615385
0.615385
0.615385
0.615385
0.615385
0
0.027586
0.252577
582
12
118
48.5
0.77931
0
0
0
0
0
0.480207
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
1
1
1
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
4
12a398cc328cb2777feedb49c11526123ed3e6be
114
py
Python
test/login.py
Aflowerhere/test-and-study
8ec110d7ea22394c4c1ddeff21231932238c24e4
[ "MIT" ]
null
null
null
test/login.py
Aflowerhere/test-and-study
8ec110d7ea22394c4c1ddeff21231932238c24e4
[ "MIT" ]
null
null
null
test/login.py
Aflowerhere/test-and-study
8ec110d7ea22394c4c1ddeff21231932238c24e4
[ "MIT" ]
null
null
null
num = 1 num = 2 <<<<<<< HEAD num1 = 3 ======= num = 3 >>>>>>> 011ac2f8da4f1491f15d2cac7c5f5541d442fb80 num2 = 4
10.363636
48
0.578947
12
114
5.5
0.75
0
0
0
0
0
0
0
0
0
0
0.336957
0.192982
114
10
49
11.4
0.380435
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
12b4ae1f98aad5d9d0af9955bbffe8bedb1d515b
51
py
Python
vk_bots/_vkapi/__init__.py
RedHolms/vk_bots
36dab8b45bf437ede5d7d29490cfc90de696ec8c
[ "MIT" ]
null
null
null
vk_bots/_vkapi/__init__.py
RedHolms/vk_bots
36dab8b45bf437ede5d7d29490cfc90de696ec8c
[ "MIT" ]
null
null
null
vk_bots/_vkapi/__init__.py
RedHolms/vk_bots
36dab8b45bf437ede5d7d29490cfc90de696ec8c
[ "MIT" ]
null
null
null
from .exceptions import * from .vk_api import VkAPI
25.5
25
0.803922
8
51
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.137255
51
2
26
25.5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
421869ab2c499a6d9a06f809b80d7b374b426d09
28
py
Python
data/studio21_generated/introductory/3751/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3751/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3751/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def bool_to_word(boolean):
14
26
0.785714
5
28
4
1
0
0
0
0
0
0
0
0
0
0
0
0.107143
28
2
27
14
0.8
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
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
1
0
0
0
0
0
0
0
0
4
42252137fbc6330cd82e180283b4d6807bd6b38b
5,875
py
Python
mlperf/clustering/toolkits/tensorflow.py
v-m/ml-perf
51598c35e7bf9945bed914d9d4208597e2a03a1d
[ "MIT" ]
null
null
null
mlperf/clustering/toolkits/tensorflow.py
v-m/ml-perf
51598c35e7bf9945bed914d9d4208597e2a03a1d
[ "MIT" ]
1
2019-06-11T08:51:49.000Z
2019-09-07T11:37:21.000Z
mlperf/clustering/toolkits/tensorflow.py
v-m/SmokeOut
51598c35e7bf9945bed914d9d4208597e2a03a1d
[ "MIT" ]
1
2018-10-09T18:13:42.000Z
2018-10-09T18:13:42.000Z
"""Tensorflow clustering""" import tensorflow as tf from tensorflow.contrib.factorization import KMEANS_PLUS_PLUS_INIT __author__ = "Vincenzo Musco (http://www.vmusco.com)" from numpy.core.tests.test_mem_overlap import xrange from tensorflow.python.framework import constant_op from mlperf.clustering import clusteringtoolkit from mlperf.clustering.clusteringtoolkit import ClusteringToolkit from mlperf.tools.static import TENSORFLOW_TOOLKIT class TensorFlow(clusteringtoolkit.ClusteringToolkit): def toolkit_name(self): return TENSORFLOW_TOOLKIT @staticmethod def _train_kpp(input_fn, kmeans, num_iterations=10): # train for _ in xrange(num_iterations): kmeans.train(input_fn) @staticmethod def _build_points_and_input_fn(data_without_target): points = data_without_target.values def input_fn(): return tf.train.limit_epochs(tf.convert_to_tensor(points, dtype=tf.float32), num_epochs=1) return points, input_fn @staticmethod def _clustering_to_list(points, cluster_indices): clusters_list = [] for index, point in enumerate(points): cluster_index = cluster_indices[index] clusters_list.append([index, cluster_index]) return clusters_list @staticmethod def _centroids_to_list(model): centers_list = [] for row in model.cluster_centers(): centers_list.append(row.tolist()) return centers_list # https://www.tensorflow.org/api_docs/python/tf/contrib/factorization/KMeansClustering def run_kmeans(self, nb_clusters, src_file, data_without_target, dataset_name, initial_clusters_file, initial_clusters, run_number, run_info=None, nb_iterations=None): import tensorflow as tf output_file, centroids_file = self._prepare_files(dataset_name, run_info, True) if self.seed is not None: tf.set_random_seed(self.seed) kmeans = tf.contrib.factorization.KMeansClustering(num_clusters=nb_clusters, initial_clusters=initial_clusters, use_mini_batch=False) points, input_fn = TensorFlow._build_points_and_input_fn(data_without_target) TensorFlow._train_kpp(input_fn, kmeans, 10 if nb_iterations is None else nb_iterations) cluster_indices = list(kmeans.predict_cluster_index(input_fn)) ClusteringToolkit._save_clustering(TensorFlow._clustering_to_list(points, cluster_indices), output_file) ClusteringToolkit._save_centroids(TensorFlow._centroids_to_list(kmeans), centroids_file) return output_file, {"centroids": centroids_file} def run_kmeans_plus_plus(self, nb_clusters, src_file, data_without_target, dataset_name, run_number, run_info=None, nb_iterations=None): import tensorflow as tf output_file, centroids_file = self._prepare_files(dataset_name, run_info, True) if self.seed is not None: tf.set_random_seed(self.seed) kmeans = tf.contrib.factorization.KMeansClustering(num_clusters=nb_clusters, initial_clusters=KMEANS_PLUS_PLUS_INIT, use_mini_batch=False) points, input_fn = TensorFlow._build_points_and_input_fn(data_without_target) TensorFlow._train_kpp(input_fn, kmeans, 10 if nb_iterations is None else nb_iterations) cluster_indices = list(kmeans.predict_cluster_index(input_fn)) ClusteringToolkit._save_clustering(TensorFlow._clustering_to_list(points, cluster_indices), output_file) ClusteringToolkit._save_centroids(TensorFlow._centroids_to_list(kmeans), centroids_file) return output_file, {"centroids": centroids_file} def run_gaussian(self, nb_clusters, src_file, data_without_target, dataset_name, run_number, run_info=None): import tensorflow as tf output_file, centroids_file = self._prepare_files(dataset_name, run_info, True) if self.seed is not None: tf.set_random_seed(self.seed) points = data_without_target.values def get_input_fn(): def input_fn(): return constant_op.constant(points.astype(np.float32)), None return input_fn gmm = tf.contrib.factorization.GMM(num_clusters=nb_clusters) gmm.fit(input_fn=get_input_fn(), steps=1) cluster_indices = list(gmm.predict_assignments()) ClusteringToolkit._save_clustering(TensorFlow._clustering_to_list(points, cluster_indices), output_file) ClusteringToolkit._save_centroids(TensorFlow._centroids_to_list(gmm), centroids_file) return output_file, {"centroids": centroids_file} def run_gaussian_initial_starting_points(self, nb_clusters, src_file, data_without_target, dataset_name, initial_clusters_file, initial_clusters, run_number, run_info=None): import tensorflow as tf output_file, centroids_file = self._prepare_files(dataset_name, run_info, True) if self.seed is not None: tf.set_random_seed(self.seed) points = data_without_target.values def get_input_fn(): def input_fn(): return constant_op.constant(points.astype(np.float32)), None return input_fn gmm = tf.contrib.factorization.GMM(num_clusters=nb_clusters, initial_clusters=initial_clusters) gmm.fit(input_fn=get_input_fn(), steps=1) cluster_indices = list(gmm.predict_assignments()) ClusteringToolkit._save_clustering(TensorFlow._clustering_to_list(points, cluster_indices), output_file) ClusteringToolkit._save_centroids(TensorFlow._centroids_to_list(gmm), centroids_file) return output_file, {"centroids": centroids_file}
42.266187
120
0.713191
713
5,875
5.500701
0.164095
0.04105
0.043345
0.025497
0.734319
0.728965
0.711627
0.711627
0.692504
0.692504
0
0.003243
0.212766
5,875
138
121
42.572464
0.844757
0.019234
0
0.6
0
0
0.012858
0
0
0
0
0
0
1
0.147368
false
0
0.115789
0.042105
0.410526
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4234d5eec130ffd961bc4b41def53016d6d5060b
204
py
Python
dashboard/admin.py
HERA-Team/heranow
1bc827459a7a92f600cefbd0c8a08f629a211cda
[ "BSD-3-Clause" ]
null
null
null
dashboard/admin.py
HERA-Team/heranow
1bc827459a7a92f600cefbd0c8a08f629a211cda
[ "BSD-3-Clause" ]
6
2020-09-10T05:33:17.000Z
2021-03-16T20:36:47.000Z
dashboard/admin.py
HERA-Team/heranow
1bc827459a7a92f600cefbd0c8a08f629a211cda
[ "BSD-3-Clause" ]
null
null
null
"""Admin page access to DB.""" from django.contrib import admin from .models import AntennaStatus, Antenna # Register your models here. admin.site.register(AntennaStatus) admin.site.register(Antenna)
18.545455
42
0.779412
27
204
5.888889
0.592593
0.113208
0.213836
0
0
0
0
0
0
0
0
0
0.122549
204
10
43
20.4
0.888268
0.254902
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
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
1
0
0
0
0
4
42447d7adb27a0ea94ddebdbee8e91e90ed9de9b
107
py
Python
app/ext/security.py
Claayton/Flask-app
9282047781857eeb125afd32968fbf6594885ae7
[ "MIT" ]
3
2021-08-07T19:44:26.000Z
2021-11-16T12:27:07.000Z
app/ext/security.py
Claayton/Flask-app
9282047781857eeb125afd32968fbf6594885ae7
[ "MIT" ]
2
2021-09-04T13:36:22.000Z
2021-09-04T13:49:01.000Z
app/ext/security.py
Claayton/Flask-app
9282047781857eeb125afd32968fbf6594885ae7
[ "MIT" ]
1
2021-08-31T11:53:29.000Z
2021-08-31T11:53:29.000Z
from flask_bcrypt import Bcrypt bcpt = Bcrypt() def init_app(app): bcpt.init_app(app) return app
13.375
31
0.71028
17
107
4.294118
0.529412
0.191781
0.273973
0
0
0
0
0
0
0
0
0
0.205607
107
7
32
15.285714
0.858824
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
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
1
0
0
4
425020c8af42cea00a4c456c7e2884cb79389d6b
773
py
Python
_unittest/test_00_general_methods.py
myoung301/pyaedt
e848dabbdd65aada3af1c5389947bb8a1bfe4a6f
[ "MIT" ]
38
2021-10-01T23:15:26.000Z
2022-03-30T18:14:41.000Z
_unittest/test_00_general_methods.py
myoung301/pyaedt
e848dabbdd65aada3af1c5389947bb8a1bfe4a6f
[ "MIT" ]
362
2021-09-30T17:11:55.000Z
2022-03-31T13:36:20.000Z
_unittest/test_00_general_methods.py
pyansys/pyaedt
c7b045fede6bc707fb20a8db7d5680c66d8263f6
[ "MIT" ]
15
2021-09-30T20:21:02.000Z
2022-02-21T20:22:03.000Z
from pyaedt.generic.general_methods import number_aware_string_key class TestClass(object): def test_00_number_aware_string_key(self): assert number_aware_string_key("C1") == ("C", 1) assert number_aware_string_key("1234asdf") == (1234, "asdf") assert number_aware_string_key("U100") == ("U", 100) assert number_aware_string_key("U100X0") == ("U", 100, "X", 0) def test_01_number_aware_string_key(self): component_names = ["U10", "U2", "C1", "Y1000", "Y200"] expected_sort_order = ["C1", "U2", "U10", "Y200", "Y1000"] assert sorted(component_names, key=number_aware_string_key) == expected_sort_order assert sorted(component_names + [""], key=number_aware_string_key) == [""] + expected_sort_order
48.3125
104
0.676585
102
773
4.72549
0.401961
0.205394
0.317427
0.373444
0.589212
0.273859
0.273859
0.273859
0.273859
0.273859
0
0.07837
0.174644
773
15
105
51.533333
0.677116
0
0
0
0
0
0.07762
0
0
0
0
0
0.5
1
0.166667
false
0
0.083333
0
0.333333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
4257f73639e0dba726ca7c028cab2b58d3fbf9a8
428
py
Python
credentials/__init__.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
credentials/__init__.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
credentials/__init__.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
import importlib def import_credentials(name: str): try: module = importlib.import_module('credentials.local_{}_credentials'.format(name)) except Exception: module = importlib.import_module('credentials.{}_credentials'.format(name)) return getattr(module, '{}_credentials'.format(name)) raspador_credentials = import_credentials('raspador') raspador_slackbot_credentials = import_credentials('raspador_slackbot')
38.909091
85
0.794393
45
428
7.266667
0.355556
0.155963
0.192661
0.165138
0.232416
0
0
0
0
0
0
0
0.088785
428
11
86
38.909091
0.838462
0
0
0
0
0
0.226107
0.135198
0
0
0
0
0
1
0.111111
false
0
0.666667
0
0.888889
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
1
0
1
0
0
4
427bce744a4fe437a8eb4300b79c66fefeb607f2
208
py
Python
sbscraper/product.py
quoppy/sbscraper
3b8ebfc67df614b2b807e65ecff80f4cc2f66715
[ "Apache-2.0" ]
null
null
null
sbscraper/product.py
quoppy/sbscraper
3b8ebfc67df614b2b807e65ecff80f4cc2f66715
[ "Apache-2.0" ]
null
null
null
sbscraper/product.py
quoppy/sbscraper
3b8ebfc67df614b2b807e65ecff80f4cc2f66715
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Products are standard objects that Loaders add to the data store.""" # For now Products are simple dictionaries. class Product(dict): """Standardised product data.""" pass
26
71
0.682692
27
208
5.259259
0.851852
0.15493
0
0
0
0
0
0
0
0
0
0.005882
0.182692
208
8
72
26
0.829412
0.754808
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
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
1
1
0
0
0
0
0
4
428324c5111a4218fe3f342f4209ba4ce3218796
423
py
Python
src/custom_callbacks.py
kshannon/intracranial-hemorrhage-detection
fd65c44c487ab07faaed5d39cc238f70b95891bc
[ "MIT" ]
7
2019-09-30T02:30:49.000Z
2020-01-25T04:23:19.000Z
src/custom_callbacks.py
kshannon/intracranial-hemorrhage-detection
fd65c44c487ab07faaed5d39cc238f70b95891bc
[ "MIT" ]
18
2019-09-28T18:41:46.000Z
2019-11-10T21:42:02.000Z
src/custom_callbacks.py
kshannon/intracranial-hemorrhage-detection
fd65c44c487ab07faaed5d39cc238f70b95891bc
[ "MIT" ]
4
2020-01-25T04:23:21.000Z
2020-11-17T17:34:24.000Z
import tensorflow as tf from tensorflow.keras.callbacks import LearningRateScheduler import numpy as np def step_decay_schedule(initial_lr=1e-3, decay_factor=0.75, step_size=10): ''' Wrapper function to create a LearningRateScheduler with step decay schedule. ''' def schedule(epoch): return initial_lr * (decay_factor ** np.floor(epoch/step_size)) return LearningRateScheduler(schedule)
30.214286
80
0.749409
55
423
5.618182
0.581818
0.058252
0.110032
0
0
0
0
0
0
0
0
0.02
0.172577
423
13
81
32.538462
0.862857
0.179669
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.428571
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
1
1
1
0
0
4
42895f4baf367c5004d5383b42672d8286f1a813
129
py
Python
modular_build.py
aslushnikov/sourcemap
9139fa3769ce22a733b05a15c4b654f1c4a5e47e
[ "MIT" ]
null
null
null
modular_build.py
aslushnikov/sourcemap
9139fa3769ce22a733b05a15c4b654f1c4a5e47e
[ "MIT" ]
null
null
null
modular_build.py
aslushnikov/sourcemap
9139fa3769ce22a733b05a15c4b654f1c4a5e47e
[ "MIT" ]
null
null
null
from os import path def read_file(filename): with open(path.normpath(filename), 'rt') as input: return input.read()
21.5
54
0.682171
19
129
4.578947
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.20155
129
5
55
25.8
0.84466
0
0
0
0
0
0.015504
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
428c657911447fc6fb81b9faad0d6b7ad71e4f8c
452
py
Python
HelloWorld/Arithmetic.py
martianworm17/udemy-pythonforbeginnersintro
03ff140becbbcbefcb644dcdcdd57cdd1dd443d8
[ "MIT" ]
null
null
null
HelloWorld/Arithmetic.py
martianworm17/udemy-pythonforbeginnersintro
03ff140becbbcbefcb644dcdcdd57cdd1dd443d8
[ "MIT" ]
null
null
null
HelloWorld/Arithmetic.py
martianworm17/udemy-pythonforbeginnersintro
03ff140becbbcbefcb644dcdcdd57cdd1dd443d8
[ "MIT" ]
null
null
null
age1 = 12 age2 = 18 print("age1 + age2") print(age1 + age2) print("age1 - age2") print(age1 - age2) print("age1 * age2") print(age1 * age2) print("age1 / age2") print(age1 / age2) print("age1 % age2") print(age1 % age2) sent1 = "Today is a beautiful day" firstName = "Marlon" lastName = "Monzon" print(firstName + " " + lastName) print ("HI" * 10) sentence = "Marlon was playing basketball."; # Splicing print(sentence[0:6]) print(sentence[:-12])
16.740741
44
0.661504
63
452
4.746032
0.380952
0.301003
0.434783
0.541806
0.434783
0.434783
0.434783
0.434783
0.434783
0.434783
0
0.087302
0.163717
452
27
45
16.740741
0.703704
0.017699
0
0
0
0
0.27991
0
0
0
0
0
0
1
0
false
0
0
0
0
0.7
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
4292a9c40af84820d8bd2a1581a6a7ec6673662a
20
py
Python
nksnd/slm/__init__.py
yoriyuki/nksnd
2048b357b26bcf4eaf777222b6c6a0b9386b2568
[ "MIT" ]
29
2016-10-07T21:17:17.000Z
2021-09-04T16:32:25.000Z
nksnd/slm/__init__.py
yoriyuki/nksnd
2048b357b26bcf4eaf777222b6c6a0b9386b2568
[ "MIT" ]
null
null
null
nksnd/slm/__init__.py
yoriyuki/nksnd
2048b357b26bcf4eaf777222b6c6a0b9386b2568
[ "MIT" ]
null
null
null
__all__ = ["stats"]
10
19
0.6
2
20
4
1
0
0
0
0
0
0
0
0
0
0
0
0.15
20
1
20
20
0.470588
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4294fe45394b98fac66eb6e563a7da9ff1150632
114
py
Python
api-book/chapter-2-software/scripts/script.py
Eligijus112/api-book
e345598b6226eaef190caa016c199e9db2b697ff
[ "MIT" ]
null
null
null
api-book/chapter-2-software/scripts/script.py
Eligijus112/api-book
e345598b6226eaef190caa016c199e9db2b697ff
[ "MIT" ]
21
2021-11-09T16:13:59.000Z
2022-01-16T12:57:27.000Z
api-book/chapter-2-software/scripts/script.py
Eligijus112/api-book
e345598b6226eaef190caa016c199e9db2b697ff
[ "MIT" ]
null
null
null
# Importing the system module from os import system # Making a ping to google system("ping -c 5 www.google.com")
22.8
34
0.745614
20
114
4.25
0.8
0
0
0
0
0
0
0
0
0
0
0.010638
0.175439
114
5
34
22.8
0.893617
0.447368
0
0
0
0
0.4
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
c40e7e760246a48833437f5ace8f542b6dee7829
111
py
Python
book_env/Lib/site-packages/pandas_datareader/mstar/__init__.py
als0052/Hands-On-Data-Analysis-with-Pandas
ea4e94f93a1e00cbccb493f22dde5c8007ed5e76
[ "MIT" ]
null
null
null
book_env/Lib/site-packages/pandas_datareader/mstar/__init__.py
als0052/Hands-On-Data-Analysis-with-Pandas
ea4e94f93a1e00cbccb493f22dde5c8007ed5e76
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
book_env/Lib/site-packages/pandas_datareader/mstar/__init__.py
als0052/Hands-On-Data-Analysis-with-Pandas
ea4e94f93a1e00cbccb493f22dde5c8007ed5e76
[ "MIT" ]
null
null
null
""" written and developed by Daniel Temkin please refer to LICENSE for ownership and reference information """
22.2
63
0.792793
15
111
5.866667
0.933333
0
0
0
0
0
0
0
0
0
0
0
0.153153
111
4
64
27.75
0.93617
0.918919
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c428dca30a9659b2f213c0fcf317a5410db5bcdd
2,210
py
Python
insights/scripts/bb2/apps.py
mjburling/beneficiary-fhir-data
1ff4a55ab8cffbcc7a2e32eae1bf940cbc38a052
[ "CC0-1.0" ]
26
2019-09-03T12:49:41.000Z
2022-02-18T18:47:28.000Z
insights/scripts/bb2/apps.py
mjburling/beneficiary-fhir-data
1ff4a55ab8cffbcc7a2e32eae1bf940cbc38a052
[ "CC0-1.0" ]
371
2019-08-28T21:40:27.000Z
2022-03-30T20:45:12.000Z
insights/scripts/bb2/apps.py
mjburling/beneficiary-fhir-data
1ff4a55ab8cffbcc7a2e32eae1bf940cbc38a052
[ "CC0-1.0" ]
26
2019-08-29T21:24:49.000Z
2022-01-09T19:43:56.000Z
import random import events from datetime import datetime, timedelta class App: def generate_session(self, start_time: datetime, bene): return [] def random_hash(self): hex_letters = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'] return ''.join(random.choice(hex_letters) for _ in range(32)) class Humana(App): def app_id(self): return 13 def app_name(self): return "Humana" def dev_id(self): return 180 def dev_name(self): return "mscrimshire+humana@gmail.com" def generate_session(self, start_time: datetime, bene): token_hash = self.random_hash() current_time = start_time call_period = timedelta(seconds=0.4) if random.randint(0,30) == 0: yield events.my_medicare_login(bene, self, current_time) current_time += call_period yield events.token_response(bene, self, current_time, token_hash) current_time += call_period for _ in range(random.randint(1, 9)): yield events.eob_response(bene, self, current_time, token_hash) current_time += call_period yield events.patient_response(bene, self, current_time, token_hash) class Evidation(App): def app_id(self): return 32 def app_name(self): return "Evidation on behalf of Heartline" def dev_id(self): return 11770 def dev_name(self): return "mscrimshire+evidationheartline@gmail.com" def generate_session(self, start_time: datetime, bene): token_hash = self.random_hash() current_time = start_time call_period = timedelta(seconds=0.3) if random.randint(0,20) == 0: yield events.my_medicare_login(bene, self, current_time) current_time += call_period yield events.token_response(bene, self, current_time, token_hash) current_time += call_period yield events.user_info_response(bene, self, current_time, token_hash) current_time += call_period yield events.eob_response(bene, self, current_time, token_hash) current_time += call_period yield events.patient_response(bene, self, current_time, token_hash) current_time += call_period yield events.coverage_response(bene, self, current_time, token_hash)
27.625
98
0.697285
312
2,210
4.695513
0.24359
0.150171
0.095563
0.129693
0.772014
0.720137
0.649147
0.624573
0.595222
0.595222
0
0.021289
0.192308
2,210
79
99
27.974684
0.79944
0
0
0.553571
1
0
0.055204
0.030769
0
0
0
0
0
1
0.214286
false
0
0.053571
0.160714
0.5
0
0
0
0
null
0
0
0
0
1
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
1
0
0
0
1
0
0
0
4
c42c42140a32cf0ada8e4c3bcd62737a1834a82c
988
py
Python
env/Lib/site-packages/OpenGL/GL/ARB/conditional_render_inverted.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GL/ARB/conditional_render_inverted.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GL/ARB/conditional_render_inverted.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ARB.conditional_render_inverted This module customises the behaviour of the OpenGL.raw.GL.ARB.conditional_render_inverted to provide a more Python-friendly API Overview (from the spec) This extension adds new modes to BeginConditionalRender which invert the condition used to determine whether to draw or not. The official definition of this extension is available here: http://www.opengl.org/registry/specs/ARB/conditional_render_inverted.txt ''' from OpenGL import platform, constant, arrays from OpenGL import extensions, wrapper import ctypes from OpenGL.raw.GL import _types, _glgets from OpenGL.raw.GL.ARB.conditional_render_inverted import * from OpenGL.raw.GL.ARB.conditional_render_inverted import _EXTENSION_NAME def glInitConditionalRenderInvertedARB(): '''Return boolean indicating whether this extension is available''' from OpenGL import extensions return extensions.hasGLExtension( _EXTENSION_NAME ) ### END AUTOGENERATED SECTION
35.285714
73
0.819838
132
988
6.015152
0.507576
0.075567
0.125945
0.176322
0.172544
0.172544
0.172544
0.123426
0.123426
0
0
0
0.123482
988
28
74
35.285714
0.916859
0.586032
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.777778
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
1
0
1
0
1
0
0
4
c436f7de227108675e32c7f170740d04591680cd
127
py
Python
calculator_py/errors.py
Kev-in123/calculator-py
eabc182f4789b839e016df475309366fc03a5b94
[ "MIT" ]
1
2021-08-12T19:08:01.000Z
2021-08-12T19:08:01.000Z
calculator_py/errors.py
Kev-in123/calculator-py
eabc182f4789b839e016df475309366fc03a5b94
[ "MIT" ]
null
null
null
calculator_py/errors.py
Kev-in123/calculator-py
eabc182f4789b839e016df475309366fc03a5b94
[ "MIT" ]
null
null
null
class CalcError(Exception): def __init__(self, error): self.message = error super().__init__(self.message)
25.4
37
0.653543
14
127
5.357143
0.642857
0.213333
0
0
0
0
0
0
0
0
0
0
0.228346
127
4
38
31.75
0.765306
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
c4436dee943f3f869da138b7422618295e6ff6a1
1,290
py
Python
setup/terraform/resources/tests/test_nifireg.py
tejten/edge2ai-workshop
611fda920480b383d1af2eef4df86cc2a1724b3b
[ "Apache-2.0" ]
4
2019-11-14T13:27:32.000Z
2020-02-24T00:17:35.000Z
setup/terraform/resources/tests/test_nifireg.py
balazsgaspar/edge2ai-workshop
0c509cd6ae1479566a57c61bc04b230046d7ff21
[ "Apache-2.0" ]
null
null
null
setup/terraform/resources/tests/test_nifireg.py
balazsgaspar/edge2ai-workshop
0c509cd6ae1479566a57c61bc04b230046d7ff21
[ "Apache-2.0" ]
3
2019-10-14T03:28:41.000Z
2019-12-09T08:00:37.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Testing NiFi reg """ from nipyapi import versioning def test_nifi_registry_iot(run_id): bucket = versioning.get_registry_bucket('IoT') assert bucket flows = versioning.list_flows_in_bucket(bucket.identifier) assert len(flows) == 1 flow = flows[0] versions = versioning.list_flow_versions(bucket.identifier, flow.identifier) assert len(versions) >= 2 assert versions[0].comments == 'Second version - ' + run_id, 'Comments: ' + versions[0].comments assert versions[1].comments == 'First version - ' + run_id, 'Comments: ' + versions[1].comments def test_nifi_registry_sensorflows(run_id): bucket = versioning.get_registry_bucket('SensorFlows') assert bucket flows = versioning.list_flows_in_bucket(bucket.identifier) assert len(flows) == 1 flow = flows[0] versions = versioning.list_flow_versions(bucket.identifier, flow.identifier) assert len(versions) == 3 assert versions[0].comments == 'Second version - ' + run_id, 'Comments: ' + versions[0].comments assert versions[1].comments == 'First version - ' + run_id, 'Comments: ' + versions[1].comments assert versions[2].comments == 'Enabled version control - ' + run_id, 'Comments: ' + versions[2].comments
36.857143
109
0.702326
161
1,290
5.459627
0.254658
0.039818
0.073948
0.119454
0.76223
0.76223
0.76223
0.675768
0.675768
0.675768
0
0.016744
0.166667
1,290
34
110
37.941176
0.80093
0.046512
0
0.636364
0
0
0.127764
0
0
0
0
0
0.5
1
0.090909
false
0
0.045455
0
0.136364
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
c44dcd2d45a2e60b3714a17f1eca4a7b8b4af20e
2,812
gyp
Python
build/projects/lb_shell.gyp
snibug/gyp_example
6bbf1ef53c68df4e5a657e0037cf6c81d2140178
[ "Apache-2.0" ]
null
null
null
build/projects/lb_shell.gyp
snibug/gyp_example
6bbf1ef53c68df4e5a657e0037cf6c81d2140178
[ "Apache-2.0" ]
null
null
null
build/projects/lb_shell.gyp
snibug/gyp_example
6bbf1ef53c68df4e5a657e0037cf6c81d2140178
[ "Apache-2.0" ]
null
null
null
{ 'targets': [ { 'target_name': 'lb_shell_package', 'type': 'none', 'default_project': 1, 'dependencies': [ 'lb_shell_contents', ], 'conditions': [ ['target_arch=="android"', { 'dependencies': [ 'lb_shell_android.gyp:lb_shell_apk', ], }, { 'dependencies': [ 'lb_shell_exe.gyp:lb_shell', ], }], ['target_arch not in ["linux", "android", "wiiu"]', { 'dependencies': [ '../platforms/<(target_arch)_deploy.gyp:lb_shell_deploy', ], }], ], }, { 'target_name': 'lb_layout_tests_package', 'type': 'none', 'dependencies': [ 'lb_shell_exe.gyp:lb_layout_tests', 'lb_shell_contents', ], }, { 'target_name': 'lb_unit_tests_package', 'type': 'none', 'dependencies': [ 'lb_shell_exe.gyp:unit_tests_base', 'lb_shell_exe.gyp:unit_tests_crypto', 'lb_shell_exe.gyp:unit_tests_media', 'lb_shell_exe.gyp:unit_tests_net', 'lb_shell_exe.gyp:unit_tests_sql', 'lb_shell_exe.gyp:lb_unit_tests', 'lb_shell_exe.gyp:unit_tests_image_decoder', 'lb_shell_exe.gyp:unit_tests_xml_parser', 'lb_shell_contents', '<@(platform_contents_unit_tests)', ], 'conditions': [ ['target_arch not in ["linux", "android", "wiiu"]', { 'dependencies': [ '../platforms/<(target_arch)_deploy.gyp:unit_tests_base_deploy', '../platforms/<(target_arch)_deploy.gyp:unit_tests_media_deploy', '../platforms/<(target_arch)_deploy.gyp:unit_tests_net_deploy', '../platforms/<(target_arch)_deploy.gyp:unit_tests_sql_deploy', '../platforms/<(target_arch)_deploy.gyp:lb_unit_tests_deploy', ], }], ], }, { 'target_name': 'lb_shell_contents', 'type': 'none', 'dependencies': [ '<@(platform_contents_lbshell)', ], }, ], 'conditions': [ ['target_arch == "android"', { 'targets': [ { 'target_name': 'lb_unit_tests_package_apks', 'type': 'none', 'dependencies': [ 'lb_shell_exe.gyp:unit_tests_base_apk', 'lb_shell_exe.gyp:unit_tests_crypto_apk', 'lb_shell_exe.gyp:unit_tests_media_apk', 'lb_shell_exe.gyp:unit_tests_net_apk', 'lb_shell_exe.gyp:unit_tests_sql_apk', 'lb_shell_exe.gyp:lb_unit_tests_apk', 'lb_shell_exe.gyp:unit_tests_image_decoder_apk', 'lb_shell_exe.gyp:unit_tests_xml_parser_apk', 'lb_shell_contents', '<@(platform_contents_unit_tests)', ], }, ], }], ], }
29.291667
77
0.548009
296
2,812
4.679054
0.135135
0.141516
0.129964
0.168953
0.74296
0.740794
0.66065
0.397112
0.210108
0.168953
0
0.000508
0.299787
2,812
95
78
29.6
0.702895
0
0
0.51087
0
0
0.598862
0.427809
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
1
0
1
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
1
0
0
0
0
0
0
4
c458005b0830c2b933f55d8793aed8fbd464e9a2
13
py
Python
Tools/resultsdbpy/resultsdbpy/flask_support/__init__.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/resultsdbpy/resultsdbpy/view/__init__.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/resultsdbpy/resultsdbpy/view/__init__.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# DO NOTHING
6.5
12
0.692308
2
13
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.230769
13
1
13
13
0.9
0.769231
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
1
0
0
0
0
0
0
4
c466a555c1b9be4429608cb7cdb9236f7b086c7b
158
py
Python
examples/docs_snippets_crag/docs_snippets_crag_tests/concepts_tests/partitions_schedules_sensors_tests/test_partitioned_job_test.py
dagster-io/dagster
5b834cee42670307157e9c6a4193a7fda1437841
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
examples/docs_snippets_crag/docs_snippets_crag_tests/concepts_tests/partitions_schedules_sensors_tests/test_partitioned_job_test.py
dagster-io/dagster
5b834cee42670307157e9c6a4193a7fda1437841
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
examples/docs_snippets_crag/docs_snippets_crag_tests/concepts_tests/partitions_schedules_sensors_tests/test_partitioned_job_test.py
dagster-io/dagster
5b834cee42670307157e9c6a4193a7fda1437841
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
from docs_snippets_crag.concepts.partitions_schedules_sensors.partitioned_job_test import ( # pylint: disable=unused-import test_do_stuff_partitioned, )
39.5
124
0.848101
20
158
6.25
0.85
0
0
0
0
0
0
0
0
0
0
0
0.088608
158
3
125
52.666667
0.868056
0.183544
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
4
671f73a82e64939013e67a9fccd0dd0cac213d41
130
py
Python
main.py
imosudi/noteapp_docker
e27d5c90790b85c36745a1537dbcd42931f993a0
[ "MIT" ]
null
null
null
main.py
imosudi/noteapp_docker
e27d5c90790b85c36745a1537dbcd42931f993a0
[ "MIT" ]
null
null
null
main.py
imosudi/noteapp_docker
e27d5c90790b85c36745a1537dbcd42931f993a0
[ "MIT" ]
null
null
null
from app import app import config if __name__ == '__main__': app.run(host='0.0.0.0', port=config.PORT, debug=config.DEBUG_MODE)
21.666667
67
0.730769
23
130
3.73913
0.565217
0.069767
0.069767
0
0
0
0
0
0
0
0
0.034783
0.115385
130
5
68
26
0.713043
0
0
0
0
0
0.115385
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
6774ee632553e9a76cce6851c44373aacb6032ae
194
py
Python
psistats2/plugins/reporters/uptime.py
psistats/psistats2
100c0c8d3802f2febb7194d7d633ca0416b75068
[ "MIT" ]
null
null
null
psistats2/plugins/reporters/uptime.py
psistats/psistats2
100c0c8d3802f2febb7194d7d633ca0416b75068
[ "MIT" ]
4
2018-09-22T04:40:18.000Z
2019-05-01T02:33:51.000Z
psistats2/plugins/reporters/uptime.py
psistats/psistats2
100c0c8d3802f2febb7194d7d633ca0416b75068
[ "MIT" ]
null
null
null
from uptime import uptime from psireporter import ReporterPlugin class UptimeReporter(metaclass=ReporterPlugin): PLUGIN_ID='uptime' def report(self): return uptime()
17.636364
47
0.716495
20
194
6.9
0.7
0
0
0
0
0
0
0
0
0
0
0
0.221649
194
10
48
19.4
0.913907
0
0
0
0
0
0.030928
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
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
0
0
1
1
1
0
0
4
67bc5e0f43c065dc359aebec61c22aa50269a104
126
py
Python
setup.py
cmuell89/NFA_Regex
e8da4ff783ce952c79c25aed0dc0b22cf85d8dd7
[ "Unlicense", "MIT" ]
null
null
null
setup.py
cmuell89/NFA_Regex
e8da4ff783ce952c79c25aed0dc0b22cf85d8dd7
[ "Unlicense", "MIT" ]
null
null
null
setup.py
cmuell89/NFA_Regex
e8da4ff783ce952c79c25aed0dc0b22cf85d8dd7
[ "Unlicense", "MIT" ]
null
null
null
from distutils.core import setup from Cython.Build import cythonize setup( name='NFA', ext_modules=cythonize("NFA.pyx") )
18
34
0.761905
18
126
5.277778
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.126984
126
7
35
18
0.863636
0
0
0
0
0
0.07874
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
4
67e354d20217acd242d0ad510fa3ae92f24da737
92
py
Python
2015/03/gdp-women-20140312/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/03/gdp-women-20140312/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/03/gdp-women-20140312/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1HPBT1kHoP0NbDhRpNMXsQrgcrmcPqXg-gu66ImF6OBc'
23
68
0.836957
10
92
7.4
1
0
0
0
0
0
0
0
0
0
0
0.069767
0.065217
92
3
69
30.666667
0.790698
0.217391
0
0
0
0
0.619718
0.619718
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
67f20c63a85d13eabc188321b0264e7f582d1a7b
278
py
Python
instagram_api/response/edit_collection.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
instagram_api/response/edit_collection.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
instagram_api/response/edit_collection.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
from .mapper import ApiResponse from .model.collection import CollectionInterface __all__ = ['EditCollectionResponse'] class EditCollectionResponseInterface(CollectionInterface): pass class EditCollectionResponse(ApiResponse, EditCollectionResponseInterface): pass
21.384615
75
0.834532
20
278
11.4
0.6
0
0
0
0
0
0
0
0
0
0
0
0.111511
278
12
76
23.166667
0.923077
0
0
0.285714
0
0
0.079137
0.079137
0
0
0
0
0
1
0
false
0.285714
0.285714
0
0.571429
0
1
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
1
0
0
1
0
0
4
db3a6dad46fd9a81fa79a48bb18f0f22d18a048b
160
py
Python
a2t/legacy/__init__.py
zhuowenzheng/Ask2Transformers
f22fd980ff97351acc7e6117aaf272e5946581d4
[ "Apache-2.0" ]
null
null
null
a2t/legacy/__init__.py
zhuowenzheng/Ask2Transformers
f22fd980ff97351acc7e6117aaf272e5946581d4
[ "Apache-2.0" ]
null
null
null
a2t/legacy/__init__.py
zhuowenzheng/Ask2Transformers
f22fd980ff97351acc7e6117aaf272e5946581d4
[ "Apache-2.0" ]
1
2022-03-20T02:08:10.000Z
2022-03-20T02:08:10.000Z
import warnings warnings.warn( "The code from a2t.legacy is deprecated and is only intended to be used for reproducibility reasons.", DeprecationWarning )
26.666667
125
0.7875
22
160
5.727273
0.909091
0
0
0
0
0
0
0
0
0
0
0.007463
0.1625
160
5
126
32
0.932836
0
0
0
0
0
0.61875
0
0
0
0
0
0
1
0
true
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
e1d8280afa1b7b0b94bb6c0d15bfb5c5e2fe4b00
109
py
Python
utils/common.py
DEADSEC-SECURITY/japscan-pdf-maker
e43fcbeddb3454693f17776e040317f21737ffd0
[ "MIT" ]
3
2021-09-03T11:22:21.000Z
2021-12-14T20:31:53.000Z
utils/common.py
DEADSEC-SECURITY/japscan_pdf_maker
e43fcbeddb3454693f17776e040317f21737ffd0
[ "MIT" ]
1
2021-12-14T15:14:37.000Z
2021-12-14T20:04:47.000Z
utils/common.py
DEADSEC-SECURITY/japscan_pdf_maker
e43fcbeddb3454693f17776e040317f21737ffd0
[ "MIT" ]
1
2022-03-07T14:24:09.000Z
2022-03-07T14:24:09.000Z
from time import sleep import random def random_sleep(): value = random.randrange(0, 2) sleep(value)
18.166667
34
0.715596
16
109
4.8125
0.625
0.25974
0
0
0
0
0
0
0
0
0
0.022727
0.192661
109
6
35
18.166667
0.852273
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
e1e18ac574446b82a892fa1c7cd7c405cb940ed4
159
py
Python
gen_test/__init__.py
zhengjiani/PageOs
842125c1171cccb753e18475671dfce2bd12f04b
[ "Apache-2.0" ]
null
null
null
gen_test/__init__.py
zhengjiani/PageOs
842125c1171cccb753e18475671dfce2bd12f04b
[ "Apache-2.0" ]
3
2020-02-29T04:47:24.000Z
2021-06-02T01:06:38.000Z
gen_test/__init__.py
zhengjiani/PageOs
842125c1171cccb753e18475671dfce2bd12f04b
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : __init__.py.py @Time : 2020/2/29 11:57 AM @Author : zhengjiani @Email : 936089353@qq.com @Software: PyCharm """
17.666667
29
0.597484
22
159
4.136364
0.954545
0
0
0
0
0
0
0
0
0
0
0.165354
0.201258
159
8
30
19.875
0.551181
0.937107
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c052d9a8c664677dfcd434caf82a2c342ee7482e
169
py
Python
yatube/core/context_processors/year.py
YandexDev/yatube_project
66d99b9270ee5d77eab783f07b1ac5cebd298fba
[ "MIT" ]
null
null
null
yatube/core/context_processors/year.py
YandexDev/yatube_project
66d99b9270ee5d77eab783f07b1ac5cebd298fba
[ "MIT" ]
null
null
null
yatube/core/context_processors/year.py
YandexDev/yatube_project
66d99b9270ee5d77eab783f07b1ac5cebd298fba
[ "MIT" ]
null
null
null
""" Функция контекст-процессора""" from datetime import date def year(request): """Добавляет переменную с текущим годом.""" return {"year": date.today().year}
18.777778
47
0.686391
20
169
5.8
0.85
0
0
0
0
0
0
0
0
0
0
0
0.159763
169
8
48
21.125
0.816901
0.384615
0
0
0
0
0.043478
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
4
c053796bdf507ef0d453f127e08469ef536fc73e
13,290
py
Python
tests/test_pytumblr.py
metaltoad/pytumblr
2479831c69a38143a924fb1d110a7464d727913e
[ "Apache-2.0" ]
1
2021-01-15T23:04:22.000Z
2021-01-15T23:04:22.000Z
tests/test_pytumblr.py
vivlim/tumblr-autotag
e252d7dbebd820c13b628e2762621d91937b3ab9
[ "Apache-2.0" ]
null
null
null
tests/test_pytumblr.py
vivlim/tumblr-autotag
e252d7dbebd820c13b628e2762621d91937b3ab9
[ "Apache-2.0" ]
1
2021-02-18T11:22:09.000Z
2021-02-18T11:22:09.000Z
import nose import unittest import mock import json import io from httpretty import HTTPretty, httprettified import pytumblr from urlparse import parse_qs class TumblrRestClientTest(unittest.TestCase): """ """ def setUp(self): with open('tests/tumblr_credentials.json', 'r') as f: credentials = json.loads(f.read()) self.client = pytumblr.TumblrRestClient(credentials['consumer_key'], credentials['consumer_secret'], credentials['oauth_token'], credentials['oauth_token_secret']) @httprettified def test_dashboard(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/user/dashboard', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"posts": [] } }') response = self.client.dashboard() assert response['posts'] == [] @httprettified def test_posts(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"posts": [] } }') response = self.client.posts('codingjester.tumblr.com') assert response['posts'] == [] @httprettified def test_posts_with_type(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/seejohnrun.tumblr.com/posts/photo', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"posts": [] } }') response = self.client.posts('seejohnrun', 'photo') assert response['posts'] == [] @httprettified def test_posts_with_type_and_arg(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/seejohnrun.tumblr.com/posts/photo?limit=1', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"posts": [] } }') args = { 'limit': 1 } response = self.client.posts('seejohnrun', 'photo', **args) assert response['posts'] == [] @httprettified def test_blogInfo(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/info', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"blog": {} } }') response = self.client.blog_info('codingjester.tumblr.com') assert response['blog'] == {} @httprettified def test_followers(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/followers', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"users": [] } }') response = self.client.followers('codingjester.tumblr.com') assert response['users'] == [] @httprettified def test_blogLikes(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/likes', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"liked_posts": [] } }') response = self.client.blog_likes('codingjester.tumblr.com') assert response['liked_posts'] == [] @httprettified def test_queue(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts/queue', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"posts": [] } }') response = self.client.queue('codingjester.tumblr.com') assert response['posts'] == [] @httprettified def test_drafts(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts/draft', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"posts": [] } }') response = self.client.drafts('codingjester.tumblr.com') assert response['posts'] == [] @httprettified def test_submissions(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts/submission', body='{"meta": {"status": 200, "msg": "OK"}, "response": {"posts": [] } }') response = self.client.submission('codingjester.tumblr.com') assert response['posts'] == [] @httprettified def test_follow(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/user/follow', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.follow("codingjester.tumblr.com") assert response == [] experimental_body = parse_qs(HTTPretty.last_request.body) assert HTTPretty.last_request.method == "POST" assert experimental_body['url'][0] == 'codingjester.tumblr.com' @httprettified def test_unfollow(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/user/unfollow', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.unfollow("codingjester.tumblr.com") assert response == [] experimental_body = parse_qs(HTTPretty.last_request.body) assert HTTPretty.last_request.method == "POST" assert experimental_body['url'][0] == 'codingjester.tumblr.com' @httprettified def test_reblog(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/seejohnrun.tumblr.com/post/reblog', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.reblog('seejohnrun', id='123', reblog_key="adsfsadf", state='coolguy', tags=['hello', 'world']) assert response == [] experimental_body = parse_qs(HTTPretty.last_request.body) assert HTTPretty.last_request.method == 'POST' assert experimental_body['id'][0] == '123' assert experimental_body['reblog_key'][0] == 'adsfsadf' assert experimental_body['state'][0] == 'coolguy' assert experimental_body['tags'][0] == 'hello,world' @httprettified def test_edit_post(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/seejohnrun.tumblr.com/post/edit', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.edit_post('seejohnrun', id='123', state='coolguy', tags=['hello', 'world']) assert response == [] experimental_body = parse_qs(HTTPretty.last_request.body) assert HTTPretty.last_request.method == 'POST' assert experimental_body['id'][0] == '123' assert experimental_body['state'][0] == 'coolguy' assert experimental_body['tags'][0] == 'hello,world' @httprettified def test_like(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/user/like', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.like('123', "adsfsadf") assert response == [] experimental_body = parse_qs(HTTPretty.last_request.body) assert HTTPretty.last_request.method == "POST" assert experimental_body['id'][0] == '123' assert experimental_body['reblog_key'][0] == 'adsfsadf' @httprettified def test_unlike(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/user/unlike', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.unlike('123', "adsfsadf") assert response == [] experimental_body = parse_qs(HTTPretty.last_request.body) assert HTTPretty.last_request.method == "POST" assert experimental_body['id'][0] == '123' assert experimental_body['reblog_key'][0] == 'adsfsadf' @httprettified def test_info(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/user/info', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.info() assert response == [] @httprettified def test_likes(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/user/likes', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.likes() assert response == [] @httprettified def test_following(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/user/following', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.following() assert response == [] @httprettified def test_tagged(self): HTTPretty.register_uri(HTTPretty.GET, 'http://api.tumblr.com/v2/tagged?tag=food', body='{"meta": {"status": 200, "msg": "OK"}, "response": []}') response = self.client.tagged('food') assert response == [] @httprettified def test_create_text(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_text('codingjester.tumblr.com', body="Testing") assert response == [] @httprettified def test_create_link(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_link('codingjester.tumblr.com', url="http://google.com", tags=['omg', 'nice']) assert response == [] experimental_body = parse_qs(HTTPretty.last_request.body) assert HTTPretty.last_request.method == "POST" assert experimental_body['tags'][0] == "omg,nice" @httprettified def test_no_tags(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/seejohnrun.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_link('seejohnrun.tumblr.com', tags=[]) experimental_body = parse_qs(HTTPretty.last_request.body) assert 'tags' not in experimental_body @httprettified def test_create_quote(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_quote('codingjester.tumblr.com', quote="It's better to love and lost, than never have loved at all.") assert response == [] @httprettified def test_create_chat(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_chat('codingjester.tumblr.com', conversation="JB: Testing is rad.\nJC: Hell yeah.") assert response == [] @httprettified def test_create_photo(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_photo('codingjester.tumblr.com', source="http://media.tumblr.com/image.jpg") assert response == [] #with mock.patch('__builtin__.open') as my_mock: # my_mock.return_value.__enter__ = lambda s: s # my_mock.return_value.__exit__ = mock.Mock() # my_mock.return_value.read.return_value = 'some data' # response = self.client.create_photo('codingjester.tumblr.com', data="/Users/johnb/Desktop/gozer_avatar.jpgdf") # assert response['meta']['status'] == 201 # assert response['meta']['msg'] == "OK" #response = self.client.create_photo('codingjester.tumblr.com', data=["/Users/johnb/Desktop/gozer_avatar.jpg", "/Users/johnb/Desktop/gozer_avatar.jpg"]) #assert response['meta']['status'] == 201 #assert response['meta']['msg'] == "OK" @httprettified def test_create_audio(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_audio('codingjester.tumblr.com', external_url="http://media.tumblr.com/audio.mp3") assert response == [] @httprettified def test_create_video(self): HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/post', body='{"meta": {"status": 201, "msg": "OK"}, "response": []}') response = self.client.create_video('codingjester.tumblr.com', embed="blahblahembed") assert response == [] if __name__ == "__main__": unittest.main()
45.050847
171
0.600075
1,444
13,290
5.401662
0.112188
0.080769
0.091538
0.086154
0.79141
0.758846
0.717051
0.707564
0.689744
0.643846
0
0.01549
0.227615
13,290
294
172
45.204082
0.744374
0.047178
0
0.525822
0
0.079812
0.334757
0.036703
0
0
0
0
0.230047
1
0.13615
false
0
0.037559
0
0.178404
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c06ab4fa4d6de9c5d18312074a6aa9b372f99864
97
py
Python
notification/strategy/db/disconnecter.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
1
2018-11-12T17:00:35.000Z
2018-11-12T17:00:35.000Z
notification/strategy/db/disconnecter.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
null
null
null
notification/strategy/db/disconnecter.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
null
null
null
class Disconnecter: def disconnect(self, parameters=None): raise NotImplementedError
24.25
42
0.742268
9
97
8
1
0
0
0
0
0
0
0
0
0
0
0
0.195876
97
3
43
32.333333
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
fbf7314df317dccd08635c45cc3f4de77d91b6f4
74
py
Python
igcollect/__init__.py
brainexe/igcollect
12a2fa81331f305f8852b5a30c8d90d2a8895738
[ "MIT" ]
15
2016-04-13T11:13:41.000Z
2020-12-04T17:25:43.000Z
igcollect/__init__.py
brainexe/igcollect
12a2fa81331f305f8852b5a30c8d90d2a8895738
[ "MIT" ]
10
2016-12-01T15:15:31.000Z
2020-05-07T13:54:57.000Z
igcollect/__init__.py
brainexe/igcollect
12a2fa81331f305f8852b5a30c8d90d2a8895738
[ "MIT" ]
18
2016-03-16T11:06:10.000Z
2022-03-14T14:56:05.000Z
"""igcollect - Library Entry Point Copyright (c) 2018 InnoGames GmbH """
14.8
34
0.716216
9
74
5.888889
1
0
0
0
0
0
0
0
0
0
0
0.064516
0.162162
74
4
35
18.5
0.790323
0.891892
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
fbf75815bb01ecbd76e5a5bcd912f8073f69f508
155
py
Python
ex012.py
GuilhermeAntony14/Estudando-Python
b020f6d2625e7fcc42d30658bcbd881b093434dd
[ "MIT" ]
null
null
null
ex012.py
GuilhermeAntony14/Estudando-Python
b020f6d2625e7fcc42d30658bcbd881b093434dd
[ "MIT" ]
null
null
null
ex012.py
GuilhermeAntony14/Estudando-Python
b020f6d2625e7fcc42d30658bcbd881b093434dd
[ "MIT" ]
null
null
null
v1 = float(input('digite o valor do produto: R$')) v2 = v1*0.05 print(f' O valor do produto com desconto: R${v2:>6.2f} \n Valor a pagar: R${v1-v2:>8.2f}')
38.75
90
0.63871
34
155
2.911765
0.647059
0.121212
0.161616
0.30303
0
0
0
0
0
0
0
0.099237
0.154839
155
3
91
51.666667
0.656489
0
0
0
0
0.333333
0.703226
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fbfe14f48991a2eef106bfda54496f35a42f5608
167
py
Python
main.py
JQIamo/temperature-control-app
7ba91e8a7caa0506b0daf1d6394eb07d400182b9
[ "MIT" ]
null
null
null
main.py
JQIamo/temperature-control-app
7ba91e8a7caa0506b0daf1d6394eb07d400182b9
[ "MIT" ]
null
null
null
main.py
JQIamo/temperature-control-app
7ba91e8a7caa0506b0daf1d6394eb07d400182b9
[ "MIT" ]
null
null
null
import asyncio from temperature_web_control.main import run if __name__ == "__main__": try: asyncio.run(run()) except KeyboardInterrupt: pass
18.555556
44
0.682635
19
167
5.473684
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.239521
167
9
45
18.555556
0.818898
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
true
0.142857
0.285714
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
1
1
0
0
0
0
0
4
221b9bcfda135d5c0fd621c30436fc1408999352
938
py
Python
shop/models.py
Limo-v/ecom
0b318840bd66f2bc98043cc3b3a18f4c98c6a5b3
[ "BSD-3-Clause" ]
13
2021-08-10T14:30:06.000Z
2022-01-14T14:22:54.000Z
shop/models.py
Limo-v/ecom
0b318840bd66f2bc98043cc3b3a18f4c98c6a5b3
[ "BSD-3-Clause" ]
null
null
null
shop/models.py
Limo-v/ecom
0b318840bd66f2bc98043cc3b3a18f4c98c6a5b3
[ "BSD-3-Clause" ]
14
2021-07-17T14:14:00.000Z
2022-01-16T08:28:19.000Z
# from ecom.shop.views import checkout from django.db import models # Create your models here. class products(models.Model): def __str__(self): return self.title title = models.CharField(max_length=200) price = models.FloatField() discount_price = models.FloatField() category = models.CharField(max_length=200) description = models.TextField() image = models.CharField(max_length=500) class Meta: verbose_name = "Product" # checkout order models class order(models.Model): items = models.CharField(max_length=1000) name = models.CharField(max_length=100) email = models.CharField(max_length=100) address = models.CharField(max_length=1000) city = models.CharField(max_length=100) state = models.CharField(max_length=100) zipcode = models.CharField(max_length=100) total = models.CharField(max_length=100) class Meta: verbose_name = "Order"
29.3125
47
0.71322
118
938
5.516949
0.389831
0.253456
0.304147
0.40553
0.417819
0
0
0
0
0
0
0.045872
0.186567
938
32
48
29.3125
0.807339
0.088486
0
0.086957
0
0
0.014085
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0.043478
0.913043
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
224e6fd0c73ee36c81c4ce2271a15505eda628fb
68
py
Python
conftest.py
unklearn/python-runtime
d6647ce9bb9c02879a4b0fc58e267806b199eb2e
[ "MIT" ]
null
null
null
conftest.py
unklearn/python-runtime
d6647ce9bb9c02879a4b0fc58e267806b199eb2e
[ "MIT" ]
null
null
null
conftest.py
unklearn/python-runtime
d6647ce9bb9c02879a4b0fc58e267806b199eb2e
[ "MIT" ]
null
null
null
import os os.environ.putenv('UNKLEARN_ENVIRONMENT_TYPE', 'testing')
22.666667
57
0.808824
9
68
5.888889
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.058824
68
3
57
22.666667
0.828125
0
0
0
0
0
0.463768
0.362319
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
22724048574990d12a16e887bfe3f7f615be1a1b
129
py
Python
exercises/exe01 - 10/exe003.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
exercises/exe01 - 10/exe003.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
exercises/exe01 - 10/exe003.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
n = int(input('Digite um nº: ')) print('O número {} é sucedido por {}. Enquanto é antecedido por {}'.format(n, (n + 1), (n - 1))
43
95
0.589147
22
129
3.454545
0.727273
0.052632
0
0
0
0
0
0
0
0
0
0.019048
0.186047
129
3
95
43
0.704762
0
0
0
0
0
0.561538
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
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
1
0
0
0
0
0
0
1
0
4
97f5c7212916ba274b8a09c7d3c32e3dc9c6d292
190
py
Python
lib/oeqa/runtime/cases/rubygems_rubygems_net_scp.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
null
null
null
lib/oeqa/runtime/cases/rubygems_rubygems_net_scp.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
141
2021-02-04T16:22:13.000Z
2022-03-27T08:29:40.000Z
lib/oeqa/runtime/cases/rubygems_rubygems_net_scp.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
3
2021-02-04T14:02:01.000Z
2022-02-02T16:46:52.000Z
from rubygems_utils import RubyGemsTestUtils class RubyGemsTestrubygems_net_scp(RubyGemsTestUtils): def test_gem_list_rubygems_net_scp(self): self.gem_is_installed("net-scp")
23.75
54
0.810526
24
190
6
0.666667
0.125
0
0
0
0
0
0
0
0
0
0
0.126316
190
7
55
27.142857
0.86747
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
3f0a759f67f66b105c876a0894e23287ca6a8f50
2,749
py
Python
Ene-Jun-2021/monjaras-granados-alicia-montserrat/Primer Parcial/ejercicio5/srp.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2021/monjaras-granados-alicia-montserrat/Primer Parcial/ejercicio5/srp.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2021/monjaras-granados-alicia-montserrat/Primer Parcial/ejercicio5/srp.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import json # Descarga esta librería con el comando 'pip install json2html' #descarga libreria con el comando pip install json2xml from json2html import * #importa librerias para hacer el formato xml from json2xml import json2xml from json2xml.utils import readfromurl, readfromstring, readfromjson class Usuario(object): def __init__(self, **args): self.nombre = args.get('nombre') self.edad = args.get('edad') self.direccion = args.get('direccion') def set_nombre(self, nombre): self.nombre = nombre def get_nombre(self): return self.nombre def set_edad(self, edad): self.edad = edad def get_edad(self): return self.edad def set_direccion(self, direccion): self.direccion = direccion def get_direccion(self): return self.direccion def __str__(self): return """ Nombre: {}\nEdad: {}\nDireccion: {}\n """.format(self.nombre, self.edad, self.direccion).strip() # defnir el single of responsability: cada función solo debe tenerr una funcionalidad # se declara cada funcion formato_"tipo" para definirl el tipo de documento # cada función recibe un formato y se define el tipo y retorna la representación de cada uno def formato_string(self, formato='string'): return str(self) def formato_diccionario(self, formato="diccionario"): return self.__dict__ def formato_json(self, formato="json"): return json.dumps(self.__dict__) def formato_html(self, formato="html"): return json2html.convert(self.formato_json()) def formato_xml(self, formato="xml"): data = readfromstring(self.formato_json()) # obtener el xml de una cadena json return ''.join(json2xml.Json2xml(data).to_xml().split()) #retorna el xml user = Usuario( nombre='Ramanujan', edad=25, direccion='Calle X, #Y Colonia Z' ) print(user.formato_xml())# imprime el xml #¿Qué sucedería si quiero agregar otro formato de serialización más complejo como XML o Yaml? """ primero tendriamos que descargar primero la libreria json2xml para generar el xml:desúes se importa, luego obtiene el xml de una cadena json y después retorna el xmml, en el caso del yaml también se tendria que buscar la librería que se usa para coonvertirlo en formato yaml y luego declarar un metodo con su respectiva operación para llegar a ese formato. """ #¿Qué sucedería si quiero soporte para serialización a otros objetos aparte de los instanciados por la clase Usuario? """ identificar que patron se le acomodadaría mejor para hacerlo más sencillo, porque si seguimos agregando muchas instancias serían demasiadas y sería poco entendible """
34.797468
151
0.704984
373
2,749
5.115282
0.412869
0.040356
0.022013
0.015723
0.066038
0.020964
0
0
0
0
0
0.005561
0.214987
2,749
79
152
34.797468
0.877665
0.247726
0
0
0
0
0.090727
0
0
0
0
0.012658
0
1
0.309524
false
0
0.095238
0.190476
0.642857
0.02381
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
1
1
0
0
4
3f214fdb20123c5d318e41a78f676362981d66d5
636
py
Python
stdlib/solutions/math_euclidean_2d.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
1
2019-01-02T15:04:08.000Z
2019-01-02T15:04:08.000Z
stdlib/solutions/math_euclidean_2d.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
stdlib/solutions/math_euclidean_2d.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
import math def euclidean_distance(A, B): """ >>> A = (1, 0) >>> B = (0, 1) >>> euclidean_distance(A, B) 1.4142135623730951 >>> euclidean_distance((0,0), (1,0)) 1.0 >>> euclidean_distance((0,0), (1,1)) 1.4142135623730951 >>> euclidean_distance((0,1), (1,1)) 1.0 >>> euclidean_distance((0,10), (1,1)) 9.055385138137417 """ x1 = A[0] x2 = B[0] y1 = A[1] y2 = B[1] part_x = (x2-x1) ** 2 part_y = (y2-y1) ** 2 return math.sqrt(part_x + part_y) return math.sqrt((x2-x1)**2 + (y2-y1)**2) return math.sqrt(pow(B[1]-A[1],2)+pow(B[0]-A[0],2))
17.666667
55
0.503145
104
636
2.980769
0.230769
0.329032
0.232258
0.122581
0.490323
0.122581
0
0
0
0
0
0.217204
0.268868
636
35
56
18.171429
0.449462
0.43239
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.454545
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
1
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
4
3f497bc68162dd5c00548ce29198253640ce867c
139,139
py
Python
pythonocc/lib/OCC/HLRAlgo.py
mbattistello/lambda_converters
0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3
[ "MIT" ]
2
2017-10-30T15:51:48.000Z
2020-11-04T02:23:36.000Z
pythonocc/lib/OCC/HLRAlgo.py
mbattistello/lambda_converters
0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3
[ "MIT" ]
null
null
null
pythonocc/lib/OCC/HLRAlgo.py
mbattistello/lambda_converters
0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3
[ "MIT" ]
4
2017-11-29T05:24:34.000Z
2020-03-05T23:23:23.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.10 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _HLRAlgo.SWIG_PyInstanceMethod_New(func) else: from new import instancemethod as new_instancemethod if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_HLRAlgo', [dirname(__file__)]) except ImportError: import _HLRAlgo return _HLRAlgo if fp is not None: try: _mod = imp.load_module('_HLRAlgo', fp, pathname, description) finally: fp.close() return _mod _HLRAlgo = swig_import_helper() del swig_import_helper else: import _HLRAlgo del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 def _swig_setattr_nondynamic_method(set): def set_attr(self,name,value): if (name == "thisown"): return self.this.own(value) if hasattr(self,name) or (name == "this"): set(self,name,value) else: raise AttributeError("You cannot add attributes to %s" % self) return set_attr class SwigPyIterator(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _HLRAlgo.delete_SwigPyIterator def __iter__(self): return self SwigPyIterator.value = new_instancemethod(_HLRAlgo.SwigPyIterator_value,None,SwigPyIterator) SwigPyIterator.incr = new_instancemethod(_HLRAlgo.SwigPyIterator_incr,None,SwigPyIterator) SwigPyIterator.decr = new_instancemethod(_HLRAlgo.SwigPyIterator_decr,None,SwigPyIterator) SwigPyIterator.distance = new_instancemethod(_HLRAlgo.SwigPyIterator_distance,None,SwigPyIterator) SwigPyIterator.equal = new_instancemethod(_HLRAlgo.SwigPyIterator_equal,None,SwigPyIterator) SwigPyIterator.copy = new_instancemethod(_HLRAlgo.SwigPyIterator_copy,None,SwigPyIterator) SwigPyIterator.next = new_instancemethod(_HLRAlgo.SwigPyIterator_next,None,SwigPyIterator) SwigPyIterator.__next__ = new_instancemethod(_HLRAlgo.SwigPyIterator___next__,None,SwigPyIterator) SwigPyIterator.previous = new_instancemethod(_HLRAlgo.SwigPyIterator_previous,None,SwigPyIterator) SwigPyIterator.advance = new_instancemethod(_HLRAlgo.SwigPyIterator_advance,None,SwigPyIterator) SwigPyIterator.__eq__ = new_instancemethod(_HLRAlgo.SwigPyIterator___eq__,None,SwigPyIterator) SwigPyIterator.__ne__ = new_instancemethod(_HLRAlgo.SwigPyIterator___ne__,None,SwigPyIterator) SwigPyIterator.__iadd__ = new_instancemethod(_HLRAlgo.SwigPyIterator___iadd__,None,SwigPyIterator) SwigPyIterator.__isub__ = new_instancemethod(_HLRAlgo.SwigPyIterator___isub__,None,SwigPyIterator) SwigPyIterator.__add__ = new_instancemethod(_HLRAlgo.SwigPyIterator___add__,None,SwigPyIterator) SwigPyIterator.__sub__ = new_instancemethod(_HLRAlgo.SwigPyIterator___sub__,None,SwigPyIterator) SwigPyIterator_swigregister = _HLRAlgo.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) import OCC.Standard import OCC.TopAbs import OCC.MMgt import OCC.TCollection import OCC.TColStd import OCC.TColgp import OCC.gp def register_handle(handle, base_object): """ Inserts the handle into the base object to prevent memory corruption in certain cases """ try: if base_object.IsKind("Standard_Transient"): base_object.thisHandle = handle base_object.thisown = False except: pass class hlralgo(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def UpdateMinMax(*args): """ * Iterator on the visible or hidden parts of an EdgeStatus. :param x: :type x: float :param y: :type y: float :param z: :type z: float :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_UpdateMinMax(*args) UpdateMinMax = staticmethod(UpdateMinMax) def EnlargeMinMax(*args): """ :param tol: :type tol: float :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_EnlargeMinMax(*args) EnlargeMinMax = staticmethod(EnlargeMinMax) def InitMinMax(*args): """ :param Big: :type Big: float :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_InitMinMax(*args) InitMinMax = staticmethod(InitMinMax) def EncodeMinMax(*args): """ :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :param MinMax: :type MinMax: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_EncodeMinMax(*args) EncodeMinMax = staticmethod(EncodeMinMax) def SizeBox(*args): """ :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: float """ return _HLRAlgo.hlralgo_SizeBox(*args) SizeBox = staticmethod(SizeBox) def DecodeMinMax(*args): """ :param MinMax: :type MinMax: Standard_Address :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_DecodeMinMax(*args) DecodeMinMax = staticmethod(DecodeMinMax) def CopyMinMax(*args): """ :param IMin: :type IMin: Standard_Address :param IMax: :type IMax: Standard_Address :param OMin: :type OMin: Standard_Address :param OMax: :type OMax: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_CopyMinMax(*args) CopyMinMax = staticmethod(CopyMinMax) def AddMinMax(*args): """ :param IMin: :type IMin: Standard_Address :param IMax: :type IMax: Standard_Address :param OMin: :type OMin: Standard_Address :param OMax: :type OMax: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_AddMinMax(*args) AddMinMax = staticmethod(AddMinMax) def __init__(self): _HLRAlgo.hlralgo_swiginit(self,_HLRAlgo.new_hlralgo()) __swig_destroy__ = _HLRAlgo.delete_hlralgo hlralgo_swigregister = _HLRAlgo.hlralgo_swigregister hlralgo_swigregister(hlralgo) def hlralgo_UpdateMinMax(*args): """ * Iterator on the visible or hidden parts of an EdgeStatus. :param x: :type x: float :param y: :type y: float :param z: :type z: float :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_UpdateMinMax(*args) def hlralgo_EnlargeMinMax(*args): """ :param tol: :type tol: float :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_EnlargeMinMax(*args) def hlralgo_InitMinMax(*args): """ :param Big: :type Big: float :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_InitMinMax(*args) def hlralgo_EncodeMinMax(*args): """ :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :param MinMax: :type MinMax: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_EncodeMinMax(*args) def hlralgo_SizeBox(*args): """ :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: float """ return _HLRAlgo.hlralgo_SizeBox(*args) def hlralgo_DecodeMinMax(*args): """ :param MinMax: :type MinMax: Standard_Address :param Min: :type Min: Standard_Address :param Max: :type Max: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_DecodeMinMax(*args) def hlralgo_CopyMinMax(*args): """ :param IMin: :type IMin: Standard_Address :param IMax: :type IMax: Standard_Address :param OMin: :type OMin: Standard_Address :param OMax: :type OMax: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_CopyMinMax(*args) def hlralgo_AddMinMax(*args): """ :param IMin: :type IMin: Standard_Address :param IMax: :type IMax: Standard_Address :param OMin: :type OMin: Standard_Address :param OMax: :type OMax: Standard_Address :rtype: void """ return _HLRAlgo.hlralgo_AddMinMax(*args) class HLRAlgo_Array1OfPHDat(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Item: :type Item: HLRAlgo_PolyHidingData & :param Low: :type Low: int :param Up: :type Up: int :rtype: None """ _HLRAlgo.HLRAlgo_Array1OfPHDat_swiginit(self,_HLRAlgo.new_HLRAlgo_Array1OfPHDat(*args)) def Init(self, *args): """ :param V: :type V: HLRAlgo_PolyHidingData & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Init(self, *args) def Destroy(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Destroy(self, *args) def IsAllocated(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_IsAllocated(self, *args) def Assign(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfPHDat & :rtype: HLRAlgo_Array1OfPHDat """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Assign(self, *args) def Set(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfPHDat & :rtype: HLRAlgo_Array1OfPHDat """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Set(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: HLRAlgo_PolyHidingData & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyHidingData """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyHidingData """ return _HLRAlgo.HLRAlgo_Array1OfPHDat_ChangeValue(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Array1OfPHDat HLRAlgo_Array1OfPHDat.Init = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Init,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.Destroy = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Destroy,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.IsAllocated = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_IsAllocated,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.Assign = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Assign,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.Set = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Set,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.Length = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Length,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Lower,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Upper,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_SetValue,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.Value = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_Value,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPHDat_ChangeValue,None,HLRAlgo_Array1OfPHDat) HLRAlgo_Array1OfPHDat_swigregister = _HLRAlgo.HLRAlgo_Array1OfPHDat_swigregister HLRAlgo_Array1OfPHDat_swigregister(HLRAlgo_Array1OfPHDat) class HLRAlgo_Array1OfPINod(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Item: :type Item: Handle_HLRAlgo_PolyInternalNode & :param Low: :type Low: int :param Up: :type Up: int :rtype: None """ _HLRAlgo.HLRAlgo_Array1OfPINod_swiginit(self,_HLRAlgo.new_HLRAlgo_Array1OfPINod(*args)) def Init(self, *args): """ :param V: :type V: Handle_HLRAlgo_PolyInternalNode & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Init(self, *args) def Destroy(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Destroy(self, *args) def IsAllocated(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_Array1OfPINod_IsAllocated(self, *args) def Assign(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfPINod & :rtype: HLRAlgo_Array1OfPINod """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Assign(self, *args) def Set(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfPINod & :rtype: HLRAlgo_Array1OfPINod """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Set(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: Handle_HLRAlgo_PolyInternalNode & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPINod_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: Handle_HLRAlgo_PolyInternalNode """ return _HLRAlgo.HLRAlgo_Array1OfPINod_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: Handle_HLRAlgo_PolyInternalNode """ return _HLRAlgo.HLRAlgo_Array1OfPINod_ChangeValue(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Array1OfPINod HLRAlgo_Array1OfPINod.Init = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Init,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.Destroy = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Destroy,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.IsAllocated = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_IsAllocated,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.Assign = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Assign,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.Set = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Set,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.Length = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Length,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Lower,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Upper,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_SetValue,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.Value = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_Value,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPINod_ChangeValue,None,HLRAlgo_Array1OfPINod) HLRAlgo_Array1OfPINod_swigregister = _HLRAlgo.HLRAlgo_Array1OfPINod_swigregister HLRAlgo_Array1OfPINod_swigregister(HLRAlgo_Array1OfPINod) class HLRAlgo_Array1OfPISeg(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Item: :type Item: HLRAlgo_PolyInternalSegment & :param Low: :type Low: int :param Up: :type Up: int :rtype: None """ _HLRAlgo.HLRAlgo_Array1OfPISeg_swiginit(self,_HLRAlgo.new_HLRAlgo_Array1OfPISeg(*args)) def Init(self, *args): """ :param V: :type V: HLRAlgo_PolyInternalSegment & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Init(self, *args) def Destroy(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Destroy(self, *args) def IsAllocated(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_IsAllocated(self, *args) def Assign(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfPISeg & :rtype: HLRAlgo_Array1OfPISeg """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Assign(self, *args) def Set(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfPISeg & :rtype: HLRAlgo_Array1OfPISeg """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Set(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: HLRAlgo_PolyInternalSegment & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyInternalSegment """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyInternalSegment """ return _HLRAlgo.HLRAlgo_Array1OfPISeg_ChangeValue(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Array1OfPISeg HLRAlgo_Array1OfPISeg.Init = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Init,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.Destroy = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Destroy,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.IsAllocated = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_IsAllocated,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.Assign = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Assign,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.Set = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Set,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.Length = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Length,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Lower,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Upper,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_SetValue,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.Value = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_Value,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfPISeg_ChangeValue,None,HLRAlgo_Array1OfPISeg) HLRAlgo_Array1OfPISeg_swigregister = _HLRAlgo.HLRAlgo_Array1OfPISeg_swigregister HLRAlgo_Array1OfPISeg_swigregister(HLRAlgo_Array1OfPISeg) class HLRAlgo_Array1OfTData(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Item: :type Item: HLRAlgo_TriangleData & :param Low: :type Low: int :param Up: :type Up: int :rtype: None """ _HLRAlgo.HLRAlgo_Array1OfTData_swiginit(self,_HLRAlgo.new_HLRAlgo_Array1OfTData(*args)) def Init(self, *args): """ :param V: :type V: HLRAlgo_TriangleData & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfTData_Init(self, *args) def Destroy(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfTData_Destroy(self, *args) def IsAllocated(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_Array1OfTData_IsAllocated(self, *args) def Assign(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfTData & :rtype: HLRAlgo_Array1OfTData """ return _HLRAlgo.HLRAlgo_Array1OfTData_Assign(self, *args) def Set(self, *args): """ :param Other: :type Other: HLRAlgo_Array1OfTData & :rtype: HLRAlgo_Array1OfTData """ return _HLRAlgo.HLRAlgo_Array1OfTData_Set(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfTData_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfTData_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_Array1OfTData_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: HLRAlgo_TriangleData & :rtype: None """ return _HLRAlgo.HLRAlgo_Array1OfTData_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_TriangleData """ return _HLRAlgo.HLRAlgo_Array1OfTData_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_TriangleData """ return _HLRAlgo.HLRAlgo_Array1OfTData_ChangeValue(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Array1OfTData HLRAlgo_Array1OfTData.Init = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Init,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.Destroy = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Destroy,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.IsAllocated = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_IsAllocated,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.Assign = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Assign,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.Set = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Set,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.Length = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Length,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Lower,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Upper,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_SetValue,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.Value = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_Value,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_Array1OfTData_ChangeValue,None,HLRAlgo_Array1OfTData) HLRAlgo_Array1OfTData_swigregister = _HLRAlgo.HLRAlgo_Array1OfTData_swigregister HLRAlgo_Array1OfTData_swigregister(HLRAlgo_Array1OfTData) class HLRAlgo_BiPoint(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None :param X1: :type X1: float :param Y1: :type Y1: float :param Z1: :type Z1: float :param X2: :type X2: float :param Y2: :type Y2: float :param Z2: :type Z2: float :param XT1: :type XT1: float :param YT1: :type YT1: float :param ZT1: :type ZT1: float :param XT2: :type XT2: float :param YT2: :type YT2: float :param ZT2: :type ZT2: float :param Index: :type Index: int :param reg1: :type reg1: bool :param regn: :type regn: bool :param outl: :type outl: bool :param intl: :type intl: bool :rtype: None :param X1: :type X1: float :param Y1: :type Y1: float :param Z1: :type Z1: float :param X2: :type X2: float :param Y2: :type Y2: float :param Z2: :type Z2: float :param XT1: :type XT1: float :param YT1: :type YT1: float :param ZT1: :type ZT1: float :param XT2: :type XT2: float :param YT2: :type YT2: float :param ZT2: :type ZT2: float :param Index: :type Index: int :param flag: :type flag: int :rtype: None :param X1: :type X1: float :param Y1: :type Y1: float :param Z1: :type Z1: float :param X2: :type X2: float :param Y2: :type Y2: float :param Z2: :type Z2: float :param XT1: :type XT1: float :param YT1: :type YT1: float :param ZT1: :type ZT1: float :param XT2: :type XT2: float :param YT2: :type YT2: float :param ZT2: :type ZT2: float :param Index: :type Index: int :param i1: :type i1: int :param i1p1: :type i1p1: int :param i1p2: :type i1p2: int :param reg1: :type reg1: bool :param regn: :type regn: bool :param outl: :type outl: bool :param intl: :type intl: bool :rtype: None :param X1: :type X1: float :param Y1: :type Y1: float :param Z1: :type Z1: float :param X2: :type X2: float :param Y2: :type Y2: float :param Z2: :type Z2: float :param XT1: :type XT1: float :param YT1: :type YT1: float :param ZT1: :type ZT1: float :param XT2: :type XT2: float :param YT2: :type YT2: float :param ZT2: :type ZT2: float :param Index: :type Index: int :param i1: :type i1: int :param i1p1: :type i1p1: int :param i1p2: :type i1p2: int :param flag: :type flag: int :rtype: None :param X1: :type X1: float :param Y1: :type Y1: float :param Z1: :type Z1: float :param X2: :type X2: float :param Y2: :type Y2: float :param Z2: :type Z2: float :param XT1: :type XT1: float :param YT1: :type YT1: float :param ZT1: :type ZT1: float :param XT2: :type XT2: float :param YT2: :type YT2: float :param ZT2: :type ZT2: float :param Index: :type Index: int :param i1: :type i1: int :param i1p1: :type i1p1: int :param i1p2: :type i1p2: int :param i2: :type i2: int :param i2p1: :type i2p1: int :param i2p2: :type i2p2: int :param reg1: :type reg1: bool :param regn: :type regn: bool :param outl: :type outl: bool :param intl: :type intl: bool :rtype: None :param X1: :type X1: float :param Y1: :type Y1: float :param Z1: :type Z1: float :param X2: :type X2: float :param Y2: :type Y2: float :param Z2: :type Z2: float :param XT1: :type XT1: float :param YT1: :type YT1: float :param ZT1: :type ZT1: float :param XT2: :type XT2: float :param YT2: :type YT2: float :param ZT2: :type ZT2: float :param Index: :type Index: int :param i1: :type i1: int :param i1p1: :type i1p1: int :param i1p2: :type i1p2: int :param i2: :type i2: int :param i2p1: :type i2p1: int :param i2p2: :type i2p2: int :param flag: :type flag: int :rtype: None """ _HLRAlgo.HLRAlgo_BiPoint_swiginit(self,_HLRAlgo.new_HLRAlgo_BiPoint(*args)) def Rg1Line(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_BiPoint_Rg1Line(self, *args) def RgNLine(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_BiPoint_RgNLine(self, *args) def OutLine(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_BiPoint_OutLine(self, *args) def IntLine(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_BiPoint_IntLine(self, *args) def Hidden(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_BiPoint_Hidden(self, *args) def Indices(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_BiPoint_Indices(self, *args) def Coordinates(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_BiPoint_Coordinates(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_BiPoint HLRAlgo_BiPoint.Rg1Line = new_instancemethod(_HLRAlgo.HLRAlgo_BiPoint_Rg1Line,None,HLRAlgo_BiPoint) HLRAlgo_BiPoint.RgNLine = new_instancemethod(_HLRAlgo.HLRAlgo_BiPoint_RgNLine,None,HLRAlgo_BiPoint) HLRAlgo_BiPoint.OutLine = new_instancemethod(_HLRAlgo.HLRAlgo_BiPoint_OutLine,None,HLRAlgo_BiPoint) HLRAlgo_BiPoint.IntLine = new_instancemethod(_HLRAlgo.HLRAlgo_BiPoint_IntLine,None,HLRAlgo_BiPoint) HLRAlgo_BiPoint.Hidden = new_instancemethod(_HLRAlgo.HLRAlgo_BiPoint_Hidden,None,HLRAlgo_BiPoint) HLRAlgo_BiPoint.Indices = new_instancemethod(_HLRAlgo.HLRAlgo_BiPoint_Indices,None,HLRAlgo_BiPoint) HLRAlgo_BiPoint.Coordinates = new_instancemethod(_HLRAlgo.HLRAlgo_BiPoint_Coordinates,None,HLRAlgo_BiPoint) HLRAlgo_BiPoint_swigregister = _HLRAlgo.HLRAlgo_BiPoint_swigregister HLRAlgo_BiPoint_swigregister(HLRAlgo_BiPoint) class HLRAlgo_Coincidence(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_Coincidence_swiginit(self,_HLRAlgo.new_HLRAlgo_Coincidence(*args)) def Set2D(self, *args): """ :param FE: :type FE: int :param Param: :type Param: float :rtype: None """ return _HLRAlgo.HLRAlgo_Coincidence_Set2D(self, *args) def SetState3D(self, *args): """ :param stbef: :type stbef: TopAbs_State :param staft: :type staft: TopAbs_State :rtype: None """ return _HLRAlgo.HLRAlgo_Coincidence_SetState3D(self, *args) def Value2D(self, *args): """ :param FE: :type FE: int & :param Param: :type Param: float & :rtype: None """ return _HLRAlgo.HLRAlgo_Coincidence_Value2D(self, *args) def State3D(self, *args): """ :param stbef: :type stbef: TopAbs_State & :param staft: :type staft: TopAbs_State & :rtype: None """ return _HLRAlgo.HLRAlgo_Coincidence_State3D(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Coincidence HLRAlgo_Coincidence.Set2D = new_instancemethod(_HLRAlgo.HLRAlgo_Coincidence_Set2D,None,HLRAlgo_Coincidence) HLRAlgo_Coincidence.SetState3D = new_instancemethod(_HLRAlgo.HLRAlgo_Coincidence_SetState3D,None,HLRAlgo_Coincidence) HLRAlgo_Coincidence.Value2D = new_instancemethod(_HLRAlgo.HLRAlgo_Coincidence_Value2D,None,HLRAlgo_Coincidence) HLRAlgo_Coincidence.State3D = new_instancemethod(_HLRAlgo.HLRAlgo_Coincidence_State3D,None,HLRAlgo_Coincidence) HLRAlgo_Coincidence_swigregister = _HLRAlgo.HLRAlgo_Coincidence_swigregister HLRAlgo_Coincidence_swigregister(HLRAlgo_Coincidence) class HLRAlgo_EdgeIterator(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ * Iterator on the visible or hidden parts of an edge. :rtype: None """ _HLRAlgo.HLRAlgo_EdgeIterator_swiginit(self,_HLRAlgo.new_HLRAlgo_EdgeIterator(*args)) def InitHidden(self, *args): """ :param status: :type status: HLRAlgo_EdgeStatus & :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeIterator_InitHidden(self, *args) def MoreHidden(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_EdgeIterator_MoreHidden(self, *args) def NextHidden(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeIterator_NextHidden(self, *args) def Hidden(self, *args): """ * Returns the bounds and the tolerances of the current Hidden Interval :param Start: :type Start: float & :param TolStart: :type TolStart: Standard_ShortReal & :param End: :type End: float & :param TolEnd: :type TolEnd: Standard_ShortReal & :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeIterator_Hidden(self, *args) def InitVisible(self, *args): """ :param status: :type status: HLRAlgo_EdgeStatus & :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeIterator_InitVisible(self, *args) def MoreVisible(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_EdgeIterator_MoreVisible(self, *args) def NextVisible(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeIterator_NextVisible(self, *args) def Visible(self, *args): """ * Returns the bounds and the tolerances of the current Visible Interval :param Start: :type Start: float & :param TolStart: :type TolStart: Standard_ShortReal & :param End: :type End: float & :param TolEnd: :type TolEnd: Standard_ShortReal & :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeIterator_Visible(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_EdgeIterator HLRAlgo_EdgeIterator.InitHidden = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_InitHidden,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator.MoreHidden = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_MoreHidden,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator.NextHidden = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_NextHidden,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator.Hidden = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_Hidden,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator.InitVisible = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_InitVisible,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator.MoreVisible = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_MoreVisible,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator.NextVisible = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_NextVisible,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator.Visible = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeIterator_Visible,None,HLRAlgo_EdgeIterator) HLRAlgo_EdgeIterator_swigregister = _HLRAlgo.HLRAlgo_EdgeIterator_swigregister HLRAlgo_EdgeIterator_swigregister(HLRAlgo_EdgeIterator) class HLRAlgo_EdgeStatus(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None * Creates a new EdgeStatus. Default visible. The Edge is bounded by the interval <Start>, <End> with the tolerances <TolStart>, <TolEnd>. :param Start: :type Start: float :param TolStart: :type TolStart: Standard_ShortReal :param End: :type End: float :param TolEnd: :type TolEnd: Standard_ShortReal :rtype: None """ _HLRAlgo.HLRAlgo_EdgeStatus_swiginit(self,_HLRAlgo.new_HLRAlgo_EdgeStatus(*args)) def Initialize(self, *args): """ * Initialize an EdgeStatus. Default visible. The Edge is bounded by the interval <Start>, <End> with the tolerances <TolStart>, <TolEnd>. :param Start: :type Start: float :param TolStart: :type TolStart: Standard_ShortReal :param End: :type End: float :param TolEnd: :type TolEnd: Standard_ShortReal :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_Initialize(self, *args) def Bounds(self, *args): """ :param Start: :type Start: float & :param TolStart: :type TolStart: Standard_ShortReal & :param End: :type End: float & :param TolEnd: :type TolEnd: Standard_ShortReal & :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_Bounds(self, *args) def NbVisiblePart(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_EdgeStatus_NbVisiblePart(self, *args) def VisiblePart(self, *args): """ :param Index: :type Index: int :param Start: :type Start: float & :param TolStart: :type TolStart: Standard_ShortReal & :param End: :type End: float & :param TolEnd: :type TolEnd: Standard_ShortReal & :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_VisiblePart(self, *args) def Hide(self, *args): """ * Hides the interval <Start>, <End> with the tolerances <TolStart>, <TolEnd>. This interval is subtracted from the visible parts. If the hidden part is on ( or under ) the face the flag <OnFace> is True ( or False ). If the hidden part is on ( or inside ) the boundary of the face the flag <OnBoundary> is True ( or False ). :param Start: :type Start: float :param TolStart: :type TolStart: Standard_ShortReal :param End: :type End: float :param TolEnd: :type TolEnd: Standard_ShortReal :param OnFace: :type OnFace: bool :param OnBoundary: :type OnBoundary: bool :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_Hide(self, *args) def HideAll(self, *args): """ * Hide the whole Edge. :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_HideAll(self, *args) def ShowAll(self, *args): """ * Show the whole Edge. :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_ShowAll(self, *args) def AllHidden(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_AllHidden(self, *args) def AllVisible(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_EdgeStatus_AllVisible(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_EdgeStatus HLRAlgo_EdgeStatus.Initialize = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_Initialize,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.Bounds = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_Bounds,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.NbVisiblePart = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_NbVisiblePart,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.VisiblePart = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_VisiblePart,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.Hide = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_Hide,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.HideAll = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_HideAll,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.ShowAll = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_ShowAll,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.AllHidden = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_AllHidden,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus.AllVisible = new_instancemethod(_HLRAlgo.HLRAlgo_EdgeStatus_AllVisible,None,HLRAlgo_EdgeStatus) HLRAlgo_EdgeStatus_swigregister = _HLRAlgo.HLRAlgo_EdgeStatus_swigregister HLRAlgo_EdgeStatus_swigregister(HLRAlgo_EdgeStatus) class HLRAlgo_EdgesBlock(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ * Create a Block of Edges for a wire. :param NbEdges: :type NbEdges: int :rtype: None """ _HLRAlgo.HLRAlgo_EdgesBlock_swiginit(self,_HLRAlgo.new_HLRAlgo_EdgesBlock(*args)) def NbEdges(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_EdgesBlock_NbEdges(self, *args) def Edge(self, *args): """ :param I: :type I: int :param EI: :type EI: int :rtype: None :param I: :type I: int :rtype: int """ return _HLRAlgo.HLRAlgo_EdgesBlock_Edge(self, *args) def Orientation(self, *args): """ :param I: :type I: int :param Or: :type Or: TopAbs_Orientation :rtype: None :param I: :type I: int :rtype: TopAbs_Orientation """ return _HLRAlgo.HLRAlgo_EdgesBlock_Orientation(self, *args) def OutLine(self, *args): """ :param I: :type I: int :rtype: bool :param I: :type I: int :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_EdgesBlock_OutLine(self, *args) def Internal(self, *args): """ :param I: :type I: int :rtype: bool :param I: :type I: int :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_EdgesBlock_Internal(self, *args) def Double(self, *args): """ :param I: :type I: int :rtype: bool :param I: :type I: int :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_EdgesBlock_Double(self, *args) def IsoLine(self, *args): """ :param I: :type I: int :rtype: bool :param I: :type I: int :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_EdgesBlock_IsoLine(self, *args) def UpdateMinMax(self, *args): """ :param TotMinMax: :type TotMinMax: Standard_Address :rtype: None """ return _HLRAlgo.HLRAlgo_EdgesBlock_UpdateMinMax(self, *args) def MinMax(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_EdgesBlock_MinMax(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_EdgesBlock(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_EdgesBlock HLRAlgo_EdgesBlock.NbEdges = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_NbEdges,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.Edge = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_Edge,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.Orientation = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_Orientation,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.OutLine = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_OutLine,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.Internal = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_Internal,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.Double = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_Double,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.IsoLine = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_IsoLine,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.UpdateMinMax = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_UpdateMinMax,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock.MinMax = new_instancemethod(_HLRAlgo.HLRAlgo_EdgesBlock_MinMax,None,HLRAlgo_EdgesBlock) HLRAlgo_EdgesBlock_swigregister = _HLRAlgo.HLRAlgo_EdgesBlock_swigregister HLRAlgo_EdgesBlock_swigregister(HLRAlgo_EdgesBlock) class Handle_HLRAlgo_EdgesBlock(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_EdgesBlock_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_EdgesBlock(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_EdgesBlock_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_EdgesBlock Handle_HLRAlgo_EdgesBlock.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_EdgesBlock_Nullify,None,Handle_HLRAlgo_EdgesBlock) Handle_HLRAlgo_EdgesBlock.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_EdgesBlock_IsNull,None,Handle_HLRAlgo_EdgesBlock) Handle_HLRAlgo_EdgesBlock.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_EdgesBlock_GetObject,None,Handle_HLRAlgo_EdgesBlock) Handle_HLRAlgo_EdgesBlock_swigregister = _HLRAlgo.Handle_HLRAlgo_EdgesBlock_swigregister Handle_HLRAlgo_EdgesBlock_swigregister(Handle_HLRAlgo_EdgesBlock) def Handle_HLRAlgo_EdgesBlock_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_EdgesBlock_DownCast(*args) Handle_HLRAlgo_EdgesBlock_DownCast = _HLRAlgo.Handle_HLRAlgo_EdgesBlock_DownCast class HLRAlgo_HArray1OfPHDat(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Low: :type Low: int :param Up: :type Up: int :param V: :type V: HLRAlgo_PolyHidingData & :rtype: None """ _HLRAlgo.HLRAlgo_HArray1OfPHDat_swiginit(self,_HLRAlgo.new_HLRAlgo_HArray1OfPHDat(*args)) def Init(self, *args): """ :param V: :type V: HLRAlgo_PolyHidingData & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_Init(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: HLRAlgo_PolyHidingData & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyHidingData """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyHidingData """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_ChangeValue(self, *args) def Array1(self, *args): """ :rtype: HLRAlgo_Array1OfPHDat """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_Array1(self, *args) def ChangeArray1(self, *args): """ :rtype: HLRAlgo_Array1OfPHDat """ return _HLRAlgo.HLRAlgo_HArray1OfPHDat_ChangeArray1(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_HArray1OfPHDat(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_HArray1OfPHDat HLRAlgo_HArray1OfPHDat.Init = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_Init,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.Length = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_Length,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_Lower,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_Upper,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_SetValue,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.Value = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_Value,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_ChangeValue,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.Array1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_Array1,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat.ChangeArray1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPHDat_ChangeArray1,None,HLRAlgo_HArray1OfPHDat) HLRAlgo_HArray1OfPHDat_swigregister = _HLRAlgo.HLRAlgo_HArray1OfPHDat_swigregister HLRAlgo_HArray1OfPHDat_swigregister(HLRAlgo_HArray1OfPHDat) class Handle_HLRAlgo_HArray1OfPHDat(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_HArray1OfPHDat(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_HArray1OfPHDat Handle_HLRAlgo_HArray1OfPHDat.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_Nullify,None,Handle_HLRAlgo_HArray1OfPHDat) Handle_HLRAlgo_HArray1OfPHDat.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_IsNull,None,Handle_HLRAlgo_HArray1OfPHDat) Handle_HLRAlgo_HArray1OfPHDat.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_GetObject,None,Handle_HLRAlgo_HArray1OfPHDat) Handle_HLRAlgo_HArray1OfPHDat_swigregister = _HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_swigregister Handle_HLRAlgo_HArray1OfPHDat_swigregister(Handle_HLRAlgo_HArray1OfPHDat) def Handle_HLRAlgo_HArray1OfPHDat_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_DownCast(*args) Handle_HLRAlgo_HArray1OfPHDat_DownCast = _HLRAlgo.Handle_HLRAlgo_HArray1OfPHDat_DownCast class HLRAlgo_HArray1OfPINod(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Low: :type Low: int :param Up: :type Up: int :param V: :type V: Handle_HLRAlgo_PolyInternalNode & :rtype: None """ _HLRAlgo.HLRAlgo_HArray1OfPINod_swiginit(self,_HLRAlgo.new_HLRAlgo_HArray1OfPINod(*args)) def Init(self, *args): """ :param V: :type V: Handle_HLRAlgo_PolyInternalNode & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_Init(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: Handle_HLRAlgo_PolyInternalNode & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: Handle_HLRAlgo_PolyInternalNode """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: Handle_HLRAlgo_PolyInternalNode """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_ChangeValue(self, *args) def Array1(self, *args): """ :rtype: HLRAlgo_Array1OfPINod """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_Array1(self, *args) def ChangeArray1(self, *args): """ :rtype: HLRAlgo_Array1OfPINod """ return _HLRAlgo.HLRAlgo_HArray1OfPINod_ChangeArray1(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_HArray1OfPINod(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_HArray1OfPINod HLRAlgo_HArray1OfPINod.Init = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_Init,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.Length = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_Length,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_Lower,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_Upper,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_SetValue,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.Value = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_Value,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_ChangeValue,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.Array1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_Array1,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod.ChangeArray1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPINod_ChangeArray1,None,HLRAlgo_HArray1OfPINod) HLRAlgo_HArray1OfPINod_swigregister = _HLRAlgo.HLRAlgo_HArray1OfPINod_swigregister HLRAlgo_HArray1OfPINod_swigregister(HLRAlgo_HArray1OfPINod) class Handle_HLRAlgo_HArray1OfPINod(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_HArray1OfPINod(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_HArray1OfPINod Handle_HLRAlgo_HArray1OfPINod.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_Nullify,None,Handle_HLRAlgo_HArray1OfPINod) Handle_HLRAlgo_HArray1OfPINod.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_IsNull,None,Handle_HLRAlgo_HArray1OfPINod) Handle_HLRAlgo_HArray1OfPINod.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_GetObject,None,Handle_HLRAlgo_HArray1OfPINod) Handle_HLRAlgo_HArray1OfPINod_swigregister = _HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_swigregister Handle_HLRAlgo_HArray1OfPINod_swigregister(Handle_HLRAlgo_HArray1OfPINod) def Handle_HLRAlgo_HArray1OfPINod_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_DownCast(*args) Handle_HLRAlgo_HArray1OfPINod_DownCast = _HLRAlgo.Handle_HLRAlgo_HArray1OfPINod_DownCast class HLRAlgo_HArray1OfPISeg(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Low: :type Low: int :param Up: :type Up: int :param V: :type V: HLRAlgo_PolyInternalSegment & :rtype: None """ _HLRAlgo.HLRAlgo_HArray1OfPISeg_swiginit(self,_HLRAlgo.new_HLRAlgo_HArray1OfPISeg(*args)) def Init(self, *args): """ :param V: :type V: HLRAlgo_PolyInternalSegment & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_Init(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: HLRAlgo_PolyInternalSegment & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyInternalSegment """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_PolyInternalSegment """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_ChangeValue(self, *args) def Array1(self, *args): """ :rtype: HLRAlgo_Array1OfPISeg """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_Array1(self, *args) def ChangeArray1(self, *args): """ :rtype: HLRAlgo_Array1OfPISeg """ return _HLRAlgo.HLRAlgo_HArray1OfPISeg_ChangeArray1(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_HArray1OfPISeg(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_HArray1OfPISeg HLRAlgo_HArray1OfPISeg.Init = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_Init,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.Length = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_Length,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_Lower,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_Upper,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_SetValue,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.Value = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_Value,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_ChangeValue,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.Array1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_Array1,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg.ChangeArray1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfPISeg_ChangeArray1,None,HLRAlgo_HArray1OfPISeg) HLRAlgo_HArray1OfPISeg_swigregister = _HLRAlgo.HLRAlgo_HArray1OfPISeg_swigregister HLRAlgo_HArray1OfPISeg_swigregister(HLRAlgo_HArray1OfPISeg) class Handle_HLRAlgo_HArray1OfPISeg(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_HArray1OfPISeg(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_HArray1OfPISeg Handle_HLRAlgo_HArray1OfPISeg.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_Nullify,None,Handle_HLRAlgo_HArray1OfPISeg) Handle_HLRAlgo_HArray1OfPISeg.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_IsNull,None,Handle_HLRAlgo_HArray1OfPISeg) Handle_HLRAlgo_HArray1OfPISeg.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_GetObject,None,Handle_HLRAlgo_HArray1OfPISeg) Handle_HLRAlgo_HArray1OfPISeg_swigregister = _HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_swigregister Handle_HLRAlgo_HArray1OfPISeg_swigregister(Handle_HLRAlgo_HArray1OfPISeg) def Handle_HLRAlgo_HArray1OfPISeg_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_DownCast(*args) Handle_HLRAlgo_HArray1OfPISeg_DownCast = _HLRAlgo.Handle_HLRAlgo_HArray1OfPISeg_DownCast class HLRAlgo_HArray1OfTData(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param Low: :type Low: int :param Up: :type Up: int :rtype: None :param Low: :type Low: int :param Up: :type Up: int :param V: :type V: HLRAlgo_TriangleData & :rtype: None """ _HLRAlgo.HLRAlgo_HArray1OfTData_swiginit(self,_HLRAlgo.new_HLRAlgo_HArray1OfTData(*args)) def Init(self, *args): """ :param V: :type V: HLRAlgo_TriangleData & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfTData_Init(self, *args) def Length(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfTData_Length(self, *args) def Lower(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfTData_Lower(self, *args) def Upper(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_HArray1OfTData_Upper(self, *args) def SetValue(self, *args): """ :param Index: :type Index: int :param Value: :type Value: HLRAlgo_TriangleData & :rtype: None """ return _HLRAlgo.HLRAlgo_HArray1OfTData_SetValue(self, *args) def Value(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_TriangleData """ return _HLRAlgo.HLRAlgo_HArray1OfTData_Value(self, *args) def ChangeValue(self, *args): """ :param Index: :type Index: int :rtype: HLRAlgo_TriangleData """ return _HLRAlgo.HLRAlgo_HArray1OfTData_ChangeValue(self, *args) def Array1(self, *args): """ :rtype: HLRAlgo_Array1OfTData """ return _HLRAlgo.HLRAlgo_HArray1OfTData_Array1(self, *args) def ChangeArray1(self, *args): """ :rtype: HLRAlgo_Array1OfTData """ return _HLRAlgo.HLRAlgo_HArray1OfTData_ChangeArray1(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_HArray1OfTData(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_HArray1OfTData HLRAlgo_HArray1OfTData.Init = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_Init,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.Length = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_Length,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.Lower = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_Lower,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.Upper = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_Upper,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.SetValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_SetValue,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.Value = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_Value,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.ChangeValue = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_ChangeValue,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.Array1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_Array1,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData.ChangeArray1 = new_instancemethod(_HLRAlgo.HLRAlgo_HArray1OfTData_ChangeArray1,None,HLRAlgo_HArray1OfTData) HLRAlgo_HArray1OfTData_swigregister = _HLRAlgo.HLRAlgo_HArray1OfTData_swigregister HLRAlgo_HArray1OfTData_swigregister(HLRAlgo_HArray1OfTData) class Handle_HLRAlgo_HArray1OfTData(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_HArray1OfTData_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_HArray1OfTData(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfTData_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_HArray1OfTData Handle_HLRAlgo_HArray1OfTData.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfTData_Nullify,None,Handle_HLRAlgo_HArray1OfTData) Handle_HLRAlgo_HArray1OfTData.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfTData_IsNull,None,Handle_HLRAlgo_HArray1OfTData) Handle_HLRAlgo_HArray1OfTData.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_HArray1OfTData_GetObject,None,Handle_HLRAlgo_HArray1OfTData) Handle_HLRAlgo_HArray1OfTData_swigregister = _HLRAlgo.Handle_HLRAlgo_HArray1OfTData_swigregister Handle_HLRAlgo_HArray1OfTData_swigregister(Handle_HLRAlgo_HArray1OfTData) def Handle_HLRAlgo_HArray1OfTData_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_HArray1OfTData_DownCast(*args) Handle_HLRAlgo_HArray1OfTData_DownCast = _HLRAlgo.Handle_HLRAlgo_HArray1OfTData_DownCast class HLRAlgo_Interference(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None :param Inters: :type Inters: HLRAlgo_Intersection & :param Bound: :type Bound: HLRAlgo_Coincidence & :param Orient: :type Orient: TopAbs_Orientation :param Trans: :type Trans: TopAbs_Orientation :param BTrans: :type BTrans: TopAbs_Orientation :rtype: None """ _HLRAlgo.HLRAlgo_Interference_swiginit(self,_HLRAlgo.new_HLRAlgo_Interference(*args)) def Intersection(self, *args): """ :param I: :type I: HLRAlgo_Intersection & :rtype: None :rtype: HLRAlgo_Intersection """ return _HLRAlgo.HLRAlgo_Interference_Intersection(self, *args) def ChangeIntersection(self, *args): """ :rtype: HLRAlgo_Intersection """ return _HLRAlgo.HLRAlgo_Interference_ChangeIntersection(self, *args) def Boundary(self, *args): """ :param B: :type B: HLRAlgo_Coincidence & :rtype: None :rtype: HLRAlgo_Coincidence """ return _HLRAlgo.HLRAlgo_Interference_Boundary(self, *args) def ChangeBoundary(self, *args): """ :rtype: HLRAlgo_Coincidence """ return _HLRAlgo.HLRAlgo_Interference_ChangeBoundary(self, *args) def Orientation(self, *args): """ :param O: :type O: TopAbs_Orientation :rtype: None :rtype: TopAbs_Orientation """ return _HLRAlgo.HLRAlgo_Interference_Orientation(self, *args) def Transition(self, *args): """ :param Tr: :type Tr: TopAbs_Orientation :rtype: None :rtype: TopAbs_Orientation """ return _HLRAlgo.HLRAlgo_Interference_Transition(self, *args) def BoundaryTransition(self, *args): """ :param BTr: :type BTr: TopAbs_Orientation :rtype: None :rtype: TopAbs_Orientation """ return _HLRAlgo.HLRAlgo_Interference_BoundaryTransition(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Interference HLRAlgo_Interference.Intersection = new_instancemethod(_HLRAlgo.HLRAlgo_Interference_Intersection,None,HLRAlgo_Interference) HLRAlgo_Interference.ChangeIntersection = new_instancemethod(_HLRAlgo.HLRAlgo_Interference_ChangeIntersection,None,HLRAlgo_Interference) HLRAlgo_Interference.Boundary = new_instancemethod(_HLRAlgo.HLRAlgo_Interference_Boundary,None,HLRAlgo_Interference) HLRAlgo_Interference.ChangeBoundary = new_instancemethod(_HLRAlgo.HLRAlgo_Interference_ChangeBoundary,None,HLRAlgo_Interference) HLRAlgo_Interference.Orientation = new_instancemethod(_HLRAlgo.HLRAlgo_Interference_Orientation,None,HLRAlgo_Interference) HLRAlgo_Interference.Transition = new_instancemethod(_HLRAlgo.HLRAlgo_Interference_Transition,None,HLRAlgo_Interference) HLRAlgo_Interference.BoundaryTransition = new_instancemethod(_HLRAlgo.HLRAlgo_Interference_BoundaryTransition,None,HLRAlgo_Interference) HLRAlgo_Interference_swigregister = _HLRAlgo.HLRAlgo_Interference_swigregister HLRAlgo_Interference_swigregister(HLRAlgo_Interference) class HLRAlgo_InterferenceList(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_InterferenceList_swiginit(self,_HLRAlgo.new_HLRAlgo_InterferenceList(*args)) def Assign(self, *args): """ :param Other: :type Other: HLRAlgo_InterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_Assign(self, *args) def Set(self, *args): """ :param Other: :type Other: HLRAlgo_InterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_Set(self, *args) def Extent(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_InterferenceList_Extent(self, *args) def Clear(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_Clear(self, *args) def IsEmpty(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_InterferenceList_IsEmpty(self, *args) def Prepend(self, *args): """ :param I: :type I: HLRAlgo_Interference & :rtype: None :param I: :type I: HLRAlgo_Interference & :param theIt: :type theIt: HLRAlgo_ListIteratorOfInterferenceList & :rtype: None :param Other: :type Other: HLRAlgo_InterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_Prepend(self, *args) def Append(self, *args): """ :param I: :type I: HLRAlgo_Interference & :rtype: None :param I: :type I: HLRAlgo_Interference & :param theIt: :type theIt: HLRAlgo_ListIteratorOfInterferenceList & :rtype: None :param Other: :type Other: HLRAlgo_InterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_Append(self, *args) def First(self, *args): """ :rtype: HLRAlgo_Interference """ return _HLRAlgo.HLRAlgo_InterferenceList_First(self, *args) def Last(self, *args): """ :rtype: HLRAlgo_Interference """ return _HLRAlgo.HLRAlgo_InterferenceList_Last(self, *args) def RemoveFirst(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_RemoveFirst(self, *args) def Remove(self, *args): """ :param It: :type It: HLRAlgo_ListIteratorOfInterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_Remove(self, *args) def InsertBefore(self, *args): """ :param I: :type I: HLRAlgo_Interference & :param It: :type It: HLRAlgo_ListIteratorOfInterferenceList & :rtype: None :param Other: :type Other: HLRAlgo_InterferenceList & :param It: :type It: HLRAlgo_ListIteratorOfInterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_InsertBefore(self, *args) def InsertAfter(self, *args): """ :param I: :type I: HLRAlgo_Interference & :param It: :type It: HLRAlgo_ListIteratorOfInterferenceList & :rtype: None :param Other: :type Other: HLRAlgo_InterferenceList & :param It: :type It: HLRAlgo_ListIteratorOfInterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_InterferenceList_InsertAfter(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_InterferenceList HLRAlgo_InterferenceList.Assign = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Assign,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.Set = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Set,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.Extent = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Extent,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.Clear = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Clear,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.IsEmpty = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_IsEmpty,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.Prepend = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Prepend,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.Append = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Append,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.First = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_First,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.Last = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Last,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.RemoveFirst = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_RemoveFirst,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.Remove = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_Remove,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.InsertBefore = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_InsertBefore,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList.InsertAfter = new_instancemethod(_HLRAlgo.HLRAlgo_InterferenceList_InsertAfter,None,HLRAlgo_InterferenceList) HLRAlgo_InterferenceList_swigregister = _HLRAlgo.HLRAlgo_InterferenceList_swigregister HLRAlgo_InterferenceList_swigregister(HLRAlgo_InterferenceList) class HLRAlgo_Intersection(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None :param Ori: :type Ori: TopAbs_Orientation :param Lev: :type Lev: int :param SegInd: :type SegInd: int :param Ind: :type Ind: int :param P: :type P: float :param Tol: :type Tol: Standard_ShortReal :param S: :type S: TopAbs_State :rtype: None """ _HLRAlgo.HLRAlgo_Intersection_swiginit(self,_HLRAlgo.new_HLRAlgo_Intersection(*args)) def Orientation(self, *args): """ :param Ori: :type Ori: TopAbs_Orientation :rtype: None :rtype: TopAbs_Orientation """ return _HLRAlgo.HLRAlgo_Intersection_Orientation(self, *args) def Level(self, *args): """ :param Lev: :type Lev: int :rtype: None :rtype: int """ return _HLRAlgo.HLRAlgo_Intersection_Level(self, *args) def SegIndex(self, *args): """ :param SegInd: :type SegInd: int :rtype: None :rtype: int """ return _HLRAlgo.HLRAlgo_Intersection_SegIndex(self, *args) def Index(self, *args): """ :param Ind: :type Ind: int :rtype: None :rtype: int """ return _HLRAlgo.HLRAlgo_Intersection_Index(self, *args) def Parameter(self, *args): """ :param P: :type P: float :rtype: None :rtype: float """ return _HLRAlgo.HLRAlgo_Intersection_Parameter(self, *args) def Tolerance(self, *args): """ :param T: :type T: Standard_ShortReal :rtype: None :rtype: Standard_ShortReal """ return _HLRAlgo.HLRAlgo_Intersection_Tolerance(self, *args) def State(self, *args): """ :param S: :type S: TopAbs_State :rtype: None :rtype: TopAbs_State """ return _HLRAlgo.HLRAlgo_Intersection_State(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Intersection HLRAlgo_Intersection.Orientation = new_instancemethod(_HLRAlgo.HLRAlgo_Intersection_Orientation,None,HLRAlgo_Intersection) HLRAlgo_Intersection.Level = new_instancemethod(_HLRAlgo.HLRAlgo_Intersection_Level,None,HLRAlgo_Intersection) HLRAlgo_Intersection.SegIndex = new_instancemethod(_HLRAlgo.HLRAlgo_Intersection_SegIndex,None,HLRAlgo_Intersection) HLRAlgo_Intersection.Index = new_instancemethod(_HLRAlgo.HLRAlgo_Intersection_Index,None,HLRAlgo_Intersection) HLRAlgo_Intersection.Parameter = new_instancemethod(_HLRAlgo.HLRAlgo_Intersection_Parameter,None,HLRAlgo_Intersection) HLRAlgo_Intersection.Tolerance = new_instancemethod(_HLRAlgo.HLRAlgo_Intersection_Tolerance,None,HLRAlgo_Intersection) HLRAlgo_Intersection.State = new_instancemethod(_HLRAlgo.HLRAlgo_Intersection_State,None,HLRAlgo_Intersection) HLRAlgo_Intersection_swigregister = _HLRAlgo.HLRAlgo_Intersection_swigregister HLRAlgo_Intersection_swigregister(HLRAlgo_Intersection) class HLRAlgo_ListIteratorOfInterferenceList(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None :param L: :type L: HLRAlgo_InterferenceList & :rtype: None """ _HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_swiginit(self,_HLRAlgo.new_HLRAlgo_ListIteratorOfInterferenceList(*args)) def Initialize(self, *args): """ :param L: :type L: HLRAlgo_InterferenceList & :rtype: None """ return _HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_Initialize(self, *args) def More(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_More(self, *args) def Next(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_Next(self, *args) def Value(self, *args): """ :rtype: HLRAlgo_Interference """ return _HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_Value(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_ListIteratorOfInterferenceList HLRAlgo_ListIteratorOfInterferenceList.Initialize = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_Initialize,None,HLRAlgo_ListIteratorOfInterferenceList) HLRAlgo_ListIteratorOfInterferenceList.More = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_More,None,HLRAlgo_ListIteratorOfInterferenceList) HLRAlgo_ListIteratorOfInterferenceList.Next = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_Next,None,HLRAlgo_ListIteratorOfInterferenceList) HLRAlgo_ListIteratorOfInterferenceList.Value = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_Value,None,HLRAlgo_ListIteratorOfInterferenceList) HLRAlgo_ListIteratorOfInterferenceList_swigregister = _HLRAlgo.HLRAlgo_ListIteratorOfInterferenceList_swigregister HLRAlgo_ListIteratorOfInterferenceList_swigregister(HLRAlgo_ListIteratorOfInterferenceList) class HLRAlgo_ListIteratorOfListOfBPoint(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None :param L: :type L: HLRAlgo_ListOfBPoint & :rtype: None """ _HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_swiginit(self,_HLRAlgo.new_HLRAlgo_ListIteratorOfListOfBPoint(*args)) def Initialize(self, *args): """ :param L: :type L: HLRAlgo_ListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_Initialize(self, *args) def More(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_More(self, *args) def Next(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_Next(self, *args) def Value(self, *args): """ :rtype: HLRAlgo_BiPoint """ return _HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_Value(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_ListIteratorOfListOfBPoint HLRAlgo_ListIteratorOfListOfBPoint.Initialize = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_Initialize,None,HLRAlgo_ListIteratorOfListOfBPoint) HLRAlgo_ListIteratorOfListOfBPoint.More = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_More,None,HLRAlgo_ListIteratorOfListOfBPoint) HLRAlgo_ListIteratorOfListOfBPoint.Next = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_Next,None,HLRAlgo_ListIteratorOfListOfBPoint) HLRAlgo_ListIteratorOfListOfBPoint.Value = new_instancemethod(_HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_Value,None,HLRAlgo_ListIteratorOfListOfBPoint) HLRAlgo_ListIteratorOfListOfBPoint_swigregister = _HLRAlgo.HLRAlgo_ListIteratorOfListOfBPoint_swigregister HLRAlgo_ListIteratorOfListOfBPoint_swigregister(HLRAlgo_ListIteratorOfListOfBPoint) class HLRAlgo_ListNodeOfInterferenceList(OCC.TCollection.TCollection_MapNode): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param I: :type I: HLRAlgo_Interference & :param n: :type n: TCollection_MapNodePtr & :rtype: None """ _HLRAlgo.HLRAlgo_ListNodeOfInterferenceList_swiginit(self,_HLRAlgo.new_HLRAlgo_ListNodeOfInterferenceList(*args)) def Value(self, *args): """ :rtype: HLRAlgo_Interference """ return _HLRAlgo.HLRAlgo_ListNodeOfInterferenceList_Value(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_ListNodeOfInterferenceList(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_ListNodeOfInterferenceList HLRAlgo_ListNodeOfInterferenceList.Value = new_instancemethod(_HLRAlgo.HLRAlgo_ListNodeOfInterferenceList_Value,None,HLRAlgo_ListNodeOfInterferenceList) HLRAlgo_ListNodeOfInterferenceList_swigregister = _HLRAlgo.HLRAlgo_ListNodeOfInterferenceList_swigregister HLRAlgo_ListNodeOfInterferenceList_swigregister(HLRAlgo_ListNodeOfInterferenceList) class Handle_HLRAlgo_ListNodeOfInterferenceList(OCC.TCollection.Handle_TCollection_MapNode): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_ListNodeOfInterferenceList(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_ListNodeOfInterferenceList Handle_HLRAlgo_ListNodeOfInterferenceList.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_Nullify,None,Handle_HLRAlgo_ListNodeOfInterferenceList) Handle_HLRAlgo_ListNodeOfInterferenceList.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_IsNull,None,Handle_HLRAlgo_ListNodeOfInterferenceList) Handle_HLRAlgo_ListNodeOfInterferenceList.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_GetObject,None,Handle_HLRAlgo_ListNodeOfInterferenceList) Handle_HLRAlgo_ListNodeOfInterferenceList_swigregister = _HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_swigregister Handle_HLRAlgo_ListNodeOfInterferenceList_swigregister(Handle_HLRAlgo_ListNodeOfInterferenceList) def Handle_HLRAlgo_ListNodeOfInterferenceList_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_DownCast(*args) Handle_HLRAlgo_ListNodeOfInterferenceList_DownCast = _HLRAlgo.Handle_HLRAlgo_ListNodeOfInterferenceList_DownCast class HLRAlgo_ListNodeOfListOfBPoint(OCC.TCollection.TCollection_MapNode): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param I: :type I: HLRAlgo_BiPoint & :param n: :type n: TCollection_MapNodePtr & :rtype: None """ _HLRAlgo.HLRAlgo_ListNodeOfListOfBPoint_swiginit(self,_HLRAlgo.new_HLRAlgo_ListNodeOfListOfBPoint(*args)) def Value(self, *args): """ :rtype: HLRAlgo_BiPoint """ return _HLRAlgo.HLRAlgo_ListNodeOfListOfBPoint_Value(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_ListNodeOfListOfBPoint(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_ListNodeOfListOfBPoint HLRAlgo_ListNodeOfListOfBPoint.Value = new_instancemethod(_HLRAlgo.HLRAlgo_ListNodeOfListOfBPoint_Value,None,HLRAlgo_ListNodeOfListOfBPoint) HLRAlgo_ListNodeOfListOfBPoint_swigregister = _HLRAlgo.HLRAlgo_ListNodeOfListOfBPoint_swigregister HLRAlgo_ListNodeOfListOfBPoint_swigregister(HLRAlgo_ListNodeOfListOfBPoint) class Handle_HLRAlgo_ListNodeOfListOfBPoint(OCC.TCollection.Handle_TCollection_MapNode): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_ListNodeOfListOfBPoint(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_ListNodeOfListOfBPoint Handle_HLRAlgo_ListNodeOfListOfBPoint.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_Nullify,None,Handle_HLRAlgo_ListNodeOfListOfBPoint) Handle_HLRAlgo_ListNodeOfListOfBPoint.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_IsNull,None,Handle_HLRAlgo_ListNodeOfListOfBPoint) Handle_HLRAlgo_ListNodeOfListOfBPoint.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_GetObject,None,Handle_HLRAlgo_ListNodeOfListOfBPoint) Handle_HLRAlgo_ListNodeOfListOfBPoint_swigregister = _HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_swigregister Handle_HLRAlgo_ListNodeOfListOfBPoint_swigregister(Handle_HLRAlgo_ListNodeOfListOfBPoint) def Handle_HLRAlgo_ListNodeOfListOfBPoint_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_DownCast(*args) Handle_HLRAlgo_ListNodeOfListOfBPoint_DownCast = _HLRAlgo.Handle_HLRAlgo_ListNodeOfListOfBPoint_DownCast class HLRAlgo_ListOfBPoint(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_ListOfBPoint_swiginit(self,_HLRAlgo.new_HLRAlgo_ListOfBPoint(*args)) def Assign(self, *args): """ :param Other: :type Other: HLRAlgo_ListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Assign(self, *args) def Set(self, *args): """ :param Other: :type Other: HLRAlgo_ListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Set(self, *args) def Extent(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Extent(self, *args) def Clear(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Clear(self, *args) def IsEmpty(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_ListOfBPoint_IsEmpty(self, *args) def Prepend(self, *args): """ :param I: :type I: HLRAlgo_BiPoint & :rtype: None :param I: :type I: HLRAlgo_BiPoint & :param theIt: :type theIt: HLRAlgo_ListIteratorOfListOfBPoint & :rtype: None :param Other: :type Other: HLRAlgo_ListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Prepend(self, *args) def Append(self, *args): """ :param I: :type I: HLRAlgo_BiPoint & :rtype: None :param I: :type I: HLRAlgo_BiPoint & :param theIt: :type theIt: HLRAlgo_ListIteratorOfListOfBPoint & :rtype: None :param Other: :type Other: HLRAlgo_ListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Append(self, *args) def First(self, *args): """ :rtype: HLRAlgo_BiPoint """ return _HLRAlgo.HLRAlgo_ListOfBPoint_First(self, *args) def Last(self, *args): """ :rtype: HLRAlgo_BiPoint """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Last(self, *args) def RemoveFirst(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_RemoveFirst(self, *args) def Remove(self, *args): """ :param It: :type It: HLRAlgo_ListIteratorOfListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_Remove(self, *args) def InsertBefore(self, *args): """ :param I: :type I: HLRAlgo_BiPoint & :param It: :type It: HLRAlgo_ListIteratorOfListOfBPoint & :rtype: None :param Other: :type Other: HLRAlgo_ListOfBPoint & :param It: :type It: HLRAlgo_ListIteratorOfListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_InsertBefore(self, *args) def InsertAfter(self, *args): """ :param I: :type I: HLRAlgo_BiPoint & :param It: :type It: HLRAlgo_ListIteratorOfListOfBPoint & :rtype: None :param Other: :type Other: HLRAlgo_ListOfBPoint & :param It: :type It: HLRAlgo_ListIteratorOfListOfBPoint & :rtype: None """ return _HLRAlgo.HLRAlgo_ListOfBPoint_InsertAfter(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_ListOfBPoint HLRAlgo_ListOfBPoint.Assign = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Assign,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.Set = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Set,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.Extent = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Extent,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.Clear = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Clear,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.IsEmpty = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_IsEmpty,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.Prepend = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Prepend,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.Append = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Append,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.First = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_First,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.Last = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Last,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.RemoveFirst = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_RemoveFirst,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.Remove = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_Remove,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.InsertBefore = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_InsertBefore,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint.InsertAfter = new_instancemethod(_HLRAlgo.HLRAlgo_ListOfBPoint_InsertAfter,None,HLRAlgo_ListOfBPoint) HLRAlgo_ListOfBPoint_swigregister = _HLRAlgo.HLRAlgo_ListOfBPoint_swigregister HLRAlgo_ListOfBPoint_swigregister(HLRAlgo_ListOfBPoint) class HLRAlgo_PolyAlgo(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_PolyAlgo_swiginit(self,_HLRAlgo.new_HLRAlgo_PolyAlgo(*args)) def Init(self, *args): """ :param HShell: :type HShell: Handle_TColStd_HArray1OfTransient & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_Init(self, *args) def PolyShell(self, *args): """ :rtype: TColStd_Array1OfTransient """ return _HLRAlgo.HLRAlgo_PolyAlgo_PolyShell(self, *args) def Clear(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_Clear(self, *args) def Update(self, *args): """ * Prepare all the data to process the algo. :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_Update(self, *args) def InitHide(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_InitHide(self, *args) def MoreHide(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_PolyAlgo_MoreHide(self, *args) def NextHide(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_NextHide(self, *args) def Hide(self, *args): """ * process hiding between <Pt1> and <Pt2>. :param Coordinates: :type Coordinates: Standard_Address & :param status: :type status: HLRAlgo_EdgeStatus & :param Index: :type Index: int & :param reg1: :type reg1: bool :param regn: :type regn: bool :param outl: :type outl: bool :param intl: :type intl: bool :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_Hide(self, *args) def InitShow(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_InitShow(self, *args) def MoreShow(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_PolyAlgo_MoreShow(self, *args) def NextShow(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_NextShow(self, *args) def Show(self, *args): """ * process hiding between <Pt1> and <Pt2>. :param Coordinates: :type Coordinates: Standard_Address & :param Index: :type Index: int & :param reg1: :type reg1: bool :param regn: :type regn: bool :param outl: :type outl: bool :param intl: :type intl: bool :rtype: None """ return _HLRAlgo.HLRAlgo_PolyAlgo_Show(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_PolyAlgo(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_PolyAlgo HLRAlgo_PolyAlgo.Init = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_Init,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.PolyShell = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_PolyShell,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.Clear = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_Clear,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.Update = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_Update,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.InitHide = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_InitHide,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.MoreHide = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_MoreHide,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.NextHide = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_NextHide,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.Hide = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_Hide,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.InitShow = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_InitShow,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.MoreShow = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_MoreShow,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.NextShow = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_NextShow,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo.Show = new_instancemethod(_HLRAlgo.HLRAlgo_PolyAlgo_Show,None,HLRAlgo_PolyAlgo) HLRAlgo_PolyAlgo_swigregister = _HLRAlgo.HLRAlgo_PolyAlgo_swigregister HLRAlgo_PolyAlgo_swigregister(HLRAlgo_PolyAlgo) class Handle_HLRAlgo_PolyAlgo(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_PolyAlgo_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_PolyAlgo(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_PolyAlgo_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_PolyAlgo Handle_HLRAlgo_PolyAlgo.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyAlgo_Nullify,None,Handle_HLRAlgo_PolyAlgo) Handle_HLRAlgo_PolyAlgo.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyAlgo_IsNull,None,Handle_HLRAlgo_PolyAlgo) Handle_HLRAlgo_PolyAlgo.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyAlgo_GetObject,None,Handle_HLRAlgo_PolyAlgo) Handle_HLRAlgo_PolyAlgo_swigregister = _HLRAlgo.Handle_HLRAlgo_PolyAlgo_swigregister Handle_HLRAlgo_PolyAlgo_swigregister(Handle_HLRAlgo_PolyAlgo) def Handle_HLRAlgo_PolyAlgo_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_PolyAlgo_DownCast(*args) Handle_HLRAlgo_PolyAlgo_DownCast = _HLRAlgo.Handle_HLRAlgo_PolyAlgo_DownCast class HLRAlgo_PolyData(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_PolyData_swiginit(self,_HLRAlgo.new_HLRAlgo_PolyData(*args)) def HNodes(self, *args): """ :param HNodes: :type HNodes: Handle_TColgp_HArray1OfXYZ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyData_HNodes(self, *args) def HTData(self, *args): """ :param HTData: :type HTData: Handle_HLRAlgo_HArray1OfTData & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyData_HTData(self, *args) def HPHDat(self, *args): """ :param HPHDat: :type HPHDat: Handle_HLRAlgo_HArray1OfPHDat & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyData_HPHDat(self, *args) def FaceIndex(self, *args): """ :param I: :type I: int :rtype: None :rtype: int """ return _HLRAlgo.HLRAlgo_PolyData_FaceIndex(self, *args) def Nodes(self, *args): """ :rtype: TColgp_Array1OfXYZ """ return _HLRAlgo.HLRAlgo_PolyData_Nodes(self, *args) def TData(self, *args): """ :rtype: HLRAlgo_Array1OfTData """ return _HLRAlgo.HLRAlgo_PolyData_TData(self, *args) def PHDat(self, *args): """ :rtype: HLRAlgo_Array1OfPHDat """ return _HLRAlgo.HLRAlgo_PolyData_PHDat(self, *args) def UpdateGlobalMinMax(self, *args): """ :param ToTMinMax: :type ToTMinMax: Standard_Address :rtype: None """ return _HLRAlgo.HLRAlgo_PolyData_UpdateGlobalMinMax(self, *args) def Hiding(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_PolyData_Hiding(self, *args) def HideByPolyData(self, *args): """ * process hiding between <Pt1> and <Pt2>. :param Coordinates: :type Coordinates: Standard_Address :param RealPtr: :type RealPtr: Standard_Address :param Indices: :type Indices: Standard_Address :param HidingShell: :type HidingShell: bool :param status: :type status: HLRAlgo_EdgeStatus & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyData_HideByPolyData(self, *args) def Indices(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_PolyData_Indices(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_PolyData(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_PolyData HLRAlgo_PolyData.HNodes = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_HNodes,None,HLRAlgo_PolyData) HLRAlgo_PolyData.HTData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_HTData,None,HLRAlgo_PolyData) HLRAlgo_PolyData.HPHDat = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_HPHDat,None,HLRAlgo_PolyData) HLRAlgo_PolyData.FaceIndex = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_FaceIndex,None,HLRAlgo_PolyData) HLRAlgo_PolyData.Nodes = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_Nodes,None,HLRAlgo_PolyData) HLRAlgo_PolyData.TData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_TData,None,HLRAlgo_PolyData) HLRAlgo_PolyData.PHDat = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_PHDat,None,HLRAlgo_PolyData) HLRAlgo_PolyData.UpdateGlobalMinMax = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_UpdateGlobalMinMax,None,HLRAlgo_PolyData) HLRAlgo_PolyData.Hiding = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_Hiding,None,HLRAlgo_PolyData) HLRAlgo_PolyData.HideByPolyData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_HideByPolyData,None,HLRAlgo_PolyData) HLRAlgo_PolyData.Indices = new_instancemethod(_HLRAlgo.HLRAlgo_PolyData_Indices,None,HLRAlgo_PolyData) HLRAlgo_PolyData_swigregister = _HLRAlgo.HLRAlgo_PolyData_swigregister HLRAlgo_PolyData_swigregister(HLRAlgo_PolyData) class Handle_HLRAlgo_PolyData(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_PolyData_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_PolyData(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_PolyData_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_PolyData Handle_HLRAlgo_PolyData.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyData_Nullify,None,Handle_HLRAlgo_PolyData) Handle_HLRAlgo_PolyData.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyData_IsNull,None,Handle_HLRAlgo_PolyData) Handle_HLRAlgo_PolyData.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyData_GetObject,None,Handle_HLRAlgo_PolyData) Handle_HLRAlgo_PolyData_swigregister = _HLRAlgo.Handle_HLRAlgo_PolyData_swigregister Handle_HLRAlgo_PolyData_swigregister(Handle_HLRAlgo_PolyData) def Handle_HLRAlgo_PolyData_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_PolyData_DownCast(*args) Handle_HLRAlgo_PolyData_DownCast = _HLRAlgo.Handle_HLRAlgo_PolyData_DownCast class HLRAlgo_PolyHidingData(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_PolyHidingData_swiginit(self,_HLRAlgo.new_HLRAlgo_PolyHidingData(*args)) def Set(self, *args): """ :param Index: :type Index: int :param Minim: :type Minim: int :param Maxim: :type Maxim: int :param A: :type A: float :param B: :type B: float :param C: :type C: float :param D: :type D: float :rtype: None """ return _HLRAlgo.HLRAlgo_PolyHidingData_Set(self, *args) def IndexAndMinMax(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_PolyHidingData_IndexAndMinMax(self, *args) def Plan(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_PolyHidingData_Plan(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_PolyHidingData HLRAlgo_PolyHidingData.Set = new_instancemethod(_HLRAlgo.HLRAlgo_PolyHidingData_Set,None,HLRAlgo_PolyHidingData) HLRAlgo_PolyHidingData.IndexAndMinMax = new_instancemethod(_HLRAlgo.HLRAlgo_PolyHidingData_IndexAndMinMax,None,HLRAlgo_PolyHidingData) HLRAlgo_PolyHidingData.Plan = new_instancemethod(_HLRAlgo.HLRAlgo_PolyHidingData_Plan,None,HLRAlgo_PolyHidingData) HLRAlgo_PolyHidingData_swigregister = _HLRAlgo.HLRAlgo_PolyHidingData_swigregister HLRAlgo_PolyHidingData_swigregister(HLRAlgo_PolyHidingData) class HLRAlgo_PolyInternalData(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param nbNod: :type nbNod: int :param nbTri: :type nbTri: int :rtype: None """ _HLRAlgo.HLRAlgo_PolyInternalData_swiginit(self,_HLRAlgo.new_HLRAlgo_PolyInternalData(*args)) def AddNode(self, *args): """ :param Nod1RValues: :type Nod1RValues: Standard_Address :param Nod2RValues: :type Nod2RValues: Standard_Address :param PINod1: :type PINod1: Standard_Address & :param PINod2: :type PINod2: Standard_Address & :param coef1: :type coef1: float :param X3: :type X3: float :param Y3: :type Y3: float :param Z3: :type Z3: float :rtype: int """ return _HLRAlgo.HLRAlgo_PolyInternalData_AddNode(self, *args) def UpdateLinks(self, *args): """ :param TData: :type TData: Standard_Address & :param PISeg: :type PISeg: Standard_Address & :param PINod: :type PINod: Standard_Address & :rtype: None :param ip1: :type ip1: int :param ip2: :type ip2: int :param ip3: :type ip3: int :param TData1: :type TData1: Standard_Address & :param TData2: :type TData2: Standard_Address & :param PISeg1: :type PISeg1: Standard_Address & :param PISeg2: :type PISeg2: Standard_Address & :param PINod1: :type PINod1: Standard_Address & :param PINod2: :type PINod2: Standard_Address & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_UpdateLinks(self, *args) def Dump(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_Dump(self, *args) def IncTData(self, *args): """ :param TData1: :type TData1: Standard_Address & :param TData2: :type TData2: Standard_Address & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_IncTData(self, *args) def IncPISeg(self, *args): """ :param PISeg1: :type PISeg1: Standard_Address & :param PISeg2: :type PISeg2: Standard_Address & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_IncPISeg(self, *args) def IncPINod(self, *args): """ :param PINod1: :type PINod1: Standard_Address & :param PINod2: :type PINod2: Standard_Address & :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_IncPINod(self, *args) def DecTData(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_DecTData(self, *args) def DecPISeg(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_DecPISeg(self, *args) def DecPINod(self, *args): """ :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_DecPINod(self, *args) def NbTData(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_PolyInternalData_NbTData(self, *args) def NbPISeg(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_PolyInternalData_NbPISeg(self, *args) def NbPINod(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_PolyInternalData_NbPINod(self, *args) def Planar(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_Planar(self, *args) def IntOutL(self, *args): """ :rtype: bool :param B: :type B: bool :rtype: None """ return _HLRAlgo.HLRAlgo_PolyInternalData_IntOutL(self, *args) def TData(self, *args): """ :rtype: HLRAlgo_Array1OfTData """ return _HLRAlgo.HLRAlgo_PolyInternalData_TData(self, *args) def PISeg(self, *args): """ :rtype: HLRAlgo_Array1OfPISeg """ return _HLRAlgo.HLRAlgo_PolyInternalData_PISeg(self, *args) def PINod(self, *args): """ :rtype: HLRAlgo_Array1OfPINod """ return _HLRAlgo.HLRAlgo_PolyInternalData_PINod(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_PolyInternalData(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_PolyInternalData HLRAlgo_PolyInternalData.AddNode = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_AddNode,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.UpdateLinks = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_UpdateLinks,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.Dump = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_Dump,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.IncTData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_IncTData,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.IncPISeg = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_IncPISeg,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.IncPINod = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_IncPINod,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.DecTData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_DecTData,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.DecPISeg = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_DecPISeg,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.DecPINod = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_DecPINod,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.NbTData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_NbTData,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.NbPISeg = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_NbPISeg,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.NbPINod = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_NbPINod,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.Planar = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_Planar,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.IntOutL = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_IntOutL,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.TData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_TData,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.PISeg = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_PISeg,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData.PINod = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalData_PINod,None,HLRAlgo_PolyInternalData) HLRAlgo_PolyInternalData_swigregister = _HLRAlgo.HLRAlgo_PolyInternalData_swigregister HLRAlgo_PolyInternalData_swigregister(HLRAlgo_PolyInternalData) class Handle_HLRAlgo_PolyInternalData(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_PolyInternalData_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_PolyInternalData(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalData_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_PolyInternalData Handle_HLRAlgo_PolyInternalData.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalData_Nullify,None,Handle_HLRAlgo_PolyInternalData) Handle_HLRAlgo_PolyInternalData.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalData_IsNull,None,Handle_HLRAlgo_PolyInternalData) Handle_HLRAlgo_PolyInternalData.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalData_GetObject,None,Handle_HLRAlgo_PolyInternalData) Handle_HLRAlgo_PolyInternalData_swigregister = _HLRAlgo.Handle_HLRAlgo_PolyInternalData_swigregister Handle_HLRAlgo_PolyInternalData_swigregister(Handle_HLRAlgo_PolyInternalData) def Handle_HLRAlgo_PolyInternalData_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_PolyInternalData_DownCast(*args) Handle_HLRAlgo_PolyInternalData_DownCast = _HLRAlgo.Handle_HLRAlgo_PolyInternalData_DownCast class HLRAlgo_PolyInternalNode(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_PolyInternalNode_swiginit(self,_HLRAlgo.new_HLRAlgo_PolyInternalNode(*args)) def Indices(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_PolyInternalNode_Indices(self, *args) def RValues(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_PolyInternalNode_RValues(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_PolyInternalNode(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_PolyInternalNode HLRAlgo_PolyInternalNode.Indices = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalNode_Indices,None,HLRAlgo_PolyInternalNode) HLRAlgo_PolyInternalNode.RValues = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalNode_RValues,None,HLRAlgo_PolyInternalNode) HLRAlgo_PolyInternalNode_swigregister = _HLRAlgo.HLRAlgo_PolyInternalNode_swigregister HLRAlgo_PolyInternalNode_swigregister(HLRAlgo_PolyInternalNode) class Handle_HLRAlgo_PolyInternalNode(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_PolyInternalNode_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_PolyInternalNode(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalNode_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_PolyInternalNode Handle_HLRAlgo_PolyInternalNode.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalNode_Nullify,None,Handle_HLRAlgo_PolyInternalNode) Handle_HLRAlgo_PolyInternalNode.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalNode_IsNull,None,Handle_HLRAlgo_PolyInternalNode) Handle_HLRAlgo_PolyInternalNode.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyInternalNode_GetObject,None,Handle_HLRAlgo_PolyInternalNode) Handle_HLRAlgo_PolyInternalNode_swigregister = _HLRAlgo.Handle_HLRAlgo_PolyInternalNode_swigregister Handle_HLRAlgo_PolyInternalNode_swigregister(Handle_HLRAlgo_PolyInternalNode) def Handle_HLRAlgo_PolyInternalNode_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_PolyInternalNode_DownCast(*args) Handle_HLRAlgo_PolyInternalNode_DownCast = _HLRAlgo.Handle_HLRAlgo_PolyInternalNode_DownCast class HLRAlgo_PolyInternalSegment(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_PolyInternalSegment_swiginit(self,_HLRAlgo.new_HLRAlgo_PolyInternalSegment(*args)) def Indices(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_PolyInternalSegment_Indices(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_PolyInternalSegment HLRAlgo_PolyInternalSegment.Indices = new_instancemethod(_HLRAlgo.HLRAlgo_PolyInternalSegment_Indices,None,HLRAlgo_PolyInternalSegment) HLRAlgo_PolyInternalSegment_swigregister = _HLRAlgo.HLRAlgo_PolyInternalSegment_swigregister HLRAlgo_PolyInternalSegment_swigregister(HLRAlgo_PolyInternalSegment) class HLRAlgo_PolyShellData(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :param nbFace: :type nbFace: int :rtype: None """ _HLRAlgo.HLRAlgo_PolyShellData_swiginit(self,_HLRAlgo.new_HLRAlgo_PolyShellData(*args)) def UpdateGlobalMinMax(self, *args): """ :param TotMinMax: :type TotMinMax: Standard_Address :rtype: None """ return _HLRAlgo.HLRAlgo_PolyShellData_UpdateGlobalMinMax(self, *args) def UpdateHiding(self, *args): """ :param nbHiding: :type nbHiding: int :rtype: None """ return _HLRAlgo.HLRAlgo_PolyShellData_UpdateHiding(self, *args) def Hiding(self, *args): """ :rtype: bool """ return _HLRAlgo.HLRAlgo_PolyShellData_Hiding(self, *args) def PolyData(self, *args): """ :rtype: TColStd_Array1OfTransient """ return _HLRAlgo.HLRAlgo_PolyShellData_PolyData(self, *args) def HidingPolyData(self, *args): """ :rtype: TColStd_Array1OfTransient """ return _HLRAlgo.HLRAlgo_PolyShellData_HidingPolyData(self, *args) def Edges(self, *args): """ :rtype: HLRAlgo_ListOfBPoint """ return _HLRAlgo.HLRAlgo_PolyShellData_Edges(self, *args) def Indices(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_PolyShellData_Indices(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_PolyShellData(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_PolyShellData HLRAlgo_PolyShellData.UpdateGlobalMinMax = new_instancemethod(_HLRAlgo.HLRAlgo_PolyShellData_UpdateGlobalMinMax,None,HLRAlgo_PolyShellData) HLRAlgo_PolyShellData.UpdateHiding = new_instancemethod(_HLRAlgo.HLRAlgo_PolyShellData_UpdateHiding,None,HLRAlgo_PolyShellData) HLRAlgo_PolyShellData.Hiding = new_instancemethod(_HLRAlgo.HLRAlgo_PolyShellData_Hiding,None,HLRAlgo_PolyShellData) HLRAlgo_PolyShellData.PolyData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyShellData_PolyData,None,HLRAlgo_PolyShellData) HLRAlgo_PolyShellData.HidingPolyData = new_instancemethod(_HLRAlgo.HLRAlgo_PolyShellData_HidingPolyData,None,HLRAlgo_PolyShellData) HLRAlgo_PolyShellData.Edges = new_instancemethod(_HLRAlgo.HLRAlgo_PolyShellData_Edges,None,HLRAlgo_PolyShellData) HLRAlgo_PolyShellData.Indices = new_instancemethod(_HLRAlgo.HLRAlgo_PolyShellData_Indices,None,HLRAlgo_PolyShellData) HLRAlgo_PolyShellData_swigregister = _HLRAlgo.HLRAlgo_PolyShellData_swigregister HLRAlgo_PolyShellData_swigregister(HLRAlgo_PolyShellData) class Handle_HLRAlgo_PolyShellData(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_PolyShellData_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_PolyShellData(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_PolyShellData_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_PolyShellData Handle_HLRAlgo_PolyShellData.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyShellData_Nullify,None,Handle_HLRAlgo_PolyShellData) Handle_HLRAlgo_PolyShellData.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyShellData_IsNull,None,Handle_HLRAlgo_PolyShellData) Handle_HLRAlgo_PolyShellData.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_PolyShellData_GetObject,None,Handle_HLRAlgo_PolyShellData) Handle_HLRAlgo_PolyShellData_swigregister = _HLRAlgo.Handle_HLRAlgo_PolyShellData_swigregister Handle_HLRAlgo_PolyShellData_swigregister(Handle_HLRAlgo_PolyShellData) def Handle_HLRAlgo_PolyShellData_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_PolyShellData_DownCast(*args) Handle_HLRAlgo_PolyShellData_DownCast = _HLRAlgo.Handle_HLRAlgo_PolyShellData_DownCast class HLRAlgo_Projector(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None * Creates an axonometric projector. <CS> is the viewing coordinate system. :param CS: :type CS: gp_Ax2 :rtype: None * Creates a perspective projector. <CS> is the viewing coordinate system. :param CS: :type CS: gp_Ax2 :param Focus: :type Focus: float :rtype: None * build a Projector with automatic minmax directions. :param T: :type T: gp_Trsf :param Persp: :type Persp: bool :param Focus: :type Focus: float :rtype: None * build a Projector with given minmax directions. :param T: :type T: gp_Trsf :param Persp: :type Persp: bool :param Focus: :type Focus: float :param v1: :type v1: gp_Vec2d :param v2: :type v2: gp_Vec2d :param v3: :type v3: gp_Vec2d :rtype: None """ _HLRAlgo.HLRAlgo_Projector_swiginit(self,_HLRAlgo.new_HLRAlgo_Projector(*args)) def Set(self, *args): """ :param T: :type T: gp_Trsf :param Persp: :type Persp: bool :param Focus: :type Focus: float :rtype: None """ return _HLRAlgo.HLRAlgo_Projector_Set(self, *args) def Directions(self, *args): """ :param D1: :type D1: gp_Vec2d :param D2: :type D2: gp_Vec2d :param D3: :type D3: gp_Vec2d :rtype: None """ return _HLRAlgo.HLRAlgo_Projector_Directions(self, *args) def Scaled(self, *args): """ * to compute with the given scale and translation. :param On: default value is Standard_False :type On: bool :rtype: None """ return _HLRAlgo.HLRAlgo_Projector_Scaled(self, *args) def Perspective(self, *args): """ * Returns True if there is a perspective transformation. :rtype: bool """ return _HLRAlgo.HLRAlgo_Projector_Perspective(self, *args) def Transformation(self, *args): """ * Returns the active transformation. :rtype: gp_Trsf """ return _HLRAlgo.HLRAlgo_Projector_Transformation(self, *args) def InvertedTransformation(self, *args): """ * Returns the active inverted transformation. :rtype: gp_Trsf """ return _HLRAlgo.HLRAlgo_Projector_InvertedTransformation(self, *args) def FullTransformation(self, *args): """ * Returns the original transformation. :rtype: gp_Trsf """ return _HLRAlgo.HLRAlgo_Projector_FullTransformation(self, *args) def Focus(self, *args): """ * Returns the focal length. :rtype: float """ return _HLRAlgo.HLRAlgo_Projector_Focus(self, *args) def Transform(self, *args): """ :param D: :type D: gp_Vec :rtype: None :param Pnt: :type Pnt: gp_Pnt :rtype: None """ return _HLRAlgo.HLRAlgo_Projector_Transform(self, *args) def Project(self, *args): """ * Transform and apply perspective if needed. :param P: :type P: gp_Pnt :param Pout: :type Pout: gp_Pnt2d :rtype: None * Transform and apply perspective if needed. :param P: :type P: gp_Pnt :param X: :type X: float & :param Y: :type Y: float & :param Z: :type Z: float & :rtype: None * Transform and apply perspective if needed. :param P: :type P: gp_Pnt :param D1: :type D1: gp_Vec :param Pout: :type Pout: gp_Pnt2d :param D1out: :type D1out: gp_Vec2d :rtype: None """ return _HLRAlgo.HLRAlgo_Projector_Project(self, *args) def Shoot(self, *args): """ * return a line going through the eye towards the 2d point <X,Y>. :param X: :type X: float :param Y: :type Y: float :rtype: gp_Lin """ return _HLRAlgo.HLRAlgo_Projector_Shoot(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_Projector HLRAlgo_Projector.Set = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Set,None,HLRAlgo_Projector) HLRAlgo_Projector.Directions = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Directions,None,HLRAlgo_Projector) HLRAlgo_Projector.Scaled = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Scaled,None,HLRAlgo_Projector) HLRAlgo_Projector.Perspective = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Perspective,None,HLRAlgo_Projector) HLRAlgo_Projector.Transformation = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Transformation,None,HLRAlgo_Projector) HLRAlgo_Projector.InvertedTransformation = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_InvertedTransformation,None,HLRAlgo_Projector) HLRAlgo_Projector.FullTransformation = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_FullTransformation,None,HLRAlgo_Projector) HLRAlgo_Projector.Focus = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Focus,None,HLRAlgo_Projector) HLRAlgo_Projector.Transform = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Transform,None,HLRAlgo_Projector) HLRAlgo_Projector.Project = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Project,None,HLRAlgo_Projector) HLRAlgo_Projector.Shoot = new_instancemethod(_HLRAlgo.HLRAlgo_Projector_Shoot,None,HLRAlgo_Projector) HLRAlgo_Projector_swigregister = _HLRAlgo.HLRAlgo_Projector_swigregister HLRAlgo_Projector_swigregister(HLRAlgo_Projector) class HLRAlgo_TriangleData(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ :rtype: None """ _HLRAlgo.HLRAlgo_TriangleData_swiginit(self,_HLRAlgo.new_HLRAlgo_TriangleData(*args)) def Indices(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_TriangleData_Indices(self, *args) __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_TriangleData HLRAlgo_TriangleData.Indices = new_instancemethod(_HLRAlgo.HLRAlgo_TriangleData_Indices,None,HLRAlgo_TriangleData) HLRAlgo_TriangleData_swigregister = _HLRAlgo.HLRAlgo_TriangleData_swigregister HLRAlgo_TriangleData_swigregister(HLRAlgo_TriangleData) class HLRAlgo_WiresBlock(OCC.MMgt.MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ * Create a Block of Blocks. :param NbWires: :type NbWires: int :rtype: None """ _HLRAlgo.HLRAlgo_WiresBlock_swiginit(self,_HLRAlgo.new_HLRAlgo_WiresBlock(*args)) def NbWires(self, *args): """ :rtype: int """ return _HLRAlgo.HLRAlgo_WiresBlock_NbWires(self, *args) def Set(self, *args): """ :param I: :type I: int :param W: :type W: Handle_HLRAlgo_EdgesBlock & :rtype: None """ return _HLRAlgo.HLRAlgo_WiresBlock_Set(self, *args) def Wire(self, *args): """ :param I: :type I: int :rtype: Handle_HLRAlgo_EdgesBlock """ return _HLRAlgo.HLRAlgo_WiresBlock_Wire(self, *args) def UpdateMinMax(self, *args): """ :param TotMinMax: :type TotMinMax: Standard_Address :rtype: None """ return _HLRAlgo.HLRAlgo_WiresBlock_UpdateMinMax(self, *args) def MinMax(self, *args): """ :rtype: Standard_Address """ return _HLRAlgo.HLRAlgo_WiresBlock_MinMax(self, *args) def GetHandle(self): try: return self.thisHandle except: self.thisHandle = Handle_HLRAlgo_WiresBlock(self) self.thisown = False return self.thisHandle __swig_destroy__ = _HLRAlgo.delete_HLRAlgo_WiresBlock HLRAlgo_WiresBlock.NbWires = new_instancemethod(_HLRAlgo.HLRAlgo_WiresBlock_NbWires,None,HLRAlgo_WiresBlock) HLRAlgo_WiresBlock.Set = new_instancemethod(_HLRAlgo.HLRAlgo_WiresBlock_Set,None,HLRAlgo_WiresBlock) HLRAlgo_WiresBlock.Wire = new_instancemethod(_HLRAlgo.HLRAlgo_WiresBlock_Wire,None,HLRAlgo_WiresBlock) HLRAlgo_WiresBlock.UpdateMinMax = new_instancemethod(_HLRAlgo.HLRAlgo_WiresBlock_UpdateMinMax,None,HLRAlgo_WiresBlock) HLRAlgo_WiresBlock.MinMax = new_instancemethod(_HLRAlgo.HLRAlgo_WiresBlock_MinMax,None,HLRAlgo_WiresBlock) HLRAlgo_WiresBlock_swigregister = _HLRAlgo.HLRAlgo_WiresBlock_swigregister HLRAlgo_WiresBlock_swigregister(HLRAlgo_WiresBlock) class Handle_HLRAlgo_WiresBlock(OCC.MMgt.Handle_MMgt_TShared): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): _HLRAlgo.Handle_HLRAlgo_WiresBlock_swiginit(self,_HLRAlgo.new_Handle_HLRAlgo_WiresBlock(*args)) # register the handle in the base object if len(args) > 0: register_handle(self, args[0]) DownCast = staticmethod(_HLRAlgo.Handle_HLRAlgo_WiresBlock_DownCast) __swig_destroy__ = _HLRAlgo.delete_Handle_HLRAlgo_WiresBlock Handle_HLRAlgo_WiresBlock.Nullify = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_WiresBlock_Nullify,None,Handle_HLRAlgo_WiresBlock) Handle_HLRAlgo_WiresBlock.IsNull = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_WiresBlock_IsNull,None,Handle_HLRAlgo_WiresBlock) Handle_HLRAlgo_WiresBlock.GetObject = new_instancemethod(_HLRAlgo.Handle_HLRAlgo_WiresBlock_GetObject,None,Handle_HLRAlgo_WiresBlock) Handle_HLRAlgo_WiresBlock_swigregister = _HLRAlgo.Handle_HLRAlgo_WiresBlock_swigregister Handle_HLRAlgo_WiresBlock_swigregister(Handle_HLRAlgo_WiresBlock) def Handle_HLRAlgo_WiresBlock_DownCast(*args): return _HLRAlgo.Handle_HLRAlgo_WiresBlock_DownCast(*args) Handle_HLRAlgo_WiresBlock_DownCast = _HLRAlgo.Handle_HLRAlgo_WiresBlock_DownCast
33.600338
332
0.694981
14,203
139,139
6.45251
0.036049
0.084784
0.076469
0.080168
0.813389
0.521971
0.461378
0.405369
0.371368
0.349359
0
0.008291
0.218982
139,139
4,140
333
33.608454
0.835042
0.189199
0
0.297051
1
0
0.011007
0
0
0
0
0
0
1
0.234551
false
0.002107
0.011938
0.010534
0.600421
0
0
0
0
null
0
0
0
1
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
1
0
0
0
0
1
0
0
4
3f5a1bf75daa905f1a72d9852e486f54463fd9ec
22
py
Python
src/overflow/settings/logging.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
4
2018-08-21T05:33:40.000Z
2019-05-06T09:03:06.000Z
src/overflow/settings/logging.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2020-08-09T10:33:58.000Z
2020-08-09T10:33:58.000Z
src/overflow/settings/logging.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2019-05-06T13:33:06.000Z
2019-05-06T13:33:06.000Z
""" Logging config """
7.333333
14
0.590909
2
22
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.136364
22
3
15
7.333333
0.684211
0.636364
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
1
0
0
0
0
0
0
4
3f6703198568c47483afd65d27251d675db91a9e
56
py
Python
require_i18n/tests/__init__.py
collab-project/django-require-i18n
16b80ebc68085142622aca8a137240008b023b03
[ "MIT" ]
2
2015-02-24T20:59:31.000Z
2015-03-12T14:35:21.000Z
require_i18n/management/__init__.py
collab-project/django-require-i18n
16b80ebc68085142622aca8a137240008b023b03
[ "MIT" ]
1
2015-03-18T01:40:26.000Z
2015-03-19T18:04:01.000Z
require_i18n/tests/__init__.py
collab-project/django-require-i18n
16b80ebc68085142622aca8a137240008b023b03
[ "MIT" ]
null
null
null
# Copyright Collab 2015-2016 # See LICENSE for details.
18.666667
28
0.767857
8
56
5.375
1
0
0
0
0
0
0
0
0
0
0
0.170213
0.160714
56
2
29
28
0.744681
0.910714
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3f6800fece20723a7990d1dcd531c8fe8e673eef
577
py
Python
manager/migrations/0006_auto_20200622_1737.py
kbatuigas/ddapp
810e7bfee0e21dc52efc279e4a0681b72873ebd6
[ "Apache-2.0" ]
null
null
null
manager/migrations/0006_auto_20200622_1737.py
kbatuigas/ddapp
810e7bfee0e21dc52efc279e4a0681b72873ebd6
[ "Apache-2.0" ]
null
null
null
manager/migrations/0006_auto_20200622_1737.py
kbatuigas/ddapp
810e7bfee0e21dc52efc279e4a0681b72873ebd6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-22 21:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('manager', '0005_auto_20200615_1454'), ] operations = [ migrations.AlterModelOptions( name='campaign', options={'managed': True}, ), migrations.AlterModelOptions( name='pc', options={'managed': True}, ), migrations.AlterModelOptions( name='personcampaign', options={'managed': False}, ), ]
22.192308
47
0.55286
49
577
6.44898
0.693878
0.256329
0.294304
0.177215
0.310127
0.310127
0
0
0
0
0
0.079692
0.325823
577
25
48
23.08
0.732648
0.07799
0
0.421053
1
0
0.141509
0.043396
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
58b12e8f2b3f4b59f31e219734e926c2f593e6fc
1,511
py
Python
authors/apps/comments/tests/test_comments.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
null
null
null
authors/apps/comments/tests/test_comments.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
64
2018-11-27T11:20:55.000Z
2021-06-10T20:58:34.000Z
authors/apps/comments/tests/test_comments.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
4
2018-12-19T19:58:18.000Z
2019-10-03T08:28:00.000Z
from rest_framework import status from .base_test import BaseTestCase class TestProfile(BaseTestCase): """Test the Article Comments responses""" all_comments_url = '/api/articles/i-saw-ruslan/comments/' one_comment_url = '/api/articles/i-saw-ruslan/comments/1/' def test_get_all_comments_without_login(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.all_comments_url) self.assertNotEqual(response.status_code, status.HTTP_200_OK) def test_cannot_get_unexisting_comments(self): response = self.client.get(self.all_comments_url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_cannot_update_my_comment_without_login(self): response = self.client.put(self.one_comment_url) self.assertNotEqual(response.status_code, status.HTTP_200_OK) def test_update_my_comment_without_login2(self): response = self.client.put(self.one_comment_url) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_delete_my_comment_with_login(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.delete(self.one_comment_url) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_delete_my_comment_without_login(self): response = self.client.delete(self.one_comment_url) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
40.837838
73
0.764394
202
1,511
5.376238
0.262376
0.073665
0.099448
0.132597
0.759669
0.759669
0.759669
0.700737
0.630755
0.574586
0
0.015528
0.147584
1,511
36
74
41.972222
0.82764
0.023163
0
0.52
0
0
0.050374
0.050374
0
0
0
0
0.24
1
0.24
false
0
0.08
0
0.44
0
0
0
0
null
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
58b91ce8f3fbc051cdf03c9043a21831514a7398
287
py
Python
modules/persons/infrastructure/serializers/django/phone/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
6
2020-08-09T23:41:08.000Z
2021-03-16T22:05:40.000Z
modules/persons/infrastructure/serializers/django/phone/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
1
2020-10-02T02:59:38.000Z
2020-10-02T02:59:38.000Z
modules/persons/infrastructure/serializers/django/phone/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
2
2021-03-16T22:05:43.000Z
2021-04-30T06:35:25.000Z
# -*- coding: utf-8 -*- from .phone_serializer import PhoneSerializer from .get_phone_serializer import GetPhoneSerializer from .delete_phone_serializer import DeletePhoneSerializer __all__ = ('PhoneSerializer', 'GetPhoneSerializer', 'DeletePhoneSerializer', )
23.916667
58
0.745645
24
287
8.541667
0.541667
0.219512
0.307317
0
0
0
0
0
0
0
0
0.004202
0.170732
287
11
59
26.090909
0.857143
0.073171
0
0
0
0
0.204545
0.079545
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
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
0
1
0
0
0
0
4
58d730a81469a583f6b43aeece478b8f64107f43
144
py
Python
tests/mockapp/__init__.py
Mozilla-GitHub-Standards/4a4749ba7d28fec451e80ed9de9947acce774a0b4c7db797dc32439740ac770d
818465d581145ce740b8bc18f1148093a857ed79
[ "BSD-3-Clause" ]
22
2015-04-15T19:15:14.000Z
2022-02-01T01:36:53.000Z
tests/mockapp/__init__.py
Mozilla-GitHub-Standards/4a4749ba7d28fec451e80ed9de9947acce774a0b4c7db797dc32439740ac770d
818465d581145ce740b8bc18f1148093a857ed79
[ "BSD-3-Clause" ]
29
2015-04-22T18:37:02.000Z
2020-12-17T01:43:52.000Z
tests/mockapp/__init__.py
Mozilla-GitHub-Standards/4a4749ba7d28fec451e80ed9de9947acce774a0b4c7db797dc32439740ac770d
818465d581145ce740b8bc18f1148093a857ed79
[ "BSD-3-Clause" ]
5
2015-04-15T19:58:08.000Z
2021-12-28T21:05:41.000Z
# Mock app for testing from __future__ import absolute_import, unicode_literals from .celery import app as celery_app __all__ = ['celery_app']
24
56
0.805556
21
144
4.952381
0.619048
0.173077
0
0
0
0
0
0
0
0
0
0
0.138889
144
5
57
28.8
0.83871
0.138889
0
0
0
0
0.081967
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
58fff85c1fdd763ab2b066229421946d31d4491d
198
py
Python
tests/__init__.py
eddyvdaker/Binary-Practice
5055a2344d857029e228a6a51333d82511e8b38d
[ "MIT" ]
null
null
null
tests/__init__.py
eddyvdaker/Binary-Practice
5055a2344d857029e228a6a51333d82511e8b38d
[ "MIT" ]
null
null
null
tests/__init__.py
eddyvdaker/Binary-Practice
5055a2344d857029e228a6a51333d82511e8b38d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ tests.conftest ~~~~~~~~~~~~~~ :copyright: 2019 Eddy van den Aker (eddy.v.d.aker@gmail.com, eddy.vandenaker@zuyd.nl) :license: MIT """ import pytest
19.8
64
0.580808
26
198
4.423077
0.884615
0
0
0
0
0
0
0
0
0
0
0.025641
0.212121
198
10
65
19.8
0.711538
0.782828
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
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
1
0
1
0
0
4
451b6f49937f18f6c1546759f1eeeb1b3173e1f5
639
py
Python
tests/test_validate_line.py
Alfareiza/calc-payment
c0ad005795a1841da82ae1c8092c65233510fd99
[ "MIT" ]
null
null
null
tests/test_validate_line.py
Alfareiza/calc-payment
c0ad005795a1841da82ae1c8092c65233510fd99
[ "MIT" ]
null
null
null
tests/test_validate_line.py
Alfareiza/calc-payment
c0ad005795a1841da82ae1c8092c65233510fd99
[ "MIT" ]
null
null
null
from src.validators import validate_line def test_name_and_intervals_filled(): assert validate_line( 'RENE=MO10:00-12:00,TU10:00-12:00,TH01:00-03:00,SA14:00-18:00,SU20:00-21:00') def test_long_name_and_filled_intervals(): assert validate_line( 'EZEQUIEL=MO10:00-12:00,TH12:00-14:00,SU20:00-21:00') def test_name_and_some_empty_intervals(): assert validate_line( 'ALFONSO=MO08:00-17:00,FRI9:15-18:05,,SA17:35-18:55') def test_filled_name_and_all_intervals_emtpy(): assert validate_line('JAN=,,,,,') def test_empty_name_and_all_intervals_emtpy(): assert validate_line('=,,,,,') is False
25.56
85
0.72457
107
639
4.028037
0.411215
0.167053
0.208817
0.064965
0.283063
0.283063
0.283063
0.194896
0
0
0
0.156475
0.12989
639
24
86
26.625
0.618705
0
0
0.214286
0
0.214286
0.295775
0.2723
0
0
0
0
0.357143
1
0.357143
true
0
0.071429
0
0.428571
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
1
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
4
4520035b9839fb5303782741dca7b4f53c97756e
1,100
py
Python
aiortc/__init__.py
nickaknudson/aiortc
950b74010288c9dad4cd58fe67c90b429cf119a4
[ "BSD-3-Clause" ]
null
null
null
aiortc/__init__.py
nickaknudson/aiortc
950b74010288c9dad4cd58fe67c90b429cf119a4
[ "BSD-3-Clause" ]
null
null
null
aiortc/__init__.py
nickaknudson/aiortc
950b74010288c9dad4cd58fe67c90b429cf119a4
[ "BSD-3-Clause" ]
null
null
null
from .exceptions import InvalidAccessError, InvalidStateError # noqa from .mediastreams import (AudioFrame, AudioStreamTrack, VideoFrame, # noqa VideoStreamTrack) from .rtcconfiguration import RTCConfiguration, RTCIceServer # noqa from .rtcdatachannel import RTCDataChannel, RTCDataChannelParameters # noqa from .rtcdtlstransport import (RTCCertificate, RTCDtlsFingerprint, # noqa RTCDtlsParameters, RTCDtlsTransport) from .rtcicetransport import (RTCIceCandidate, RTCIceGatherer, # noqa RTCIceParameters, RTCIceTransport) from .rtcpeerconnection import RTCPeerConnection # noqa from .rtcrtpparameters import (RTCRtcpParameters, # noqa RTCRtpCodecParameters, RTCRtpParameters) from .rtcrtpreceiver import RTCRtpReceiver # noqa from .rtcrtpsender import RTCRtpSender # noqa from .rtcrtptransceiver import RTCRtpTransceiver # noqa from .rtcsctptransport import RTCSctpCapabilities, RTCSctpTransport # noqa from .rtcsessiondescription import RTCSessionDescription # noqa
61.111111
76
0.750909
80
1,100
10.325
0.4125
0.077482
0
0
0
0
0
0
0
0
0
0
0.204545
1,100
17
77
64.705882
0.944
0.058182
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.764706
0
0.764706
0.058824
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
1
0
1
0
1
0
0
4
7a0c2d7652f7bf1b5eee93fd87bacac6489a8942
141
py
Python
src/cce/mongdb/scratch.py
TiffanyXQZ/cce-scripts
9593ee288b1f76321144e44c1504fa060d7c13d2
[ "MIT" ]
null
null
null
src/cce/mongdb/scratch.py
TiffanyXQZ/cce-scripts
9593ee288b1f76321144e44c1504fa060d7c13d2
[ "MIT" ]
null
null
null
src/cce/mongdb/scratch.py
TiffanyXQZ/cce-scripts
9593ee288b1f76321144e44c1504fa060d7c13d2
[ "MIT" ]
null
null
null
from pymongo import MongoClient from rich import print client = MongoClient('mongodb://localhost:27017/') print(client.list_database_names())
35.25
50
0.815603
18
141
6.277778
0.722222
0.19469
0
0
0
0
0
0
0
0
0
0.038462
0.078014
141
4
51
35.25
0.830769
0
0
0
0
0
0.183099
0.183099
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.5
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
1
0
0
1
0
4
7a138c88f2b053f0eb48663af6a2696a5bb88541
1,269
py
Python
tensorflow_gan/python/tpu/__init__.py
Ankuraxz/gan
b956c7d571539fd1053b3df3dddddbcbd27be65c
[ "Apache-2.0" ]
2
2021-03-29T04:39:29.000Z
2021-05-14T05:51:40.000Z
tensorflow_gan/python/tpu/__init__.py
Ankuraxz/gan
b956c7d571539fd1053b3df3dddddbcbd27be65c
[ "Apache-2.0" ]
2
2020-08-18T20:47:45.000Z
2020-08-19T18:38:39.000Z
tensorflow_gan/python/tpu/__init__.py
Ankuraxz/gan
b956c7d571539fd1053b3df3dddddbcbd27be65c
[ "Apache-2.0" ]
1
2020-08-18T16:12:39.000Z
2020-08-18T16:12:39.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow GAN Authors. # # 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. """TF-GAN TPU support.""" # pylint: disable=wildcard-import,g-bad-import-order,line-too-long,g-no-space-after-comment # Collapse losses into a single namespace. # TODO(joelshor): Figure out why including this line breaks the open source # build # from tensorflow_gan.python.tpu.cross_replica_ops import * from tensorflow_gan.python.tpu.normalization_ops import * # Collect list of exposed symbols. #from tensorflow_gan.python.tpu.cross_replica_ops import __all__ as cross_replica_ops_symbols from tensorflow_gan.python.tpu.normalization_ops import __all__ as normalization_ops_symbols __all__ = normalization_ops_symbols # __all__ += cross_replica_ops_symbols
42.3
93
0.794326
193
1,269
5.036269
0.569948
0.061728
0.069959
0.09465
0.209877
0.209877
0.195473
0.195473
0.096708
0
0
0.008167
0.1316
1,269
29
94
43.758621
0.873866
0.810875
0
0
0
0
0
0
0
0
0
0.034483
0
1
0
false
0
0.666667
0
0.666667
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
1
0
0
0
0
0
1
0
1
0
0
4
7a1fd8361f8ca22636ab140d1e5a0e225743bcfd
92
py
Python
tests/test_project_fixtures/test_correct_project/apps/test_app3/apps.py
fevral13/django-migration-linter
6fcc7b4719ab93acf3036cb27fc185de30be0bde
[ "Apache-2.0" ]
null
null
null
tests/test_project_fixtures/test_correct_project/apps/test_app3/apps.py
fevral13/django-migration-linter
6fcc7b4719ab93acf3036cb27fc185de30be0bde
[ "Apache-2.0" ]
1
2019-04-10T10:56:13.000Z
2019-04-10T12:15:51.000Z
tests/test_project_fixtures/test_correct_project/apps/test_app3/apps.py
fevral13/django-migration-linter
6fcc7b4719ab93acf3036cb27fc185de30be0bde
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class TestApp3Config(AppConfig): name = 'test_app3'
15.333333
33
0.76087
11
92
6.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0.025974
0.163043
92
5
34
18.4
0.87013
0
0
0
0
0
0.097826
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e1701dd533c6bc7c993fc3e8b2a3c1e7b58b7b8d
31
py
Python
src/telliot_core/apps/__init__.py
QuintusTheFifth/telliot-core
e22bc3b98d368fa91528f4a273ef26eddfefacaf
[ "MIT" ]
9
2021-12-15T07:03:34.000Z
2022-03-30T20:16:45.000Z
src/telliot_core/apps/__init__.py
QuintusTheFifth/telliot-core
e22bc3b98d368fa91528f4a273ef26eddfefacaf
[ "MIT" ]
77
2021-09-03T04:01:20.000Z
2021-11-09T14:45:52.000Z
src/telliot_core/apps/__init__.py
QuintusTheFifth/telliot-core
e22bc3b98d368fa91528f4a273ef26eddfefacaf
[ "MIT" ]
7
2021-12-17T03:39:23.000Z
2022-03-29T08:53:43.000Z
"""telliot_core.apps module"""
15.5
30
0.709677
4
31
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.064516
31
1
31
31
0.724138
0.774194
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
1
0
0
0
0
0
0
4
e177562c8e99f1f355fa3aa56fb224d89e0bb587
621
py
Python
securionpay/charges.py
el-dot/securionpay-python
2946c4be35483ed6466e9981e45dbb0b39302093
[ "MIT" ]
7
2017-07-11T17:01:38.000Z
2020-06-30T10:19:53.000Z
securionpay/charges.py
el-dot/securionpay-python
2946c4be35483ed6466e9981e45dbb0b39302093
[ "MIT" ]
4
2016-03-17T01:41:02.000Z
2020-01-18T20:52:34.000Z
securionpay/charges.py
el-dot/securionpay-python
2946c4be35483ed6466e9981e45dbb0b39302093
[ "MIT" ]
3
2016-02-25T15:08:35.000Z
2021-12-01T08:28:22.000Z
from securionpay.resource import Resource class Charges(Resource): def create(self, params): return self._post("/charges", params) def get(self, charge_id): return self._get("/charges/%s" % charge_id) def update(self, charge_id, params): return self._post("/charges/%s" % charge_id, params) def list(self, params=None): return self._get("/charges", params) def capture(self, charge_id): return self._post("/charges/%s/capture" % charge_id) def refund(self, charge_id, params=None): return self._post("/charges/%s/refund" % charge_id, params)
28.227273
67
0.653784
82
621
4.780488
0.256098
0.163265
0.142857
0.214286
0.339286
0
0
0
0
0
0
0
0.207729
621
21
68
29.571429
0.796748
0
0
0
0
0
0.120773
0
0
0
0
0
0
1
0.428571
false
0
0.071429
0.428571
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
1
0
0
0
1
1
0
0
4
e1a7714803a43028b0901f8def904215ef6e5189
234
py
Python
padim/deep_svdd/__init__.py
Pangoraw/PaDiM
76f757fd51c46abda1ced5a26c2865c6d91a8cca
[ "MIT" ]
15
2021-05-27T09:06:24.000Z
2022-03-08T06:54:09.000Z
padim/deep_svdd/__init__.py
Pangoraw/PaDiM
76f757fd51c46abda1ced5a26c2865c6d91a8cca
[ "MIT" ]
6
2021-06-01T09:52:57.000Z
2021-12-21T13:24:15.000Z
padim/deep_svdd/__init__.py
Pangoraw/PaDiM
76f757fd51c46abda1ced5a26c2865c6d91a8cca
[ "MIT" ]
3
2021-05-27T13:35:29.000Z
2021-12-14T05:06:06.000Z
from .main import build_network, build_autoencoder from .pos_classifier import self_supervised_loss, PositionClassifier __all__ = [ "build_network", "build_autoencoder", "self_supervised_loss", "PositionClassifier" ]
23.4
68
0.773504
24
234
7
0.541667
0.142857
0.202381
0.333333
0
0
0
0
0
0
0
0
0.149573
234
9
69
26
0.844221
0
0
0
0
0
0.290598
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
83103f6feb5e7cde5576c0595a7ef218fe4f5b5d
278
py
Python
commands/members_manager/__init__.py
egorkis/idm-lp
1121a511afb8066eb21610a72386d8eb97f888f0
[ "MIT" ]
1
2021-05-20T07:25:50.000Z
2021-05-20T07:25:50.000Z
commands/members_manager/__init__.py
egorkis/idm-lp
1121a511afb8066eb21610a72386d8eb97f888f0
[ "MIT" ]
null
null
null
commands/members_manager/__init__.py
egorkis/idm-lp
1121a511afb8066eb21610a72386d8eb97f888f0
[ "MIT" ]
1
2021-03-04T02:57:27.000Z
2021-03-04T02:57:27.000Z
from commands.members_manager import ignored from commands.members_manager import ignored_global from commands.members_manager import muted from commands.members_manager import trusted users_bp = ( ignored.user, ignored_global.user, muted.user, trusted.user, )
23.166667
51
0.798561
36
278
5.972222
0.333333
0.223256
0.353488
0.483721
0.660465
0.362791
0
0
0
0
0
0
0.147482
278
11
52
25.272727
0.907173
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
832abe01743db63095f094f4a5000923e8610d58
172
py
Python
test/test_hello.py
Nefelejcske/hello-cython
90df407caf01f26bcfe4ccb200ba8f7e52b53bc0
[ "MIT" ]
null
null
null
test/test_hello.py
Nefelejcske/hello-cython
90df407caf01f26bcfe4ccb200ba8f7e52b53bc0
[ "MIT" ]
null
null
null
test/test_hello.py
Nefelejcske/hello-cython
90df407caf01f26bcfe4ccb200ba8f7e52b53bc0
[ "MIT" ]
1
2018-10-15T19:13:15.000Z
2018-10-15T19:13:15.000Z
from greeting import PyGreeting def test_kenobi(): greet = PyGreeting(b"Hello there!") assert greet.greet(b"General Kenobi") == b"Hello there! General Kenobi!\n"
24.571429
78
0.715116
24
172
5.083333
0.583333
0.098361
0.180328
0
0
0
0
0
0
0
0
0
0.162791
172
6
79
28.666667
0.847222
0
0
0
0
0
0.325581
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
1
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
1
0
0
0
0
0
0
0
4
83383bcaaa9b56ce6e8371932b9ddb8fdac8feee
660
py
Python
backend/api/use_cases/user_services.py
ryutaro-0907/simple-health
594493963b37e21ca4e9e94d22c59cbb2e4e287c
[ "MIT" ]
2
2022-01-07T16:41:27.000Z
2022-01-07T16:41:30.000Z
backend/api/use_cases/user_services.py
ryutaro-0907/simple-health
594493963b37e21ca4e9e94d22c59cbb2e4e287c
[ "MIT" ]
5
2022-01-07T16:33:40.000Z
2022-01-07T16:39:08.000Z
backend/api/use_cases/user_services.py
ryutaro-0907/simple-health
594493963b37e21ca4e9e94d22c59cbb2e4e287c
[ "MIT" ]
null
null
null
"""User Services.""" from typing import List from sqlalchemy.orm import Session from ..entities.user import User, UserId, UserRegister, UserSignIn from ..interfaces.db import user_db_handler def register_user(db: Session, request: UserRegister): return user_db_handler.create_user( db=db, request=request) def user_signin(db: Session, request: UserSignIn): return user_db_handler.user_signin( db=db, request=request ) def get_all_user(db:Session) -> List[User]: return user_db_handler.get_all_user(db) def get_user_by_userid(db: Session, _id: UserId) -> User: return user_db_handler.get_user_by_id(db=db, _id=_id)
22
66
0.745455
98
660
4.744898
0.265306
0.116129
0.139785
0.163441
0.202151
0.111828
0
0
0
0
0
0
0.154545
660
29
67
22.758621
0.833333
0.021212
0
0
0
0
0
0
0
0
0
0
0
1
0.266667
false
0
0.266667
0.266667
0.8
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
1
0
0
0
1
1
0
0
4
833ff070e4e1b76253e59beae03bff822ee11ec6
60
py
Python
apps/settings/settings_spam.py
jptomo/example-django-change-settings
5cd42491189846331fc35abb32fcc9928f512e5a
[ "BSD-3-Clause" ]
null
null
null
apps/settings/settings_spam.py
jptomo/example-django-change-settings
5cd42491189846331fc35abb32fcc9928f512e5a
[ "BSD-3-Clause" ]
null
null
null
apps/settings/settings_spam.py
jptomo/example-django-change-settings
5cd42491189846331fc35abb32fcc9928f512e5a
[ "BSD-3-Clause" ]
null
null
null
from apps.settings import * MESSAGE = 'spam-spam-spam !!!'
15
30
0.683333
8
60
5.125
0.75
0.390244
0
0
0
0
0
0
0
0
0
0
0.15
60
3
31
20
0.803922
0
0
0
0
0
0.3
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
83425495a0da959f42c9575a19385bc53a41b1a7
346
py
Python
test/statements/import6.py
Setonas/MagicSetonas
ef76da5f27a0506b194c58072b81424e3ce985d7
[ "MIT" ]
5
2017-02-22T10:17:39.000Z
2021-04-06T16:36:13.000Z
test/statements/import6.py
Setonas/MagicSetonas
ef76da5f27a0506b194c58072b81424e3ce985d7
[ "MIT" ]
null
null
null
test/statements/import6.py
Setonas/MagicSetonas
ef76da5f27a0506b194c58072b81424e3ce985d7
[ "MIT" ]
1
2020-08-29T02:30:52.000Z
2020-08-29T02:30:52.000Z
nuo __future__ importas generator_stop nuo : keyword.control.flow.python, source.python : source.python __future__ : source.python, support.variable.magic.python : source.python importas : keyword.control.importas.python, source.python : source.python generator_stop : source.python
28.833333
62
0.67052
36
346
6.166667
0.361111
0.378378
0.405405
0.216216
0.27027
0
0
0
0
0
0
0
0.254335
346
11
63
31.454545
0.860465
0
0
0.375
0
0
0
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
835b16d03c6a53ff2a5773b4af88664ee1850a7d
105
py
Python
preprep/__init__.py
mikebird28/preprep
1a9426988ffd93076cf11d115db64ab3a934448a
[ "MIT" ]
1
2020-02-09T05:08:46.000Z
2020-02-09T05:08:46.000Z
preprep/__init__.py
mikebird28/preprep
1a9426988ffd93076cf11d115db64ab3a934448a
[ "MIT" ]
null
null
null
preprep/__init__.py
mikebird28/preprep
1a9426988ffd93076cf11d115db64ab3a934448a
[ "MIT" ]
null
null
null
from .preprep import Preprep,Connect from .calc_graph import * from .operator import * name = "preprep"
17.5
36
0.761905
14
105
5.642857
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.152381
105
5
37
21
0.88764
0
0
0
0
0
0.067308
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
1
0
1
0
0
4
8361b515e317a12743621016dadee75f37a1dea3
42,480
py
Python
test_webhook_receiver.py
zapodeanu/dnacenter_reports_operations
287700c56b4ed6d124b6c7e46f676788a0f141eb
[ "BSD-Source-Code" ]
1
2021-11-28T03:25:15.000Z
2021-11-28T03:25:15.000Z
test_webhook_receiver.py
zapodeanu/dnacenter_reports_operations
287700c56b4ed6d124b6c7e46f676788a0f141eb
[ "BSD-Source-Code" ]
null
null
null
test_webhook_receiver.py
zapodeanu/dnacenter_reports_operations
287700c56b4ed6d124b6c7e46f676788a0f141eb
[ "BSD-Source-Code" ]
1
2021-11-28T03:26:51.000Z
2021-11-28T03:26:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2021 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use of the material herein must be in accordance with the terms of the License. All rights not expressly granted by the License are reserved. Unless required by applicable law or agreed to separately 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. """ __author__ = "Gabriel Zapodeanu TME, ENB" __email__ = "gzapodea@cisco.com" __version__ = "0.1.0" __copyright__ = "Copyright (c) 2021 Cisco and/or its affiliates." __license__ = "Cisco Sample Code License, Version 1.1" import json import os import requests import urllib3 from requests.auth import HTTPBasicAuth # for Basic Auth from urllib3.exceptions import InsecureRequestWarning # for insecure https warnings from dotenv import load_dotenv load_dotenv('environment.env') urllib3.disable_warnings(InsecureRequestWarning) # disable insecure https warnings WEBHOOK_URL = os.getenv('WEBHOOK_URL') WEBHOOK_USERNAME = os.getenv('WEBHOOK_USERNAME') WEBHOOK_PASSWORD = os.getenv('WEBHOOK_PASSWORD') basic_auth = HTTPBasicAuth(WEBHOOK_USERNAME, WEBHOOK_PASSWORD) report_notification = { "Event Id": "0dc32846-0fa0-4281-a43f-a987aacc3138", "Event Timestamp": 1617142161003, "Event Name": "Report [Client Report - Client Detail - Mar 30 2021 at 03 08 pm] - Success", "Event Type": "APP", "Cisco DNA Center Event Context link. **This link is active only in the context of Cisco DNA Center. You must have necessary permissions to login": "https://10.93.141.35/data-sets-reports?report-tab=list&list-tab=my-reports&data-set-id=e328ab57-0584-4ae6-9285-ce35c29ffd55&execution-id=fa9d9bc9-a99b-4d2c-b645-005fd3ec9d43", "Event Details": { "name": "Report [Client Report - Client Detail - Mar 30 2021 at 03 08 pm]", "status": "Success", "status update @": "Tue Mar 30 22:09:20 UTC 2021", "execution id": "fa9d9bc9-a99b-4d2c-b645-005fd3ec9d43", "data set id": "e328ab57-0584-4ae6-9285-ce35c29ffd55" } } report = {"client_details": [{"hostName":"Galaxy-Tab-A","username":"--","macAddress":"F0:8A:76:25:1F:5A","ipv4":"192.168.159.220","ipv6":"fe80::4c48:9d4:b8d2:bbf","deviceType":"Wireless","connectionStatus":"Disconnected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"0.69","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-65.0","snr_median":"28.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 01:57:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 11:55:31 AM","assocDoneTimestamp":"30 Mar, 11:55:31 AM","authDoneTimestamp":"30 Mar, 11:55:31 AM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 11:55:31 AM","maxDhcpDuration_max":"180","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"5664.0","txRate_avg":"617.92","rxRate_min":"0.0","rxRate_max":"3116.53","rxRate_avg":"219.38","txBytes_sum":"0.53","rxBytes_sum":"0.17","dataRate_median":"173.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-0950","username":"Sensor2","macAddress":"70:F3:5A:7C:8B:70","ipv4":"192.168.152.100","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"7156.42","connectedDeviceName":"AP4800.D092","frequency":"5.0","rssi_median":"-31.0","snr_median":"58.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:10:00 PM","apGroup":"default-group","ssid":"@CorpSSID","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 09:01:24 PM","assocDoneTimestamp":"30 Mar, 09:01:21 PM","authDoneTimestamp":"30 Mar, 09:01:23 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 09:01:24 PM","maxDhcpDuration_max":"3042","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"7857047.04","txRate_avg":"2163902.77","rxRate_min":"0.0","rxRate_max":"1.062149845E7","rxRate_avg":"3120075.92","txBytes_sum":"2917.25","rxBytes_sum":"4239.17","dataRate_median":"600.0","dot11Protocol":"802.11ac"},{"hostName":"Galaxy-S10","username":"Samsung2","macAddress":"E8:E8:B7:46:75:9B","ipv4":"192.168.152.86","ipv6":"fe80::eae8:b7ff:fe46:759b","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"26.33","connectedDeviceName":"AP0C75.BDB1.E174","frequency":"5.0","rssi_median":"-43.0","snr_median":"58.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"--","ssid":"@CorpSSID_98","vlan":"10","vnid":"--","onboardingEventTime":"26 Mar, 10:15:39 AM","assocDoneTimestamp":"26 Mar, 10:15:39 AM","authDoneTimestamp":"26 Mar, 10:15:39 AM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"26 Mar, 10:15:39 AM","maxDhcpDuration_max":"4","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"448.0","txRate_max":"5035.44","txRate_avg":"849.59","rxRate_min":"330.37","rxRate_max":"141652.53","rxRate_avg":"1643.38","txBytes_sum":"9.16","rxBytes_sum":"17.17","dataRate_median":"287.0","dot11Protocol":"802.11ax (5GHz)"},{"hostName":"android-b4b9c935c0a0adc1","username":"lisa","macAddress":"7C:46:85:20:80:6F","ipv4":"192.168.152.187","ipv6":"fe80::7e46:85ff:fe20:806f","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"3.92","connectedDeviceName":"AP0C75.BDB1.E174","frequency":"5.0","rssi_median":"-59.0","snr_median":"40.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"--","ssid":"@CorpSSID_98","vlan":"10","vnid":"--","onboardingEventTime":"30 Mar, 08:52:18 PM","assocDoneTimestamp":"30 Mar, 08:52:18 PM","authDoneTimestamp":"30 Mar, 08:52:18 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 08:48:48 PM","maxDhcpDuration_max":"208","dhcpServerIp":"192.168.152.1","linkSpeed":"--","txRate_min":"0.0","txRate_max":"2122.4","txRate_avg":"450.65","rxRate_min":"0.0","rxRate_max":"2519.73","rxRate_avg":"563.56","txBytes_sum":"1.77","rxBytes_sum":"2.15","dataRate_median":"45.0","dot11Protocol":"802.11ac"},{"hostName":"AP70F3.5A7C.0340","username":"Sensor2","macAddress":"70:F3:5A:7C:73:30","ipv4":"192.168.152.101","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"13004.57","connectedDeviceName":"AP4800.D092","frequency":"5.0","rssi_median":"-22.0","snr_median":"63.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:11:00 PM","apGroup":"default-group","ssid":"@CorpSSID","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 09:01:08 PM","assocDoneTimestamp":"30 Mar, 09:01:05 PM","authDoneTimestamp":"30 Mar, 09:01:06 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 09:01:08 PM","maxDhcpDuration_max":"2101","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"1.17000984E7","txRate_avg":"3171229.87","rxRate_min":"0.0","rxRate_max":"1.289570293E7","rxRate_avg":"2779720.02","txBytes_sum":"6940.8","rxBytes_sum":"6063.76","dataRate_median":"217.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-AP70F3.5A82.0608","username":"admin","macAddress":"70:F3:5A:82:7D:F0","ipv4":"192.168.159.186","ipv6":"fe80::72f3:5aff:fe82:7df0","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"19.4","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-55.0","snr_median":"37.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:00 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:47:29 PM","assocDoneTimestamp":"30 Mar, 08:47:29 PM","authDoneTimestamp":"30 Mar, 08:47:29 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 02:47:32 AM","maxDhcpDuration_max":"1937","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"11822.93","txRate_avg":"830.49","rxRate_min":"0.0","rxRate_max":"14482.27","rxRate_avg":"1561.42","txBytes_sum":"6.65","rxBytes_sum":"12.75","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Galaxy-Tab-A","username":"allen","macAddress":"F0:8A:76:25:18:72","ipv4":"192.168.152.182","ipv6":"fe80::f673:6858:bbc1:7330","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"7","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"8.13","connectedDeviceName":"APCC16.7E83.DCF6","frequency":"5.0","rssi_median":"-66.0","snr_median":"23.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_98","vlan":"10","vnid":"0","onboardingEventTime":"26 Mar, 05:45:38 AM","assocDoneTimestamp":"26 Mar, 05:45:37 AM","authDoneTimestamp":"26 Mar, 05:45:38 AM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"26 Mar, 12:38:13 AM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"199.26","txRate_max":"2310.93","txRate_avg":"676.79","rxRate_min":"19.2","rxRate_max":"203.79","rxRate_avg":"76.95","txBytes_sum":"7.29","rxBytes_sum":"0.84","dataRate_median":"400.0","dot11Protocol":"802.11ac"},{"hostName":"Galaxy-Tab-A","username":"arun","macAddress":"F0:8A:76:25:17:4E","ipv4":"192.168.152.206","ipv6":"fe80::1394:b1a7:c04b:2eee","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"7.74","connectedDeviceName":"APCC16.7E83.DCF6","frequency":"5.0","rssi_median":"-67.0","snr_median":"22.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_98","vlan":"10","vnid":"0","onboardingEventTime":"30 Mar, 08:58:35 PM","assocDoneTimestamp":"30 Mar, 08:58:35 PM","authDoneTimestamp":"30 Mar, 08:58:35 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 08:58:35 PM","maxDhcpDuration_max":"146","dhcpServerIp":"192.168.152.1","linkSpeed":"--","txRate_min":"0.0","txRate_max":"1844.36","txRate_avg":"656.46","rxRate_min":"0.0","rxRate_max":"460.31","rxRate_avg":"78.99","txBytes_sum":"6.92","rxBytes_sum":"0.82","dataRate_median":"400.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-0188","username":"--","macAddress":"70:F3:5A:78:6C:91","ipv4":"192.168.159.171","ipv6":"--","deviceType":"Wireless","connectionStatus":"Disconnected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"3625.94","connectedDeviceName":"AP1815.8968","frequency":"5.0","rssi_median":"-20.0","snr_median":"68.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:05:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:49:58 PM","assocDoneTimestamp":"30 Mar, 08:49:56 PM","authDoneTimestamp":"30 Mar, 08:49:56 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:49:58 PM","maxDhcpDuration_max":"2127","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"2.93762024E7","txRate_avg":"1004517.98","rxRate_min":"0.0","rxRate_max":"2.13847864E7","rxRate_avg":"651227.48","txBytes_sum":"2235.83","rxBytes_sum":"1390.12","dataRate_median":"144.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-AP70F3.5A82.07C0","username":"admin","macAddress":"70:F3:5A:82:84:D0","ipv4":"192.168.159.185","ipv6":"fe80::72f3:5aff:fe82:84d0","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"19.67","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-56.0","snr_median":"36.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:00 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:48:02 PM","assocDoneTimestamp":"30 Mar, 08:48:02 PM","authDoneTimestamp":"30 Mar, 08:48:02 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 07:48:09 PM","maxDhcpDuration_max":"1969","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"8697.24","txRate_avg":"826.54","rxRate_min":"0.0","rxRate_max":"11208.89","rxRate_avg":"1532.76","txBytes_sum":"6.86","rxBytes_sum":"12.81","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"DESKTOP-3I5E0N1","username":"kevinm","macAddress":"B8:31:B5:9B:D4:B4","ipv4":"192.168.152.90","ipv6":"fe80::94a6:1d20:798c:2c35","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"52.43","connectedDeviceName":"AP4800.D092","frequency":"5.0","rssi_median":"-30.0","snr_median":"60.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID","vlan":"255","vnid":"0","onboardingEventTime":"30 Mar, 08:42:06 PM","assocDoneTimestamp":"27 Mar, 05:22:20 PM","authDoneTimestamp":"30 Mar, 08:42:06 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 08:12:24 PM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"191.12","txRate_max":"6779.3","txRate_avg":"476.04","rxRate_min":"3.56","rxRate_max":"1392673.97","rxRate_avg":"5896.94","txBytes_sum":"3.47","rxBytes_sum":"48.96","dataRate_median":"600.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-6540","username":"Sensor2","macAddress":"70:F3:5A:7B:FB:50","ipv4":"192.168.152.102","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"3989.59","connectedDeviceName":"AP4800.D092","frequency":"5.0","rssi_median":"-34.0","snr_median":"53.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 07:39:00 PM","apGroup":"default-group","ssid":"@CorpSSID","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 07:30:57 PM","assocDoneTimestamp":"30 Mar, 07:30:54 PM","authDoneTimestamp":"30 Mar, 07:30:55 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 07:30:57 PM","maxDhcpDuration_max":"2035","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"9084173.71","txRate_avg":"5029444.69","rxRate_min":"0.0","rxRate_max":"1.106681424E7","rxRate_avg":"4998491.81","txBytes_sum":"2005.36","rxBytes_sum":"1984.23","dataRate_median":"600.0","dot11Protocol":"802.11n (2.4GHz)"},{"hostName":"Sensor-4230","username":"--","macAddress":"0C:75:BD:0D:5D:D1","ipv4":"192.168.159.175","ipv6":"--","deviceType":"Wireless","connectionStatus":"Disconnected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"5660.65","connectedDeviceName":"AP1815.8968","frequency":"5.0","rssi_median":"-18.0","snr_median":"70.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:08:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:51:48 PM","assocDoneTimestamp":"30 Mar, 08:51:46 PM","authDoneTimestamp":"30 Mar, 08:51:46 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:51:48 PM","maxDhcpDuration_max":"5558","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"1.657674122E7","txRate_avg":"1413647.04","rxRate_min":"0.0","rxRate_max":"9582388.87","rxRate_avg":"732251.58","txBytes_sum":"3672.45","rxBytes_sum":"1988.2","dataRate_median":"130.0","dot11Protocol":"802.11ac"},{"hostName":"AP70F3.5A78.00D8","username":"admin","macAddress":"70:F3:5A:78:69:D1","ipv4":"192.168.159.192","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"0.01","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-55.0","snr_median":"39.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 08:19:00 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:11:26 PM","assocDoneTimestamp":"30 Mar, 08:11:23 PM","authDoneTimestamp":"30 Mar, 08:11:24 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:11:26 PM","maxDhcpDuration_max":"1997","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"572.8","txRate_avg":"155.15","rxRate_min":"0.0","rxRate_max":"0.0","rxRate_avg":"0.0","txBytes_sum":"0.01","rxBytes_sum":"0.0","dataRate_median":"173.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-0188","username":"USER","macAddress":"70:F3:5A:78:6C:90","ipv4":"192.168.159.170","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"54.15","connectedDeviceName":"AP1815.8968","frequency":"2.4","rssi_median":"-15.0","snr_median":"67.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:51:38 PM","assocDoneTimestamp":"30 Mar, 08:51:38 PM","authDoneTimestamp":"30 Mar, 08:51:38 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:49:36 PM","maxDhcpDuration_max":"7428","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"144357.87","txRate_avg":"3532.85","rxRate_min":"0.0","rxRate_max":"186771.0","rxRate_avg":"4605.99","txBytes_sum":"23.36","rxBytes_sum":"30.79","dataRate_median":"72.0","dot11Protocol":"802.11n (2.4GHz)"},{"hostName":"AP70F3.5A7C.0288","username":"--","macAddress":"70:F3:5A:7C:70:50","ipv4":"192.168.159.160","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"5839.48","connectedDeviceName":"AP1815.8968","frequency":"5.0","rssi_median":"-21.5","snr_median":"66.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:10:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:51:32 PM","assocDoneTimestamp":"30 Mar, 08:51:30 PM","authDoneTimestamp":"30 Mar, 08:51:30 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:51:32 PM","maxDhcpDuration_max":"5483","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"6424760.2","txRate_avg":"1063897.56","rxRate_min":"0.0","rxRate_max":"4840743.6","rxRate_avg":"579488.47","txBytes_sum":"3749.15","rxBytes_sum":"2090.33","dataRate_median":"123.0","dot11Protocol":"802.11ac"},{"hostName":"iPad","username":"jeff","macAddress":"88:E9:FE:43:41:62","ipv4":"192.168.152.91","ipv6":"fe80::14f5:12c1:3c25:bf14","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"7.53","connectedDeviceName":"AP4800.D092","frequency":"5.0","rssi_median":"-26.0","snr_median":"64.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:52:49 PM","assocDoneTimestamp":"02 Mar, 07:34:20 PM","authDoneTimestamp":"30 Mar, 08:52:49 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 07:33:30 PM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"542.4","txRate_max":"1336.13","txRate_avg":"913.33","rxRate_min":"46.29","rxRate_max":"360.98","rxRate_avg":"131.1","txBytes_sum":"6.58","rxBytes_sum":"0.95","dataRate_median":"600.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor1","username":"--","macAddress":"70:F3:5A:7C:7F:D0","ipv4":"192.168.159.174","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"4649.08","connectedDeviceName":"AP1815.E4B0","frequency":"5.0","rssi_median":"-29.0","snr_median":"60.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 09:06:31 PM","assocDoneTimestamp":"30 Mar, 09:06:29 PM","authDoneTimestamp":"30 Mar, 09:06:29 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 09:06:31 PM","maxDhcpDuration_max":"5496","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"8558797.78","txRate_avg":"1058037.78","rxRate_min":"0.0","rxRate_max":"6431623.2","rxRate_avg":"580788.18","txBytes_sum":"2917.76","rxBytes_sum":"1731.32","dataRate_median":"144.0","dot11Protocol":"802.11ac"},{"hostName":"AP70F3.5A82.0898","username":"admin","macAddress":"70:F3:5A:82:88:30","ipv4":"192.168.159.190","ipv6":"fe80::72f3:5aff:fe82:8830","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"18.95","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-56.0","snr_median":"36.666666666666664","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 09:06:27 PM","assocDoneTimestamp":"30 Mar, 09:06:27 PM","authDoneTimestamp":"30 Mar, 09:06:27 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:37:05 AM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"7763.82","txRate_avg":"768.54","rxRate_min":"0.0","rxRate_max":"9684.8","rxRate_avg":"1475.98","txBytes_sum":"6.46","rxBytes_sum":"12.49","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor.0D48","username":"Sensor2","macAddress":"70:F3:5A:7C:9B:50","ipv4":"192.168.152.103","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"13224.05","connectedDeviceName":"AP4800.D092","frequency":"5.0","rssi_median":"-24.5","snr_median":"63.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:11:00 PM","apGroup":"default-group","ssid":"@CorpSSID","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 09:01:24 PM","assocDoneTimestamp":"30 Mar, 09:01:20 PM","authDoneTimestamp":"30 Mar, 09:01:22 PM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"30 Mar, 09:01:24 PM","maxDhcpDuration_max":"2165","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"9276821.33","txRate_avg":"2823624.81","rxRate_min":"0.0","rxRate_max":"1.822118382E7","rxRate_avg":"3155786.75","txBytes_sum":"6325.05","rxBytes_sum":"6899.0","dataRate_median":"217.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-AP70F3.5A80.5CB8","username":"admin","macAddress":"70:F3:5A:81:D8:D0","ipv4":"192.168.159.163","ipv6":"fe80::72f3:5aff:fe81:d8d0","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"4","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"247.8","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-57.0","snr_median":"36.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:45:59 PM","assocDoneTimestamp":"30 Mar, 08:45:58 PM","authDoneTimestamp":"30 Mar, 08:45:59 PM","aaaServerIp":"--","dhcpDoneTimestamp":"21 Mar, 01:42:01 PM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"38673.6","txRate_avg":"10525.5","rxRate_min":"0.0","rxRate_max":"72322.47","rxRate_avg":"19690.53","txBytes_sum":"86.42","rxBytes_sum":"161.39","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"--","username":"admin","macAddress":"70:F3:5A:78:66:B1","ipv4":"192.168.159.178","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"8.64","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-50.0","snr_median":"41.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:11:49 PM","assocDoneTimestamp":"30 Mar, 08:11:47 PM","authDoneTimestamp":"30 Mar, 08:11:49 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 02:13:32 PM","maxDhcpDuration_max":"3929","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"4637.69","txRate_avg":"357.99","rxRate_min":"0.0","rxRate_max":"7406.13","rxRate_avg":"774.38","txBytes_sum":"2.69","rxBytes_sum":"5.96","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"AP70F3.5A80.6240","username":"admin","macAddress":"70:F3:5A:81:EE:F0","ipv4":"192.168.159.189","ipv6":"fe80::72f3:5aff:fe81:eef0","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"143.64","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-57.0","snr_median":"34.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:39:23 PM","assocDoneTimestamp":"30 Mar, 07:40:12 PM","authDoneTimestamp":"30 Mar, 08:39:23 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 05:41:19 PM","maxDhcpDuration_max":"1914","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"2220136.19","txRate_avg":"11847.66","rxRate_min":"0.0","rxRate_max":"4115458.02","rxRate_avg":"21927.03","txBytes_sum":"50.36","rxBytes_sum":"93.27","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"MinSes-iPad","username":"--","macAddress":"88:E9:FE:46:D0:FA","ipv4":"192.168.159.208","ipv6":"fe80::3d:ead5:a195:9f1b","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"10.59","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-37.0","snr_median":"56.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 02:00:53 PM","assocDoneTimestamp":"--","authDoneTimestamp":"30 Mar, 02:00:53 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 01:42:29 PM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"3.08","txRate_max":"5460.62","txRate_avg":"175.1","rxRate_min":"4.15","rxRate_max":"71886.67","rxRate_avg":"1321.07","txBytes_sum":"1.42","rxBytes_sum":"9.17","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Galaxy-Tab-A","username":"carl","macAddress":"B0:6F:E0:FF:B1:6C","ipv4":"192.168.152.88","ipv6":"fe80::71fa:9e7b:3591:3296","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"7","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"2.63","connectedDeviceName":"APCC16.7E83.DCF6","frequency":"5.0","rssi_median":"-63.0","snr_median":"26.0","site":"Global/San Jose/SJ04/Fl3","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_98","vlan":"10","vnid":"--","onboardingEventTime":"28 Mar, 08:20:59 AM","assocDoneTimestamp":"28 Mar, 08:20:59 AM","authDoneTimestamp":"28 Mar, 08:20:59 AM","aaaServerIp":"192.168.152.43","dhcpDoneTimestamp":"27 Mar, 05:38:08 PM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"1.54","txRate_max":"1992.41","txRate_avg":"189.44","rxRate_min":"2.07","rxRate_max":"181.87","rxRate_avg":"54.4","txBytes_sum":"2.02","rxBytes_sum":"0.6","dataRate_median":"12.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor.0D78","username":"--","macAddress":"70:F3:5A:7C:9C:10","ipv4":"192.168.159.177","ipv6":"--","deviceType":"Wireless","connectionStatus":"Disconnected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"3435.08","connectedDeviceName":"AP1815.8968","frequency":"5.0","rssi_median":"-21.0","snr_median":"67.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:08:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:48:47 PM","assocDoneTimestamp":"30 Mar, 08:48:45 PM","authDoneTimestamp":"30 Mar, 08:48:45 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:48:47 PM","maxDhcpDuration_max":"5522","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"6259860.67","txRate_avg":"687760.72","rxRate_min":"0.0","rxRate_max":"5875517.07","rxRate_avg":"341120.75","txBytes_sum":"2332.85","rxBytes_sum":"1102.23","dataRate_median":"58.0","dot11Protocol":"802.11ac"},{"hostName":"Galaxy-Tab-A","username":"--","macAddress":"B0:6F:E0:FF:A7:FC","ipv4":"192.168.159.202","ipv6":"fe80::b26f:e0ff:feff:a7fc","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"15.16","connectedDeviceName":"AP3802.02C2","frequency":"5.0","rssi_median":"-33.0","snr_median":"61.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"29 Mar, 04:59:19 AM","assocDoneTimestamp":"29 Mar, 04:59:19 AM","authDoneTimestamp":"29 Mar, 04:59:19 AM","aaaServerIp":"--","dhcpDoneTimestamp":"29 Mar, 04:59:19 AM","maxDhcpDuration_max":"242","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"262.07","txRate_max":"1803.02","txRate_avg":"521.2","rxRate_min":"150.61","rxRate_max":"6649.87","rxRate_avg":"886.37","txBytes_sum":"5.63","rxBytes_sum":"9.53","dataRate_median":"173.0","dot11Protocol":"802.11ac"},{"hostName":"AP70F3.5A7A.65F8","username":"--","macAddress":"70:F3:5A:7B:FE:30","ipv4":"192.168.159.173","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"2632.42","connectedDeviceName":"AP1815.E4B0","frequency":"5.0","rssi_median":"-24.0","snr_median":"68.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 08:54:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:41:17 PM","assocDoneTimestamp":"30 Mar, 08:41:15 PM","authDoneTimestamp":"30 Mar, 08:41:15 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:41:17 PM","maxDhcpDuration_max":"5542","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"4758151.31","txRate_avg":"688175.6","rxRate_min":"0.0","rxRate_max":"3687030.83","rxRate_avg":"316207.8","txBytes_sum":"1772.78","rxBytes_sum":"859.64","dataRate_median":"173.0","dot11Protocol":"802.11ac"},{"hostName":"iPadUser32","username":"--","macAddress":"88:E9:FE:0B:6D:9E","ipv4":"192.168.159.209","ipv6":"fe80::802:41e6:d75d:800c","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"40.25","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-42.0","snr_median":"51.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 06:33:56 AM","assocDoneTimestamp":"--","authDoneTimestamp":"30 Mar, 06:33:56 AM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 01:47:14 AM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"2197.47","txRate_max":"15444.09","txRate_avg":"4422.96","rxRate_min":"211.53","rxRate_max":"1145.78","rxRate_avg":"382.92","txBytes_sum":"37.02","rxBytes_sum":"3.23","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-5CC0","username":"USER","macAddress":"70:F3:5A:7B:D9:50","ipv4":"192.168.159.216","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"4.19","connectedDeviceName":"AP1815.8968","frequency":"5.0","rssi_median":"-25.0","snr_median":"69.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 09:04:13 PM","assocDoneTimestamp":"30 Mar, 09:04:13 PM","authDoneTimestamp":"30 Mar, 09:04:13 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:32:09 PM","maxDhcpDuration_max":"1986","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"1670.67","txRate_avg":"290.1","rxRate_min":"0.0","rxRate_max":"930.19","rxRate_avg":"399.82","txBytes_sum":"1.81","rxBytes_sum":"2.38","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-44C8","username":"admin","macAddress":"70:F3:5A:7B:79:70","ipv4":"192.168.159.219","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"26.27","connectedDeviceName":"AP3802.02C2","frequency":"5.0","rssi_median":"-26.0","snr_median":"68.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:22:57 PM","assocDoneTimestamp":"30 Mar, 08:22:57 PM","authDoneTimestamp":"30 Mar, 08:22:57 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 06:12:34 PM","maxDhcpDuration_max":"1926","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"170353.57","txRate_avg":"1214.72","rxRate_min":"0.0","rxRate_max":"392494.2","rxRate_avg":"2793.58","txBytes_sum":"7.95","rxBytes_sum":"18.33","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Apple-TV","username":"--","macAddress":"D0:03:4B:00:E6:8F","ipv4":"192.168.159.199","ipv6":"fe80::c39:365c:63b1:434f","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"12.74","connectedDeviceName":"AP3802.02C2","frequency":"5.0","rssi_median":"-23.0","snr_median":"71.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 05:43:23 AM","assocDoneTimestamp":"03 Mar, 11:01:41 AM","authDoneTimestamp":"30 Mar, 05:43:23 AM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 02:07:25 AM","maxDhcpDuration_max":"--","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"4.16","txRate_max":"3174.52","txRate_avg":"783.62","rxRate_min":"5.6","rxRate_max":"1612.71","rxRate_avg":"399.23","txBytes_sum":"8.45","rxBytes_sum":"4.29","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-0298","username":"admin","macAddress":"70:F3:5A:7C:70:90","ipv4":"192.168.159.187","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"15.41","connectedDeviceName":"AP3802.02C2","frequency":"5.0","rssi_median":"-26.0","snr_median":"68.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:00 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:25:15 PM","assocDoneTimestamp":"30 Mar, 08:25:15 PM","authDoneTimestamp":"30 Mar, 08:25:15 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 05:26:23 PM","maxDhcpDuration_max":"1973","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"7342.93","txRate_avg":"555.43","rxRate_min":"0.0","rxRate_max":"9713.87","rxRate_avg":"1230.6","txBytes_sum":"4.68","rxBytes_sum":"10.74","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor.3910","username":"--","macAddress":"70:F3:5A:7B:4A:90","ipv4":"192.168.159.159","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"2063.52","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-20.0","snr_median":"66.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 08:54:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:44:55 PM","assocDoneTimestamp":"30 Mar, 08:42:22 PM","authDoneTimestamp":"30 Mar, 08:42:22 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:42:24 PM","maxDhcpDuration_max":"2494","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"5935564.09","txRate_avg":"705424.82","rxRate_min":"0.0","rxRate_max":"5817540.36","rxRate_avg":"254234.76","txBytes_sum":"1515.68","rxBytes_sum":"547.84","dataRate_median":"130.0","dot11Protocol":"802.11n (2.4GHz)"},{"hostName":"Galaxy-Tab-A","username":"--","macAddress":"F0:8A:76:25:18:54","ipv4":"192.168.159.197","ipv6":"fe80::f28a:76ff:fe25:1854","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"10","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"34.52","connectedDeviceName":"AP3802.02C2","frequency":"5.0","rssi_median":"-29.0","snr_median":"65.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:00 PM","apGroup":"default-group","ssid":"@CorpSSID_SF","vlan":"0","vnid":"0","onboardingEventTime":"26 Mar, 09:39:17 PM","assocDoneTimestamp":"26 Mar, 09:39:17 PM","authDoneTimestamp":"26 Mar, 09:39:17 PM","aaaServerIp":"--","dhcpDoneTimestamp":"26 Mar, 09:39:17 PM","maxDhcpDuration_max":"234","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"285.16","txRate_max":"9716.36","txRate_avg":"594.56","rxRate_min":"263.82","rxRate_max":"530577.45","rxRate_avg":"2806.39","txBytes_sum":"6.38","rxBytes_sum":"28.15","dataRate_median":"173.0","dot11Protocol":"802.11ac"},{"hostName":"--","username":"--","macAddress":"70:F3:5A:7C:8B:91","ipv4":"0.0.0.0","ipv6":"--","deviceType":"Wireless","connectionStatus":"Disconnected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"7","usage_sum":"1.98","connectedDeviceName":"AP2800.BFA0","frequency":"2.4","rssi_median":"-62.0","snr_median":"23.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 06:34:24 PM","assocDoneTimestamp":"30 Mar, 06:34:15 PM","authDoneTimestamp":"30 Mar, 06:34:18 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 06:34:24 PM","maxDhcpDuration_max":"23671","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"4220.53","txRate_avg":"316.64","rxRate_min":"0.0","rxRate_max":"7585.87","rxRate_avg":"496.05","txBytes_sum":"0.76","rxBytes_sum":"1.22","dataRate_median":"0.0","dot11Protocol":"802.11n (2.4GHz)"},{"hostName":"Sensor-AP70F3.5A82.0740","username":"admin","macAddress":"70:F3:5A:82:82:D0","ipv4":"192.168.159.188","ipv6":"fe80::72f3:5aff:fe82:82d0","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"1","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"19.04","connectedDeviceName":"AP2800.BFA0","frequency":"5.0","rssi_median":"-56.0","snr_median":"36.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:19 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 06:41:27 PM","assocDoneTimestamp":"30 Mar, 06:41:26 PM","authDoneTimestamp":"30 Mar, 06:41:27 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 05:42:17 PM","maxDhcpDuration_max":"1942","dhcpServerIp":"192.168.159.129","linkSpeed":"--","txRate_min":"0.0","txRate_max":"7729.16","txRate_avg":"781.28","rxRate_min":"0.0","rxRate_max":"8887.73","rxRate_avg":"1477.67","txBytes_sum":"6.53","rxBytes_sum":"12.51","dataRate_median":"260.0","dot11Protocol":"802.11ac"},{"hostName":"Sensor-4230","username":"USER","macAddress":"0C:75:BD:0D:5D:D0","ipv4":"192.168.159.172","ipv6":"--","deviceType":"Wireless","connectionStatus":"Connected","averageHealthScore_min":"4","averageHealthScore_max":"10","averageHealthScore_median":"10","usage_sum":"505.83","connectedDeviceName":"AP1815.E4B0","frequency":"2.4","rssi_median":"-11.0","snr_median":"72.0","site":"Global/San Francisco/One Bush/Fl1","lastUpdated":"30 Mar, 09:13:00 PM","apGroup":"default-group","ssid":"CiscoSensorProvisioning","vlan":"0","vnid":"0","onboardingEventTime":"30 Mar, 08:54:44 PM","assocDoneTimestamp":"30 Mar, 08:54:44 PM","authDoneTimestamp":"30 Mar, 08:54:44 PM","aaaServerIp":"--","dhcpDoneTimestamp":"30 Mar, 08:51:30 PM","maxDhcpDuration_max":"7476","dhcpServerIp":"--","linkSpeed":"--","txRate_min":"0.0","txRate_max":"3268093.99","txRate_avg":"31062.13","rxRate_min":"0.0","rxRate_max":"4572712.95","rxRate_avg":"43473.25","txBytes_sum":"210.82","rxBytes_sum":"295.0","dataRate_median":"72.0","dot11Protocol":"802.11n (2.4GHz)"}],"filters": [{"name":"Location","displayName":"Location","values":["Global"]},{"name":"DeviceType","displayName":"Device Type","values":["Wireless"]},{"name":"SSID","displayName":"SSID","values":[]},{"name":"Band","displayName":"Band","values":[]},{"name":"startTime","displayName":"Start Time","values":["2021-03-29 21:13:19.769 PM UTC"]},{"name":"endTime","displayName":"End Time","values":["2021-03-30 21:13:19.769 PM UTC"]}]} # test the Webhook with a Cisco DNA Center Report notification url = WEBHOOK_URL header = {'content-type': 'application/json'} response = requests.post(url, auth=basic_auth, data=json.dumps(report_notification), headers=header, verify=False) print(response.status_code, ', ', response.text) # response_json = response.json()
581.917808
39,838
0.703602
6,122
42,480
4.773603
0.128716
0.028059
0.017725
0.053312
0.724165
0.681597
0.572543
0.527614
0.448399
0.401656
0
0.151335
0.024223
42,480
72
39,839
590
0.55369
0.019633
0
0
0
0.054054
0.760234
0.087369
0
0
0
0
0
1
0
false
0.054054
0.189189
0
0.189189
0.027027
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
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
55c9ce5c02ebc1ea6913aa39eaddd53d2b9f042b
128
py
Python
tracardi/process_engine/action/v1/strings/regex_match/model/model.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
153
2021-11-02T00:35:41.000Z
2022-03-25T16:37:44.000Z
tracardi/process_engine/action/v1/strings/regex_match/model/model.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
243
2021-10-17T17:00:22.000Z
2022-03-28T10:13:34.000Z
tracardi/process_engine/action/v1/strings/regex_match/model/model.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
14
2021-10-17T11:39:04.000Z
2022-03-14T14:44:02.000Z
from pydantic import BaseModel class Configuration(BaseModel): pattern: str text: str group_prefix: str = "Group"
16
31
0.710938
15
128
6
0.733333
0.177778
0
0
0
0
0
0
0
0
0
0
0.21875
128
7
32
18.285714
0.9
0
0
0
0
0
0.039063
0
0
0
0
0
0
1
0
true
0
0.2
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
55fb13057923e59015609510ef50e07f687d12c7
53
py
Python
censusreporter/config/prod/urls.py
Durellg/censusreporter
c006c2f1c67fd29086fe532974f1eb57e70a0e2c
[ "MIT" ]
15
2015-11-30T21:10:16.000Z
2020-07-31T12:10:47.000Z
config/prod/urls.py
Bhanditz/censusreporter
8931e5b8f036ab2ebcfb414e960d9813bc62691f
[ "MIT" ]
null
null
null
config/prod/urls.py
Bhanditz/censusreporter
8931e5b8f036ab2ebcfb414e960d9813bc62691f
[ "MIT" ]
8
2016-02-23T13:27:29.000Z
2019-12-19T20:14:30.000Z
from config.base.urls import urlpatterns, handler500
26.5
52
0.849057
7
53
6.428571
1
0
0
0
0
0
0
0
0
0
0
0.0625
0.09434
53
1
53
53
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
3610102316408faa18711d20a19fb5704bc0dca6
3,680
py
Python
printing/src/printing_manager_plugin.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2016-10-30T09:51:06.000Z
2016-10-30T09:51:06.000Z
printing/src/printing_manager_plugin.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2015-12-29T18:51:07.000Z
2015-12-29T18:51:07.000Z
printing/src/printing_manager_plugin.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2018-01-26T12:54:13.000Z
2018-01-26T12:54:13.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Colony Framework # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Colony Framework. # # Hive Colony Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apache # Foundation, either version 2.0 of the License, or (at your option) any # later version. # # Hive Colony Framework 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 # Apache License for more details. # # You should have received a copy of the Apache License along with # Hive Colony Framework. If not, see <http://www.apache.org/licenses/>. __author__ = "João Magalhães <joamag@hive.pt>" """ The author(s) of the module """ __version__ = "1.0.0" """ The version of the module """ __revision__ = "$LastChangedRevision$" """ The revision number of the module """ __date__ = "$LastChangedDate$" """ The last change date of the module """ __copyright__ = "Copyright (c) 2008-2020 Hive Solutions Lda." """ The copyright for the module """ __license__ = "Apache License, Version 2.0" """ The license for the module """ import colony class PrintingManagerPlugin(colony.Plugin): """ The main class for the Printing Manager plugin. """ id = "pt.hive.colony.plugins.printing.manager" name = "Printing Manager" description = "Printing Manager Plugin" version = "1.0.0" author = "Hive Solutions Lda. <development@hive.pt>" platforms = [ colony.CPYTHON_ENVIRONMENT ] capabilities = [ "printing_manager", "console_command_extension" ] capabilities_allowed = [ "printing" ] main_modules = [ "printing_manager" ] def load_plugin(self): colony.Plugin.load_plugin(self) import printing_manager self.system = printing_manager.PrintingManager(self) self.console = printing_manager.ConsolePrintingManager(self) @colony.load_allowed def load_allowed(self, plugin, capability): colony.Plugin.load_allowed(self, plugin, capability) @colony.unload_allowed def unload_allowed(self, plugin, capability): colony.Plugin.unload_allowed(self, plugin, capability) def get_console_extension_name(self): return self.console.get_console_extension_name() def get_commands_map(self): return self.console.get_commands_map() def print_test(self, printing_options): return self.system.print_test(printing_options) def print_test_no_options(self): return self.system.print_test() def print_test_image(self, printing_options): return self.system.print_test_image(printing_options) def print_test_image_no_options(self): return self.system.print_test_image() def print_printing_language(self, printing_language_string, printing_options): return self.system.print_printing_language(printing_language_string, printing_options) def print_printing_language_no_options(self, printing_language_string): return self.system.print_printing_language(printing_language_string) @colony.load_allowed_capability("printing") def printing_load_allowed(self, plugin, capability): self.system.load_printing_plugin(plugin) @colony.unload_allowed_capability("printing") def printing_unload_allowed(self, plugin, capability): self.system.unload_printing_plugin(plugin)
33.153153
95
0.700815
451
3,680
5.487805
0.299335
0.054545
0.041212
0.065455
0.334545
0.229495
0.141414
0.113939
0.047677
0
0
0.009291
0.210326
3,680
110
96
33.454545
0.842395
0.215489
0
0
0
0
0.138382
0.04203
0
0
0
0
0
1
0.220339
false
0
0.033898
0.135593
0.559322
0.423729
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
1
1
0
4
3627452db549db0bc93f3f7f9a2e2166114a7542
167
py
Python
api_v2/urls.py
userlocalhost/airone-1
8aabeabb65fd2117876380f1f69a04f0cf39889d
[ "MIT" ]
null
null
null
api_v2/urls.py
userlocalhost/airone-1
8aabeabb65fd2117876380f1f69a04f0cf39889d
[ "MIT" ]
null
null
null
api_v2/urls.py
userlocalhost/airone-1
8aabeabb65fd2117876380f1f69a04f0cf39889d
[ "MIT" ]
null
null
null
from django.urls import path, include urlpatterns = [] try: urlpatterns.append(path("custom/", include("custom_view.api_v2.urls"))) except ImportError: pass
18.555556
75
0.724551
21
167
5.666667
0.761905
0
0
0
0
0
0
0
0
0
0
0.006993
0.143713
167
8
76
20.875
0.825175
0
0
0
0
0
0.179641
0.137725
0
0
0
0
0
1
0
false
0.166667
0.333333
0
0.333333
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
1
1
0
0
0
0
4
364a7faed4093a7cfd92070dea9de423b386e0a1
2,855
py
Python
src/python/grpcio/grpc/framework/core/implementations.py
DiracResearch/grpc
1c6e2b4790aa24d91338c4d8c16e5808cbfe6d2a
[ "BSD-3-Clause" ]
2
2018-01-19T12:18:59.000Z
2019-07-08T15:02:18.000Z
src/python/grpcio/grpc/framework/core/implementations.py
DiracResearch/grpc
1c6e2b4790aa24d91338c4d8c16e5808cbfe6d2a
[ "BSD-3-Clause" ]
1
2016-10-19T02:43:04.000Z
2016-10-31T14:53:06.000Z
src/python/grpcio/grpc/framework/core/implementations.py
DiracResearch/grpc
1c6e2b4790aa24d91338c4d8c16e5808cbfe6d2a
[ "BSD-3-Clause" ]
8
2016-10-23T00:50:02.000Z
2019-04-21T11:11:57.000Z
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above # copyright notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # * Neither the name of Google Inc. nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """Entry points into the ticket-exchange-based base layer implementation.""" # base and links are referenced from specification in this module. from grpc.framework.core import _end from grpc.framework.interfaces.base import base # pylint: disable=unused-import from grpc.framework.interfaces.links import links # pylint: disable=unused-import def invocation_end_link(): """Creates a base.End-links.Link suitable for operation invocation. Returns: An object that is both a base.End and a links.Link, that supports operation invocation, and that translates operation invocation into ticket exchange. """ return _end.serviceless_end_link() def service_end_link(servicer, default_timeout, maximum_timeout): """Creates a base.End-links.Link suitable for operation service. Args: servicer: A base.Servicer for servicing operations. default_timeout: A length of time in seconds to be used as the default time alloted for a single operation. maximum_timeout: A length of time in seconds to be used as the maximum time alloted for a single operation. Returns: An object that is both a base.End and a links.Link and that services operations that arrive at it through ticket exchange. """ return _end.serviceful_end_link(servicer, default_timeout, maximum_timeout)
45.31746
82
0.775482
413
2,855
5.319613
0.42615
0.011379
0.014565
0.020938
0.270369
0.248521
0.221211
0.182066
0.182066
0.142012
0
0.001691
0.171629
2,855
62
83
46.048387
0.927273
0.837128
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.428571
0
1
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
1
0
0
1
0
1
0
0
4
365094ba0d046562837f6a19796b6cebc50bd8df
318
py
Python
intent/eval/EvalException.py
rgeorgi/intent
9920798c126f6d354029f7bb0a345e7cdb649f3a
[ "MIT" ]
3
2016-08-05T01:11:57.000Z
2017-08-26T15:35:51.000Z
intent/eval/EvalException.py
rgeorgi/intent
9920798c126f6d354029f7bb0a345e7cdb649f3a
[ "MIT" ]
2
2016-03-01T22:41:24.000Z
2016-09-14T18:39:25.000Z
intent/eval/EvalException.py
rgeorgi/intent
9920798c126f6d354029f7bb0a345e7cdb649f3a
[ "MIT" ]
null
null
null
''' Created on Mar 3, 2014 @author: rgeorgi ''' class EvalException(Exception): ''' classdocs ''' def __init__(self, msg): ''' Constructor ''' self.message = msg class POSEvalException(Exception): def __init__(self, msg): Exception.__init__(self, msg)
13.826087
37
0.569182
30
318
5.633333
0.6
0.142012
0.195266
0.16568
0
0
0
0
0
0
0
0.022523
0.301887
318
22
38
14.454545
0.738739
0.194969
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
1
0
0
0
0
1
0
0
4
3656307755e16f9fcf464396b2c9719b38afdc14
201
py
Python
fep54.py
Lakshmikanthaks/Python-Literate
c62c7d6ae9672c817126862e6107fd76c570917e
[ "Apache-2.0" ]
1
2016-05-29T01:49:27.000Z
2016-05-29T01:49:27.000Z
fep54.py
Lakshmikanthaks/Python-Literate
c62c7d6ae9672c817126862e6107fd76c570917e
[ "Apache-2.0" ]
null
null
null
fep54.py
Lakshmikanthaks/Python-Literate
c62c7d6ae9672c817126862e6107fd76c570917e
[ "Apache-2.0" ]
null
null
null
nameHandle = open('kids', 'a') nameHandle.write('Lakshmi') nameHandle.write('kantha\n') nameHandle.close() nameHandle = open('kids', 'r') for line in nameHandle: print line[:-1] nameHandle.close()
22.333333
30
0.701493
26
201
5.423077
0.576923
0.198582
0.255319
0
0
0
0
0
0
0
0
0.005587
0.109453
201
8
31
25.125
0.782123
0
0
0.25
0
0
0.124378
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
1
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
1
0
0
0
0
0
0
0
0
4
366b57892d09b39a196a44c46eb441eb27cd0e12
329
py
Python
aiogram_dialog_extras/types.py
SamWarden/aiogram_dialog_extras
dede383df2b4f34d77fe40459333fdb4e6b8727b
[ "MIT" ]
1
2022-02-21T19:28:48.000Z
2022-02-21T19:28:48.000Z
aiogram_dialog_extras/types.py
SamWarden/aiogram_dialog_extras
dede383df2b4f34d77fe40459333fdb4e6b8727b
[ "MIT" ]
null
null
null
aiogram_dialog_extras/types.py
SamWarden/aiogram_dialog_extras
dede383df2b4f34d77fe40459333fdb4e6b8727b
[ "MIT" ]
null
null
null
from typing import Optional, Protocol class Gettext(Protocol): def __call__(self, singular: str, *, locale: Optional[str] = None) -> str: ... class NGettext(Protocol): def __call__( self, singular: str, plural: Optional[str] = None, n: int = 1, locale: Optional[str] = None, ) -> str: ...
23.5
100
0.604863
38
329
5.026316
0.5
0.172775
0.235602
0.198953
0.565445
0.314136
0
0
0
0
0
0.004049
0.24924
329
13
101
25.307692
0.769231
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
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
1
0
0
0
0
1
0
0
4
366d55cf78b9373a503034633a37f9fa43e8cd91
205
py
Python
robotoy/components/button.py
youwen5/robotoy
3a7c8465cd332f520e911be654be2d2d54fa0ccb
[ "MIT" ]
null
null
null
robotoy/components/button.py
youwen5/robotoy
3a7c8465cd332f520e911be654be2d2d54fa0ccb
[ "MIT" ]
null
null
null
robotoy/components/button.py
youwen5/robotoy
3a7c8465cd332f520e911be654be2d2d54fa0ccb
[ "MIT" ]
null
null
null
from gpiozero import Button as ZeroButton from . import pins from ..singleton import singleton @singleton class Button(ZeroButton): def __init__(self, pin=pins.BUTTON): super().__init__(pin)
20.5
41
0.741463
26
205
5.538462
0.538462
0
0
0
0
0
0
0
0
0
0
0
0.170732
205
9
42
22.777778
0.847059
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
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
1
0
1
0
0
4
367a97f21fb1c13992d76af4121f633fd45eb6cd
2,553
py
Python
challonge/participants.py
m3fh4q/powerchallonge
69e3132eb1f14740b2750a14ef73617602be073c
[ "MIT" ]
null
null
null
challonge/participants.py
m3fh4q/powerchallonge
69e3132eb1f14740b2750a14ef73617602be073c
[ "MIT" ]
null
null
null
challonge/participants.py
m3fh4q/powerchallonge
69e3132eb1f14740b2750a14ef73617602be073c
[ "MIT" ]
null
null
null
from challonge import tools prefix = 'participant' def index(identifier): api_method = 'Participants : Index' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants' return tools.request('GET', target, api_method, prefix, 0) def create(identifier, **params): api_method = 'Participants : Create' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants' return tools.request('POST', target, api_method, prefix, 1, **params) def bulk_add(identifier, **params): api_method = 'Participants : Bulk Add' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/bulk_add' return tools.request('POST', target, api_method, 'participants[]', 1, **params) def show(identifier, participant_id, **params): api_method = 'Participants : Show' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + str(participant_id) return tools.request('GET', target, api_method, prefix, 0, **params) def update(identifier, participant_id, **params): api_method = 'Participants : Update' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + str(participant_id) return tools.request('PUT', target, api_method, prefix, 1, **params) def check_in(identifier, participant_id): api_method = 'Participants : Check In' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + \ str(participant_id) + '/check_in' return tools.request('POST', target, api_method, prefix, 0) def undo_check_in(identifier, participant_id): api_method = 'Participants : Undo Check In' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + \ str(participant_id) + '/undo_check_in' return tools.request('POST', target, api_method, prefix, 0) def destroy(identifier, participant_id): api_method = 'Participants : Destroy' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + str(participant_id) return tools.request('DELETE', target, api_method, prefix, 0) def randomize(identifier): api_method = 'Participants : Randomize' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/randomize' return tools.request('POST', target, api_method, prefix, 0)
37
73
0.694869
271
2,553
6.380074
0.129151
0.093696
0.121457
0.16657
0.848467
0.805668
0.764025
0.661076
0.506651
0.452285
0
0.00428
0.176263
2,553
68
74
37.544118
0.817879
0
0
0.38
0
0
0.169996
0.017626
0
0
0
0
0
1
0.18
false
0
0.02
0
0.38
0
0
0
0
null
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
368cad537d95646f82d853c8086386d133b3c93a
2,957
py
Python
polyaxon/polyaxon/config_settings/oauth.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/polyaxon/config_settings/oauth.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/polyaxon/config_settings/oauth.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
from polyaxon.config_manager import config class OAUTH_PROVIDERS(object): # noqa class GITHUB(object): VERIFICATION_SCHEDULE = 0 CLIENT_ID = config.get_string('POLYAXON_AUTH_GITHUB_CLIENT_ID', is_optional=True, is_secret=True) CLIENT_SECRET = config.get_string('POLYAXON_AUTH_GITHUB_CLIENT_SECRET', is_optional=True, is_secret=True) ENABLED = config.get_boolean('POLYAXON_AUTH_GITHUB', is_optional=True, default=False) class BITBUCKET(object): VERIFICATION_SCHEDULE = 0 CLIENT_ID = config.get_string('POLYAXON_AUTH_BITBUCKET_CLIENT_ID', is_optional=True, is_secret=True) CLIENT_SECRET = config.get_string('POLYAXON_AUTH_BITBUCKET_CLIENT_SECRET', is_optional=True, is_secret=True) ENABLED = config.get_boolean('POLYAXON_AUTH_BITBUCKET', is_optional=True, default=False) class GITLAB(object): VERIFICATION_SCHEDULE = 0 URL = config.get_string('POLYAXON_AUTH_GITLAB_URL', is_optional=True, is_secret=True) CLIENT_ID = config.get_string('POLYAXON_AUTH_GITLAB_CLIENT_ID', is_optional=True, is_secret=True) CLIENT_SECRET = config.get_string('POLYAXON_AUTH_GITLAB_CLIENT_SECRET', is_optional=True, is_secret=True) ENABLED = config.get_boolean('POLYAXON_AUTH_GITLAB', is_optional=True, default=False) class AZURE(object): VERIFICATION_SCHEDULE = 0 TENANT_ID = config.get_string('POLYAXON_AUTH_AZURE_TENANT_ID', is_optional=True, is_secret=True) CLIENT_ID = config.get_string('POLYAXON_AUTH_AZURE_CLIENT_ID', is_optional=True, is_secret=True) CLIENT_SECRET = config.get_string('POLYAXON_AUTH_AZURE_CLIENT_SECRET', is_optional=True, is_secret=True) ENABLED = config.get_boolean('POLYAXON_AUTH_AZURE', is_optional=True, default=False) SSO_ENABLED = any([GITHUB.ENABLED, BITBUCKET.ENABLED, GITLAB.ENABLED, AZURE.ENABLED])
49.283333
89
0.484613
252
2,957
5.285714
0.134921
0.094595
0.147147
0.172673
0.803303
0.783784
0.689189
0.624625
0.623123
0.623123
0
0.002491
0.456882
2,957
59
90
50.118644
0.826899
0.001353
0
0.603774
0
0
0.133853
0.11386
0
0
0
0
0
1
0
false
0
0.018868
0
0.132075
0
0
0
0
null
0
0
1
1
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
4
36e3082b8a9b9c7ae6ee298fbbb56ee2d1e5fcab
349
py
Python
file_1.py
rpurnama/pycodes
bc507d9b6eab30e39d69946ee07eebcd538546af
[ "Unlicense" ]
1
2020-07-25T16:57:57.000Z
2020-07-25T16:57:57.000Z
file_1.py
itbj/PyCodes
6a3f3a6d4e70882e00991493839a6af0fabeaab4
[ "Unlicense" ]
null
null
null
file_1.py
itbj/PyCodes
6a3f3a6d4e70882e00991493839a6af0fabeaab4
[ "Unlicense" ]
1
2020-07-25T16:58:27.000Z
2020-07-25T16:58:27.000Z
try: sebuah_file = open("absen.txt",'w') print "Nama file yang tadi dibuat: ",sebuah_file.name print "Mode pembacaan file: ",sebuah_file.mode print "Apakah filenya sudah ditutup?",sebuah_file.closed sebuah_file.close() print "Apakah filenya sudah ditutup?",sebuah_file.closed except IOError,e: print "Proses gagal karena: ",e
29.083333
58
0.724928
50
349
4.94
0.54
0.242915
0.145749
0.186235
0.37247
0.37247
0.37247
0.37247
0
0
0
0
0.163324
349
12
59
29.083333
0.84589
0
0
0.222222
0
0
0.40708
0
0
0
0
0
0
0
null
null
0
0
null
null
0.555556
0
0
0
null
1
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
1
0
0
0
0
0
0
1
0
4
36fcfdec17a988239831f472b012d9ed865c2a0a
142
py
Python
data_parse/get_banks_TX.py
hhalim/TargetBanks
8febd7300f3b01e92641e0f63355d3f66bfe674c
[ "MIT" ]
null
null
null
data_parse/get_banks_TX.py
hhalim/TargetBanks
8febd7300f3b01e92641e0f63355d3f66bfe674c
[ "MIT" ]
null
null
null
data_parse/get_banks_TX.py
hhalim/TargetBanks
8febd7300f3b01e92641e0f63355d3f66bfe674c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from parse_banks import parse_and_insert #STATE = TX file = '../data/TX_SOD_FDIC.html' parse_and_insert(file, 'TX')
17.75
40
0.697183
23
142
4
0.695652
0.173913
0.304348
0
0
0
0
0
0
0
0
0.00813
0.133803
142
7
41
20.285714
0.739837
0.21831
0
0
0
0
0.242991
0.224299
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
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
1
0
0
0
0
4
7fc49949a7069cdafca0b0c9c82168b93def4d58
259
py
Python
habitat/reporting/models/__init__.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
1
2021-02-01T19:04:39.000Z
2021-02-01T19:04:39.000Z
habitat/reporting/models/__init__.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
null
null
null
habitat/reporting/models/__init__.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
null
null
null
from .communication import * from .daily import * from .incident import * from .medical import * from .mood import * from .repair import * from .sleep_quality import * from .sleep import * from .sociodynamics import * from .time import * from .waste import *
21.583333
28
0.745174
34
259
5.647059
0.382353
0.520833
0.15625
0
0
0
0
0
0
0
0
0
0.169884
259
11
29
23.545455
0.893023
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
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
1
0
1
0
0
4
3d55ff6975319b28284e620f92d2809b94add202
466
py
Python
pydocx/openxml/wordprocessing/deleted_run.py
botzill/pydocx
98c6aa626d875278240eabea8f86a914840499b3
[ "Apache-2.0" ]
127
2015-01-12T22:35:34.000Z
2022-01-20T06:24:18.000Z
pydocx/openxml/wordprocessing/deleted_run.py
turbo-q/pydocx
98c6aa626d875278240eabea8f86a914840499b3
[ "Apache-2.0" ]
156
2015-01-05T19:55:56.000Z
2020-10-14T07:01:42.000Z
pydocx/openxml/wordprocessing/deleted_run.py
turbo-q/pydocx
98c6aa626d875278240eabea8f86a914840499b3
[ "Apache-2.0" ]
45
2015-02-22T18:52:08.000Z
2021-06-14T08:05:47.000Z
# coding: utf-8 from __future__ import ( absolute_import, print_function, unicode_literals, ) from pydocx.models import XmlModel, XmlCollection from pydocx.openxml.wordprocessing.run import Run from pydocx.openxml.wordprocessing.smart_tag_run import SmartTagRun class DeletedRun(XmlModel): XML_TAG = 'del' children = XmlCollection( Run, SmartTagRun, 'wordprocessing.DeletedRun', # TODO Needs InsertedRun )
21.181818
67
0.716738
49
466
6.612245
0.591837
0.092593
0.104938
0.191358
0
0
0
0
0
0
0
0.002732
0.214592
466
21
68
22.190476
0.882514
0.077253
0
0
0
0
0.065574
0.058548
0
0
0
0.047619
0
1
0
false
0
0.333333
0
0.533333
0.066667
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
1
0
1
0
0
4
e9e3aebaf8279c33a9aca2a6a9e7d8dea268fc56
147
py
Python
Fancy_progressbar/__init__.py
Plawn/Fancy_progressbar
cda9b59475c8ce2786a46a41d06b33b4cf217f7d
[ "Apache-2.0" ]
2
2018-11-26T16:09:15.000Z
2021-01-09T14:25:35.000Z
Fancy_progressbar/__init__.py
Plawn/Fancy_progressbar
cda9b59475c8ce2786a46a41d06b33b4cf217f7d
[ "Apache-2.0" ]
null
null
null
Fancy_progressbar/__init__.py
Plawn/Fancy_progressbar
cda9b59475c8ce2786a46a41d06b33b4cf217f7d
[ "Apache-2.0" ]
null
null
null
from .bar import ProgressBar from .family import ProgressBarFamily from .handler import ProgressBarHandler from .options import ProgressBarOptions
29.4
39
0.863946
16
147
7.9375
0.625
0
0
0
0
0
0
0
0
0
0
0
0.108844
147
4
40
36.75
0.969466
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
e9f2e2fc0f2353becc195c0abb3a42879467f775
226
py
Python
tests/test_parametrized.py
twotwo/python-pytest
39f18f4bce8a75c67d8872119e627a8d30268afe
[ "MIT" ]
null
null
null
tests/test_parametrized.py
twotwo/python-pytest
39f18f4bce8a75c67d8872119e627a8d30268afe
[ "MIT" ]
null
null
null
tests/test_parametrized.py
twotwo/python-pytest
39f18f4bce8a75c67d8872119e627a8d30268afe
[ "MIT" ]
null
null
null
import pytest from python_pytest.basics import add @pytest.mark.parametrize("num,num2,result", [(10, 20, 30), (25, 25, 50), (11, 19, 30)]) def test_add_can_add_numbers(num, num2, result): assert add(num, num2) == result
28.25
87
0.699115
37
226
4.135135
0.621622
0.137255
0.254902
0
0
0
0
0
0
0
0
0.107692
0.137168
226
7
88
32.285714
0.676923
0
0
0
0
0
0.066372
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.6
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
1
0
1
0
0
4
e9f3b2ede334ac4c1c356ad3b15829ff125bfd82
11,895
py
Python
src/bilbyui/tests/test_ligo_permissions.py
gravitationalwavedc/gwcloud_bilby
f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563
[ "MIT" ]
1
2020-10-26T02:35:26.000Z
2020-10-26T02:35:26.000Z
src/bilbyui/tests/test_ligo_permissions.py
gravitationalwavedc/gwcloud_bilby
f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563
[ "MIT" ]
31
2020-05-04T05:57:45.000Z
2022-02-23T04:35:35.000Z
src/bilbyui/tests/test_ligo_permissions.py
gravitationalwavedc/gwcloud_bilby
f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.contrib.auth import get_user_model from graphql_relay.node.node import from_global_id from bilbyui.models import BilbyJob from bilbyui.tests.testcases import BilbyTestCase from bilbyui.tests.test_utils import create_test_ini_string, silence_errors User = get_user_model() class TestBilbyLigoPermissions(BilbyTestCase): def setUp(self): self.maxDiff = 9999 self.user = User.objects.create(username="buffy", first_name="buffy", last_name="summers") self.params = { "input": { "params": { "details": { "name": "test job for GW12345", "description": "Test description 1234", "private": True, }, # "calibration": None, "data": { "dataChoice": "real", "triggerTime": "1126259462.391", "channels": { "hanfordChannel": "GWOSC", "livingstonChannel": "GWOSC", "virgoChannel": "GWOSC" } }, "detector": { "hanford": True, "hanfordMinimumFrequency": "20", "hanfordMaximumFrequency": "1024", "livingston": True, "livingstonMinimumFrequency": "20", "livingstonMaximumFrequency": "1024", "virgo": False, "virgoMinimumFrequency": "20", "virgoMaximumFrequency": "1024", "duration": "4", "samplingFrequency": "512" }, # "injection": {}, # "likelihood": {}, "prior": { "priorDefault": "4s" }, # "postProcessing": {}, "sampler": { "nlive": "1000.0", "nact": "10.0", "maxmcmc": "5000.0", "walks": "1000.0", "dlogz": "0.1", "cpus": "1", "samplerChoice": "dynesty" }, "waveform": { "model": None } } } } self.query = """ mutation NewJobMutation($input: BilbyJobMutationInput!) { newBilbyJob(input: $input) { result { jobId } } } """ self.expected_one = { 'newBilbyJob': { 'result': { 'jobId': 'QmlsYnlKb2JOb2RlOjE=' } } } self.expected_none = { 'newBilbyJob': None } patcher = patch("bilbyui.views.submit_job") self.addCleanup(patcher.stop) self.mock_api_call = patcher.start() self.mock_api_call.return_value = {'jobId': 4321} @silence_errors def test_non_ligo_user_with_gwosc(self): self.client.authenticate(self.user, is_ligo=False) response = self.client.execute(self.query, self.params) self.assertDictEqual( self.expected_one, response.data, "create bilbyJob mutation returned unexpected data." ) # Check that the job is marked as not proprietary self.assertFalse(BilbyJob.objects.all().last().is_ligo_job) @silence_errors def test_ligo_user_with_gwosc(self): self.client.authenticate(self.user, is_ligo=True) response = self.client.execute(self.query, self.params) self.assertDictEqual( self.expected_one, response.data, "create bilbyJob mutation returned unexpected data." ) # Check that the job is marked as not proprietary self.assertFalse(BilbyJob.objects.all().last().is_ligo_job) @silence_errors def test_non_ligo_user_with_non_gwosc(self): self.client.authenticate(self.user, is_ligo=False) for detector, channel in [ ('hanfordChannel', 'GDS-CALIB_STRAIN'), ('livingstonChannel', 'GDS-CALIB_STRAIN'), ('virgoChannel', 'Hrec_hoft_16384Hz'), # Also check invalid (Non GWOSC channels) ('hanfordChannel', 'testchannel1'), ('livingstonChannel', 'imnotarealchannel'), ('virgoChannel', 'GWOSc'), ]: self.params['input']['params']['data']['channels'][detector] = channel response = self.client.execute(self.query, self.params) self.assertDictEqual( self.expected_none, response.data, "create bilbyJob mutation returned unexpected data." ) self.assertEqual( response.errors[0].message, 'Non-LIGO members may only run real jobs on GWOSC channels' ) self.assertFalse(BilbyJob.objects.all().exists()) self.params['input']['params']['data']['channels'][detector] = "GWOSC" @silence_errors def test_ligo_user_with_non_gwosc(self): # Now if the channels are proprietary, the ligo user should be able to create jobs self.client.authenticate(self.user, is_ligo=True) for detector, channel in [ ('hanfordChannel', 'GDS-CALIB_STRAIN'), ('livingstonChannel', 'GDS-CALIB_STRAIN'), ('virgoChannel', 'Hrec_hoft_16384Hz') ]: self.params['input']['params']['data']['channels'][detector] = channel response = self.client.execute(self.query, self.params) self.assertTrue('jobId' in response.data['newBilbyJob']['result']) _, job_id = from_global_id(response.data['newBilbyJob']['result']['jobId']) # Check that the job is marked as proprietary job = BilbyJob.objects.all().last() self.assertTrue(job.is_ligo_job) job.delete() self.params['input']['params']['data']['channels'][detector] = "GWOSC" class TestIniBilbyLigoPermissions(BilbyTestCase): def setUp(self): self.maxDiff = 9999 self.user = User.objects.create(username="buffy", first_name="buffy", last_name="summers") self.params = { "input": { "params": { "details": { "name": "test job for GW12345", "description": "Test description 1234", "private": True, }, "iniString": { "iniString": None } } } } self.query = """ mutation NewJobMutation($input: BilbyJobFromIniStringMutationInput!) { newBilbyJobFromIniString(input: $input) { result { jobId } } } """ self.expected_one = { 'newBilbyJobFromIniString': { 'result': { 'jobId': 'QmlsYnlKb2JOb2RlOjE=' } } } self.expected_none = { 'newBilbyJobFromIniString': None } patcher = patch("bilbyui.views.submit_job") self.addCleanup(patcher.stop) self.mock_api_call = patcher.start() self.mock_api_call.return_value = {'jobId': 4321} @silence_errors def test_non_ligo_user_with_gwosc(self): # Test checks that a LIGO user does not create a LIGO job if the data is real and channels are GWOSC self.client.authenticate(self.user, is_ligo=False) ini_string = create_test_ini_string(config_dict={ "n-simulation": 0, "channel-dict": {'H1': 'GWOSC', 'L1': 'GWOSC'} }, complete=True) self.params['input']['params']['iniString']['iniString'] = ini_string response = self.client.execute(self.query, self.params) self.assertDictEqual( self.expected_one, response.data, "create bilbyJob mutation returned unexpected data." ) # Check that the job is marked as not proprietary self.assertFalse(BilbyJob.objects.all().last().is_ligo_job) @silence_errors def test_ligo_user_with_gwosc(self): # This test checks that a non LIGO user can still create non LIGO jobs self.client.authenticate(self.user, is_ligo=True) ini_string = create_test_ini_string(config_dict={ "n-simulation": 0, "channel-dict": {'H1': 'GWOSC', 'L1': 'GWOSC'} }, complete=True) self.params['input']['params']['iniString']['iniString'] = ini_string response = self.client.execute(self.query, self.params) self.assertDictEqual( self.expected_one, response.data, "create bilbyJob mutation returned unexpected data." ) # Check that the job is marked as not proprietary self.assertFalse(BilbyJob.objects.all().last().is_ligo_job) @silence_errors def test_non_ligo_user_with_non_gwosc(self): # Test checks that non-LIGO user cannot create real jobs with non-GWOSC channels, nor with invalid channels # Now if the channels are proprietary, the non-ligo user should not be able to create jobs self.client.authenticate(self.user, is_ligo=False) for channel_dict in [ {'H1': 'GDS-CALIB_STRAIN', 'L1': 'GWOSC', 'V1': 'GWOSC'}, {'H1': 'GWOSC', 'L1': 'GDS-CALIB_STRAIN', 'V1': 'GWOSC'}, {'H1': 'GWOSC', 'L1': 'GWOSC', 'V1': 'Hrec_hoft_16384Hz'}, # Also check invalid channels {'H1': 'testchannel1', 'L1': 'GWOSC', 'V1': 'GWOSC'}, {'H1': 'GWOSC', 'L1': 'imnotarealchannel', 'V1': 'GWOSC'}, {'H1': 'GWOSC', 'L1': 'GWOSC', 'V1': 'GWOSc'}, ]: ini_string = create_test_ini_string({'n-simulation': 0, 'channel-dict': channel_dict}, True) self.params['input']['params']['iniString']['iniString'] = ini_string response = self.client.execute(self.query, self.params) self.assertDictEqual( self.expected_none, response.data, "create bilbyJob mutation returned unexpected data." ) self.assertEqual( response.errors[0].message, 'Non-LIGO members may only run real jobs on GWOSC channels' ) self.assertFalse(BilbyJob.objects.all().exists()) @silence_errors def test_ligo_user_with_non_gwosc(self): # Test that LIGO users can make jobs with proprietary channels # Now if the channels are proprietary, the ligo user should be able to create jobs self.client.authenticate(self.user, is_ligo=True) for channel_dict in [ {'H1': 'GDS-CALIB_STRAIN', 'L1': 'GWOSC', 'V1': 'GWOSC'}, {'H1': 'GWOSC', 'L1': 'GDS-CALIB_STRAIN', 'V1': 'GWOSC'}, {'H1': 'GWOSC', 'L1': 'GWOSC', 'V1': 'Hrec_hoft_16384Hz'}, ]: ini_string = create_test_ini_string({'n-simulation': 0, 'channel-dict': channel_dict}, True) self.params['input']['params']['iniString']['iniString'] = ini_string response = self.client.execute(self.query, self.params) self.assertTrue('jobId' in response.data['newBilbyJobFromIniString']['result']) # Check that the job is marked as proprietary job = BilbyJob.objects.all().last() self.assertTrue(job.is_ligo_job) job.delete()
36.6
115
0.533501
1,123
11,895
5.515583
0.176313
0.02906
0.024217
0.033904
0.762512
0.758637
0.725702
0.70536
0.675331
0.66742
0
0.019853
0.347877
11,895
324
116
36.712963
0.778652
0.084994
0
0.591667
0
0
0.250092
0.036267
0
0
0
0
0.075
1
0.041667
false
0
0.025
0
0.075
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
18008cfb1ce143731a476c1f2abc3f0b331d423a
105
py
Python
torch_buddy/__init__.py
NickYi1990/torch_buddy
b888f60b25e4f70b89960d158aaf893ab6183481
[ "MIT" ]
null
null
null
torch_buddy/__init__.py
NickYi1990/torch_buddy
b888f60b25e4f70b89960d158aaf893ab6183481
[ "MIT" ]
null
null
null
torch_buddy/__init__.py
NickYi1990/torch_buddy
b888f60b25e4f70b89960d158aaf893ab6183481
[ "MIT" ]
null
null
null
from . import utils from . import nn name = "torch_buddy" __author__ = "鲲(China)" __version__ = "0.0.1"
15
23
0.685714
16
105
3.9375
0.8125
0.31746
0
0
0
0
0
0
0
0
0
0.034483
0.171429
105
6
24
17.5
0.689655
0
0
0
0
0
0.228571
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
18130a36640da607c6b832f4d807438131547f69
111
py
Python
py_tdlib/constructors/dated_file.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/dated_file.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/dated_file.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type class datedFile(Type): file = None # type: "file" date = None # type: "int32"
15.857143
29
0.648649
15
111
4.8
0.666667
0.222222
0
0
0
0
0
0
0
0
0
0.022989
0.216216
111
6
30
18.5
0.804598
0.234234
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
181583fe32615fcaccb3120cdaae03a1c452c250
3,934
py
Python
event_template/root/tests/favourite_test.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
event_template/root/tests/favourite_test.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
2
2020-06-05T17:29:54.000Z
2021-06-10T18:58:13.000Z
event_template/root/tests/favourite_test.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
import json __author__ = 'schien' from rest_framework import status from api.tests.TestMixins import OAuthTestCaseMixin from rest_framework.test import APITestCase from django.core.urlresolvers import reverse from <%= name %>.models import House, Favourite class FavouriteAPITests(OAuthTestCaseMixin, APITestCase): """ API for submitting scans """ fixtures = ['test_data.json'] def get_favourites(self): user = self.setCredentialsForAnyUser() self.assertTrue(len(user.favourites.all()) == 0) # create fav house = House.objects.all()[0] favourite = Favourite(user=user, house=house) favourite.save() response = self.client.get(reverse('favourites-list')) self.assertTrue(response.status_code == status.HTTP_200_OK) self.assertTrue(json.loads(response.content)[0]['house'] == house.pk) def set_favourite(self): user = self.setCredentialsForAnyUser() house = House.objects.all()[0] self.assertTrue(house) self.assertTrue(len(user.favourites.all()) == 0) data = {"house": "1"} response = self.client.post(reverse('favourites-list'), data, format='json') # print response self.assertTrue(response.status_code == status.HTTP_201_CREATED) self.assertTrue(len(user.favourites.all()) == 1) self.assertTrue(user.favourites.all()[0].house == house) def test_duplicates(self): user = self.setCredentialsForAnyUser() self.assertTrue(len(user.favourites.all()) == 0) # create fav house = House.objects.all()[0] favourite = Favourite(user=user, house=house) favourite.save() data = {"house": "1"} response = self.client.post(reverse('favourites-list'), data, format='json') # print response self.assertTrue(response.status_code == status.HTTP_201_CREATED) self.assertTrue(len(user.favourites.all()) == 1) self.assertTrue(user.favourites.all()[0].house == house) # # def test_remove_fav(self): # user = self.setCredentialsForAnyUser() # url = reverse('app_favourite') # house = House.objects.all()[0] # self.assertTrue(house) # # data = [{house_serializer_id_field: house.pk, 'timestamp': time.time(), 'fav': "True"}] # response = self.client.post(url, data, format='json') # # self.assertTrue(response.status_code == status.HTTP_201_CREATED) # self.assertTrue(len(user.favourites.all()) == 1) # self.assertTrue(user.favourites.all()[0].house == house) # # data = [{house_serializer_id_field: house.pk, 'timestamp': time.time(), 'fav': "False"}] # response = self.client.post(url, data, format='json') # # print response.status_code # self.assertTrue(response.status_code == status.HTTP_201_CREATED) # self.assertTrue(len(user.favourites.all()) == 0) # # def test_update_fav(self): # # if a fav already exists, then sending it again will not do anything # user = self.setCredentialsForAnyUser() # url = reverse('app_favourite') # house = House.objects.all()[0] # # data = [{house_serializer_id_field: house.pk, 'timestamp': time.time(), 'fav': "True"}] # response = self.client.post(url, data, format='json') # # self.assertTrue(response.status_code == status.HTTP_201_CREATED) # self.assertTrue(len(user.favourites.all()) == 1) # self.assertTrue(user.favourites.all()[0].house == house) # # data = [{house_serializer_id_field: house.pk, 'timestamp': time.time(), 'fav': "True"}] # response = self.client.post(url, data, format='json') # self.assertTrue(len(user.favourites.all()) == 1) # # favs = Favourite.objects.filter(house=house.pk, user=user.pk) # self.assertTrue(len(favs) == 1)
37.466667
98
0.631673
449
3,934
5.429844
0.191537
0.132075
0.090648
0.077523
0.734619
0.729286
0.729286
0.688679
0.650533
0.650533
0
0.013051
0.220895
3,934
104
99
37.826923
0.782382
0.43391
0
0.589744
0
0
0.042056
0
0
0
0
0
0.307692
0
null
null
0
0.153846
null
null
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
1828033bfa1d966f8dcd83b08f1ae1c5b10fc097
102
py
Python
mysite/submit_intents/apps.py
ahadsuleymanli/joint_intent_slot_tagger
ebb43a3a4d727ad061b5dd0403ae6bf7a2d7bb70
[ "Apache-2.0" ]
null
null
null
mysite/submit_intents/apps.py
ahadsuleymanli/joint_intent_slot_tagger
ebb43a3a4d727ad061b5dd0403ae6bf7a2d7bb70
[ "Apache-2.0" ]
5
2021-03-18T23:31:31.000Z
2021-09-22T18:32:46.000Z
mysite/submit_intents/apps.py
ahadsuleymanli/joint_intent_slot_tagger
ebb43a3a4d727ad061b5dd0403ae6bf7a2d7bb70
[ "Apache-2.0" ]
1
2021-03-20T01:06:22.000Z
2021-03-20T01:06:22.000Z
from django.apps import AppConfig class SubmitIntentsConfig(AppConfig): name = 'submit_intents'
17
37
0.784314
11
102
7.181818
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.147059
102
5
38
20.4
0.908046
0
0
0
0
0
0.137255
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
18343b2b42bc9d41f969d8820e88046ae0880b77
52
py
Python
All Codes/URI_1002.py
Habibu-R-ahman/URI-Online-Judge-Solutions
62aa23f4bfcf9ea2a1054451c6380ed827816b3c
[ "MIT" ]
12
2020-03-05T15:18:25.000Z
2022-01-29T18:38:25.000Z
All Codes/URI_1002.py
Habibu-R-ahman/URI-Online-Judge-Solutions
62aa23f4bfcf9ea2a1054451c6380ed827816b3c
[ "MIT" ]
null
null
null
All Codes/URI_1002.py
Habibu-R-ahman/URI-Online-Judge-Solutions
62aa23f4bfcf9ea2a1054451c6380ed827816b3c
[ "MIT" ]
19
2020-01-08T18:04:28.000Z
2021-08-18T12:27:41.000Z
R = float(input()) print(f"A={R * R * 3.14159:.4f}")
26
33
0.538462
11
52
2.545455
0.818182
0
0
0
0
0
0
0
0
0
0
0.155556
0.134615
52
2
33
26
0.466667
0
0
0
0
0
0.433962
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
1836e5c1561ee23e58285385996da7a6a907a624
165
py
Python
edinet_baseline_hourly_module/edinet_models/pyEMIS2/models/weekly.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
null
null
null
edinet_baseline_hourly_module/edinet_models/pyEMIS2/models/weekly.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
13
2021-03-25T22:24:38.000Z
2022-03-12T00:56:45.000Z
edinet_baseline_hourly_module/edinet_models/pyEMIS2/models/weekly.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
1
2019-03-13T09:49:56.000Z
2019-03-13T09:49:56.000Z
from .date_format import Factory as DFFactory class Factory(DFFactory): def __init__(self, factory): super(Factory, self).__init__(factory, "%a %H:%M")
27.5
58
0.70303
22
165
4.863636
0.681818
0
0
0
0
0
0
0
0
0
0
0
0.169697
165
5
59
33
0.781022
0
0
0
0
0
0.048485
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
18452297f1f619e1499938f740f88f020d9d9842
207
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/web/__init__.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/web/__init__.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/web/__init__.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
# -*- coding: utf-8 -*- __all__ = ['Microblog', 'MICROBLOG_SESSION_PROFILE'] MICROBLOG_SESSION_PROFILE = 'mic_profile_session' class Microblog(object): def __init__(self): self.profile = None
20.7
52
0.700483
23
207
5.695652
0.608696
0.244275
0.351145
0
0
0
0
0
0
0
0
0.00578
0.164251
207
9
53
23
0.751445
0.101449
0
0
0
0
0.288043
0.13587
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
1848eb38811076624b47bd7167faa4f44508d340
416
py
Python
neo/SmartContract/Iterator.py
nickfujita/neo-python
42e0bb41866d0b2c7aa3ee460a8f8ce3ae2f1f22
[ "MIT" ]
null
null
null
neo/SmartContract/Iterator.py
nickfujita/neo-python
42e0bb41866d0b2c7aa3ee460a8f8ce3ae2f1f22
[ "MIT" ]
null
null
null
neo/SmartContract/Iterator.py
nickfujita/neo-python
42e0bb41866d0b2c7aa3ee460a8f8ce3ae2f1f22
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from neo.VM.Mixins import InteropMixin from neo.VM.InteropService import StackItem class Iterator(ABC, InteropMixin): @abstractmethod def Dispose(self) -> None: pass @abstractmethod def Key(self) -> StackItem: pass @abstractmethod def Next(self) -> bool: pass @abstractmethod def Value(self) -> StackItem: pass
18.909091
43
0.658654
45
416
6.088889
0.466667
0.248175
0.229927
0
0
0
0
0
0
0
0
0
0.262019
416
21
44
19.809524
0.892508
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.1875
0
0.5
0
0
0
0
null
1
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
1
0
1
0
0
0
0
0
4
185a1c4aceaa800abef2407474469691605f1e74
226
py
Python
jarhead/views/structure/layouts.py
ajith-004/jarhead
dfa0d414d28a5fe848c10558415a3ca1f1f67880
[ "BSD-2-Clause" ]
null
null
null
jarhead/views/structure/layouts.py
ajith-004/jarhead
dfa0d414d28a5fe848c10558415a3ca1f1f67880
[ "BSD-2-Clause" ]
null
null
null
jarhead/views/structure/layouts.py
ajith-004/jarhead
dfa0d414d28a5fe848c10558415a3ca1f1f67880
[ "BSD-2-Clause" ]
null
null
null
from crispy_forms.layout import * class Richtext(Field): pass class Image(Field): pass class Row(MultiField): def __init__(self, *args, **kwargs): super(Row, self).__init__('', *args, **kwargs)
17.384615
54
0.628319
27
226
4.925926
0.666667
0.135338
0.210526
0
0
0
0
0
0
0
0
0
0.230089
226
13
55
17.384615
0.764368
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.125
false
0.25
0.125
0
0.625
0
1
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
1
0
0
4
18697381989e7a875bb33b38a2c600b051bfd1b4
89
py
Python
swig/python/examples/test.py
ColinGilbert/swigstarterkit
54608d5da29309d0c6c990a82dff47d336a887d9
[ "MIT" ]
1
2018-05-20T19:55:42.000Z
2018-05-20T19:55:42.000Z
swig/python/examples/test.py
ColinGilbert/swigstarterkit
54608d5da29309d0c6c990a82dff47d336a887d9
[ "MIT" ]
null
null
null
swig/python/examples/test.py
ColinGilbert/swigstarterkit
54608d5da29309d0c6c990a82dff47d336a887d9
[ "MIT" ]
null
null
null
import swigstarterkit si = swigstarterkit.Script_Interface(); print si.get_a_value();
14.833333
39
0.786517
11
89
6.090909
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.11236
89
5
40
17.8
0.848101
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
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
1
0
0
0
1
0
0
0
0
4
187bc32fd9127f43a64ea0bc525747ccfb455396
99
py
Python
assets/maps/npy2txt.py
JeremyBYU/UnrealRooftopLanding
d7f17547b5daff8490cb6fe1582ed2e256faff16
[ "MIT" ]
null
null
null
assets/maps/npy2txt.py
JeremyBYU/UnrealRooftopLanding
d7f17547b5daff8490cb6fe1582ed2e256faff16
[ "MIT" ]
null
null
null
assets/maps/npy2txt.py
JeremyBYU/UnrealRooftopLanding
d7f17547b5daff8490cb6fe1582ed2e256faff16
[ "MIT" ]
null
null
null
import numpy as np pts = np.load('point_cloud.npy') np.savetxt('point_cloud_manual_map.txt', pts)
19.8
45
0.757576
18
99
3.944444
0.722222
0.28169
0
0
0
0
0
0
0
0
0
0
0.10101
99
5
45
19.8
0.797753
0
0
0
0
0
0.41
0.26
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a10a795de8275def0217bc0cf69d461d39f8a57e
161
py
Python
src/modeling/models/decision_tree/test.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
src/modeling/models/decision_tree/test.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
src/modeling/models/decision_tree/test.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
def predict(x_test, model): # predict y_pred = model.predict(x_test) y_pred_scores = model.predict_proba(x_test) return y_pred, y_pred_scores
17.888889
47
0.708075
26
161
4
0.384615
0.192308
0.230769
0
0
0
0
0
0
0
0
0
0.204969
161
9
48
17.888889
0.8125
0.043478
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
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
1
0
0
0
0
0
0
0
4
a10ad5c51544ddd72525b468ecbce6617d8ff5d8
86
py
Python
python/pyside/setup.py
nio1814/3Dcones
704b78a0d73b25ab59269e60babbd13876f8563e
[ "BSD-3-Clause" ]
4
2019-09-10T13:46:41.000Z
2022-03-21T20:19:23.000Z
python/pyside/setup.py
nio1814/3Dcones
704b78a0d73b25ab59269e60babbd13876f8563e
[ "BSD-3-Clause" ]
1
2017-05-17T07:05:00.000Z
2017-05-17T07:05:38.000Z
python/pyside/setup.py
nio1814/3Dcones
704b78a0d73b25ab59269e60babbd13876f8563e
[ "BSD-3-Clause" ]
2
2020-04-12T09:39:29.000Z
2022-03-21T20:19:25.000Z
from setuptools import setup setup(name='cmri', packages=['cmri', 'cmri.trajectory'])
28.666667
56
0.744186
11
86
5.818182
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.081395
86
3
56
28.666667
0.810127
0
0
0
0
0
0.264368
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
a122bac96e3f79f64df3f0751ce2d54e5b635e71
102
py
Python
app/mytest_train.py
miroesli/psscscs
cf070f71bb7688eee400825505a8d62c35d3d983
[ "MIT" ]
2
2020-09-06T17:43:08.000Z
2021-11-15T08:35:50.000Z
app/mytest_train.py
miroesli/psscscs
cf070f71bb7688eee400825505a8d62c35d3d983
[ "MIT" ]
3
2020-09-07T06:52:46.000Z
2020-09-07T06:56:53.000Z
app/mytest_train.py
miroesli/psscscs
cf070f71bb7688eee400825505a8d62c35d3d983
[ "MIT" ]
3
2020-11-25T03:42:34.000Z
2020-12-15T21:36:56.000Z
from algs.alpha_snake_zero_trainer import AlphaSnakeZeroTrainer a = AlphaSnakeZeroTrainer() a.train()
25.5
63
0.852941
12
102
7
0.833333
0.52381
0
0
0
0
0
0
0
0
0
0
0.078431
102
3
64
34
0.893617
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a13ff3121c7d862fdc59222dc611c4882f504c33
357
py
Python
application/controllers/gianhang.py
hoangthanhtien/web_ban_hang
f65dac2b9638d47144afbbd826e7e288ff5b89e1
[ "MIT" ]
null
null
null
application/controllers/gianhang.py
hoangthanhtien/web_ban_hang
f65dac2b9638d47144afbbd826e7e288ff5b89e1
[ "MIT" ]
null
null
null
application/controllers/gianhang.py
hoangthanhtien/web_ban_hang
f65dac2b9638d47144afbbd826e7e288ff5b89e1
[ "MIT" ]
null
null
null
from application.extensions import apimanager from application.models.model import User, GianHang from application.extensions import auth apimanager.create_api(collection_name='gianhang', model=GianHang, methods=['GET', 'POST', 'DELETE', 'PUT'], url_prefix='/api/v1', preprocess=dict(GET_SINGLE=[], GET_MANY=[], POST=[], PUT_SINGLE=[]), )
32.454545
72
0.728291
43
357
5.906977
0.604651
0.177165
0.19685
0.244094
0
0
0
0
0
0
0
0.003185
0.120448
357
10
73
35.7
0.805732
0
0
0
0
0
0.086835
0
0
0
0
0
0
1
0
true
0
0.375
0
0.375
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
1
0
1
0
0
0
0
4
a152a5f32481946bbc7bf40074afe58b8f1a5a69
64
py
Python
sample/graphical.py
mariciucioan/archive-cracker
2a404b2b79b70c61cd90b1e55bd5a7a030d930f4
[ "MIT" ]
1
2021-12-05T07:30:09.000Z
2021-12-05T07:30:09.000Z
sample/graphical.py
mariciucioan/archive-cracker
2a404b2b79b70c61cd90b1e55bd5a7a030d930f4
[ "MIT" ]
null
null
null
sample/graphical.py
mariciucioan/archive-cracker
2a404b2b79b70c61cd90b1e55bd5a7a030d930f4
[ "MIT" ]
null
null
null
from gui import GUI if __name__ == "__main__": GUI().run()
12.8
26
0.625
9
64
3.555556
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.21875
64
4
27
16
0.64
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
4