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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e74616d27434165b8000fef67fefac7f0924db19 | 208 | py | Python | djangocms_styledlink/admin.py | britny/djangocms-styledlink | 8dcaa8f41a902e51915ce15a9b74137880174009 | [
"BSD-3-Clause"
] | null | null | null | djangocms_styledlink/admin.py | britny/djangocms-styledlink | 8dcaa8f41a902e51915ce15a9b74137880174009 | [
"BSD-3-Clause"
] | null | null | null | djangocms_styledlink/admin.py | britny/djangocms-styledlink | 8dcaa8f41a902e51915ce15a9b74137880174009 | [
"BSD-3-Clause"
] | 1 | 2018-02-26T13:13:51.000Z | 2018-02-26T13:13:51.000Z | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import StyledLinkStyle
class StyledLinkStyleAdmin(admin.ModelAdmin):
pass
admin.site.register(StyledLinkStyle, StyledLinkStyleAdmin) | 18.909091 | 58 | 0.793269 | 22 | 208 | 7.5 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.110577 | 208 | 11 | 58 | 18.909091 | 0.886486 | 0.100962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
e765c2ede7b6126a1f34a417c0f2d9a23f87b8ad | 234 | py | Python | tests/test_statistics.py | GitMarco27/GitMarco | 2d9dd93a73a6d7b68d63222512a646cdd988909e | [
"MIT"
] | null | null | null | tests/test_statistics.py | GitMarco27/GitMarco | 2d9dd93a73a6d7b68d63222512a646cdd988909e | [
"MIT"
] | null | null | null | tests/test_statistics.py | GitMarco27/GitMarco | 2d9dd93a73a6d7b68d63222512a646cdd988909e | [
"MIT"
] | null | null | null | import numpy as np
from GitMarco.statistics.metrics import standard_error
def test_standard_error():
data = np.random.rand(20)
error = standard_error(data)
assert isinstance(error, float), 'Error in standard error type'
| 26 | 67 | 0.75641 | 33 | 234 | 5.242424 | 0.636364 | 0.300578 | 0.196532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.162393 | 234 | 8 | 68 | 29.25 | 0.872449 | 0 | 0 | 0 | 0 | 0 | 0.119658 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
e76c003032634b5d81720b1482391353e14896c6 | 140 | py | Python | jembatan/typesys/__init__.py | leebecker/jembatan | 33443dcb37d05308c84430d34aef3b6a1c8bf44e | [
"Apache-2.0"
] | null | null | null | jembatan/typesys/__init__.py | leebecker/jembatan | 33443dcb37d05308c84430d34aef3b6a1c8bf44e | [
"Apache-2.0"
] | null | null | null | jembatan/typesys/__init__.py | leebecker/jembatan | 33443dcb37d05308c84430d34aef3b6a1c8bf44e | [
"Apache-2.0"
] | null | null | null | from jembatan.core.spandex.typesys_base import (
Annotation, AnnotationRef, AnnotationScope, DocumentAnnotation, SpannedAnnotation)
| 46.666667 | 90 | 0.814286 | 12 | 140 | 9.416667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121429 | 140 | 2 | 91 | 70 | 0.918699 | 0 | 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 | 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 |
e7732474e79b68adfb0b13f672091621279cb7c8 | 97 | py | Python | Domain/Entity/Sequence.py | RogovArtem/BioInvi | f912165a953b3b484b9f781d6714797da915b4ac | [
"Apache-2.0"
] | null | null | null | Domain/Entity/Sequence.py | RogovArtem/BioInvi | f912165a953b3b484b9f781d6714797da915b4ac | [
"Apache-2.0"
] | null | null | null | Domain/Entity/Sequence.py | RogovArtem/BioInvi | f912165a953b3b484b9f781d6714797da915b4ac | [
"Apache-2.0"
] | null | null | null | import Domain.Entity.Header as HeaderModule
class Sequence:
Header = HeaderModule.Header()
| 16.166667 | 43 | 0.773196 | 11 | 97 | 6.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 44 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7c8d844d7a700256433afd9ce859d7183d13d21 | 455 | py | Python | gui/_page_buttons.py | parot-99/COVID-19-Warning-System | 41c53f41db3a0e3b78c6b934c2964a96c4c2f635 | [
"BSD-3-Clause"
] | 2 | 2020-08-17T19:33:38.000Z | 2020-08-26T18:39:03.000Z | gui/_page_buttons.py | parot-99/COVID-19-Warning-System | 41c53f41db3a0e3b78c6b934c2964a96c4c2f635 | [
"BSD-3-Clause"
] | null | null | null | gui/_page_buttons.py | parot-99/COVID-19-Warning-System | 41c53f41db3a0e3b78c6b934c2964a96c4c2f635 | [
"BSD-3-Clause"
] | 1 | 2021-01-04T17:47:22.000Z | 2021-01-04T17:47:22.000Z | def yolo_btn_clicked(self):
self.detection_model = 'yolo'
self.stackedWidget.setCurrentIndex(1)
def yolo_tiny_btn_clicked(self):
self.detection_model = 'yolol-tiny'
self.stackedWidget.setCurrentIndex(1)
def load_weights_page_btn_clicked(self):
self.stackedWidget.setCurrentIndex(4)
def birdseye_page_btn_clicked(self):
self.stackedWidget.setCurrentIndex(4)
def ref_obj_page_btn(self):
self.stackedWidget.setCurrentIndex(4)
| 26.764706 | 41 | 0.786813 | 59 | 455 | 5.779661 | 0.322034 | 0.117302 | 0.469208 | 0.211144 | 0.824047 | 0.504399 | 0.316716 | 0.316716 | 0.316716 | 0 | 0 | 0.012438 | 0.116484 | 455 | 16 | 42 | 28.4375 | 0.835821 | 0 | 0 | 0.416667 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
99b515958938978671a071c110cc8209f97a2af0 | 444 | py | Python | waterbutler/core/streams/metadata.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | 65 | 2015-01-23T03:22:04.000Z | 2022-01-11T22:33:19.000Z | waterbutler/core/streams/metadata.py | cslzchen/waterbutler | e4e07727e06885a752c9251e5731f5627f646da3 | [
"Apache-2.0"
] | 300 | 2015-02-16T16:45:02.000Z | 2022-01-31T14:49:07.000Z | waterbutler/core/streams/metadata.py | cslzchen/waterbutler | e4e07727e06885a752c9251e5731f5627f646da3 | [
"Apache-2.0"
] | 76 | 2015-01-20T20:45:17.000Z | 2021-07-30T13:18:10.000Z | class HashStreamWriter:
"""Stream-like object that hashes and discards its input."""
def __init__(self, hasher):
self.hash = hasher()
@property
def digest(self):
return self.hash.digest()
@property
def hexdigest(self):
return self.hash.hexdigest()
def can_write_eof(self):
return False
def write(self, data):
self.hash.update(data)
def close(self):
pass
| 19.304348 | 64 | 0.608108 | 53 | 444 | 4.981132 | 0.528302 | 0.121212 | 0.106061 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286036 | 444 | 22 | 65 | 20.181818 | 0.832808 | 0.121622 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.066667 | 0 | 0.2 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
99cbb3527de530b4ef3631f71fa57445cc13da13 | 73 | py | Python | schicluster/compartment/__init__.py | zhoujt1994/HiCluster | ee7431c33d8b565cd8b92b633e6f79b2267c1535 | [
"MIT"
] | 27 | 2019-07-10T23:17:33.000Z | 2022-01-14T07:34:42.000Z | schicluster/compartment/__init__.py | zhoujt1994/HiCluster | ee7431c33d8b565cd8b92b633e6f79b2267c1535 | [
"MIT"
] | 4 | 2019-11-01T01:12:09.000Z | 2022-03-29T11:24:35.000Z | schicluster/compartment/__init__.py | zhoujt1994/HiCluster | ee7431c33d8b565cd8b92b633e6f79b2267c1535 | [
"MIT"
] | 8 | 2019-12-24T13:54:11.000Z | 2022-01-26T17:21:55.000Z | from .call_compartment import multiple_cell_compartment, get_cpg_profile
| 36.5 | 72 | 0.90411 | 10 | 73 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 73 | 1 | 73 | 73 | 0.897059 | 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 |
99d0f3375ab781a692694640fd3d34aeffeeb27e | 570 | py | Python | pyrecard/subscription/payment.py | DiegoMagg/pyrecard | 4a7adc0342703b4eae6c42eabd2f7cd5e1a4d10f | [
"MIT"
] | 6 | 2020-09-03T12:56:49.000Z | 2020-09-03T13:28:31.000Z | pyrecard/subscription/payment.py | DiegoMagg/pyrecard | 4a7adc0342703b4eae6c42eabd2f7cd5e1a4d10f | [
"MIT"
] | 4 | 2020-08-25T15:28:54.000Z | 2020-08-31T17:08:13.000Z | pyrecard/subscription/payment.py | DiegoMagg/pyrecard | 4a7adc0342703b4eae6c42eabd2f7cd5e1a4d10f | [
"MIT"
] | null | null | null | from pyrecard.utils.pyrequest import pyrequest
INVOICE_PATH = '/assinaturas/v1/invoices'
def fetch_invoice(code):
return pyrequest('GET', f'{INVOICE_PATH}/{code}')
def fetch_invoice_payments(code):
return pyrequest('GET', f'{INVOICE_PATH}/{code}/payments')
def payment_details(code):
return pyrequest('GET', f'/assinaturas/v1/payments/{code}')
def retry_invoice_payment(code):
return pyrequest('POST', f'{INVOICE_PATH}/{code}/retry')
def generate_bank_slip(code, json={}):
return pyrequest('POST', f'{INVOICE_PATH}/{code}/boletos', json)
| 22.8 | 68 | 0.722807 | 75 | 570 | 5.32 | 0.346667 | 0.137845 | 0.190476 | 0.160401 | 0.423559 | 0.365915 | 0.365915 | 0.190476 | 0 | 0 | 0 | 0.003968 | 0.115789 | 570 | 24 | 69 | 23.75 | 0.787698 | 0 | 0 | 0 | 0 | 0 | 0.314035 | 0.284211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0.416667 | 0.916667 | 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 | 1 | 0 | 0 | 0 | 4 |
99ea032a02739516df9294e7a948724bd9c298bd | 328 | py | Python | src/__init__.py | R3v1L/evoreports | 51bda993435f49ff6afc2cd9502787023f6dea45 | [
"MIT"
] | null | null | null | src/__init__.py | R3v1L/evoreports | 51bda993435f49ff6afc2cd9502787023f6dea45 | [
"MIT"
] | null | null | null | src/__init__.py | R3v1L/evoreports | 51bda993435f49ff6afc2cd9502787023f6dea45 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
###############################################################################
# Author: (C) 2011 Oliver Gutiérrez <ogutsua@evosistemas.com>
# Module: evoreports
# Description: EVO Report generation tools
###############################################################################
#class EVOReport | 41 | 79 | 0.371951 | 20 | 328 | 6.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016556 | 0.079268 | 328 | 8 | 80 | 41 | 0.387417 | 0.478659 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
99f721ef3bae07c8dc61af52decaa8338c3c2241 | 148 | py | Python | Sessions/S04/ex2.py | paulbordea/session3 | a2edf697cbe9b9aa98383562416d4fdf1e19b482 | [
"MIT"
] | null | null | null | Sessions/S04/ex2.py | paulbordea/session3 | a2edf697cbe9b9aa98383562416d4fdf1e19b482 | [
"MIT"
] | null | null | null | Sessions/S04/ex2.py | paulbordea/session3 | a2edf697cbe9b9aa98383562416d4fdf1e19b482 | [
"MIT"
] | null | null | null | from module1 import f as f1
from module2 import f as f2
f1()
f2()
import datetime
print(datetime.datetime.now())
from pkg1.module1 import f
f() | 11.384615 | 30 | 0.736486 | 26 | 148 | 4.192308 | 0.461538 | 0.192661 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.175676 | 148 | 13 | 31 | 11.384615 | 0.827869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.125 | 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 |
820c670c856c122f93903b28b25506f3a15037c5 | 1,101 | py | Python | qiskit/pulse/instructions/__init__.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2019-06-28T19:58:42.000Z | 2019-07-26T05:04:02.000Z | qiskit/pulse/instructions/__init__.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | null | null | null | qiskit/pulse/instructions/__init__.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 1 | 2020-01-24T21:01:06.000Z | 2020-01-24T21:01:06.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""The ``instruction`` module holds the various ``Instruction`` s which are supported by
Qiskit Pulse. Instructions accept a list of operands unique to instructions of that type.
Instructions typically include at least one :py:class:`~qiskit.pulse.channels.Channel` as an
operand specifying where the instruction will be applied, and every instruction has a duration,
whether implicitly or explicitly defined.
An instruction can be added to a :py:class:`~qiskit.pulse.Schedule`, which is a
sequence of scheduled Pulse ``Instruction`` s over many channels.
"""
from .instruction import Instruction
| 44.04 | 95 | 0.769301 | 172 | 1,101 | 4.924419 | 0.622093 | 0.028335 | 0.023613 | 0.042503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009677 | 0.155313 | 1,101 | 24 | 96 | 45.875 | 0.901075 | 0.936421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
82132137aa992491c7e455dd374fa2b04b2370e2 | 723 | py | Python | src/sluggable/tests/models.py | jmagnusson/django-sluggable | 6773868ae20b6220b494b12d7e58c6568373fd46 | [
"MIT"
] | null | null | null | src/sluggable/tests/models.py | jmagnusson/django-sluggable | 6773868ae20b6220b494b12d7e58c6568373fd46 | [
"MIT"
] | null | null | null | src/sluggable/tests/models.py | jmagnusson/django-sluggable | 6773868ae20b6220b494b12d7e58c6568373fd46 | [
"MIT"
] | null | null | null | from django.db import models
from sluggable.models import SluggableModel
class SimpleSluggableModel(SluggableModel):
alpha = models.CharField(max_length=255)
def __unicode__(self):
return u'%s' % self.alpha
class MultiFieldSluggableModel(SluggableModel):
alpha = models.CharField(max_length=255)
beta = models.CharField(max_length=255)
def __unicode__(self):
return u'%s %s' % (self.alpha, self.beta)
class UniqueTogetherSluggableModel(SluggableModel):
alpha = models.CharField(max_length=255)
beta = models.CharField(max_length=255)
def __unicode__(self):
return u'%s' % self.alpha
class Meta:
unique_together = (('slug', 'beta'),) | 28.92 | 51 | 0.692946 | 82 | 723 | 5.890244 | 0.329268 | 0.15528 | 0.186335 | 0.248447 | 0.608696 | 0.608696 | 0.608696 | 0.569358 | 0.569358 | 0.569358 | 0 | 0.025952 | 0.200553 | 723 | 25 | 52 | 28.92 | 0.809689 | 0 | 0 | 0.555556 | 0 | 0 | 0.023481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.166667 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
821adc5dff2d5886a2dd101b8914f65fc4ab5a6f | 934 | py | Python | tests/test_embedding.py | vishalbelsare/kgtk | 7dbcc901a5d52cc9d1af97715e12697e5b460dc7 | [
"MIT"
] | 222 | 2020-03-31T17:45:04.000Z | 2022-03-30T22:48:08.000Z | tests/test_embedding.py | vishalbelsare/kgtk | 7dbcc901a5d52cc9d1af97715e12697e5b460dc7 | [
"MIT"
] | 510 | 2020-04-02T00:32:44.000Z | 2022-03-29T01:20:22.000Z | tests/test_embedding.py | vishalbelsare/kgtk | 7dbcc901a5d52cc9d1af97715e12697e5b460dc7 | [
"MIT"
] | 41 | 2020-03-31T17:45:07.000Z | 2022-03-22T02:49:44.000Z | import unittest
from kgtk.cli_entry import cli_entry
# class TestEmbedding(unittest.TestCase):
#
# def test_vector(self):
# # now just test if it is runnning properly or not
# # test_input = 'data/embedding_test_input.tsv'
# # assert cli_entry("kgtk", "text_embedding", test_input, "--use-cache", "false",
# # "--embedding-projector-metadata-path", "none", "--property-value", "P1629", "P1466") == 0
# v_path = '/Users/amandeep/Github/maa-analysis/MAA_Datasets/v3.2.0'
# cli_entry("kgtk", "text-embedding", f'{v_path}/10000.tsv',
# "--model", "roberta-large-nli-mean-tokens",
# "--property-labels-file", f'{v_path}/qnodes-properties-labels-for-V3.2.0_KB.tsv',
# "--debug",
# "--property-value-file", f'{v_path}/non-identifier-properties-for-V3.2.0.tsv',
# "--save-embedding-sentence", "-o", f'{v_path}/text_embeddings_10000.tsv')
| 51.888889 | 118 | 0.626338 | 124 | 934 | 4.564516 | 0.564516 | 0.04417 | 0.042403 | 0.056537 | 0.088339 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0.186296 | 934 | 17 | 119 | 54.941176 | 0.707895 | 0.906852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
822fc1f9de64616f13083207f0c3e8c866bb5382 | 274 | py | Python | condition_and_loop/iterator.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | condition_and_loop/iterator.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | condition_and_loop/iterator.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | tuple1 = ('apple', 'banana', 'cherry')
iter1 = iter(tuple1)
print(next(iter1))
print(next(iter1))
print(next(iter1))
string = 'banana'
iter2 = iter(string)
print(next(iter2))
print(next(iter2))
print(next(iter2))
print(next(iter2))
print(next(iter2))
print(next(iter2))
| 15.222222 | 38 | 0.69708 | 39 | 274 | 4.897436 | 0.25641 | 0.424084 | 0.439791 | 0.497382 | 0.659686 | 0.659686 | 0.439791 | 0.439791 | 0.439791 | 0.439791 | 0 | 0.052632 | 0.09854 | 274 | 17 | 39 | 16.117647 | 0.720648 | 0 | 0 | 0.692308 | 0 | 0 | 0.084249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.692308 | 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 |
4146d73d79d270b3419325f1d012fb6405b056a5 | 1,790 | py | Python | payments/migrations/0005_auto_20170812_2205.py | aman-roy/pune.pycon.org | f56cc948bd56767110d337c694ecbf5540bdf4b9 | [
"MIT"
] | 1 | 2021-02-14T13:02:19.000Z | 2021-02-14T13:02:19.000Z | payments/migrations/0005_auto_20170812_2205.py | aman-roy/pune.pycon.org | f56cc948bd56767110d337c694ecbf5540bdf4b9 | [
"MIT"
] | null | null | null | payments/migrations/0005_auto_20170812_2205.py | aman-roy/pune.pycon.org | f56cc948bd56767110d337c694ecbf5540bdf4b9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payments', '0004_auto_20170812_2044'),
]
operations = [
migrations.AlterField(
model_name='order',
name='currency',
field=models.CharField(max_length=255, null=True, verbose_name='currency'),
),
migrations.AlterField(
model_name='order',
name='status',
field=models.CharField(max_length=255, null=True, verbose_name='status'),
),
migrations.AlterField(
model_name='payment',
name='currency',
field=models.CharField(max_length=255, null=True, verbose_name='currency'),
),
migrations.AlterField(
model_name='payment',
name='email',
field=models.CharField(max_length=255, null=True, verbose_name='email'),
),
migrations.AlterField(
model_name='payment',
name='invoice_id',
field=models.CharField(max_length=255, null=True, verbose_name='invoice_id'),
),
migrations.AlterField(
model_name='payment',
name='order_id',
field=models.CharField(max_length=255, null=True, verbose_name='order_id'),
),
migrations.AlterField(
model_name='payment',
name='refund_status',
field=models.CharField(max_length=255, null=True, verbose_name='refund_status'),
),
migrations.AlterField(
model_name='payment',
name='status',
field=models.CharField(max_length=255, null=True, verbose_name='status'),
),
]
| 32.545455 | 92 | 0.582123 | 175 | 1,790 | 5.737143 | 0.228571 | 0.159363 | 0.199203 | 0.231076 | 0.796813 | 0.796813 | 0.707171 | 0.545817 | 0.545817 | 0.545817 | 0 | 0.032462 | 0.294413 | 1,790 | 54 | 93 | 33.148148 | 0.76247 | 0.011732 | 0 | 0.666667 | 0 | 0 | 0.119411 | 0.013016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
41497cb2968d34e5297bc1a03c86b248cb7560c9 | 658 | py | Python | naives.py | banr1jnts/Earthquake_Prediction | 13757e3498ef26e8db261fa04c0437f0f1d2e884 | [
"Apache-2.0"
] | 1 | 2019-02-28T10:49:00.000Z | 2019-02-28T10:49:00.000Z | naives.py | banr1jnts/earthquake_prediction | 13757e3498ef26e8db261fa04c0437f0f1d2e884 | [
"Apache-2.0"
] | null | null | null | naives.py | banr1jnts/earthquake_prediction | 13757e3498ef26e8db261fa04c0437f0f1d2e884 | [
"Apache-2.0"
] | null | null | null | import numpy as np
class Naive():
def __init__(self, mean, batch_size, target_length):
self.lam = mean
self.batch_size = batch_size
self.target_length = target_length
def predict(self, samples):
e = 1e-5
pred = np.random.poisson(lam=self.lam-e, size=(self.batch_size, self.target_length))
return pred + e
class Basenaive():
def __init__(self):
pass
class Poissonnaive(Basenaive):
def build_naive(self, float_data, batch_size, target_length):
mean = np.mean(float_data[-target_length:], axis=(0,1))
naive = Naive(mean, batch_size, target_length)
return naive
| 28.608696 | 92 | 0.653495 | 90 | 658 | 4.511111 | 0.366667 | 0.206897 | 0.110837 | 0.155172 | 0.246305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.240122 | 658 | 22 | 93 | 29.909091 | 0.804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.055556 | 0 | 0.555556 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
4174857352888e322c191418c546263839419c87 | 182 | py | Python | redo_comparison_plot.py | nickmvincent/you-geo-see | 003c9915ac25110b043b2047d661b899201bcd67 | [
"MIT"
] | null | null | null | redo_comparison_plot.py | nickmvincent/you-geo-see | 003c9915ac25110b043b2047d661b899201bcd67 | [
"MIT"
] | null | null | null | redo_comparison_plot.py | nickmvincent/you-geo-see | 003c9915ac25110b043b2047d661b899201bcd67 | [
"MIT"
] | null | null | null | import pandas as pd
from plotters import plot_comparison
import matplotlib.pyplot as plt
comparison_df = pd.read_csv('comparison_df.csv')
plot_comparison(comparison_df)
plt.show()
| 20.222222 | 48 | 0.824176 | 28 | 182 | 5.142857 | 0.535714 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104396 | 182 | 8 | 49 | 22.75 | 0.883436 | 0 | 0 | 0 | 0 | 0 | 0.093407 | 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 |
4180cae3aa9e3cca3e0dc8a435dd1a9ba9f941f2 | 153 | py | Python | GLaDOS/central_core/wsgi.py | mvasilkov/scrapheap | 53e30b88879ab8e4d80867b0ec7fa631ce46e55e | [
"MIT"
] | 2 | 2021-11-29T13:51:27.000Z | 2021-12-12T14:59:42.000Z | GLaDOS/central_core/wsgi.py | mvasilkov/scrapheap | 53e30b88879ab8e4d80867b0ec7fa631ce46e55e | [
"MIT"
] | null | null | null | GLaDOS/central_core/wsgi.py | mvasilkov/scrapheap | 53e30b88879ab8e4d80867b0ec7fa631ce46e55e | [
"MIT"
] | null | null | null | from django.core.wsgi import get_wsgi_application
from defaults import setenv
__all__ = ['application']
setenv()
application = get_wsgi_application()
| 17 | 49 | 0.803922 | 19 | 153 | 6.052632 | 0.526316 | 0.121739 | 0.313043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 153 | 8 | 50 | 19.125 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.071895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
41834b87520a224dbb4c4ea39634769a968d8630 | 506 | py | Python | howareyoutwitter/api/models.py | tyheise/how-are-you-twitter | 1e4b938381e7d552486e981b0f696f330635ba82 | [
"MIT"
] | 1 | 2019-10-24T20:47:24.000Z | 2019-10-24T20:47:24.000Z | howareyoutwitter/api/models.py | tyheise/how-are-you-twitter | 1e4b938381e7d552486e981b0f696f330635ba82 | [
"MIT"
] | 12 | 2019-10-22T22:32:40.000Z | 2021-01-07T05:13:25.000Z | howareyoutwitter/api/models.py | tyheise/how-are-you-twitter | 1e4b938381e7d552486e981b0f696f330635ba82 | [
"MIT"
] | 1 | 2020-01-02T22:28:52.000Z | 2020-01-02T22:28:52.000Z | from django.db import models
class Token(models.Model):
token_type = models.CharField(max_length=300)
access_token = models.CharField(max_length=300)
class Tweet(models.Model):
user_id = models.CharField(max_length=300)
tweet_id = models.CharField(max_length=300)
creation_date = models.DateTimeField()
text = models.CharField(max_length=600)
hashtags = models.ManyToManyField('Hashtag')
class Hashtag(models.Model):
text = models.CharField(max_length=300, unique=True)
| 29.764706 | 56 | 0.750988 | 67 | 506 | 5.507463 | 0.402985 | 0.243902 | 0.292683 | 0.390244 | 0.463415 | 0.157182 | 0 | 0 | 0 | 0 | 0 | 0.041379 | 0.140316 | 506 | 16 | 57 | 31.625 | 0.806897 | 0 | 0 | 0 | 0 | 0 | 0.013834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
41a7c88122970c2d8ad2f65899928cd5dc3852c1 | 196 | py | Python | azure_runbook_util/__init__.py | nuxsmin/azure_runbook_util | 165fcdd710c5f29654ee8fa985506037ba7bf4bf | [
"Apache-2.0"
] | null | null | null | azure_runbook_util/__init__.py | nuxsmin/azure_runbook_util | 165fcdd710c5f29654ee8fa985506037ba7bf4bf | [
"Apache-2.0"
] | null | null | null | azure_runbook_util/__init__.py | nuxsmin/azure_runbook_util | 165fcdd710c5f29654ee8fa985506037ba7bf4bf | [
"Apache-2.0"
] | null | null | null | import logging
import sys
logging.basicConfig(stream=sys.stdout,
level=logging.INFO,
format="[%(asctime)s] %(name)s %(levelname)s %(module)s %(message)s")
| 28 | 89 | 0.586735 | 23 | 196 | 5 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265306 | 196 | 6 | 90 | 32.666667 | 0.798611 | 0 | 0 | 0 | 0 | 0.2 | 0.30102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 |
41b68262a64cef25923e2f12babe200528184570 | 158 | py | Python | debian/tests/srcs/mpi-python/demo1.py | lliurex/boost1.67 | bab6eba0e7ac4a0232bc0bcab501f1b447ddfdd5 | [
"BSL-1.0"
] | null | null | null | debian/tests/srcs/mpi-python/demo1.py | lliurex/boost1.67 | bab6eba0e7ac4a0232bc0bcab501f1b447ddfdd5 | [
"BSL-1.0"
] | null | null | null | debian/tests/srcs/mpi-python/demo1.py | lliurex/boost1.67 | bab6eba0e7ac4a0232bc0bcab501f1b447ddfdd5 | [
"BSL-1.0"
] | null | null | null | # https://www.boost.org/doc/libs/1_67_0/doc/html/mpi/tutorial.html#mpi.python
import boost.mpi as mpi
print "I am process %d of %d." % (mpi.rank, mpi.size)
| 26.333333 | 77 | 0.708861 | 32 | 158 | 3.4375 | 0.71875 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.113924 | 158 | 5 | 78 | 31.6 | 0.757143 | 0.468354 | 0 | 0 | 0 | 0 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
41baa17994b972974a92ab3ec8da85a2252642ed | 46 | py | Python | Practice/Coding Blocks/Competitive Warriors Challenge 1.0/Head Expectation.py | cnm06/Competitive-Programming | 94242ae458570d503b8218f37624b88cc5020d23 | [
"MIT"
] | 994 | 2017-02-28T06:13:47.000Z | 2022-03-31T10:49:00.000Z | Practice/Coding Blocks/Competitive Warriors Challenge 1.0/Head Expectation.py | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 16 | 2018-01-01T02:59:55.000Z | 2021-11-22T12:49:16.000Z | Practice/Coding Blocks/Competitive Warriors Challenge 1.0/Head Expectation.py | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 325 | 2017-06-15T03:32:43.000Z | 2022-03-28T22:43:42.000Z | n = int(raw_input())
print (2 ** (n + 1)) - 2
| 15.333333 | 24 | 0.478261 | 9 | 46 | 2.333333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.23913 | 46 | 2 | 25 | 23 | 0.514286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
68b9bb1b5bb2dace76192c1cfcd3ff617dcb4f71 | 2,909 | py | Python | general_ner/data_loader.py | kunpeng199494/general_ner | b6ba6f832d6897d4c91722dbb10922a9a53a3557 | [
"MIT"
] | 4 | 2021-05-20T06:50:58.000Z | 2021-09-13T09:14:21.000Z | general_ner/data_loader.py | kunpeng199494/general_ner | b6ba6f832d6897d4c91722dbb10922a9a53a3557 | [
"MIT"
] | null | null | null | general_ner/data_loader.py | kunpeng199494/general_ner | b6ba6f832d6897d4c91722dbb10922a9a53a3557 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
import os
import sys
import hao
root_dir = hao.paths.project_root_path()
sys.path.append(root_dir)
import torch
from torch.utils.data import DataLoader, TensorDataset
from general_ner.utils import load_vocab, read_corpus, process_line
def data_load(config):
vocab = load_vocab(config.vocab)
label_dic = load_vocab(config.label_file)
train_data = read_corpus(config.train_file, max_length=config.max_length, label_dic=label_dic, vocab=vocab)
dev_data = read_corpus(config.dev_file, max_length=config.max_length, label_dic=label_dic, vocab=vocab)
test_data = read_corpus(config.test_file, max_length=config.max_length, label_dic=label_dic, vocab=vocab)
train_ids = torch.LongTensor([temp.input_id for temp in train_data]).to(config.device)
train_masks = torch.LongTensor([temp.input_mask for temp in train_data]).to(config.device)
train_tags = torch.LongTensor([temp.label_id for temp in train_data]).to(config.device)
train_dataset = TensorDataset(train_ids, train_masks, train_tags)
train_loader = DataLoader(train_dataset, shuffle=True, batch_size=config.batch_size)
dev_ids = torch.LongTensor([temp.input_id for temp in dev_data]).to(config.device)
dev_masks = torch.LongTensor([temp.input_mask for temp in dev_data]).to(config.device)
dev_tags = torch.LongTensor([temp.label_id for temp in dev_data]).to(config.device)
dev_dataset = TensorDataset(dev_ids, dev_masks, dev_tags)
dev_loader = DataLoader(dev_dataset, shuffle=True, batch_size=config.batch_size)
test_ids = torch.LongTensor([temp.input_id for temp in test_data]).to(config.device)
test_masks = torch.LongTensor([temp.input_mask for temp in test_data]).to(config.device)
test_tags = torch.LongTensor([temp.label_id for temp in test_data]).to(config.device)
test_dataset = TensorDataset(test_ids, test_masks, test_tags)
test_loader = DataLoader(test_dataset, shuffle=True, batch_size=config.batch_size)
return train_loader, dev_loader, test_loader
def batch_predict_loader(config):
vocab = load_vocab(config.vocab)
label_dic = load_vocab(config.label_file)
test_data = read_corpus(config.test_file, max_length=config.max_length, label_dic=label_dic, vocab=vocab)
test_ids = torch.LongTensor([temp.input_id for temp in test_data]).to(config.device)
test_masks = torch.LongTensor([temp.input_mask for temp in test_data]).to(config.device)
test_tags = torch.LongTensor([temp.label_id for temp in test_data]).to(config.device)
batch_predict_dataset = TensorDataset(test_ids, test_masks)
batch_predict_load = DataLoader(batch_predict_dataset, shuffle=True, batch_size=config.batch_size)
test_dataset = TensorDataset(test_ids, test_masks, test_tags)
test_loader = DataLoader(test_dataset, shuffle=True, batch_size=config.batch_size)
return batch_predict_load, test_loader
| 46.174603 | 111 | 0.778274 | 447 | 2,909 | 4.771812 | 0.129754 | 0.084388 | 0.106892 | 0.101266 | 0.744491 | 0.744491 | 0.727614 | 0.727614 | 0.707923 | 0.553211 | 0 | 0.000392 | 0.122379 | 2,909 | 62 | 112 | 46.919355 | 0.835096 | 0.007219 | 0 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.162791 | 0 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 |
68c3132f4941a89b0da3da20a8abad4a8c60dd2e | 59 | py | Python | mathics/builtin/colors/__init__.py | tirkarthi/mathics-core | 6b07500b935f23dc332f4ec3fac1d71ac4c8fc04 | [
"Apache-2.0"
] | 90 | 2021-09-11T14:14:00.000Z | 2022-03-29T02:08:29.000Z | mathics/builtin/colors/__init__.py | tirkarthi/mathics-core | 6b07500b935f23dc332f4ec3fac1d71ac4c8fc04 | [
"Apache-2.0"
] | 187 | 2021-09-13T01:00:41.000Z | 2022-03-31T11:52:52.000Z | mathics/builtin/colors/__init__.py | tirkarthi/mathics-core | 6b07500b935f23dc332f4ec3fac1d71ac4c8fc04 | [
"Apache-2.0"
] | 10 | 2021-10-05T15:44:26.000Z | 2022-03-21T12:34:33.000Z | """
Colors
Programmatic support for symbolic colors.
"""
| 8.428571 | 41 | 0.711864 | 6 | 59 | 7 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 59 | 6 | 42 | 9.833333 | 0.857143 | 0.830508 | 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 |
68c329365c2ec82f437b91f2db1c20413685a17f | 171 | py | Python | config_template.py | ArVID220u/turingsgang | 8e27ef0a1c29895489e46de31b5bcd91b7c8bc63 | [
"MIT"
] | 2 | 2019-03-06T19:43:47.000Z | 2021-07-01T22:14:23.000Z | server/config_template.py | corollari/speech2latex | 3035ad0b77c27ee6ef66c256a0f2aead399257cc | [
"MIT"
] | null | null | null | server/config_template.py | corollari/speech2latex | 3035ad0b77c27ee6ef66c256a0f2aead399257cc | [
"MIT"
] | null | null | null |
# The secret key used by Flask for signing cookies
# You can generate a secret key by running os.urandom(32) in python
FLASK_SECRET_KEY = "Randomly generated secret key"
| 34.2 | 67 | 0.783626 | 29 | 171 | 4.551724 | 0.724138 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.169591 | 171 | 4 | 68 | 42.75 | 0.915493 | 0.666667 | 0 | 0 | 1 | 0 | 0.54717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
68e9b93cb0e8b3b5e9a5ea362873414240f0fd4e | 26 | py | Python | waffls/__version__.py | bendv/waffls | c35841e9beed78799f2a7c23c26d7986cf991cf9 | [
"MIT"
] | 5 | 2019-10-10T19:36:52.000Z | 2022-01-02T18:37:52.000Z | waffls/__version__.py | bendv/waffls | c35841e9beed78799f2a7c23c26d7986cf991cf9 | [
"MIT"
] | 1 | 2020-02-09T18:17:31.000Z | 2020-02-14T19:34:37.000Z | waffls/__version__.py | bendv/waffls | c35841e9beed78799f2a7c23c26d7986cf991cf9 | [
"MIT"
] | 1 | 2020-02-15T10:31:31.000Z | 2020-02-15T10:31:31.000Z | __version__ = '0.3.4dev5'
| 13 | 25 | 0.692308 | 4 | 26 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 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 |
6b54924f5319f03c99e0338e105fbd04bf796db1 | 144 | py | Python | backend/library/pagination.py | Cardinal-Alpha/fullstack-demo | 1f68a46d290479a286f0180bb1be20b2f6732afa | [
"MIT"
] | null | null | null | backend/library/pagination.py | Cardinal-Alpha/fullstack-demo | 1f68a46d290479a286f0180bb1be20b2f6732afa | [
"MIT"
] | null | null | null | backend/library/pagination.py | Cardinal-Alpha/fullstack-demo | 1f68a46d290479a286f0180bb1be20b2f6732afa | [
"MIT"
] | null | null | null | from rest_framework.pagination import PageNumberPagination
class PageSizedPagination(PageNumberPagination):
page_size_query_param = 'size' | 28.8 | 58 | 0.854167 | 14 | 144 | 8.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 144 | 5 | 59 | 28.8 | 0.915385 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 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 |
6b57eb6d1d322f249b9f5e669b90228548ea8271 | 181 | py | Python | extra/sumRange.py | ArseniumGX/bluemer-modulo1-python | 2f7c69252a9a86cc573c192d1d9685b0c20466f8 | [
"MIT"
] | null | null | null | extra/sumRange.py | ArseniumGX/bluemer-modulo1-python | 2f7c69252a9a86cc573c192d1d9685b0c20466f8 | [
"MIT"
] | null | null | null | extra/sumRange.py | ArseniumGX/bluemer-modulo1-python | 2f7c69252a9a86cc573c192d1d9685b0c20466f8 | [
"MIT"
] | null | null | null | # retorna a soma de um entervalo entre dois numeros incluindo eles
def get_sum(a,b):
return a or b if a == b else sum(list(range(min(a,b), max(a,b)+1)))
print(get_sum(0, -15)) | 30.166667 | 71 | 0.674033 | 39 | 181 | 3.076923 | 0.692308 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.176796 | 181 | 6 | 72 | 30.166667 | 0.778523 | 0.353591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6b7d2aeb425b83563504eef2dabe060b633f3c8c | 21,623 | py | Python | tests/builder/test_ensemble.py | SpiNNakerManchester/nengo_spinnaker | 147e2b3d6c0965259d6897f177f23e5c99b184f9 | [
"MIT"
] | 13 | 2015-06-10T08:58:05.000Z | 2022-03-29T08:20:14.000Z | tests/builder/test_ensemble.py | SpiNNakerManchester/nengo_spinnaker | 147e2b3d6c0965259d6897f177f23e5c99b184f9 | [
"MIT"
] | 131 | 2015-04-16T15:17:12.000Z | 2020-06-19T05:38:56.000Z | tests/builder/test_ensemble.py | SpiNNakerManchester/nengo_spinnaker | 147e2b3d6c0965259d6897f177f23e5c99b184f9 | [
"MIT"
] | 7 | 2015-07-01T00:01:50.000Z | 2018-06-28T10:12:18.000Z | import mock
import nengo
import numpy as np
import pytest
from nengo_spinnaker.builder import builder, ensemble
from nengo_spinnaker.builder.ports import InputPort, OutputPort
from nengo_spinnaker import operators
class TestBuildEnsembleLIF(object):
@pytest.mark.parametrize("n_neurons, size_in", [(100, 1), (300, 4)])
def test_build_ensemble_lif(self, n_neurons, size_in):
"""Test building LIF ensembles."""
# Create a Nengo ensemble to build
ens = nengo.Ensemble(n_neurons, size_in, add_to_container=False)
# Create a model
model = builder.Model()
model.seeds[ens] = 1
# Build the ensemble
ensemble.build_ensemble(model, ens)
# Check that the built ensemble was inserted into the params and that
# the parameters are (loosely) as expected.
assert model.params[ens].eval_points is not None
assert (model.params[ens].encoders.shape ==
model.params[ens].scaled_encoders.shape ==
(n_neurons, size_in))
assert (model.params[ens].intercepts.shape ==
model.params[ens].max_rates.shape ==
model.params[ens].gain.shape ==
model.params[ens].bias.shape == (n_neurons, ))
# Check that a new object was inserted into the objects dictionary
assert isinstance(model.object_operators[ens],
operators.EnsembleLIF)
def test_with_encoders_and_gain_bias(self):
"""Test that the encoders we provide are used (albeit scaled)"""
# Create a Nengo ensemble to build
ens = nengo.Ensemble(1, 1, add_to_container=False)
ens.radius = 10.0
ens.encoders = np.array([[1.0]])
ens.gain = np.array([0.5])
ens.bias = np.array([0.0])
# Create a model
model = builder.Model()
model.seeds[ens] = 1
# Build the ensemble
ensemble.build_ensemble(model, ens)
# Check that parameters are (loosely) as expected.
assert model.params[ens].encoders == ens.encoders
assert model.params[ens].gain == ens.gain
assert model.params[ens].bias == ens.bias
assert model.params[ens].scaled_encoders == ens.encoders * (0.5 / 10)
@pytest.mark.xfail(reason="Unimplemented functionality")
def test_only_gain(self):
"""Build an ensemble with only gain specified."""
# Create a Nengo ensemble to build
ens = nengo.Ensemble(1, 1, add_to_container=False)
ens.gain = np.array([0.5])
# Create a model
model = builder.Model()
model.seeds[ens] = 1
# Build the ensemble
ensemble.build_ensemble(model, ens)
# Check that parameters are (loosely) as expected.
assert model.params[ens].gain == ens.gain # pragma : no cover
@pytest.mark.xfail(reason="Unimplemented functionality")
def test_only_bias(self):
"""Build an ensemble with only bias specified."""
# Create a Nengo ensemble to build
ens = nengo.Ensemble(1, 1, add_to_container=False)
ens.bias = np.array([-0.5])
# Create a model
model = builder.Model()
model.seeds[ens] = 1
# Build the ensemble
ensemble.build_ensemble(model, ens)
# Check that parameters are (loosely) as expected.
assert model.params[ens].bias == ens.bias # pragma : no cover
@pytest.mark.xfail(reason="Unimplemented functionality")
def test_neurons_source():
"""Test that neurons sources are sane."""
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 4)
a_b = nengo.Connection(a.neurons, b.neurons, transform=np.eye(100))
# Create a model with the Ensemble for a in it
model = builder.Model()
a_ens = operators.EnsembleLIF(a)
model.object_operators[a] = a_ens
# Get the source, check that an appropriate target is return
source = ensemble.get_neurons_source(model, a_b)
assert source.target.obj is a_ens
assert source.target.port is ensemble.EnsembleOutputPort.neurons
class TestEnsembleSource(object):
def test_normal_source(self):
# Create a network and standard model
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(200, 4)
a_b = nengo.Connection(a, b[1:3])
# Create a model with the Ensemble for b in it
model = builder.Model()
a_ens = operators.EnsembleLIF(a)
model.object_operators[a] = a_ens
source = ensemble.get_ensemble_source(model, a_b)
assert source.target.obj is a_ens
assert source.target.port is OutputPort.standard
def test_decoder_learnt_source(self):
# Create a network and standard model
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 2)
e = nengo.Ensemble(100, 2)
a_b = nengo.Connection(a, b)
a_b.learning_rule_type = nengo.PES()
e_l = nengo.Connection(e, a_b.learning_rule)
# Create a model with the Ensemble for b in it
model = builder.Model()
a_ens = operators.EnsembleLIF(a)
model.object_operators[a] = a_ens
source = ensemble.get_ensemble_source(model, a_b)
assert source.target.obj is a_ens
assert source.target.port is ensemble.EnsembleOutputPort.learnt
class TestEnsembleSink(object):
def test_normal_sink(self):
"""Test that sinks for most connections into Ensembles do nothing
special.
"""
# Create a network and standard model
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(200, 4)
a_b = nengo.Connection(a, b[1:3])
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
# Get the sink, check that an appropriate target is return
sink = ensemble.get_ensemble_sink(model, a_b)
assert sink.target.obj is b_ens
assert sink.target.port is InputPort.standard
def test_encoder_learnt_sink(self):
# Create a network and standard model
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 2)
a_b = nengo.Connection(a, b)
a_b.learning_rule_type = nengo.Voja()
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
sink = ensemble.get_ensemble_sink(model, a_b)
assert sink.target.obj is b_ens
assert sink.target.port is ensemble.EnsembleInputPort.learnt
def test_decoder_learning_rule_sink(self):
"""Test that sinks for most connections into Ensembles do nothing
special.
"""
# Create a network and standard model
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 2)
e = nengo.Ensemble(100, 2)
a_b = nengo.Connection(a, b)
a_b.learning_rule_type = nengo.PES()
e_l = nengo.Connection(e, a_b.learning_rule)
# Create a model with the Ensemble for b in it
model = builder.Model()
a_ens = operators.EnsembleLIF(a)
model.object_operators[a] = a_ens
# Get the sink, check that an appropriate target is return
sink = ensemble.get_learning_rule_sink(model, e_l)
assert sink.target.obj is a_ens
assert sink.target.port is a_b.learning_rule
def test_encoder_learning_rule_sink(self):
"""Test that sinks for most connections into Ensembles do nothing
special.
"""
# Create a network and standard model
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 2)
e = nengo.Ensemble(100, 1)
a_b = nengo.Connection(a, b)
a_b.learning_rule_type = nengo.Voja()
e_l = nengo.Connection(e, a_b.learning_rule)
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
# Get the sink, check that an appropriate target is return
sink = ensemble.get_learning_rule_sink(model, e_l)
assert sink.target.obj is b_ens
assert sink.target.port is a_b.learning_rule
def test_normal_sink_for_passthrough_node(self):
"""Test that sinks for most connections into Ensembles do nothing
special.
"""
# Create a network and standard model
with nengo.Network():
a = nengo.Node(None, size_in=4)
b = nengo.Ensemble(200, 4)
a_b = nengo.Connection(a, b)
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
# Get the sink, check that an appropriate target is return
sink = ensemble.get_ensemble_sink(model, a_b)
assert sink.target.obj is b_ens
assert sink.target.port is InputPort.standard
def test_normal_sink_for_process_node(self):
"""Test that sinks for most connections into Ensembles do nothing
special.
"""
# Create a network and standard model
with nengo.Network():
a = nengo.Node(nengo.processes.WhiteNoise(), size_out=4)
b = nengo.Ensemble(200, 4)
a_b = nengo.Connection(a, b)
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
# Get the sink, check that an appropriate target is return
sink = ensemble.get_ensemble_sink(model, a_b)
assert sink.target.obj is b_ens
assert sink.target.port is InputPort.standard
def test_constant_node_sink_with_slice(self):
"""Test that connections from constant valued Nodes to Ensembles are
optimised out correctly.
"""
# Create a network and standard model
with nengo.Network():
a = nengo.Node([0.5, 1.0])
b = nengo.Ensemble(200, 2)
a_b = nengo.Connection(a[0], b[1])
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
# Check that no sink is created but that the direct input is modified
assert np.all(b_ens.direct_input == np.zeros(2))
assert ensemble.get_ensemble_sink(model, a_b) is None
assert np.all(b_ens.direct_input == [0.0, 0.5])
def test_constant_node_sink_with_function(self):
"""Test that connections from constant valued Nodes to Ensembles are
optimised out correctly.
"""
# Create a network and standard model
with nengo.Network():
a = nengo.Node([0.5, 1.0])
b = nengo.Ensemble(200, 2)
a_b = nengo.Connection(a, b, function=lambda x: x**2,
transform=[[0.0, -1.0], [-1.0, 0.0]])
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
# Check that no sink is created but that the direct input is modified
assert np.all(b_ens.direct_input == np.zeros(2))
assert ensemble.get_ensemble_sink(model, a_b) is None
assert np.all(b_ens.direct_input == [-1.0, -0.25])
class TestNeuronSinks(object):
@pytest.mark.parametrize("source", ("neurons", "value"))
def test_arbitrary_neuron_sink(self, source):
"""Test that standard connections to neurons return an appropriate
sink.
We have no plan to support arbitrary connections to neurons, but we
allow them at this stage because they may later become global
inhibition connections when we optimise out passthrough Nodes.
"""
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 4)
if source == "neurons":
a_b = nengo.Connection(a.neurons, b.neurons,
transform=np.eye(100))
else:
a_b = nengo.Connection(a, b.neurons,
transform=[[1.0, 0.5]]*99 +
[[0.5, 1.0]])
# Create a model with the Ensemble for b in it
model = builder.Model()
b_ens = operators.EnsembleLIF(b)
model.object_operators[b] = b_ens
# Get the sink, check that an appropriate target is return
sink = ensemble.get_neurons_sink(model, a_b)
assert sink.target.obj is b_ens
assert sink.target.port is ensemble.EnsembleInputPort.neurons
class TestBuildFromEnsembleConnection(object):
"""Test the construction of parameters that describe connections from
Ensembles.
"""
def test_standard_build(self):
"""Test relatively standard build."""
# Create the network
with nengo.Network():
a = nengo.Ensemble(200, 3)
b = nengo.Node(lambda t, x: None, size_in=2)
a_b = nengo.Connection(a[:2], b, transform=np.array([[0.5, 0],
[0.0, 0.0]]))
# Create the model and built the pre-synaptic Ensemble
model = builder.Model()
model.rng = np.random
model.seeds[a] = 1
model.seeds[a_b] = 2
ensemble.build_ensemble(model, a)
# Now build the connection and check that the params seem sensible
tparams = ensemble.build_from_ensemble_connection(model, a_b)
assert tparams.full_decoders.shape == (2, 200)
assert np.all(tparams.full_decoders[1, :] == 0.0)
# Check that the params stored in the model are correct
params = model.params[a_b]
assert params.decoders.shape == (200, 2)
assert np.all(params.transform == a_b.transform)
assert np.all(params.eval_points == model.params[a].eval_points)
assert params.solver_info is not None
@pytest.mark.xfail(reason="Unimplemented functionality")
def test_weights_built(self):
"""Test a build using a weights-based solver."""
# Create the network
with nengo.Network():
a = nengo.Ensemble(200, 2)
b = nengo.Ensemble(400, 2)
a_b = nengo.Connection(
a, b, solver=nengo.solvers.Lstsq(weights=True)
)
# Create the model and built the pre-synaptic Ensemble
model = builder.Model()
model.rng = np.random
model.seeds[a] = 1
model.seeds[b] = 2
model.seeds[a_b] = 3
ensemble.build_ensemble(model, a)
ensemble.build_ensemble(model, b)
# Now build the connection and check that the params seem sensible
ensemble.build_from_ensemble_connection(model, a_b)
# Check that the params stored in the model are correct
params = model.params[a_b]
assert params.decoders.shape == (200, 400)
class TestBuildFromNeuronsConnection(object):
"""Test the construction of parameters that describe connections from
Neurons.
"""
@pytest.mark.xfail(reason="Unimplemented functionality")
def test_standard_build(self):
# Create the network
with nengo.Network():
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 3)
a_b = nengo.Connection(a.neurons, b.neurons)
# Get the connection parameters
params = ensemble.build_from_neurons_connection(None, a_b)
assert params.decoders is None
assert np.all(params.transform == np.eye(100))
assert params.eval_points is None
assert params.solver_info is None
class TestProbeEnsemble(object):
"""Test probing ensembles."""
@pytest.mark.parametrize("with_slice", [False, True])
def test_probe_output_with_sampling(self, with_slice):
"""Test that probing the output of an Ensemble generates a new
connection and a new object.
"""
with nengo.Network() as net:
a = nengo.Ensemble(100, 3)
if not with_slice:
p = nengo.Probe(a, sample_every=0.0023)
else:
p = nengo.Probe(a[0:1], sample_every=0.0023)
# Create an empty model to build the probe into
model = builder.Model()
model.build(net)
# Check that a new connection was added and built
assert len(list(model.connection_map.get_signals())) == 1
# Check that a new object was added to the model
vs = model.object_operators[p]
assert isinstance(vs, operators.ValueSink)
assert vs.probe is p
def test_probe_output_no_sampling(self):
"""Test that probing the output of an Ensemble generates a new
connection and a new object.
"""
with nengo.Network() as net:
a = nengo.Ensemble(100, 3)
p = nengo.Probe(a)
# Create an empty model to build the probe into
model = builder.Model()
model.build(net)
# Check that a new object was added to the model
vs = model.object_operators[p]
assert vs.sample_every == 1
@pytest.mark.xfail(reason="Unimplemented functionality")
def test_probe_input(self):
"""Test probing the input of an Ensemble."""
with nengo.Network():
a = nengo.Ensemble(100, 3)
p = nengo.Probe(a, "input")
# Create an empty model to build the probe into
model = builder.Model()
model.rng = np.random
model.seeds[p] = 1
# Build the probe
ensemble.build_ensemble_probe(model, p)
class TestProbeNeurons(object):
"""Test probing neurons."""
def test_probe_spikes(self):
"""Check that probing spikes modifies the local_probes list on the
operator, but does nothing else.
"""
with nengo.Network() as net:
a = nengo.Ensemble(300, 1)
p = nengo.Probe(a.neurons, "spikes")
# Create an empty model to build the probe into
model = builder.Model()
model.build(net)
# Assert that we added the probe to the list of local probes and
# nothing else
assert model.object_operators[a].local_probes == [p]
assert len(model.object_operators) == 1
assert list(model.connection_map.get_signals()) == []
def test_probe_spike_slice(self):
with nengo.Network() as net:
a = nengo.Ensemble(300, 1)
p = nengo.Probe(a.neurons[:100], "spikes")
# Create an empty model to build the probe into
model = builder.Model()
model.build(net)
# Assert that we added the probe to the list of local probes and
# nothing else
assert model.object_operators[a].local_probes == [p]
assert len(model.object_operators) == 1
assert list(model.connection_map.get_signals()) == []
def test_probe_voltage(self):
"""Check that probing voltage modifies the local_probes list on the
operator, but does nothing else.
"""
with nengo.Network() as net:
a = nengo.Ensemble(300, 1)
p = nengo.Probe(a.neurons, "voltage")
# Create an empty model to build the probe into
model = builder.Model()
model.build(net)
# Assert that we added the probe to the list of local probes and
# nothing else
assert model.object_operators[a].local_probes == [p]
assert len(model.object_operators) == 1
assert list(model.connection_map.get_signals()) == []
@pytest.mark.xfail(reason="Unimplemented functionality")
def test_refractory_time(self):
"""Check that probing refractory time modifies the local_probes list on
the operator, but does nothing else.
"""
with nengo.Network() as net:
a = nengo.Ensemble(300, 1)
p = nengo.Probe(a.neurons, "refractory_time")
# Create an empty model to build the probe into
model = builder.Model()
model.build(net)
# Assert that we added the probe to the list of local probes and
# nothing elseobject_operators
assert model.object_operators[a].local_probes == [p]
assert len(model.object_operators) == 1
assert len(model.connections_signals) == 0
class TestProbeLearningRules(object):
"""Test probing of Voja learnt encoders."""
def test_probe_voja_scaled_encoders(self):
# Create a network and standard model
with nengo.Network() as net:
a = nengo.Ensemble(100, 2)
b = nengo.Ensemble(100, 2)
a_b = nengo.Connection(a, b)
a_b.learning_rule_type = nengo.Voja()
p = nengo.Probe(a_b.learning_rule, "scaled_encoders")
# Create an empty model to build the probe into
model = builder.Model()
model.build(net)
# Assert that we added the probe to the list of local probes and
# nothing else
assert model.object_operators[b].local_probes == [p]
assert len(model.object_operators) == 2
| 36.21943 | 79 | 0.616196 | 2,865 | 21,623 | 4.53822 | 0.085864 | 0.008922 | 0.033995 | 0.022227 | 0.773189 | 0.745347 | 0.728888 | 0.714505 | 0.685741 | 0.667359 | 0 | 0.019142 | 0.292096 | 21,623 | 596 | 80 | 36.280201 | 0.830274 | 0.245156 | 0 | 0.610619 | 0 | 0 | 0.018681 | 0 | 0 | 0 | 0 | 0 | 0.19174 | 1 | 0.079646 | false | 0.00295 | 0.020649 | 0 | 0.126844 | 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 |
6bc714eefad696bd226b9957c6214586b1687049 | 405 | py | Python | orbital_utilities.py | heidtn/ksp_autopilot | 52edaf3deb61742ff2941b8f1483f2c0aa9a2561 | [
"MIT"
] | 2 | 2020-06-29T08:58:53.000Z | 2020-07-14T12:45:13.000Z | orbital_utilities.py | heidtn/ksp_autopilot | 52edaf3deb61742ff2941b8f1483f2c0aa9a2561 | [
"MIT"
] | null | null | null | orbital_utilities.py | heidtn/ksp_autopilot | 52edaf3deb61742ff2941b8f1483f2c0aa9a2561 | [
"MIT"
] | 2 | 2020-06-29T08:58:33.000Z | 2021-10-02T02:34:06.000Z | import numpy as np
def get_semimajor_axis(apoapsis, periapsis):
return (apoapsis + periapsis) / 2.0
def visviva(mu, position, apoapsis, periapsis):
a = get_semimajor_axis(apoapsis, periapsis)
v = np.sqrt(mu * ( 2 / position - 1 / a))
return v
def apsis_change_dv(mu, a1, p1, p2):
v1 = visviva(mu, a1, a1, p1)
v2 = visviva(mu, a1, a1, p2)
deltav = v2 - v1
return deltav | 23.823529 | 47 | 0.641975 | 62 | 405 | 4.096774 | 0.467742 | 0.267717 | 0.125984 | 0.188976 | 0.259843 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055016 | 0.237037 | 405 | 17 | 48 | 23.823529 | 0.76699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6bcb8a3e459efbed46efc758282364b58065fc24 | 29 | py | Python | int.py | KowsalyaThiyagarajan/PythonLearing | 742c9480f4ab28fe22e271e923e6198262deb194 | [
"Apache-2.0"
] | 1 | 2021-10-05T08:14:39.000Z | 2021-10-05T08:14:39.000Z | int.py | KowsalyaThiyagarajan/PythonLearing | 742c9480f4ab28fe22e271e923e6198262deb194 | [
"Apache-2.0"
] | null | null | null | int.py | KowsalyaThiyagarajan/PythonLearing | 742c9480f4ab28fe22e271e923e6198262deb194 | [
"Apache-2.0"
] | null | null | null | a=6
print(a)
print(type(a)) | 9.666667 | 14 | 0.62069 | 7 | 29 | 2.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 29 | 3 | 14 | 9.666667 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6bd63b205e0694968ca122906fa5273114c85547 | 106 | py | Python | docs/snippets/basic_eval.py | eas342/dust_mie | 98f4c3a8668d5802846518018ebcd01c4e1db01f | [
"MIT"
] | null | null | null | docs/snippets/basic_eval.py | eas342/dust_mie | 98f4c3a8668d5802846518018ebcd01c4e1db01f | [
"MIT"
] | null | null | null | docs/snippets/basic_eval.py | eas342/dust_mie | 98f4c3a8668d5802846518018ebcd01c4e1db01f | [
"MIT"
] | null | null | null | from dust_mie import calc_mie
qext, qsca, qback, g = calc_mie.get_mie_coeff(wav=2.0,r=1.0,material='SiO2') | 53 | 76 | 0.764151 | 23 | 106 | 3.304348 | 0.782609 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.084906 | 106 | 2 | 76 | 53 | 0.731959 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 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 |
6bdb208402dec552245ec97ca2ef4b74331dc924 | 3,062 | py | Python | tods/sk_interface/feature_analysis/__init__.py | ZhuangweiKang/tods | fe3f55f8ccb306dd292c668e0f1154f1afdfa556 | [
"Apache-2.0"
] | 544 | 2020-09-21T06:02:33.000Z | 2022-03-27T07:16:32.000Z | tods/sk_interface/feature_analysis/__init__.py | ZhuangweiKang/tods | fe3f55f8ccb306dd292c668e0f1154f1afdfa556 | [
"Apache-2.0"
] | 35 | 2020-09-21T06:33:13.000Z | 2022-03-11T14:20:21.000Z | tods/sk_interface/feature_analysis/__init__.py | ZhuangweiKang/tods | fe3f55f8ccb306dd292c668e0f1154f1afdfa556 | [
"Apache-2.0"
] | 86 | 2020-09-21T16:44:33.000Z | 2022-03-11T18:20:22.000Z | from tods.sk_interface.feature_analysis.AutoCorrelation_skinterface import AutoCorrelationSKI
from tods.sk_interface.feature_analysis.BKFilter_skinterface import BKFilterSKI
from tods.sk_interface.feature_analysis.DiscreteCosineTransform_skinterface import DiscreteCosineTransformSKI
from tods.sk_interface.feature_analysis.FastFourierTransform_skinterface import FastFourierTransformSKI
from tods.sk_interface.feature_analysis.HPFilter_skinterface import HPFilterSKI
from tods.sk_interface.feature_analysis.NonNegativeMatrixFactorization_skinterface import NonNegativeMatrixFactorizationSKI
from tods.sk_interface.feature_analysis.SKTruncatedSVD_skinterface import SKTruncatedSVDSKI
from tods.sk_interface.feature_analysis.SpectralResidualTransform_skinterface import SpectralResidualTransformSKI
from tods.sk_interface.feature_analysis.StatisticalAbsEnergy_skinterface import StatisticalAbsEnergySKI
from tods.sk_interface.feature_analysis.StatisticalAbsSum_skinterface import StatisticalAbsSumSKI
from tods.sk_interface.feature_analysis.StatisticalGmean_skinterface import StatisticalGmeanSKI
from tods.sk_interface.feature_analysis.StatisticalHmean_skinterface import StatisticalHmeanSKI
from tods.sk_interface.feature_analysis.StatisticalKurtosis_skinterface import StatisticalKurtosisSKI
from tods.sk_interface.feature_analysis.StatisticalMaximum_skinterface import StatisticalMaximumSKI
from tods.sk_interface.feature_analysis.StatisticalMeanAbsTemporalDerivative_skinterface import StatisticalMeanAbsTemporalDerivativeSKI
from tods.sk_interface.feature_analysis.StatisticalMeanAbs_skinterface import StatisticalMeanAbsSKI
from tods.sk_interface.feature_analysis.StatisticalMeanTemporalDerivative_skinterface import StatisticalMeanTemporalDerivativeSKI
from tods.sk_interface.feature_analysis.StatisticalMean_skinterface import StatisticalMeanSKI
from tods.sk_interface.feature_analysis.StatisticalMedianAbsoluteDeviation_skinterface import StatisticalMedianAbsoluteDeviationSKI
from tods.sk_interface.feature_analysis.StatisticalMedian_skinterface import StatisticalMedianSKI
from tods.sk_interface.feature_analysis.StatisticalMinimum_skinterface import StatisticalMinimumSKI
from tods.sk_interface.feature_analysis.StatisticalSkew_skinterface import StatisticalSkewSKI
from tods.sk_interface.feature_analysis.StatisticalStd_skinterface import StatisticalStdSKI
from tods.sk_interface.feature_analysis.StatisticalVar_skinterface import StatisticalVarSKI
from tods.sk_interface.feature_analysis.StatisticalVariation_skinterface import StatisticalVariationSKI
from tods.sk_interface.feature_analysis.StatisticalVecSum_skinterface import StatisticalVecSumSKI
from tods.sk_interface.feature_analysis.StatisticalWillisonAmplitude_skinterface import StatisticalWillisonAmplitudeSKI
from tods.sk_interface.feature_analysis.StatisticalZeroCrossing_skinterface import StatisticalZeroCrossingSKI
from tods.sk_interface.feature_analysis.TRMF_skinterface import TRMFSKI
from tods.sk_interface.feature_analysis.WaveletTransform_skinterface import WaveletTransformSKI
| 98.774194 | 135 | 0.931417 | 300 | 3,062 | 9.206667 | 0.226667 | 0.086894 | 0.108617 | 0.206372 | 0.369298 | 0.369298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03919 | 3,062 | 30 | 136 | 102.066667 | 0.938817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d469d997de682746facb78af30e94fa6333d03b7 | 152 | py | Python | bolt11/__init__.py | python-ln/bolt11 | 76f8800dc2235f99a6059dae41dcc7c1f19f2d49 | [
"MIT"
] | 3 | 2020-11-18T01:57:18.000Z | 2022-03-08T18:35:19.000Z | bolt11/__init__.py | python-ln/bolt11 | 76f8800dc2235f99a6059dae41dcc7c1f19f2d49 | [
"MIT"
] | 3 | 2020-11-19T07:16:54.000Z | 2021-12-05T13:12:42.000Z | bolt11/__init__.py | python-ln/bolt11 | 76f8800dc2235f99a6059dae41dcc7c1f19f2d49 | [
"MIT"
] | 5 | 2020-09-04T17:54:41.000Z | 2022-03-08T18:49:32.000Z | # flake8: noqa
from .core import decode
from .compat import lndecode, shorten_amount, unshorten_amount
from .utils import amount_to_btc, btc_to_amount
| 25.333333 | 62 | 0.822368 | 23 | 152 | 5.173913 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.125 | 152 | 5 | 63 | 30.4 | 0.887218 | 0.078947 | 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 |
d47d8de12214120e6842959ce1cceafd1b4e5b90 | 84 | py | Python | keyloop/api/v1/__init__.py | debonzi/keyloop | 35cbe85e4777e5a2c83fc071f3b6f93d13d979fc | [
"MIT"
] | 1 | 2019-11-29T11:52:46.000Z | 2019-11-29T11:52:46.000Z | keyloop/api/v1/__init__.py | debonzi/keyloop | 35cbe85e4777e5a2c83fc071f3b6f93d13d979fc | [
"MIT"
] | 8 | 2020-01-23T17:46:50.000Z | 2020-02-05T14:04:51.000Z | keyloop/api/v1/__init__.py | debonzi/keyloop | 35cbe85e4777e5a2c83fc071f3b6f93d13d979fc | [
"MIT"
] | 1 | 2020-02-12T17:07:13.000Z | 2020-02-12T17:07:13.000Z | def includeme(config):
config.include(".realms")
config.include(".actions")
| 21 | 30 | 0.678571 | 9 | 84 | 6.333333 | 0.666667 | 0.45614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 84 | 3 | 31 | 28 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2e155d4510f1675c6b3fc7897347d9ce97b31eb2 | 62 | py | Python | src/scripts/reboot.py | dovedevic/fullyautomatednutcracker | c746601f93097b88febea64adb09be5ef569adaa | [
"MIT"
] | 5 | 2020-08-12T00:30:03.000Z | 2020-08-24T08:24:34.000Z | src/scripts/reboot.py | minecrosters/fullyautomatednutcracker | 49e72e66f8021b17a2a402a060b461c55cd47041 | [
"MIT"
] | 7 | 2020-10-25T20:10:58.000Z | 2022-01-24T00:59:34.000Z | src/scripts/reboot.py | dovedevic/fullyautomatednutcracker | c746601f93097b88febea64adb09be5ef569adaa | [
"MIT"
] | 8 | 2020-08-12T00:37:03.000Z | 2020-08-20T19:49:32.000Z | import time
import os
time.sleep(5)
os.system("../setup.sh")
| 10.333333 | 24 | 0.693548 | 11 | 62 | 3.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.112903 | 62 | 5 | 25 | 12.4 | 0.763636 | 0 | 0 | 0 | 0 | 0 | 0.177419 | 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 |
2e24d77db395eb264d548aae81d47087e698c08a | 248 | py | Python | ex052divisor.py | wtomalves/exerciciopython | 5c239521830cb8d092c7ff8646ff1f38c605509d | [
"MIT"
] | 1 | 2020-09-04T22:36:21.000Z | 2020-09-04T22:36:21.000Z | ex052divisor.py | wtomalves/exerciciopython | 5c239521830cb8d092c7ff8646ff1f38c605509d | [
"MIT"
] | null | null | null | ex052divisor.py | wtomalves/exerciciopython | 5c239521830cb8d092c7ff8646ff1f38c605509d | [
"MIT"
] | null | null | null | n = int(input('Digite um número:'))
divisor = n > 1 and n % n == 0 and n % 2 != 0
if divisor:
print('{} é um numero primo!'.format(n))
if n == 2:
print('{} é um numero primo!'.format(n))
else:
print('O número {} não é primo.'.format(n)) | 31 | 47 | 0.568548 | 45 | 248 | 3.133333 | 0.444444 | 0.234043 | 0.255319 | 0.198582 | 0.368794 | 0.368794 | 0.368794 | 0 | 0 | 0 | 0 | 0.026042 | 0.225806 | 248 | 8 | 47 | 31 | 0.708333 | 0 | 0 | 0.25 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2e778e9af2bd312887eb16f3b57124043bbf771e | 54 | py | Python | argus/engine/__init__.py | nd1511/argus | 00aaed41ac1321d669ac7060f4d21b24cc3456f0 | [
"MIT"
] | 1 | 2018-10-26T01:29:59.000Z | 2018-10-26T01:29:59.000Z | argus/engine/__init__.py | nd1511/argus | 00aaed41ac1321d669ac7060f4d21b24cc3456f0 | [
"MIT"
] | null | null | null | argus/engine/__init__.py | nd1511/argus | 00aaed41ac1321d669ac7060f4d21b24cc3456f0 | [
"MIT"
] | null | null | null | from argus.engine.engine import Engine, Events, State
| 27 | 53 | 0.814815 | 8 | 54 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 54 | 1 | 54 | 54 | 0.916667 | 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 |
2e8b2730db5e32fa09209b8fbc298004c8e0478a | 460 | py | Python | python_crash_course/chapter_05/5-06_stages_of_life.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | python_crash_course/chapter_05/5-06_stages_of_life.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | python_crash_course/chapter_05/5-06_stages_of_life.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | #Exercise 5-6 Stage of Life
age = 40
if age < 2:
print('That age is a baby.')
elif (age >= 2) and (age < 4):
print('That age is a toddler.')
elif (age >= 4) and (age < 13):
print('That age is a kid.')
elif (age >= 13) and (age < 20):
print('That age is a teenager.')
elif (age >= 20) and (age < 65):
print('That age is a adult.')
elif (age >= 65) and (age <= 122):
print('That age is a elder.')
else:
print('That age is a alien.')
| 27.058824 | 36 | 0.567391 | 84 | 460 | 3.107143 | 0.345238 | 0.241379 | 0.321839 | 0.375479 | 0.402299 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067055 | 0.254348 | 460 | 16 | 37 | 28.75 | 0.693878 | 0.056522 | 0 | 0 | 0 | 0 | 0.327945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.466667 | 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 |
5cf8ae0078db7da879871ef5872ee8796f3f6ea5 | 2,880 | py | Python | cloudcafe/cloudkeep/config.py | ProjectMeniscus/cloudcafe | fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9 | [
"Apache-2.0"
] | null | null | null | cloudcafe/cloudkeep/config.py | ProjectMeniscus/cloudcafe | fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9 | [
"Apache-2.0"
] | null | null | null | cloudcafe/cloudkeep/config.py | ProjectMeniscus/cloudcafe | fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9 | [
"Apache-2.0"
] | 1 | 2020-11-17T19:05:08.000Z | 2020-11-17T19:05:08.000Z | """
Copyright 2013 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from cloudcafe.common.models.configuration import ConfigSectionInterface
class MarshallingConfig(ConfigSectionInterface):
SECTION_NAME = 'marshalling'
@property
def serializer(self):
return self.get("serialize_format")
@property
def deserializer(self):
return self.get("deserialize_format")
class CloudKeepConfig(ConfigSectionInterface):
SECTION_NAME = 'cloudkeep'
@property
def base_url(self):
return self.get("base_url")
@property
def api_version(self):
return self.get("api_version")
@property
def tenant_id(self):
return self.get("tenant_id")
class CloudKeepSecretsConfig(ConfigSectionInterface):
SECTION_NAME = 'cloudkeep-secrets'
@property
def name(self):
return self.get("name")
@property
def algorithm(self):
return self.get("algorithm")
@property
def bit_length(self):
return int(self.get("bit_length"))
@property
def mode(self):
return self.get("mode")
@property
def payload(self):
return self.get("payload")
@property
def payload_content_type(self):
return self.get("payload_content_type")
@property
def payload_content_encoding(self):
return self.get("payload_content_encoding")
class CloudKeepOrdersConfig(ConfigSectionInterface):
SECTION_NAME = 'cloudkeep-orders'
@property
def name(self):
return self.get("name")
@property
def algorithm(self):
return self.get("algorithm")
@property
def bit_length(self):
return int(self.get("bit_length"))
@property
def mode(self):
return self.get("mode")
@property
def payload_content_type(self):
return self.get("payload_content_type")
@property
def payload_content_encoding(self):
return self.get("payload_content_encoding")
class CloudKeepClientLibConfig(ConfigSectionInterface):
SECTION_NAME = 'cloudkeep-client-lib'
@property
def authentication_endpoint(self):
return self.get("authentication_endpoint")
@property
def username(self):
return self.get("username")
@property
def key(self):
return self.get("key")
@property
def token(self):
return self.get("token")
| 22.857143 | 72 | 0.686458 | 338 | 2,880 | 5.745562 | 0.331361 | 0.124614 | 0.144181 | 0.175077 | 0.338826 | 0.326468 | 0.326468 | 0.326468 | 0.326468 | 0.326468 | 0 | 0.003562 | 0.220139 | 2,880 | 125 | 73 | 23.04 | 0.861086 | 0.190625 | 0 | 0.597403 | 0 | 0 | 0.139044 | 0.030564 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.012987 | 0.285714 | 0.714286 | 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 |
cf051a5cd58eb6b447872232f8bcc6948d54f483 | 502 | py | Python | CEV/ex009.py | EduardoMachadoCostaOliveira/Python | 329e388c190118f742a3c3df90a15cd00519a58e | [
"MIT"
] | null | null | null | CEV/ex009.py | EduardoMachadoCostaOliveira/Python | 329e388c190118f742a3c3df90a15cd00519a58e | [
"MIT"
] | null | null | null | CEV/ex009.py | EduardoMachadoCostaOliveira/Python | 329e388c190118f742a3c3df90a15cd00519a58e | [
"MIT"
] | null | null | null | #Faça um programa que leia um número Inteiro qualquer e mostre na tela a sua tabuada
n1 = int(input("Digite um numero para ver sua tabuada: "))
print('-' * 10)
print(f'{n1} x 1 = {n1 * 1:>2}')
print(f'{n1} x 2 = {n1 * 2:>2}')
print(f'{n1} x 3 = {n1 * 3}')
print(f'{n1} x 4 = {n1 * 4}')
print(f'{n1} x 5 = {n1 * 5}')
print(f'{n1} x 6 = {n1 * 6}')
print(f'{n1} x 7 = {n1 * 7}')
print(f'{n1} x 8 = {n1 * 8}')
print(f'{n1} x 9 = {n1 * 9:>2}')
print('{} x 10 = {:>2}'.format(n1, (n1 * 10)))
print('-' * 10)
| 33.466667 | 84 | 0.525896 | 104 | 502 | 2.538462 | 0.346154 | 0.204545 | 0.272727 | 0.306818 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 0.205179 | 502 | 14 | 85 | 35.857143 | 0.533835 | 0.165339 | 0 | 0.153846 | 0 | 0 | 0.564593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.923077 | 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 |
cf1bb249cf40ecf674c994400039254c773d01e6 | 164 | py | Python | hello.py | ssingh1187/TwitOff | eec7dafa655638b8e059c5d4c0cf39f153151bbb | [
"MIT"
] | null | null | null | hello.py | ssingh1187/TwitOff | eec7dafa655638b8e059c5d4c0cf39f153151bbb | [
"MIT"
] | 4 | 2021-03-18T23:52:48.000Z | 2022-03-11T23:49:29.000Z | hello.py | ssingh1187/TwitOff | eec7dafa655638b8e059c5d4c0cf39f153151bbb | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello World!'
@app.route('/banjo')
def banjo():
return 'I like banjos' | 14.909091 | 26 | 0.646341 | 23 | 164 | 4.434783 | 0.608696 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 164 | 11 | 26 | 14.909091 | 0.761194 | 0 | 0 | 0 | 0 | 0 | 0.193939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
cf219da69a724474e938ff47f62f51370b7bf62c | 115 | py | Python | skrules/__init__.py | cmougan/ABML | f45712ac55b7a1e8e514cdfe32f72aa944d4477f | [
"MIT"
] | null | null | null | skrules/__init__.py | cmougan/ABML | f45712ac55b7a1e8e514cdfe32f72aa944d4477f | [
"MIT"
] | null | null | null | skrules/__init__.py | cmougan/ABML | f45712ac55b7a1e8e514cdfe32f72aa944d4477f | [
"MIT"
] | null | null | null | from .skope_rules import SkopeRules
from .rule import Rule, replace_feature_name
__all__ = ["SkopeRules", "Rule"]
| 23 | 44 | 0.782609 | 15 | 115 | 5.533333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 115 | 4 | 45 | 28.75 | 0.821782 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 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 |
cf86dcdbcfb689a67d86b34ea4c5978759877f9d | 238 | py | Python | src/logpipe/config.py | twentythirdz/django-logpipe | 05d90225fc993e6dc8fea27f41c56e8e8debf340 | [
"ISC"
] | null | null | null | src/logpipe/config.py | twentythirdz/django-logpipe | 05d90225fc993e6dc8fea27f41c56e8e8debf340 | [
"ISC"
] | 1 | 2021-06-10T22:30:32.000Z | 2021-06-10T22:30:32.000Z | src/logpipe/config.py | twentythirdz/django-logpipe | 05d90225fc993e6dc8fea27f41c56e8e8debf340 | [
"ISC"
] | 1 | 2021-01-04T12:33:57.000Z | 2021-01-04T12:33:57.000Z | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class LogpipeConfig(AppConfig):
name = 'logpipe'
label = 'logpipe'
# Translators: Backend Library Name
verbose_name = _('LogPipe')
| 23.8 | 54 | 0.735294 | 27 | 238 | 6.333333 | 0.703704 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184874 | 238 | 9 | 55 | 26.444444 | 0.881443 | 0.138655 | 0 | 0 | 0 | 0 | 0.103448 | 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 |
d8494bd4ffef5b5a90ef352b2d2dba95594013d4 | 307 | py | Python | Oefeningen/standalone/param_order.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | Oefeningen/standalone/param_order.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | Oefeningen/standalone/param_order.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | def display_info(a, b, *args, instructor="Colt", **kwargs):
print(f"a: {a}\nb: {b}\n*args: {args}\ninstructor: {instructor}\n**kwargs: {kwargs}")
display_info(1, 2, 3, last_name="Steele", job="Instructor")
#a: 1
#b: 2
#*args: (3,)
#instructor: Colt
#**kwargs: {last_name:"Steele", job:"Instructor"}
| 25.583333 | 89 | 0.635179 | 47 | 307 | 4.06383 | 0.446809 | 0.115183 | 0.209424 | 0.17801 | 0.282723 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02214 | 0.117264 | 307 | 11 | 90 | 27.909091 | 0.682657 | 0.270358 | 0 | 0 | 0 | 0.333333 | 0.43379 | 0.105023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d8659daa58442a2594c7ee563aec7d45ddbab3a2 | 229 | py | Python | src/pysparkbundle/test/DummySparkFactory.py | daipe-ai/pyspark-bundle | ffbb0f8835b69646a235ae4d7d1f4eaa03a05ea0 | [
"MIT"
] | null | null | null | src/pysparkbundle/test/DummySparkFactory.py | daipe-ai/pyspark-bundle | ffbb0f8835b69646a235ae4d7d1f4eaa03a05ea0 | [
"MIT"
] | 1 | 2021-11-04T13:01:15.000Z | 2021-11-04T13:01:15.000Z | src/datalakebundle/test/DummySparkFactory.py | daipe-ai/datalake-bundle | 01bd0e2e7361561f2278fe08ee78b92beb9cda26 | [
"MIT"
] | null | null | null | from pyspark.sql import SparkSession
class DummySparkFactory:
def create(self):
class DummySparkSession(SparkSession):
def __init__(self, *args):
pass
return DummySparkSession()
| 20.818182 | 46 | 0.641921 | 20 | 229 | 7.15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292576 | 229 | 10 | 47 | 22.9 | 0.882716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 0.857143 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
d880448f575d7a009f6b386b94ece803d3061112 | 2,813 | py | Python | Web Based Solution/hospitalapp/models.py | LeifYaoYuXiang/seproject_healingpaws | bac63011a669cba522a066cfdf233428e37443fc | [
"MIT"
] | null | null | null | Web Based Solution/hospitalapp/models.py | LeifYaoYuXiang/seproject_healingpaws | bac63011a669cba522a066cfdf233428e37443fc | [
"MIT"
] | null | null | null | Web Based Solution/hospitalapp/models.py | LeifYaoYuXiang/seproject_healingpaws | bac63011a669cba522a066cfdf233428e37443fc | [
"MIT"
] | null | null | null | # encoding:utf-8
from hospitalapp import db
import datetime
class Staff(db.Model):
id = db.Column(db.Integer, primary_key=True)
staffname = db.Column(db.String(64), index=True, unique=True)
email = db.Column(db.String(64), index=True, unique=True)
password_hash = db.Column(db.String(128))
def __repr__(self):
return '<Staff {}>'.format(self.staffname)
class Customer(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64), index=True)
email = db.Column(db.String(64), index=True, unique=True)
password_hash = db.Column(db.String(128))
def __repr__(self):
return '<Customer {}>'.format(self.name)
class Pet(db.Model):
id = db.Column(db.Integer, primary_key=True)
customer_id = db.Column(db.Integer)
type = db.Column(db.String(64))
petname = db.Column(db.String(64))
age = db.Column(db.Integer)
breed = db.Column(db.String(64))
def __repr__(self):
return '<Pet {}>'.format(self.petname)
class Message(db.Model):
id = db.Column(db.Integer, primary_key=True)
customer_id = db.Column(db.Integer)
subject = db.Column(db.String(64))
content = db.Column(db.String(160))
year = db.Column(db.Integer)
month = db.Column(db.Integer)
date = db.Column(db.Integer)
def __repr__(self):
return '<Message {}>'.format(self.id)
class Reply(db.Model):
id = db.Column(db.Integer, primary_key=True)
message_id = db.Column(db.Integer)
staff_id = db.Column(db.Integer)
content = db.Column(db.String(160))
year = db.Column(db.Integer)
month = db.Column(db.Integer)
date = db.Column(db.Integer)
def __repr__(self):
return '<Reply {}>'.format(self.id)
class Appointment(db.Model):
id = db.Column(db.Integer, primary_key=True)
customer_id = db.Column(db.Integer)
pet_id = db.Column(db.Integer)
symptom = db.Column(db.String(160))
status = db.Column(db.String(64))
city = db.Column(db.String(64))
apptime=db.Column(db.DateTime,default=datetime.datetime.now())
year = db.Column(db.Integer)
month = db.Column(db.Integer)
date = db.Column(db.Integer)
state = db.Column(db.String(160))
state_two_description = db.Column(db.String(160))
state_two_year = db.Column(db.Integer)
state_two_month = db.Column(db.Integer)
state_two_date = db.Column(db.Integer)
state_three_description = db.Column(db.String(160))
state_three_year = db.Column(db.Integer)
state_three_month = db.Column(db.Integer)
state_three_date = db.Column(db.Integer)
def __repr__(self):
return '<Appointment {}>'.format(self.id)
class Video(db.Model):
id = db.Column(db.Integer, primary_key=True)
app_id = db.Column(db.Integer)
url = db.Column(db.String(160))
| 30.576087 | 66 | 0.667259 | 418 | 2,813 | 4.356459 | 0.143541 | 0.21966 | 0.274574 | 0.280066 | 0.769358 | 0.647446 | 0.560681 | 0.493136 | 0.493136 | 0.454146 | 0 | 0.020797 | 0.179524 | 2,813 | 91 | 67 | 30.912088 | 0.768198 | 0.004977 | 0 | 0.43662 | 0 | 0 | 0.024669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0.028169 | 0.028169 | 0.084507 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d890ee1d37abd5aa7a53f8b67a6ddd052d3218a2 | 203 | pyw | Python | main.pyw | christopher-roelofs/7dtd-server-manager | 55a18def54516993f5f1664def2112b4b68a133e | [
"MIT"
] | null | null | null | main.pyw | christopher-roelofs/7dtd-server-manager | 55a18def54516993f5f1664def2112b4b68a133e | [
"MIT"
] | null | null | null | main.pyw | christopher-roelofs/7dtd-server-manager | 55a18def54516993f5f1664def2112b4b68a133e | [
"MIT"
] | null | null | null | #!/usr/bin/python
import config
import gui
import telconn
import threading
import commands
telconn.initialize()
threading._start_new_thread(commands.update_player_objects_timed, ())
gui.start()
| 10.684211 | 69 | 0.793103 | 26 | 203 | 5.961538 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118227 | 203 | 18 | 70 | 11.277778 | 0.865922 | 0.078818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 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 |
d8a051b58edc53aa975f63a2701c800ecb1c9562 | 31 | py | Python | src/components/gcp/gdrive/__init__.py | alejandro-onatra/immo-gsync | 14cd9081637ab914923f46f3822154c53edf6c1d | [
"MIT"
] | 1 | 2021-11-06T04:56:23.000Z | 2021-11-06T04:56:23.000Z | src/components/gcp/gdrive/__init__.py | alejandro-onatra/immo-gsync | 14cd9081637ab914923f46f3822154c53edf6c1d | [
"MIT"
] | null | null | null | src/components/gcp/gdrive/__init__.py | alejandro-onatra/immo-gsync | 14cd9081637ab914923f46f3822154c53edf6c1d | [
"MIT"
] | 2 | 2021-09-04T23:50:22.000Z | 2021-09-06T09:47:51.000Z | """
Google Drive components
""" | 10.333333 | 23 | 0.677419 | 3 | 31 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 3 | 24 | 10.333333 | 0.777778 | 0.741935 | 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 |
d8b2a5b4343d316dd52d3b8f191f4943a7b98b9d | 9,860 | py | Python | SimModel_Python_API/simmodel_swig/Release/SimGeomPoint_Point_CartesianPoint.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/Release/SimGeomPoint_Point_CartesianPoint.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/Release/SimGeomPoint_Point_CartesianPoint.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.7
#
# 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 >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_SimGeomPoint_Point_CartesianPoint', [dirname(__file__)])
except ImportError:
import _SimGeomPoint_Point_CartesianPoint
return _SimGeomPoint_Point_CartesianPoint
if fp is not None:
try:
_mod = imp.load_module('_SimGeomPoint_Point_CartesianPoint', fp, pathname, description)
finally:
fp.close()
return _mod
_SimGeomPoint_Point_CartesianPoint = swig_import_helper()
del swig_import_helper
else:
import _SimGeomPoint_Point_CartesianPoint
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):
if _newclass:
object.__setattr__(self, name, value)
else:
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_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
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
try:
import weakref
weakref_proxy = weakref.proxy
except:
weakref_proxy = lambda x: x
import base
class SimGeomPoint(base.SimGeometricRepresentationItem):
__swig_setmethods__ = {}
for _s in [base.SimGeometricRepresentationItem]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomPoint, name, value)
__swig_getmethods__ = {}
for _s in [base.SimGeometricRepresentationItem]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomPoint, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _SimGeomPoint_Point_CartesianPoint.new_SimGeomPoint(*args)
try:
self.this.append(this)
except:
self.this = this
def _clone(self, f=0, c=None):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint__clone(self, f, c)
__swig_destroy__ = _SimGeomPoint_Point_CartesianPoint.delete_SimGeomPoint
__del__ = lambda self: None
SimGeomPoint_swigregister = _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_swigregister
SimGeomPoint_swigregister(SimGeomPoint)
class SimGeomPoint_Point(SimGeomPoint):
__swig_setmethods__ = {}
for _s in [SimGeomPoint]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomPoint_Point, name, value)
__swig_getmethods__ = {}
for _s in [SimGeomPoint]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomPoint_Point, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _SimGeomPoint_Point_CartesianPoint.new_SimGeomPoint_Point(*args)
try:
self.this.append(this)
except:
self.this = this
def _clone(self, f=0, c=None):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point__clone(self, f, c)
__swig_destroy__ = _SimGeomPoint_Point_CartesianPoint.delete_SimGeomPoint_Point
__del__ = lambda self: None
SimGeomPoint_Point_swigregister = _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_swigregister
SimGeomPoint_Point_swigregister(SimGeomPoint_Point)
class SimGeomPoint_Point_CartesianPoint(SimGeomPoint_Point):
__swig_setmethods__ = {}
for _s in [SimGeomPoint_Point]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomPoint_Point_CartesianPoint, name, value)
__swig_getmethods__ = {}
for _s in [SimGeomPoint_Point]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomPoint_Point_CartesianPoint, name)
__repr__ = _swig_repr
def Coordinates_MeasureValue(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_Coordinates_MeasureValue(self, *args)
def __init__(self, *args):
this = _SimGeomPoint_Point_CartesianPoint.new_SimGeomPoint_Point_CartesianPoint(*args)
try:
self.this.append(this)
except:
self.this = this
def _clone(self, f=0, c=None):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint__clone(self, f, c)
__swig_destroy__ = _SimGeomPoint_Point_CartesianPoint.delete_SimGeomPoint_Point_CartesianPoint
__del__ = lambda self: None
SimGeomPoint_Point_CartesianPoint_swigregister = _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_swigregister
SimGeomPoint_Point_CartesianPoint_swigregister(SimGeomPoint_Point_CartesianPoint)
class SimGeomPoint_Point_CartesianPoint_sequence(base.sequence_common):
__swig_setmethods__ = {}
for _s in [base.sequence_common]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomPoint_Point_CartesianPoint_sequence, name, value)
__swig_getmethods__ = {}
for _s in [base.sequence_common]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomPoint_Point_CartesianPoint_sequence, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _SimGeomPoint_Point_CartesianPoint.new_SimGeomPoint_Point_CartesianPoint_sequence(*args)
try:
self.this.append(this)
except:
self.this = this
def assign(self, n, x):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_assign(self, n, x)
def begin(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_begin(self, *args)
def end(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_end(self, *args)
def rbegin(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_rbegin(self, *args)
def rend(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_rend(self, *args)
def at(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_at(self, *args)
def front(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_front(self, *args)
def back(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_back(self, *args)
def push_back(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_push_back(self, *args)
def pop_back(self):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_pop_back(self)
def detach_back(self, pop=True):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_detach_back(self, pop)
def insert(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_insert(self, *args)
def erase(self, *args):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_erase(self, *args)
def detach(self, position, r, erase=True):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_detach(self, position, r, erase)
def swap(self, x):
return _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_swap(self, x)
__swig_destroy__ = _SimGeomPoint_Point_CartesianPoint.delete_SimGeomPoint_Point_CartesianPoint_sequence
__del__ = lambda self: None
SimGeomPoint_Point_CartesianPoint_sequence_swigregister = _SimGeomPoint_Point_CartesianPoint.SimGeomPoint_Point_CartesianPoint_sequence_swigregister
SimGeomPoint_Point_CartesianPoint_sequence_swigregister(SimGeomPoint_Point_CartesianPoint_sequence)
# This file is compatible with both classic and new-style classes.
| 39.598394 | 148 | 0.741582 | 1,085 | 9,860 | 6.152995 | 0.134562 | 0.216447 | 0.334332 | 0.154584 | 0.709257 | 0.665668 | 0.623427 | 0.570551 | 0.501348 | 0.420761 | 0 | 0.002103 | 0.180325 | 9,860 | 248 | 149 | 39.758065 | 0.82393 | 0.029817 | 0 | 0.407216 | 1 | 0 | 0.031603 | 0.007116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149485 | false | 0.010309 | 0.056701 | 0.108247 | 0.530928 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
d8c06e916f4af1ab8134b555ba78566cdabe0b43 | 1,980 | py | Python | tests/coworks/blueprint/test_blueprint.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | tests/coworks/blueprint/test_blueprint.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | tests/coworks/blueprint/test_blueprint.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | from tests.coworks.blueprint.blueprint import BP, InitBP
from tests.coworks.ms import SimpleMS
class TestClass:
def test_request(self):
app = SimpleMS()
app.register_blueprint(BP())
with app.test_client() as c:
response = c.get('/', headers={'Authorization': 'token'})
assert response.status_code == 200
assert response.get_data(as_text=True) == 'get'
response = c.get('/test/3', headers={'Authorization': 'token'})
assert response.status_code == 200
assert response.get_data(as_text=True) == "blueprint BP 3"
response = c.get('/extended/test/3', headers={'Authorization': 'token'})
assert response.status_code == 200
assert response.get_data(as_text=True) == 'blueprint extended test 3'
def test_prefix(self):
app = SimpleMS()
app.register_blueprint(BP(), url_prefix="/prefix")
with app.test_client() as c:
response = c.get('/prefix/test/3', headers={'Authorization': 'token'})
assert response.status_code == 200
assert response.get_data(as_text=True) == "blueprint BP 3"
response = c.get('/prefix/extended/test/3', headers={'Authorization': 'token'})
assert response.status_code == 200
assert response.get_data(as_text=True) == 'blueprint extended test 3'
def test_before_activation(self):
app = SimpleMS()
init_bp = InitBP()
app.register_blueprint(init_bp, url_prefix="/prefix")
with app.test_client() as c:
response = c.get('/prefix/test/3', headers={'Authorization': 'token'})
assert response.status_code == 200
assert response.get_data(as_text=True) == "blueprint BP 3"
init_bp.do_before_first_activation.assert_called_once()
init_bp.do_before_activation.assert_called_once()
init_bp.do_after_activation.assert_called_once()
| 46.046512 | 91 | 0.628788 | 241 | 1,980 | 4.966805 | 0.186722 | 0.140351 | 0.06015 | 0.155388 | 0.784461 | 0.784461 | 0.784461 | 0.667502 | 0.667502 | 0.640769 | 0 | 0.018767 | 0.246465 | 1,980 | 42 | 92 | 47.142857 | 0.783512 | 0 | 0 | 0.513514 | 0 | 0 | 0.147475 | 0.011616 | 0 | 0 | 0 | 0 | 0.405405 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.162162 | 0.243243 | 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 |
d8ebbae7e114c9e790dabf10098659d51864ee00 | 285 | py | Python | blog/models.py | ralphiecodes/my_portfolio | a625e9c3638605fc26dbb97a81881517a9778387 | [
"MIT",
"Unlicense"
] | 1 | 2021-08-09T16:46:30.000Z | 2021-08-09T16:46:30.000Z | blog/models.py | ralphiecodes/my_portfolio | a625e9c3638605fc26dbb97a81881517a9778387 | [
"MIT",
"Unlicense"
] | null | null | null | blog/models.py | ralphiecodes/my_portfolio | a625e9c3638605fc26dbb97a81881517a9778387 | [
"MIT",
"Unlicense"
] | null | null | null | from django.db import models
class Blog(models.Model):
title = models.CharField(max_length=100)
date = models.DateField(auto_now=True)
description = models.CharField(max_length=300)
body = models.TextField(null=True)
def __str__(self):
return self.title
| 23.75 | 50 | 0.712281 | 38 | 285 | 5.157895 | 0.710526 | 0.153061 | 0.183673 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.185965 | 285 | 11 | 51 | 25.909091 | 0.818966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d8f7a1190994ff23a9f559b7ca3ce69a28e57bab | 110 | py | Python | tests/test_testing.py | LeanderGangso/pyMyShareApi | 16e320b5c9675324e1291176ac0de01664eaf0ee | [
"MIT"
] | 2 | 2021-01-26T21:35:33.000Z | 2021-01-28T02:43:03.000Z | tests/test_testing.py | LeanderGangso/pyMyShareApi | 16e320b5c9675324e1291176ac0de01664eaf0ee | [
"MIT"
] | 1 | 2021-02-02T21:52:11.000Z | 2021-02-02T21:52:11.000Z | tests/test_testing.py | LeanderGangso/pyMyShareSDK | 16e320b5c9675324e1291176ac0de01664eaf0ee | [
"MIT"
] | null | null | null | # just for init testing
def inc(x):
return x + 1
# pytest test
def test_test():
assert inc(3) == 4
| 11 | 23 | 0.6 | 19 | 110 | 3.421053 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.281818 | 110 | 9 | 24 | 12.222222 | 0.78481 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.5 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 4 |
2b4b99564b5ef67907ae784a3c6a8b8a8bec0500 | 5,336 | py | Python | scripts/nuscenes_devkit/python-sdk/scripts/calculate_cam_positions.py | n2pham/3d-bat | 6be0a00f3dbbd4c968586e1bd01e45cdbf4614e1 | [
"BSD-4-Clause-UC"
] | 335 | 2019-08-15T18:10:19.000Z | 2022-03-30T11:00:54.000Z | scripts/nuscenes_devkit/python-sdk/scripts/calculate_cam_positions.py | n2pham/3d-bat | 6be0a00f3dbbd4c968586e1bd01e45cdbf4614e1 | [
"BSD-4-Clause-UC"
] | 24 | 2019-09-19T09:46:05.000Z | 2022-03-24T17:05:57.000Z | scripts/nuscenes_devkit/python-sdk/scripts/calculate_cam_positions.py | n2pham/3d-bat | 6be0a00f3dbbd4c968586e1bd01e45cdbf4614e1 | [
"BSD-4-Clause-UC"
] | 93 | 2019-12-02T14:14:58.000Z | 2022-03-30T06:21:41.000Z | import numpy as np
# translation_vector_lidar_to_cam_front = -np.array([3.40200000000000, 10.4301000000000, -60.7137000000000, 1]).T
# translation_vector_lidar_to_cam_front = -np.array([3.40200000000000, -60.7137000000000, 10.4301000000000, 1]).T
# translation_vector_lidar_to_cam_front = -np.array([-60.7137000000000, 10.4301000000000, 3.40200000000000, 1]).T
# translation_vector_lidar_to_cam_front = -np.array([-60.7137000000000, 3.40200000000000, 10.4301000000000, 1]).T
translation_vector_lidar_to_cam_front = -np.array(
[10.4301000000000, -60.7137000000000, 3.40200000000000, 1]).T
# translation_vector_lidar_to_cam_front = -np.array([3.40200000000000, -60.7137000000000, 10.4301000000000, 1]).T
rotation_matrix_lidar_to_cam_front = np.array([[0.9972, -0.0734, -0.0130],
[-0.0094, 0.0500, -0.9987],
[0.0740, 0.9960, 0.0492]]).T
# rotation_matrix_lidar_to_cam_front = np.array([[1, 0, 0],
# [0, 1, 0],
# [0, 0, 1]])
transformation_matrix_cam_front_to_lidar = np.zeros((4, 4))
transformation_matrix_cam_front_to_lidar[:3, :3] = rotation_matrix_lidar_to_cam_front
transformation_matrix_cam_front_to_lidar[:, 3] = translation_vector_lidar_to_cam_front
# first translate, then rotate
# all positions are in cam front space
# lat, vert, long working without rotation
# pos_cam_front = np.array([0, 0, 0, 1])
# pos_cam_front_right = np.array([-45.1049247450402, 3.38902882987240, -41.2332552580050, 1])
# pos_cam_back_right = np.array([-138.946355147973, 14.7250624305806, -73.9670437316272, 1])
# pos_cam_back = np.array([1.57295951830214, 13.7980368992530, -155.133930386228, 1])
# pos_cam_back_left = np.array([131.379600000000, 15.9267000000000, -84.9142000000000, 1])
# pos_cam_front_left = np.array([44.9739140815965, 4.73898749148968, -42.3117989136691, 1])
# lat, long, vert not working
# pos_cam_front = np.array([0, 0, 0, 1])
# pos_cam_front_right = np.array([-45.1049247450402, -41.2332552580050, 3.38902882987240, 1])
# pos_cam_back_right = np.array([-138.946355147973, -73.9670437316272, 14.7250624305806, 1])
# pos_cam_back = np.array([1.57295951830214, -155.133930386228, 13.7980368992530, 1])
# pos_cam_back_left = np.array([131.379600000000, -84.9142000000000, 15.9267000000000, 1])
# pos_cam_front_left = np.array([44.9739140815965, -42.3117989136691, 4.73898749148968, 1])
# # long, vert, lat not working
# pos_cam_front = np.array([0, 0, 0, 1])
# pos_cam_front_right = np.array([-41.2332552580050, 3.38902882987240, -45.1049247450402, 1])
# pos_cam_back_right = np.array([-73.9670437316272, 14.7250624305806, -138.946355147973, 1])
# pos_cam_back = np.array([-155.133930386228, 13.7980368992530, 1.57295951830214, 1])
# pos_cam_back_left = np.array([-84.9142000000000, 15.9267000000000, 131.379600000000, 1])
# pos_cam_front_left = np.array([-42.3117989136691, 4.73898749148968, 44.9739140815965, 1])
# long, lat, vert not working
# pos_cam_front = np.array([0, 0, 0, 1])
# pos_cam_front_right = np.array([-41.2332552580050, -45.1049247450402, 3.38902882987240, 1])
# pos_cam_back_right = np.array([-73.9670437316272, -138.946355147973, 14.7250624305806, 1])
# pos_cam_back = np.array([-155.133930386228, 1.57295951830214, 13.7980368992530, 1])
# pos_cam_back_left = np.array([-84.9142000000000, 131.379600000000, 15.9267000000000, 1])
# pos_cam_front_left = np.array([-42.3117989136691, 44.9739140815965, 4.73898749148968, 1])
# vert, lat, long not working
pos_cam_front = np.array([0, 0, 0, 1])
pos_cam_front_right = np.array([3.38902882987240, -45.1049247450402, -41.2332552580050, 1])
pos_cam_back_right = np.array([14.7250624305806, -138.946355147973, -73.9670437316272, 1])
pos_cam_back = np.array([13.7980368992530, 1.57295951830214, -155.133930386228, 1])
pos_cam_back_left = np.array([15.9267000000000, 131.379600000000, -84.9142000000000, 1])
pos_cam_front_left = np.array([4.73898749148968, 44.9739140815965, -42.3117989136691, 1])
# vert, long, lat not working
# pos_cam_front = np.array([0, 0, 0, 1])
# pos_cam_front_right = np.array([3.38902882987240, -41.2332552580050, -45.1049247450402, 1])
# pos_cam_back_right = np.array([14.7250624305806, -73.9670437316272, -138.946355147973, 1])
# pos_cam_back = np.array([13.7980368992530, -155.133930386228, 1.57295951830214, 1])
# pos_cam_back_left = np.array([15.9267000000000, -84.9142000000000, 131.379600000000, 1])
# pos_cam_front_left = np.array([4.73898749148968, -42.3117989136691, 44.9739140815965, 1])
# print transformed positions in velodyne space (lat, vert, long)
print('position: cam_front')
print(np.dot(transformation_matrix_cam_front_to_lidar, pos_cam_front))
print('position: cam_front_right')
print(np.dot(transformation_matrix_cam_front_to_lidar, pos_cam_front_right))
print('position: cam_back_right')
print(np.dot(transformation_matrix_cam_front_to_lidar, pos_cam_back_right))
print('position: cam_back')
print(np.dot(transformation_matrix_cam_front_to_lidar, pos_cam_back))
print('position: cam_back_left')
print(np.dot(transformation_matrix_cam_front_to_lidar, pos_cam_back_left))
print('position: cam_front_left')
print(np.dot(transformation_matrix_cam_front_to_lidar, pos_cam_front_left))
| 60.636364 | 113 | 0.736507 | 774 | 5,336 | 4.797158 | 0.109819 | 0.094802 | 0.056558 | 0.053326 | 0.753569 | 0.72125 | 0.695395 | 0.676003 | 0.598438 | 0.323458 | 0 | 0.371661 | 0.123126 | 5,336 | 87 | 114 | 61.333333 | 0.421885 | 0.657609 | 0 | 0 | 0 | 0 | 0.074803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 4 |
9919d38fe233b4a447c36128555d041958ad0edd | 1,004 | py | Python | random_ctfs/plaidctf19/can_you_guess_me/can-you-guess-me-53d1aa54ca7d7151fcd2c48ce36d1bdb.py | bernardosequeir/CTFfiles | 36a6ceba49d9a9019056d3669c5e8f84aa83b618 | [
"MIT"
] | null | null | null | random_ctfs/plaidctf19/can_you_guess_me/can-you-guess-me-53d1aa54ca7d7151fcd2c48ce36d1bdb.py | bernardosequeir/CTFfiles | 36a6ceba49d9a9019056d3669c5e8f84aa83b618 | [
"MIT"
] | 5 | 2020-09-23T18:28:25.000Z | 2020-09-23T18:28:41.000Z | random_ctfs/plaidctf19/can_you_guess_me/can-you-guess-me-53d1aa54ca7d7151fcd2c48ce36d1bdb.py | bernardosequeir/CTFSolutions | 503944617cb18826d12ab98fa33fd761e791328a | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
from sys import exit
from secret import secret_value_for_password, flag, exec
print(r"")
print(r"")
print(r" ____ __ __ ____ __ __ ")
print(r" / ___|__ _ _ _\ \ / /__ _ _ / ___|_ _ ___ ___ ___| \/ | ___ ")
print(r"| | / _` | '_ \ V / _ \| | | | | _| | | |/ _ \/ __/ __| |\/| |/ _ \ ")
print(r"| |__| (_| | | | | | (_) | |_| | |_| | |_| | __/\__ \__ \ | | | __/ ")
print(r" \____\__,_|_| |_|_|\___/ \__,_|\____|\__,_|\___||___/___/_| |_|\___| ")
print(r" ")
print(r"")
print(r"")
try:
val = 0
inp = input("Input value: ")
count_digits = len(set(inp))
if count_digits <= 10: # Make sure it is a number
val = eval(inp)
else:
raise
if val == secret_value_for_password:
print(flag)
else:
print("Nope. Better luck next time.")
except:
print("Nope. No hacking.")
exit(1)
| 30.424242 | 81 | 0.447211 | 87 | 1,004 | 3.83908 | 0.528736 | 0.179641 | 0.263473 | 0.287425 | 0.179641 | 0.179641 | 0.179641 | 0.179641 | 0.179641 | 0.179641 | 0 | 0.007837 | 0.364542 | 1,004 | 32 | 82 | 31.375 | 0.515674 | 0.046813 | 0 | 0.259259 | 0 | 0.148148 | 0.506806 | 0.035602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.074074 | 0.074074 | 0 | 0.074074 | 0.481481 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
993b85a0df2ecd8a523ecbbc4ede48772f9fff92 | 339 | py | Python | museos/gestion/admin.py | RazvanCopaceanu/X-Serv-Practica-Museos | b7b9f84069cdee9f6ae5b6bef5da80273644182f | [
"Apache-2.0"
] | null | null | null | museos/gestion/admin.py | RazvanCopaceanu/X-Serv-Practica-Museos | b7b9f84069cdee9f6ae5b6bef5da80273644182f | [
"Apache-2.0"
] | null | null | null | museos/gestion/admin.py | RazvanCopaceanu/X-Serv-Practica-Museos | b7b9f84069cdee9f6ae5b6bef5da80273644182f | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from gestion.models import Museo
admin.site.register(Museo)
from gestion.models import PaginaUsuario
admin.site.register(PaginaUsuario)
from gestion.models import Comentarios
admin.site.register(Comentarios)
from gestion.models import Elegidos
admin.site.register(Elegidos)
| 24.214286 | 40 | 0.837758 | 45 | 339 | 6.311111 | 0.333333 | 0.15493 | 0.239437 | 0.323944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094395 | 339 | 13 | 41 | 26.076923 | 0.925081 | 0.076696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
998c26b8859f9e3e38513262d68357d32e1595c2 | 489 | py | Python | pattern30.py | Ayush05m/patterns-python | cbfdf42af8f206d7193f20dc7576289a5426bbcc | [
"MIT"
] | 1 | 2020-06-05T19:06:23.000Z | 2020-06-05T19:06:23.000Z | pattern30.py | Ayush05m/patterns-python | cbfdf42af8f206d7193f20dc7576289a5426bbcc | [
"MIT"
] | null | null | null | pattern30.py | Ayush05m/patterns-python | cbfdf42af8f206d7193f20dc7576289a5426bbcc | [
"MIT"
] | 1 | 2020-10-04T17:47:17.000Z | 2020-10-04T17:47:17.000Z | n = 5
for x in range(n//2,n+1,+2):
for y in range(1,n-x,+2):
print(' ',end='')
for y in range(1,x+1):
print('*',end='')
for y in range(1,n-x+1):
print(' ',end='')
for y in range(1,x+1):
print('*',end='')
print()
for x in range(n,0,-1):
for y in range(x,n):
print(' ',end='')
for y in range(1,(x*2)):
print('*',end='')
print()
"""
# pattern
** **
**** ****
*********
*******
*****
***
*
""" | 14.818182 | 29 | 0.372188 | 76 | 489 | 2.394737 | 0.171053 | 0.307692 | 0.197802 | 0.362637 | 0.736264 | 0.604396 | 0.604396 | 0.521978 | 0.406593 | 0.32967 | 0 | 0.048338 | 0.323108 | 489 | 33 | 30 | 14.818182 | 0.501511 | 0 | 0 | 0.588235 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.470588 | 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 |
999dee23669e86756d3ea29f74f5c98932ec510b | 430 | py | Python | boa3/builtin/interop/role/__init__.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3/builtin/interop/role/__init__.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3/builtin/interop/role/__init__.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin.interop.role.roletype import Role
from boa3.builtin.type import ECPoint
def get_designated_by_role(role: Role, index: int) -> ECPoint:
"""
Gets the list of nodes for the specified role.
:param role: the type of the role
:type role: Role
:param index: the index of the block to be queried
:type index: int
:return: the public keys of the nodes
:rtype: ECPoint
"""
pass
| 23.888889 | 62 | 0.683721 | 66 | 430 | 4.409091 | 0.484848 | 0.082474 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0.239535 | 430 | 17 | 63 | 25.294118 | 0.883792 | 0.513953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
99a7804d6c0d9a85284676e52e0601c1c1cd6071 | 196 | py | Python | classes/models/ModelDecoder.py | canary-for-cognition/merge-datasets-gan | 435d62a2cc281e25b9616db0ee6bacd13a12fa9c | [
"MIT"
] | null | null | null | classes/models/ModelDecoder.py | canary-for-cognition/merge-datasets-gan | 435d62a2cc281e25b9616db0ee6bacd13a12fa9c | [
"MIT"
] | null | null | null | classes/models/ModelDecoder.py | canary-for-cognition/merge-datasets-gan | 435d62a2cc281e25b9616db0ee6bacd13a12fa9c | [
"MIT"
] | null | null | null | from classes.core.Model import Model
from classes.modules.Decoder import Decoder
class ModelDecoder(Model):
def __init__(self):
super().__init__()
self._network = Decoder()
| 19.6 | 43 | 0.704082 | 23 | 196 | 5.608696 | 0.608696 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19898 | 196 | 9 | 44 | 21.777778 | 0.821656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
512cd586b4a34623b46e8fbc8d7f637f22cde449 | 108 | py | Python | nps/packet.py | Dry8r3aD/nps | e25c478190dcc41c4daaa4df3618a6f7ca784911 | [
"MIT"
] | null | null | null | nps/packet.py | Dry8r3aD/nps | e25c478190dcc41c4daaa4df3618a6f7ca784911 | [
"MIT"
] | null | null | null | nps/packet.py | Dry8r3aD/nps | e25c478190dcc41c4daaa4df3618a6f7ca784911 | [
"MIT"
] | 1 | 2018-08-12T15:26:14.000Z | 2018-08-12T15:26:14.000Z |
class Packet:
def __init__(self, ip, tcp) -> None:
self.ip_hdr = ip
self.tcp_hdr = tcp | 18 | 40 | 0.564815 | 16 | 108 | 3.4375 | 0.5625 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324074 | 108 | 6 | 41 | 18 | 0.753425 | 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 |
513795463317a42298427eca96ae61c111c31511 | 119 | py | Python | myMapLocator/admin.py | ChuksMbanaso/django-map-locator | 0fbd5459a6a97309dc3fe0b24907d40a39204732 | [
"Apache-2.0"
] | 1 | 2021-11-28T19:02:32.000Z | 2021-11-28T19:02:32.000Z | myMapLocator/admin.py | ChuksMbanaso/Map-locator-using-Django | 0fbd5459a6a97309dc3fe0b24907d40a39204732 | [
"Apache-2.0"
] | null | null | null | myMapLocator/admin.py | ChuksMbanaso/Map-locator-using-Django | 0fbd5459a6a97309dc3fe0b24907d40a39204732 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Viewmap
# Register your models here.
admin.site.register(Viewmap) | 23.8 | 32 | 0.815126 | 17 | 119 | 5.705882 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 119 | 5 | 33 | 23.8 | 0.92381 | 0.218487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
514d9c17ef9f55c18280167a3ec64b972a4b5114 | 202 | py | Python | QCDAnalysis/Skimming/python/qcdJetFilterStreamMed_EventContent_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | QCDAnalysis/Skimming/python/qcdJetFilterStreamMed_EventContent_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | QCDAnalysis/Skimming/python/qcdJetFilterStreamMed_EventContent_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
qcdJetFilterStreamMedEventSelection = cms.PSet(
SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring('qcdJetFilterStreamMedPath')
)
)
| 22.444444 | 63 | 0.752475 | 17 | 202 | 8.941176 | 0.705882 | 0.210526 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163366 | 202 | 8 | 64 | 25.25 | 0.899408 | 0 | 0 | 0 | 0 | 0 | 0.124378 | 0.124378 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
5a9ee3e13844cdf4d1b1e6a655d66e47ae15ad8c | 73 | py | Python | monitoring-center-backend/wsgi.py | Heimdall-monitoring/monitoring-center | acf56a796c25fb6804fd16b1ff8c93645bc77ff3 | [
"MIT"
] | null | null | null | monitoring-center-backend/wsgi.py | Heimdall-monitoring/monitoring-center | acf56a796c25fb6804fd16b1ff8c93645bc77ff3 | [
"MIT"
] | 10 | 2020-09-09T14:37:05.000Z | 2020-11-26T13:14:09.000Z | monitoring-center-backend/wsgi.py | Heimdall-monitoring/monitoring-center | acf56a796c25fb6804fd16b1ff8c93645bc77ff3 | [
"MIT"
] | null | null | null | from monitoring_center import create_app
app = create_app(debug=False)
| 14.6 | 40 | 0.821918 | 11 | 73 | 5.181818 | 0.727273 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 73 | 4 | 41 | 18.25 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5aa10a08a01e7b2b9596a8cbcb9cb704b153e36d | 69 | py | Python | huga.py | naoki-sawada/vscode-python | 35cba53f97c1ff6a8775dc584d8ce82f9233e3cb | [
"MIT"
] | null | null | null | huga.py | naoki-sawada/vscode-python | 35cba53f97c1ff6a8775dc584d8ce82f9233e3cb | [
"MIT"
] | null | null | null | huga.py | naoki-sawada/vscode-python | 35cba53f97c1ff6a8775dc584d8ce82f9233e3cb | [
"MIT"
] | null | null | null | def echo(string: str) -> None:
print("Hello, {}".format(string))
| 23 | 37 | 0.608696 | 9 | 69 | 4.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 69 | 2 | 38 | 34.5 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5aac24fe7bfb7ec581ee497f75c91ab3f46c28ae | 314 | py | Python | onnx_tf/handlers/frontend/is_nan.py | rickyHong/onnx-tensorflow-repl | c17b84514866a5f75022d642a8c8ad0eb104148c | [
"Apache-2.0"
] | 18 | 2020-02-03T07:14:40.000Z | 2021-12-20T18:45:43.000Z | onnx_tf/handlers/frontend/is_nan.py | rickyHong/onnx-tensorflow-repl | c17b84514866a5f75022d642a8c8ad0eb104148c | [
"Apache-2.0"
] | 11 | 2020-01-28T23:16:25.000Z | 2022-02-10T01:04:56.000Z | onnx-tensorflow-master/onnx_tf/handlers/frontend/is_nan.py | sleepstagingrest/REST | cf0de7ae82b6b74fe23e9d057214970cd3c9672d | [
"MIT"
] | 2 | 2020-08-20T08:15:09.000Z | 2021-02-23T07:30:40.000Z | from onnx_tf.handlers.frontend_handler import FrontendHandler
from onnx_tf.handlers.handler import onnx_op
from onnx_tf.handlers.handler import tf_op
@onnx_op("IsNaN")
@tf_op("IsNan")
class IsNan(FrontendHandler):
@classmethod
def version_9(cls, node, **kwargs):
return cls.make_node_from_tf_node(node)
| 24.153846 | 61 | 0.796178 | 48 | 314 | 4.9375 | 0.416667 | 0.101266 | 0.126582 | 0.227848 | 0.261603 | 0.261603 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0.10828 | 314 | 12 | 62 | 26.166667 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0.031847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
5ae803311a8ccc672ea47ce9abc7a9ac94176f34 | 12,680 | py | Python | bad_channel_lhc15o_4_new.py | dhruvdixit/alice_calib_emcal | 26357206518511842c047c78c9b784acae6203e8 | [
"BSD-3-Clause-LBNL"
] | 1 | 2017-06-06T19:28:08.000Z | 2017-06-06T19:28:08.000Z | bad_channel_lhc15o_4_new.py | dhruvdixit/alice_calib_emcal | 26357206518511842c047c78c9b784acae6203e8 | [
"BSD-3-Clause-LBNL"
] | null | null | null | bad_channel_lhc15o_4_new.py | dhruvdixit/alice_calib_emcal | 26357206518511842c047c78c9b784acae6203e8 | [
"BSD-3-Clause-LBNL"
] | 1 | 2018-10-11T20:07:25.000Z | 2018-10-11T20:07:25.000Z | dead_emcal = [384, 385, 386, 387, 389, 391, 396, 398, 399, 438, 440, 441, 444, 447, 1534, 5121, 5122, 5123, 5131, 5168, 5181, 5341, 5343, 5826, 6641, 6930, 6934, 6940, 6941, 6943, 6976, 6979, 6984, 6985, 6986, 8576, 9282, 11233]
dead_dcal = [12623, 12803, 12805, 12815, 12822, 12828, 12831, 12859, 12927, 14119, 14231, 14307, 14403, 14558, 14695, 14736, 15202, 15203, 15205, 15211, 15295, 15323, 16091, 16429, 16488, 16528, 16531, 16532, 16585, 16656, 16663, 16666, 17641, 17642, 17647, 17654, 17656, 17662]
bad_emcal = [3, 56, 57, 58, 59, 60, 61, 62, 63, 74, 103, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 152, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 198, 287, 328, 353, 388, 390, 392, 393, 394, 395, 397, 432, 433, 434, 435, 436, 437, 439, 442, 443, 445, 446, 554, 594, 655, 720, 759, 764, 917, 1002, 1038, 1050, 1061, 1175, 1204, 1212, 1222, 1276, 1288, 1366, 1376, 1380, 1384, 1386, 1414, 1441, 1519, 1535, 1696, 1704, 1711, 1738, 1836, 1837, 1838, 1839, 1844, 1860, 1892, 1963, 1967, 1968, 2014, 2020, 2022, 2026, 2047, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2122, 2123, 2124, 2125, 2161, 2196, 2245, 2298, 2325, 2379, 2389, 2395, 2397, 2399, 2424, 2487, 2505, 2506, 2533, 2534, 2540, 2542, 2575, 2581, 2586, 2665, 2688, 2776, 2778, 2787, 2793, 2797, 2805, 2823, 2824, 2825, 2857, 2884, 2888, 2891, 2915, 2921, 2985, 3039, 3051, 3135, 3161, 3196, 3223, 3236, 3244, 3259, 3297, 3339, 3353, 3403, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, 3487, 3488, 3503, 3520, 3521, 3522, 3523, 3524, 3525, 3526, 3527, 3528, 3529, 3530, 3531, 3532, 3533, 3534, 3535, 3664, 3665, 3666, 3667, 3668, 3669, 3670, 3671, 3672, 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3712, 3713, 3714, 3715, 3716, 3717, 3718, 3719, 3720, 3721, 3722, 3723, 3724, 3725, 3726, 3727, 3732, 3740, 3748, 3754, 3772, 3796, 3826, 3839, 3840, 3854, 3906, 3908, 3914, 3940, 3962, 3974, 4011, 4026, 4027, 4047, 4058, 4129, 4212, 4230, 4236, 4282, 4299, 4320, 4372, 4421, 4516, 4530, 4531, 4532, 4538, 4543, 4569, 4596, 4605, 4613, 4614, 4621, 4627, 4637, 4817, 4835, 4837, 4838, 4839, 4846, 4847, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5034, 5035, 5036, 5037, 5038, 5039, 5120, 5124, 5125, 5126, 5127, 5128, 5129, 5130, 5132, 5133, 5134, 5135, 5169, 5170, 5171, 5172, 5173, 5174, 5175, 5176, 5177, 5178, 5179, 5180, 5182, 5183, 5231, 5328, 5329, 5330, 5331, 5332, 5333, 5334, 5335, 5336, 5337, 5338, 5339, 5340, 5448, 5460, 5608, 5662, 5663, 5714, 5824, 5831, 5832, 5833, 5850, 6064, 6080, 6081, 6082, 6083, 6084, 6085, 6086, 6087, 6088, 6089, 6090, 6091, 6092, 6093, 6094, 6095, 6104, 6128, 6129, 6130, 6131, 6132, 6133, 6134, 6135, 6136, 6137, 6138, 6139, 6140, 6141, 6142, 6143, 6184, 6275, 6331, 6340, 6481, 6645, 6647, 6649, 6650, 6701, 6735, 6811, 6886, 6928, 6929, 6931, 6932, 6933, 6935, 6936, 6937, 6938, 6939, 6942, 6977, 6978, 6980, 6981, 6982, 6983, 6987, 6988, 6989, 6990, 6991, 7089, 7150, 7321, 7366, 7371, 7417, 7425, 7430, 7491, 7572, 7793, 7808, 7809, 7812, 7813, 7814, 7815, 7817, 7821, 7822, 7823, 7862, 7863, 7868, 7869, 7870, 7871, 8047, 8244, 8260, 8275, 8340, 8352, 8353, 8356, 8357, 8372, 8420, 8453, 8577, 8578, 8579, 8580, 8581, 8582, 8583, 8584, 8585, 8586, 8587, 8588, 8589, 8590, 8591, 8610, 8624, 8625, 8626, 8627, 8628, 8629, 8630, 8631, 8632, 8633, 8634, 8635, 8636, 8637, 8638, 8639, 8724, 8807, 8809, 8813, 8848, 8849, 8850, 8851, 8852, 8853, 8854, 8855, 8856, 8857, 8858, 8859, 8860, 8861, 8862, 8863, 8896, 8897, 8898, 8899, 8900, 8901, 8902, 8903, 8904, 8905, 8906, 8907, 8908, 8909, 8910, 8911, 8916, 8938, 8944, 8947, 9078, 9136, 9137, 9138, 9139, 9140, 9144, 9146, 9190, 9191, 9202, 9217, 9219, 9269, 9286, 9291, 9338, 9354, 9357, 9361, 9533, 9598, 9646, 9703, 9706, 9769, 9798, 9801, 9802, 9807, 9819, 9849, 9872, 9874, 9878, 9927, 9940, 9942, 9943, 9945, 9951, 9960, 10078, 10079, 10091, 10138, 10139, 10142, 10164, 10171, 10203, 10271, 10304, 10305, 10308, 10309, 10310, 10312, 10313, 10315, 10316, 10317, 10318, 10319, 10326, 10355, 10356, 10357, 10358, 10359, 10363, 10364, 10365, 10366, 10367, 10414, 10415, 10451, 10505, 10560, 10561, 10562, 10563, 10564, 10565, 10566, 10567, 10568, 10569, 10570, 10571, 10572, 10573, 10574, 10575, 10608, 10609, 10610, 10611, 10612, 10613, 10614, 10615, 10616, 10617, 10618, 10619, 10620, 10621, 10622, 10623, 10666, 10759, 10823, 10829, 10831, 10846, 10921, 10942, 10943, 10981, 10982, 10988, 11034, 11042, 11044, 11048, 11050, 11051, 11052, 11091, 11093, 11095, 11097, 11099, 11102, 11135, 11141, 11148, 11150, 11182, 11197, 11198, 11232, 11234, 11235, 11236, 11237, 11238, 11239, 11240, 11241, 11242, 11243, 11244, 11245, 11246, 11247, 11280, 11281, 11282, 11283, 11284, 11285, 11286, 11287, 11288, 11289, 11290, 11291, 11292, 11293, 11294, 11295, 11411, 11462, 11525, 11551, 11630, 11647, 11738, 11904, 11905, 11906, 11907, 11908, 11909, 11910, 11911, 11912, 11913, 11914, 11915, 11916, 11917, 11918, 11919, 12032, 12033, 12034, 12035, 12036, 12037, 12038, 12039, 12040, 12041, 12042, 12043, 12044, 12045, 12046, 12047, 12127, 12147, 12160, 12161, 12162, 12163, 12164, 12165, 12166, 12167, 12168, 12169, 12170, 12171, 12172, 12173, 12174, 12175, 12276, 12278, 12280, 12282, 12284, 12286]
bad_dcal = [12320, 12321, 12322, 12323, 12324, 12325, 12326, 12327, 12328, 12329, 12330, 12331, 12332, 12333, 12334, 12335, 12360, 12363, 12368, 12369, 12370, 12371, 12372, 12373, 12374, 12375, 12376, 12377, 12378, 12379, 12380, 12381, 12382, 12383, 12607, 12608, 12609, 12610, 12613, 12614, 12615, 12616, 12617, 12618, 12620, 12621, 12622, 12778, 12781, 12783, 12800, 12801, 12802, 12806, 12809, 12810, 12811, 12814, 12818, 12821, 12826, 12829, 12848, 12850, 12851, 12853, 12856, 12857, 12858, 12862, 12870, 12871, 12874, 12879, 12916, 12919, 12922, 12925, 12926, 12988, 13049, 13053, 13055, 13056, 13058, 13059, 13064, 13068, 13120, 13122, 13123, 13126, 13130, 13131, 13156, 13248, 13249, 13250, 13260, 13263, 13280, 13281, 13282, 13284, 13286, 13287, 13288, 13290, 13292, 13293, 13294, 13392, 13394, 13395, 13398, 13399, 13400, 13402, 13403, 13405, 13406, 13407, 13433, 13439, 13459, 13463, 13464, 13465, 13466, 13467, 13469, 13470, 13471, 13476, 13477, 13478, 13479, 13481, 13483, 13485, 13486, 13487, 13508, 13509, 13510, 13517, 13524, 13553, 13556, 13558, 13559, 13574, 13578, 13589, 13780, 13786, 13796, 13798, 13828, 13835, 13847, 13848, 13864, 13865, 13866, 13867, 13903, 13921, 13926, 13933, 13953, 13968, 13969, 13972, 13973, 13975, 13981, 13983, 13985, 13988, 13989, 13996, 13997, 14016, 14017, 14018, 14019, 14020, 14021, 14023, 14024, 14025, 14029, 14058, 14060, 14068, 14069, 14070, 14071, 14076, 14077, 14078, 14079, 14116, 14117, 14125, 14157, 14191, 14193, 14207, 14225, 14228, 14229, 14233, 14234, 14236, 14237, 14239, 14249, 14304, 14305, 14306, 14308, 14309, 14311, 14312, 14313, 14314, 14315, 14317, 14318, 14319, 14320, 14325, 14326, 14362, 14363, 14373, 14374, 14400, 14401, 14402, 14404, 14405, 14406, 14407, 14409, 14410, 14411, 14413, 14414, 14415, 14438, 14442, 14446, 14447, 14498, 14501, 14502, 14503, 14505, 14506, 14544, 14549, 14550, 14553, 14554, 14557, 14559, 14592, 14594, 14598, 14604, 14605, 14607, 14608, 14609, 14610, 14611, 14613, 14616, 14617, 14618, 14620, 14621, 14622, 14623, 14624, 14625, 14626, 14627, 14628, 14629, 14630, 14631, 14632, 14633, 14634, 14635, 14636, 14637, 14638, 14639, 14640, 14647, 14659, 14660, 14661, 14662, 14663, 14668, 14669, 14672, 14679, 14688, 14689, 14690, 14691, 14692, 14693, 14694, 14696, 14697, 14698, 14699, 14700, 14701, 14702, 14703, 14704, 14705, 14706, 14707, 14708, 14709, 14711, 14712, 14713, 14716, 14717, 14722, 14724, 14725, 14726, 14727, 14729, 14730, 14731, 14732, 14733, 14734, 14735, 14737, 14738, 14739, 14741, 14742, 14744, 14745, 14746, 14747, 14750, 14754, 14755, 14756, 14757, 14758, 14760, 14761, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14770, 14772, 14773, 14774, 14775, 14776, 14777, 14778, 14779, 14782, 14783, 14839, 14862, 14867, 14872, 14874, 14876, 14895, 14977, 14980, 14991, 15009, 15012, 15015, 15020, 15027, 15033, 15094, 15137, 15143, 15152, 15155, 15158, 15164, 15167, 15200, 15201, 15204, 15206, 15207, 15208, 15209, 15210, 15212, 15213, 15214, 15215, 15217, 15266, 15272, 15276, 15280, 15281, 15282, 15284, 15285, 15286, 15287, 15288, 15289, 15290, 15291, 15292, 15293, 15294, 15296, 15314, 15315, 15318, 15322, 15326, 15327, 15328, 15330, 15331, 15332, 15333, 15334, 15335, 15336, 15338, 15339, 15341, 15342, 15343, 15348, 15350, 15352, 15354, 15359, 15365, 15398, 15445, 15460, 15463, 15469, 15476, 15552, 15553, 15554, 15556, 15557, 15560, 15561, 15563, 15564, 15565, 15567, 15603, 15605, 15607, 15612, 15613, 15614, 15615, 15624, 15670, 15690, 15719, 15754, 15776, 15780, 15783, 15785, 15789, 15790, 15791, 15821, 15870, 15872, 15877, 15908, 15936, 15938, 15941, 15949, 15955, 15958, 15963, 15965, 15967, 15969, 15972, 15979, 15983, 16026, 16082, 16083, 16088, 16089, 16090, 16094, 16215, 16258, 16268, 16304, 16306, 16307, 16349, 16388, 16395, 16416, 16417, 16418, 16419, 16420, 16421, 16422, 16425, 16426, 16427, 16428, 16430, 16431, 16440, 16443, 16446, 16464, 16465, 16466, 16467, 16468, 16469, 16471, 16472, 16473, 16474, 16475, 16476, 16477, 16478, 16479, 16480, 16481, 16482, 16483, 16485, 16489, 16491, 16492, 16493, 16496, 16497, 16498, 16501, 16502, 16506, 16508, 16509, 16510, 16511, 16529, 16530, 16533, 16534, 16535, 16536, 16537, 16538, 16539, 16540, 16541, 16542, 16543, 16576, 16577, 16578, 16579, 16580, 16581, 16582, 16583, 16584, 16586, 16587, 16588, 16589, 16590, 16591, 16608, 16609, 16610, 16611, 16612, 16613, 16614, 16615, 16616, 16617, 16618, 16619, 16620, 16621, 16622, 16623, 16634, 16657, 16658, 16659, 16660, 16661, 16662, 16664, 16665, 16667, 16668, 16669, 16670, 16671, 16702, 16784, 16785, 16789, 16819, 16821, 16824, 16826, 16830, 16886, 16907, 16911, 17046, 17088, 17090, 17091, 17097, 17100, 17101, 17107, 17117, 17168, 17185, 17202, 17204, 17208, 17232, 17233, 17234, 17236, 17237, 17264, 17291, 17295, 17312, 17313, 17314, 17315, 17316, 17317, 17318, 17319, 17320, 17321, 17322, 17323, 17324, 17325, 17326, 17327, 17328, 17329, 17330, 17331, 17332, 17333, 17334, 17335, 17336, 17337, 17338, 17339, 17340, 17341, 17342, 17343, 17377, 17396, 17442, 17452, 17463, 17531, 17537, 17597, 17632, 17633, 17634, 17635, 17636, 17637, 17638, 17639, 17640, 17643, 17644, 17645, 17646, 17648, 17649, 17650, 17651, 17652, 17653, 17655, 17657, 17658, 17659, 17660, 17661, 17663]
warm_emcal = [594, 1276, 1384, 2122, 2379, 2778, 3135, 3485, 3527, 4047, 4236, 4299, 4531, 4605, 5608, 5824, 5832, 5833, 6340, 6886, 7089, 7808, 7809, 7812, 7813, 7814, 7815, 7862, 7863, 7868, 7869, 7871, 8813, 8850, 8855, 8857, 8858, 8859, 8860, 8861, 8863, 8896, 8897, 8901, 8904, 8905, 8906, 8907, 8908, 8909, 8911, 8944, 8947, 9136, 9137, 9138, 9139, 9140, 9144, 9146, 9190, 9191, 9202, 9219, 9819, 9849, 9872, 9878, 10091, 10271, 10304, 10305, 10308, 10309, 10310, 10312, 10313, 10315, 10316, 10317, 10355, 10356, 10359, 10364, 10414, 10823, 10846, 10942, 10943, 11034, 11044, 11050, 11051, 11052, 11091, 11093, 11095, 11097, 11099, 11102, 11141, 11148, 11150, 11182, 11197, 11198, 11411, 11525, 11551, 11647, 12036, 12037, 12038, 12039, 12127, 12276, 12278, 12280, 12282, 12284, 12286]
warm_dcal = [12363, 12609, 12610, 12613, 12615, 12616, 12617, 12618, 12620, 12778, 12801, 12811, 12814, 12818, 12829, 12850, 12851, 12853, 12858, 12916, 12922, 12925, 12926, 12988, 13058, 13120, 13130, 13131, 13263, 13290, 13293, 13395, 13398, 13399, 13405, 13469, 13477, 13479, 13481, 13486, 13487, 13553, 13574, 13780, 13786, 13796, 13798, 13848, 13864, 13865, 13866, 13867, 13921, 13975, 13983, 13985, 13989, 13996, 13997, 14018, 14019, 14020, 14021, 14023, 14024, 14025, 14029, 14068, 14069, 14070, 14071, 14076, 14077, 14078, 14079, 14116, 14304, 14320, 14400, 14401, 14405, 14407, 14411, 14414, 14498, 14506, 14550, 14598, 14607, 14609, 14611, 14621, 14661, 14688, 14690, 14703, 14705, 14706, 14707, 14708, 14712, 14716, 14717, 14722, 14725, 14739, 14744, 14746, 14755, 14757, 14761, 14762, 14768, 14770, 14774, 14776, 14778, 14876, 15027, 15167, 15287, 15289, 15290, 15292, 15314, 15315, 15322, 15336, 15339, 15341, 15342, 15359, 15365, 15460, 15476, 15552, 15554, 15556, 15557, 15560, 15561, 15563, 15564, 15565, 15567, 15603, 15605, 15607, 15612, 15613, 15614, 15615, 15776, 15790, 15791, 15941, 15967, 15983, 16026, 16082, 16083, 16090, 16306, 16472, 16480, 16489, 16491, 16497, 16502, 16508, 16510, 16907, 16911, 17088, 17090, 17100, 17396, 17442, 17452, 17463, 17537]
bad_all = dead_emcal + dead_dcal + bad_emcal + bad_dcal + warm_emcal + warm_dcal
| 905.714286 | 5,226 | 0.696451 | 1,926 | 12,680 | 4.578401 | 0.832814 | 0.002041 | 0.002722 | 0.003629 | 0.109549 | 0.093672 | 0.069177 | 0.069177 | 0.060104 | 0.039692 | 0 | 0.81068 | 0.152287 | 12,680 | 13 | 5,227 | 975.384615 | 0.009675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
852c1ec867dadeea2b347e807e1aff1c74406a3d | 116,811 | py | Python | pysnmp_mibs/PKTC-IETF-SIG-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/PKTC-IETF-SIG-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/PKTC-IETF-SIG-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module PKTC-IETF-SIG-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/PKTC-IETF-SIG-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:23:55 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( OctetString, ObjectIdentifier, Integer, ) = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint")
( Dscp, ) = mibBuilder.importSymbols("DIFFSERV-DSCP-TC", "Dscp")
( ifIndex, ) = mibBuilder.importSymbols("IF-MIB", "ifIndex")
( InetAddress, InetPortNumber, InetAddressType, ) = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetPortNumber", "InetAddressType")
( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
( ModuleCompliance, ObjectGroup, NotificationGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
( iso, Integer32, Counter32, ObjectIdentity, TimeTicks, Bits, Counter64, IpAddress, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, mib_2, MibIdentifier, Gauge32, Unsigned32, NotificationType, ) = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Integer32", "Counter32", "ObjectIdentity", "TimeTicks", "Bits", "Counter64", "IpAddress", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "mib-2", "MibIdentifier", "Gauge32", "Unsigned32", "NotificationType")
( TruthValue, DisplayString, TextualConvention, RowStatus, ) = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "DisplayString", "TextualConvention", "RowStatus")
pktcIetfSigMib = ModuleIdentity((1, 3, 6, 1, 2, 1, 169)).setRevisions(("2007-12-18 00:00",))
if mibBuilder.loadTexts: pktcIetfSigMib.setLastUpdated('200712180000Z')
if mibBuilder.loadTexts: pktcIetfSigMib.setOrganization('IETF IPCDN Working Group')
if mibBuilder.loadTexts: pktcIetfSigMib.setContactInfo('Sumanth Channabasappa\n Cable Television Laboratories, Inc.\n 858 Coal Creek Circle,\n Louisville, CO 80027, USA\n Phone: +1 303-661-3307\n Email: Sumanth@cablelabs.com\n\n Gordon Beacham\n Motorola, Inc.\n 6450 Sequence Drive, Bldg. 1\n San Diego, CA 92121, USA\n Phone: +1 858-404-2334\n Email: gordon.beacham@motorola.com\n\n Satish Kumar Mudugere Eswaraiah\n Texas Instruments India (P) Ltd.,\n Golf view, Wind Tunnel Road\n Murugesh Palya\n Bangalore 560 017, INDIA\n Phone: +91 80 5269451\n Email: satish.kumar@ti.com\n\n IETF IPCDN Working Group\n General Discussion: ipcdn@ietf.org\n Subscribe: http://www.ietf.org/mailman/listinfo/ipcdn\n Archive: ftp://ftp.ietf.org/ietf-mail-archive/ipcdn\n Co-Chair: Jean-Francois Mule, jf.mule@cablelabs.com\n Co-Chair: Richard Woundy, Richard_Woundy@cable.comcast.com')
if mibBuilder.loadTexts: pktcIetfSigMib.setDescription('This MIB module supplies the basic management\n objects for the PacketCable and IPCablecom Signaling\n protocols. This version of the MIB includes\n common signaling and Network Call Signaling\n\n\n\n (NCS)-related signaling objects.\n\n Copyright (C) The IETF Trust (2008). This version of\n this MIB module is part of RFC 5098; see the RFC itself for\n full legal notices.')
class TenthdBm(Integer32, TextualConvention):
displayHint = 'd-1'
class PktcCodecType(Integer32, TextualConvention):
subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,))
namedValues = NamedValues(("other", 1), ("unknown", 2), ("g729", 3), ("reserved", 4), ("g729E", 5), ("pcmu", 6), ("g726at32", 7), ("g728", 8), ("pcma", 9), ("g726at16", 10), ("g726at24", 11), ("g726at40", 12), ("ilbc", 13), ("bv16", 14),)
class PktcRingCadence(OctetString, TextualConvention):
subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(4,36)
class PktcSigType(Integer32, TextualConvention):
subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(1, 2,))
namedValues = NamedValues(("other", 1), ("ncs", 2),)
class DtmfCode(Integer32, TextualConvention):
subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,))
namedValues = NamedValues(("dtmfcode0", 0), ("dtmfcode1", 1), ("dtmfcode2", 2), ("dtmfcode3", 3), ("dtmfcode4", 4), ("dtmfcode5", 5), ("dtmfcode6", 6), ("dtmfcode7", 7), ("dtmfcode8", 8), ("dtmfcode9", 9), ("dtmfcodeStar", 10), ("dtmfcodeHash", 11), ("dtmfcodeA", 12), ("dtmfcodeB", 13), ("dtmfcodeC", 14), ("dtmfcodeD", 15),)
class PktcSubscriberSideSigProtocol(Integer32, TextualConvention):
subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(1, 2,))
namedValues = NamedValues(("fsk", 1), ("dtmf", 2),)
pktcSigMibObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 169, 1))
pktcSigDevObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 169, 1, 1))
pktcSigEndPntConfigObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 169, 1, 2))
pktcSigDevCodecTable = MibTable((1, 3, 6, 1, 2, 1, 169, 1, 1, 1), )
if mibBuilder.loadTexts: pktcSigDevCodecTable.setDescription(' This table describes the MTA-supported codec types. An MTA\n MUST populate this table with all possible combinations of\n codecs it supports for simultaneous operation. For example,\n an MTA with two endpoints may be designed with a particular\n Digital Signal Processing (DSP) and memory architecture that\n allows it to support the following fixed combinations of\n codecs for simultaneous operation:\n\n Codec Type Maximum Number of Simultaneous Codecs\n PCMA 3\n\n PCMA 2\n PCMU 1\n\n PCMA 1\n\n PCMU 2\n\n PCMU 3\n\n PCMA 1\n G729 1\n\n G729 2\n\n PCMU 1\n G729 1\n\n Based on this example, the entries in the codec table\n would be:\n\n pktcSigDev pktcSigDev pktcSigDev\n CodecComboIndex CodecType CodecMax\n 1 pcma 3\n 2 pcma 2\n 2 pcmu 1\n\n\n\n 3 pcma 1\n 3 pcmu 2\n 4 pcmu 3\n 5 pcma 1\n 5 g729 1\n 6 g729 2\n 7 pcmu 1\n 7 g729 1\n\n An operator querying this table is able to determine all\n possible codec combinations the MTA is capable of\n simultaneously supporting.\n\n This table MUST NOT include non-voice codecs.')
pktcSigDevCodecEntry = MibTableRow((1, 3, 6, 1, 2, 1, 169, 1, 1, 1, 1), ).setIndexNames((0, "PKTC-IETF-SIG-MIB", "pktcSigDevCodecComboIndex"), (0, "PKTC-IETF-SIG-MIB", "pktcSigDevCodecType"))
if mibBuilder.loadTexts: pktcSigDevCodecEntry.setDescription('Each entry represents the maximum number of active\n connections with a particular codec the MTA is capable of\n supporting. Each row is indexed by a composite key\n consisting of a number enumerating the particular codec\n combination and the codec type.')
pktcSigDevCodecComboIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,255)))
if mibBuilder.loadTexts: pktcSigDevCodecComboIndex.setDescription(' The index value that enumerates a particular codec\n combination in the pktcSigDevCodecTable.')
pktcSigDevCodecType = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 1, 1, 2), PktcCodecType())
if mibBuilder.loadTexts: pktcSigDevCodecType.setDescription(' A codec type supported by this MTA.')
pktcSigDevCodecMax = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevCodecMax.setDescription(' The maximum number of simultaneous sessions of a\n particular codec that the MTA can support.')
pktcSigDevEchoCancellation = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevEchoCancellation.setDescription(' This object specifies if the device is capable of echo\n cancellation. The MTA MUST set this MIB object to a\n value of true(1) if it is capable of echo\n cancellation, and a value of false(2) if not.')
pktcSigDevSilenceSuppression = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevSilenceSuppression.setDescription(' This object specifies if the device is capable of\n silence suppression (as a result of Voice Activity\n Detection). The MTA MUST set this MIB object to a\n value of true(1) if it is capable of silence\n suppression, and a value of false(2) if not.')
pktcSigDevCidSigProtocol = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 4), PktcSubscriberSideSigProtocol().clone('fsk')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidSigProtocol.setDescription('This object is used to configure the subscriber-line\n protocol used for signaling on-hook caller id information.\n\n\n\n Different countries define different caller id signaling\n protocols to support caller identification.\n\n Setting this object at a value fsk(1) sets the subscriber\n line protocol to be Frequency Shift Keying (FSK).\n\n Setting this object at a value dtmf(2) sets the subscriber\n line protocol to be Dual-Tone Multi-Frequency (DTMF).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR0Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 5), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR0Cadence.setDescription(' This object specifies ring cadence 0 (a user-defined\n field).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR1Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 6), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR1Cadence.setDescription(' This object specifies ring cadence 1 (a user-defined\n field).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR2Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 7), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR2Cadence.setDescription(' This object specifies ring cadence 2 (a user-defined\n field).\n\n\n\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR3Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 8), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR3Cadence.setDescription(' This object specifies ring cadence 3 (a user-defined\n field).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR4Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 9), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR4Cadence.setDescription(' This object specifies ring cadence 4 (a user-defined\n field).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR5Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 10), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR5Cadence.setDescription(' This object specifies ring cadence 5 (a user-defined\n field).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR6Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 11), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR6Cadence.setDescription(' This object specifies ring cadence 6 (a user-defined\n field).\n\n\n\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevR7Cadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 12), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevR7Cadence.setDescription(' This object specifies ring cadence 7 (a user-defined\n field).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevRgCadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 13), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevRgCadence.setDescription(' This object specifies ring cadence rg (a user-defined\n field).\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevRsCadence = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 14), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevRsCadence.setDescription(' This object specifies ring cadence rs (a user-defined\n field). The MTA MUST reject any attempt to make this object\n repeatable.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDefCallSigDscp = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 15), Dscp()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDefCallSigDscp.setDescription(' The default value used in the IP header for setting the\n Differentiated Services Code Point (DSCP) value for call\n\n\n\n signaling.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDefMediaStreamDscp = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 16), Dscp()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDefMediaStreamDscp.setDescription(' This object contains the default value used in the IP\n header for setting the Differentiated Services Code Point\n (DSCP) value for media stream packets. The MTA MUST NOT\n update this object with the value supplied by the CMS in\n the NCS messages (if present). Any currently active\n connections are not affected by updates to this object.\n When the value of this object is updated by SNMP, the MTA\n MUST use the new value as a default starting only from\n new connections.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigCapabilityTable = MibTable((1, 3, 6, 1, 2, 1, 169, 1, 1, 17), )
if mibBuilder.loadTexts: pktcSigCapabilityTable.setDescription(' This table describes the signaling types supported by this\n MTA.')
pktcSigCapabilityEntry = MibTableRow((1, 3, 6, 1, 2, 1, 169, 1, 1, 17, 1), ).setIndexNames((0, "PKTC-IETF-SIG-MIB", "pktcSigCapabilityIndex"))
if mibBuilder.loadTexts: pktcSigCapabilityEntry.setDescription(' Entries in pktcMtaDevSigCapabilityTable - list of\n supported signaling types, versions, and vendor extensions\n\n\n\n for this MTA. Each entry in the list provides for one\n signaling type and version combination. If the device\n supports multiple versions of the same signaling type, it\n will require multiple entries.')
pktcSigCapabilityIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 17, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,255)))
if mibBuilder.loadTexts: pktcSigCapabilityIndex.setDescription(' The index value that uniquely identifies an entry in the\n pktcSigCapabilityTable.')
pktcSigCapabilityType = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 17, 1, 2), PktcSigType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigCapabilityType.setDescription(' This object identifies the type of signaling used. This\n value has to be associated with a single signaling\n version.')
pktcSigCapabilityVersion = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 17, 1, 3), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigCapabilityVersion.setDescription(' Provides the version of the signaling type - reference\n pktcSigCapabilityType. Examples would be 1.0 or 2.33 etc.')
pktcSigCapabilityVendorExt = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 17, 1, 4), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigCapabilityVendorExt.setDescription(' The vendor extension allows vendors to provide a list of\n\n\n\n additional capabilities.\n\n The syntax for this MIB object in ABNF ([RFC5234]) is\n specified to be zero or more occurrences of vendor\n extensions, as follows:\n\n pktcSigCapabilityVendorExt = *(vendor-extension)\n vendor-extension = (ext symbol alphanum) DQUOTE ; DQUOTE\n ext = DQUOTE %x58 DQUOTE\n symbol = (DQUOTE %x2D DQUOTE)/(DQUOTE %x2D DQUOTE)\n alphanum = 1*6(ALPHA/DIGIT)\n\n ')
pktcSigDefNcsReceiveUdpPort = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 18), InetPortNumber().subtype(subtypeSpec=ValueRangeConstraint(1025,65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDefNcsReceiveUdpPort.setDescription(" This object contains the MTA User Datagram Protocol (UDP)\n receive port that is being used for NCS call signaling.\n This object should only be changed by the configuration\n file.\n\n Unless changed via configuration, this MIB object MUST\n reflect a value of '2427'.")
pktcSigPowerRingFrequency = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9,))).clone(namedValues=NamedValues(("f20Hz", 1), ("f25Hz", 2), ("f33Point33Hz", 3), ("f50Hz", 4), ("f15Hz", 5), ("f16Hz", 6), ("f22Hz", 7), ("f23Hz", 8), ("f45Hz", 9),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigPowerRingFrequency.setDescription(' This object must only be provided via the configuration\n file during the provisioning process. The power ring\n\n\n\n frequency is the frequency at which the sinusoidal voltage\n must travel down the twisted pair to make terminal\n equipment ring. Different countries define different\n electrical characteristics to make terminal equipment\n ring.\n\n The f20Hz setting corresponds to a power ring frequency\n of 20 Hertz. The f25Hz setting corresponds to a power ring\n frequency of 25 Hertz. The f33Point33Hz setting\n corresponds to a power ring frequency of 33.33 Hertz. The\n f50Hz setting corresponds to a power ring frequency of 50\n Hertz. The f15Hz setting corresponds to a power ring\n frequency of 15 Hertz. The f16Hz setting corresponds to a\n power ring frequency of 16 Hertz. The f22Hz setting\n corresponds to a power ring frequency of 22 Hertz. The\n f23Hz setting corresponds to a power ring frequency of 23\n Hertz. The f45Hz setting corresponds to a power ring\n frequency of 45 Hertz.')
pktcSigPulseSignalTable = MibTable((1, 3, 6, 1, 2, 1, 169, 1, 1, 20), )
if mibBuilder.loadTexts: pktcSigPulseSignalTable.setDescription(' The Pulse signal table defines the pulse signal operation.\n There are nine types of international pulse signals,\n with each signal having a set of provisionable parameters.\n The values of the MIB objects in this table take effect\n only if these parameters are not defined via signaling, in\n which case, the latter determines the values of the\n parameters. The MIB objects in this table do not persist\n across MTA reboots.')
pktcSigPulseSignalEntry = MibTableRow((1, 3, 6, 1, 2, 1, 169, 1, 1, 20, 1), ).setIndexNames((0, "PKTC-IETF-SIG-MIB", "pktcSigPulseSignalType"))
if mibBuilder.loadTexts: pktcSigPulseSignalEntry.setDescription(' This object defines the set of parameters associated with\n each particular value of pktcSigPulseSignalType. Each\n entry in the pktcSigPulseSignalTable is indexed by the\n pktcSigPulseSignalType object.\n\n\n\n The conceptual rows MUST NOT persist across MTA reboots.')
pktcSigPulseSignalType = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 20, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9,))).clone(namedValues=NamedValues(("initialRing", 1), ("pulseLoopClose", 2), ("pulseLoopOpen", 3), ("enableMeterPulse", 4), ("meterPulseBurst", 5), ("pulseNoBattery", 6), ("pulseNormalPolarity", 7), ("pulseReducedBattery", 8), ("pulseReversePolarity", 9),)))
if mibBuilder.loadTexts: pktcSigPulseSignalType.setDescription('There are nine types of international pulse signals. These\n signals are defined as follows:\n initial ring\n pulse loop close\n pulse loop open\n enable meter pulse\n meter pulse burst\n pulse no battery\n pulse normal polarity\n pulse reduced battery\n pulse reverse polarity')
pktcSigPulseSignalFrequency = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 20, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("twentyfive", 1), ("twelvethousand", 2), ("sixteenthousand", 3),))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigPulseSignalFrequency.setDescription(" This object is only applicable to the initialRing,\n enableMeterPulse, and meterPulseBurst signal types. This\n object identifies the frequency of the generated signal.\n The following table defines the default values for this\n object depending on signal type:\n\n pktcSigPulseSignalType Default\n initialRing 25\n enableMeterPulse 16000\n meterPulseBurst 16000\n\n The value of twentyfive MUST only be used for the\n initialRing signal type. The values of twelvethousand and\n sixteenthousand MUST only be used for enableMeterPulse and\n meterPulseBurst signal types. An attempt to set this\n object while the value of pktcSigPulseSignalType is not\n initialRing, enableMeterPulse, or meterPulseBurst will\n result in an 'inconsistentValue' error.")
pktcSigPulseSignalDbLevel = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 20, 1, 3), TenthdBm().subtype(subtypeSpec=ValueRangeConstraint(-350,0)).clone(-135)).setUnits('1/10 of a dBm').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigPulseSignalDbLevel.setDescription(" This object is only applicable to the enableMeterPulse and\n meterPulseBurst signal types. This is the decibel level\n for each frequency at which tones could be generated at\n the a and b terminals (TE connection point). An attempt to\n set this object while the value of pktcSigPulseSignalType\n is not enableMeterPulse or meterPulseBurst will result in\n an 'inconsistentValue' error.")
pktcSigPulseSignalDuration = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 20, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,5000))).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigPulseSignalDuration.setDescription(" This object specifies the pulse duration for each\n signal type. In addition, the MTA must accept the values\n in the incremental steps specific for each signal type.\n The following table defines the default values and the\n incremental steps for this object depending on the signal\n type:\n\n pktcSigPulseSignaltype Default (ms) Increment (ms)\n initialRing 200 50\n pulseLoopClose 200 10\n pulseLoopOpen 200 10\n enableMeterPulse 150 10\n meterPulseBurst 150 10\n pulseNoBattery 200 10\n pulseNormalPolarity 200 10\n pulseReducedBattery 200 10\n pulseReversePolarity 200 10\n\n An attempt to set this object to a value that does not\n fall on one of the increment boundaries, or on the wrong\n increment boundary for the specific signal type, will\n result in an 'inconsistentValue' error.")
pktcSigPulseSignalPulseInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 20, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,5000))).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigPulseSignalPulseInterval.setDescription(" This object specifies the repeat interval, or the period,\n for each signal type. In addition, the MTA must accept\n the values in the incremental steps specific for each\n signal type. The following table defines the default\n values and the incremental steps for this object, depending\n on the signal type:\n\n pktcSigPulseSignaltype Default (ms) Increment (ms)\n initialRing 200 50\n pulseLoopClose 1000 10\n pulseLoopOpen 1000 10\n\n\n\n enableMeterPulse 1000 10\n meterPulseBurst 1000 10\n pulseNoBattery 1000 10\n pulseNormalPolarity 1000 10\n pulseReducedBattery 1000 10\n pulseReversePolarity 1000 10\n\n An attempt to set this object to a value that does not\n fall on one of the increment boundaries, or on the wrong\n increment boundary for the specific signal type, will\n result in an 'inconsistentValue' error.")
pktcSigPulseSignalRepeatCount = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 20, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigPulseSignalRepeatCount.setDescription(" This object specifies how many times to repeat a pulse.\n This object is not used by the enableMeterPulse signal\n type, and in that case, the value is irrelevant. The\n following table defines the default values and the valid\n ranges for this object, depending on the signal type:\n\n pktcSigPulseSignaltype Default Range\n\n initialRing 1 1-5\n pulseLoopClose 1 1-50\n pulseLoopOpen 1 1-50\n enableMeterPulse (any value)(but not used)\n meterPulseBurst 1 1-50\n pulseNoBattery 1 1-50\n pulseNormalPolarity 1 1-50\n pulseReducedBattery 1 1-50\n pulseReversePolarity 1 1-50\n\n An attempt to set this object to a value that does not\n fall within the range for the specific\n signal type will result in an 'inconsistentValue' error.")
pktcSigDevCidMode = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5,))).clone(namedValues=NamedValues(("duringRingingETS", 1), ("dtAsETS", 2), ("rpAsETS", 3), ("lrAsETS", 4), ("lrETS", 5),)).clone('rpAsETS')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidMode.setDescription(' For on-hook caller id, pktcSigDevCidMode selects the method\n for representing and signaling caller identification. For\n the duringRingingETS method, the Frequency Shift Keying\n (FSK) or the Dual-Tone Multi-Frequency (DTMF) containing\n the caller identification information is sent between the\n first and second ring pattern.\n\n For the dtAsETS,rpAsETS, lrAsETS and lrETS\n methods, the FSK or DTMF containing the caller id\n information is sent before the first ring pattern.\n\n For the dtAsETS method, the FSK or DTMF is sent after the\n Dual Tone Alert Signal. For the rpAsETS method, the FSK or\n DTMF is sent after a Ring Pulse.\n\n For the lrAsETS method, the Line Reversal occurs first,\n then the Dual Tone Alert Signal, and, finally, the FSK or\n DTMF is sent.\n\n For the lrETS method, the Line Reversal occurs first,\n then the FSK or DTMF is sent.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevCidAfterRing = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 22), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(50,2000),)).clone(550)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidAfterRing.setDescription(" This object specifies the delay between the end of first\n ringing pattern and the start of the transmission of the\n FSK or DTMF containing the caller id information. It is\n only used when pktcSigDevCidMode is set to a value of\n 'duringRingingETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n\n\n\n (pktcSigDevCidMode), and MUST be followed:\n\n Value of pktcSigDevCidMode Default value\n\n duringringingETS 550 ms\n dtAsETS any value (not used)\n rpAsETS any value (not used)\n lrAsETS any value (not used)\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n pktcSigDevCidMode is not duringringingETS will result in\n an 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevCidAfterDTAS = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 23), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(45,500),)).clone(50)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidAfterDTAS.setDescription(" This object specifies the delay between the end of the\n Dual Tone Alert Signal (DT-AS) and the start of the\n transmission of the FSK or DTMF containing the caller id\n information. This object is only used when\n pktcSigDevCidMode is set to a value of 'dtAsETS' or\n 'lrAsETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevCidMode), and MUST be followed:\n\n Value of pktcSigDevCidMode Default value\n\n\n duringringingETS any value (not used)\n dtAsETS 50 ms\n rpAsETS any value (not used)\n lrAsETS 50 ms\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n\n\n\n pktcSigDevCidMode is not 'dtAsETS' or 'lrAsETS' will\n result in an 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevCidAfterRPAS = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 24), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(500,800),)).clone(650)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidAfterRPAS.setDescription(" This object specifies the delay between the end of the\n Ring Pulse Alert Signal (RP-AS) and the start of the\n transmission of the FSK or DTMF containing the caller id\n information. This MIB object is only used when\n pktcSigDevCidMode is set to a value of 'rpAsETS'.\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevCidMode), and MUST be followed:\n\n Value of pktcSigDevCidMode Default value\n\n duringringingETS any value (not used)\n dtAsETS any value (not used)\n rpAsETS 650 ms\n lrAsETS any value (not used)\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n pktcSigDevCidMode is not 'rpAsETS' will result in an\n 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevRingAfterCID = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 25), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(50,500),)).clone(250)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevRingAfterCID.setDescription(" This object specifies the delay between the end of the\n complete transmission of the FSK or DTMF containing the\n caller id information and the start of the first ring\n pattern. It is only used when pktcSigDevCidMode is\n set to a value of 'dtAsETS', 'rpAsETS', 'lrAsETS' or\n 'lrETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevCidMode), and MUST be followed:\n\n Value of pktcSigDevCidMode Default value\n\n duringringingETS any value (not used)\n dtAsETS 250 ms\n rpAsETS 250 ms\n lrAsETS 250 ms\n lrETS 250 ms\n\n An attempt to set this object while the value of\n pktcSigDevCidMode is not 'dtAsETS', 'rpAsETS',\n 'lrAsETS', or 'lrETS' will result in an 'inconsistent\n value' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevCidDTASAfterLR = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 26), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(50,655)).clone(250)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidDTASAfterLR.setDescription(" This object specifies the delay between the end of the\n Line Reversal and the start of the Dual Tone Alert Signal\n (DT-AS). This object is only used when pktcSigDevCidMode\n is set to a value of 'lrAsETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevCidMode), and MUST be followed:\n\n\n\n\n Value of pktcSigDevCidMode Default value\n\n duringringingETS any value (not used)\n dtAsETS any value (not used)\n rpAsETS any value (not used)\n lrAsETS 250 ms\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n pktcSigDevCidMode is not lrAsETS will result in an\n 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevVmwiMode = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5,))).clone(namedValues=NamedValues(("dtAsETS", 1), ("rpAsETS", 2), ("lrAsETS", 3), ("osi", 4), ("lrETS", 5),)).clone('rpAsETS')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiMode.setDescription(' For visual message waiting indicator (VMWI),\n pktcSigDevVmwiMode selects the alerting signal method. For\n the dtAsETS, rpAsETS, lrAsETS, osi, and lrETS methods,\n the FSK containing the VMWI information is sent after an\n alerting signal.\n\n For the dtAsETS method, the FSK, or DTMF\n is sent after the Dual Tone Alert Signal. For the rpAsETS\n method, the FSK or DTMF is sent after a Ring Pulse.\n\n For the lrAsETS method, the Line Reversal occurs first,\n then the Dual Tone Alert Signal, and, finally, the FSK or\n DTMF is sent.\n\n For the OSI method, the FSK or DTMF is sent after the Open\n Switching Interval.\n\n\n\n\n For the lrETS method, the Line Reversal occurs first,\n then the FSK or DTMF is sent.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevVmwiAfterDTAS = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 28), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(45,500),)).clone(50)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiAfterDTAS.setDescription(" This object specifies the delay between the end of the\n Dual Tone Alert Signal (DT-AS) and the start of the\n transmission of the FSK or DTMF containing the VMWI\n information.\n\n This object is only used when pktcSigDevVmwiMode is\n set to a value of 'dtAsETS' or 'lrAsETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevVmwiMode), and MUST be followed:\n\n Value of pktcSigDevVmwiMode Default value\n\n dtAsETS 50 ms\n rpAsETS any value (not used)\n lrAsETS 50 ms\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n pktcSigDevVmwiMode is not 'dtAsETS' or 'lrAsETS' will\n result in an 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevVmwiAfterRPAS = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 29), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(500,800),)).clone(650)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiAfterRPAS.setDescription(" This object specifies the delay between the end of the\n Ring Pulse Alert Signal (RP-AS) and the start of the\n transmission of the FSK or DTMF containing the VMWI\n information.\n\n This object is only used when pktcSigDevVmwiMode is\n set to a value of 'rpAsETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevVmwiMode), and MUST be followed:\n\n Value of pktcSigDevVmwiMode Default value\n\n dtAsETS any value (not used)\n rpAsETS 650 ms\n lrAsETS any value (not used)\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n pktcSigDevVmwiMode is not 'rpAsETS' will result in an\n 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevVmwiDTASAfterLR = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 30), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(50,655),)).clone(250)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiDTASAfterLR.setDescription(" This object specifies the delay between the end of the\n Line Reversal and the start of the Dual Tone Alert Signal\n (DT-AS) for VMWI information. This object is only used\n when pktcSigDevVmwiMode is set to a value of 'lrAsETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevVmwiMode), and MUST be followed:\n\n\n\n\n Value of pktcSigDevVmwiMode Default value\n\n dtAsETS any value (not used)\n rpAsETS any value (not used)\n lrAsETS 250 ms\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n pktcSigDevVmwiMode is not 'lrAsETS' will result in an\n 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevRingCadenceTable = MibTable((1, 3, 6, 1, 2, 1, 169, 1, 1, 31), )
if mibBuilder.loadTexts: pktcSigDevRingCadenceTable.setDescription('Cadence rings are defined by the telco governing\n body for each country. The MTA must be able to support\n various ranges of cadence patterns and cadence periods.\n The MTA will be able to support country-specific\n provisioning of the cadence and idle period. Each\n cadence pattern will be assigned a unique value ranging\n from 0-127 (inclusive) corresponding to the value of x,\n where x is the value sent in the cadence ringing (cr)\n signal cr(x), requested per the appropriate NCS\n message, and defined in the E package. The MTA will derive\n the cadence periods from the ring cadence table entry, as\n provisioned by the customer. The MTA is allowed to provide\n appropriate default values for each of the ring cadences.\n This table only needs to be supported when the MTA\n implements the E package.')
pktcSigDevRingCadenceEntry = MibTableRow((1, 3, 6, 1, 2, 1, 169, 1, 1, 31, 1), ).setIndexNames((0, "PKTC-IETF-SIG-MIB", "pktcSigDevRingCadenceIndex"))
if mibBuilder.loadTexts: pktcSigDevRingCadenceEntry.setDescription(' Each entry in this row corresponds to a ring cadence\n that is being supported by the device. The conceptual\n rows MUST NOT persist across MTA reboots.')
pktcSigDevRingCadenceIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 31, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,127)))
if mibBuilder.loadTexts: pktcSigDevRingCadenceIndex.setDescription(' A unique value ranging from 0 to 127 that corresponds to the\n value sent by the LE based on country-specific cadences,\n one row per cadence cycle. In any given system\n implementation for a particular country, it is anticipated\n that a small number of ring cadences will be in use. Thus,\n this table most likely will not be populated to its full\n size.')
pktcSigDevRingCadence = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 31, 1, 2), PktcRingCadence()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevRingCadence.setDescription('This is the Ring Cadence.')
pktcSigDevToneTable = MibTable((1, 3, 6, 1, 2, 1, 169, 1, 1, 32), )
if mibBuilder.loadTexts: pktcSigDevToneTable.setDescription(' The Tone Table defines the composition of tones and\n various tone operations.\n\n The definition of the tones callWaiting1 through\n callWaiting4 in this table MUST only contain the\n audible tone itself; the delay between tones or the value\n of the tone repeat count are not applicable for the call\n waiting tones.\n\n\n\n\n The delay between tones or the repeat count is controlled\n by the objects pktcSigEndPntConfigCallWaitingDelay and\n pktcSigEndPntConfigCallWaitingMaxRep. If the\n pktcSigDevToneType is set to either of the values\n callWaiting1, callWaiting2, callWaiting3, or callWaiting4,\n then the value of the pktcSigDevToneWholeToneRepeatCount\n object indicates that the particular frequency group is\n applicable, as a repeatable part of the tone, based on the\n value of the MIB object\n pktcSigDevToneWholeToneRepeatCount.\n\n The MTA MUST make sure that, after the provisioning\n cycle, the table is fully populated (i.e., for each\n possible index, an entry MUST be defined) using\n reasonable defaults for each row that was not defined\n by the provisioning information delivered via MTA\n Configuration.\n\n The frequency composition of each tone is defined by the\n pktcSigDevMultiFreqToneTable. For each tone type defined\n in pktcSigDevToneTable, the MTA MUST populate at least\n one entry in the pktcSigDevMultiFreqToneTable.\n\n For each particular value of pktcSigDevToneType, the\n pktcSigDevToneTable table can define non-repeating and\n repeating groups of the frequencies defined by the\n pktcSigDevMultiFreqToneTable, such that each group is\n represented by the set of the consecutive rows\n (frequency group) in the pktcSigDevMultiFreqToneTable.\n\n Objects in this table do not persist across MTA reboots.\n For tones with multiple frequencies refer to the MIB table\n pktcSigDevMultiFreqToneTable.')
pktcSigDevToneEntry = MibTableRow((1, 3, 6, 1, 2, 1, 169, 1, 1, 32, 1), ).setIndexNames((0, "PKTC-IETF-SIG-MIB", "pktcSigDevToneType"), (0, "PKTC-IETF-SIG-MIB", "pktcSigDevToneFreqGroup"))
if mibBuilder.loadTexts: pktcSigDevToneEntry.setDescription(' The different tone types that can be provisioned based on\n country-specific needs.\n\n Each entry contains the tone generation parameters for\n a specific frequency group of the specific Tone Type.\n\n\n\n The different parameters can be provisioned via MTA\n configuration based on country specific needs.\n An MTA MUST populate all entries of this table for each\n tone type.')
pktcSigDevToneType = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 32, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,))).clone(namedValues=NamedValues(("busy", 1), ("confirmation", 2), ("dial", 3), ("messageWaiting", 4), ("offHookWarning", 5), ("ringBack", 6), ("reOrder", 7), ("stutterdial", 8), ("callWaiting1", 9), ("callWaiting2", 10), ("callWaiting3", 11), ("callWaiting4", 12), ("alertingSignal", 13), ("specialDial", 14), ("specialInfo", 15), ("release", 16), ("congestion", 17), ("userDefined1", 18), ("userDefined2", 19), ("userDefined3", 20), ("userDefined4", 21),)))
if mibBuilder.loadTexts: pktcSigDevToneType.setDescription('A unique value that will correspond to the different\n tone types. These tones can be provisioned based on\n country-specific needs. This object defines the type\n of tone being accessed.\n\n The alertingSignal, specialDial, specialInfo, release,\n\n\n\n congestion, userDefined1, userDefined2, userDefined3,\n and userDefined4 tone types are used in\n the E line package.')
pktcSigDevToneFreqGroup = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 32, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4)))
if mibBuilder.loadTexts: pktcSigDevToneFreqGroup.setDescription('This MIB object represents the Tone Sequence reference\n of a multi-sequence tone.')
pktcSigDevToneFreqCounter = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 32, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFreqCounter.setDescription('This MIB object represents the number of consecutive\n multi-frequency tones for the particular tone type in\n the multi-frequency table (pktcSigDevMultiFreqToneTable).\n\n Such a sequence of the consecutive multi-frequency tones\n forms the tone group for the particular tone type in the\n pktcSigDevToneTable.')
pktcSigDevToneWholeToneRepeatCount = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 32, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,5000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneWholeToneRepeatCount.setDescription('This is the repeat count, which signifies how many times\n to repeat the entire on-off cadence sequence. Setting this\n object may result in a cadence duration longer or shorter\n than the overall signal duration specified by the time out\n (TO) object for a particular signal. If the repeat count\n results in a longer tone duration than the signal duration\n specified by the TO, the tone duration defined by the\n TO object for a particular signal always represents\n the overall signal duration for a tone. In this case, the\n tone duration repeat count will not be fully exercised, and\n the desired tone duration will be truncated per the TO\n setting. If the repeat count results in a shorter tone\n duration than the signal duration specified by the TO, the\n tone duration defined by the repeat count takes precedence\n over the TO and will end the signal event. In this case,\n\n\n\n the TO represents a time not to be exceeded for the signal.\n It is recommended to ensure proper telephony signaling so that\n the TO duration setting should always be longer than the\n desired repeat count-time duration.')
pktcSigDevToneSteady = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 32, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneSteady.setDescription("This MIB object represents the steady tone status. A value\n of 'true(1)' indicates that the steady tone is applied, and\n a value of 'false(2)' indicates otherwise.\n Devices must play out the on-off cadence sequence for\n the number of times indicated by the MIB object\n 'pktcSigDevToneWholeToneRepeatCount' prior to applying the\n last tone steadily, indefinitely. If the MIB table\n 'pktcSigDevToneTable' contains multiple rows with this\n Object set to a value of 'true(1)', the steady tone is\n applied to the last repeating frequency group of the tone.\n\n Setting this MIB object may result in a tone duration that is\n longer or shorter than the overall signal duration\n specified by the time out (TO) MIB object for a particular\n signal. If the repeat count results in a longer tone\n duration than the signal duration specified by the TO, the\n tone duration defined by the TO object for a particular\n signal always represents the overall signal duration for a\n tone. In this case, the tone duration repeat count will\n not be fully exercised, and the desired tone duration will\n be truncated per the TO setting. If the repeat count\n results in a shorter tone duration than the signal duration\n specified by the TO, the tone duration defined by the\n repeat count takes precedence over the TO and will end the\n signal event. In this case, the TO represents a time not to\n be exceeded for the signal.\n\n It is recommended to ensure proper telephony signaling that\n The TO duration setting should always be longer than the\n desired repeat count-time duration, plus the desired maximum\n steady tone period.")
pktcSigDevMultiFreqToneTable = MibTable((1, 3, 6, 1, 2, 1, 169, 1, 1, 33), )
if mibBuilder.loadTexts: pktcSigDevMultiFreqToneTable.setDescription(' This MIB table defines the characteristics of tones\n with multiple frequencies. The constraints imposed\n on the tones by the MIB table pktcSigDevToneTable\n need to be considered for MIB objects in this table\n as well.\n\n The MTA MUST populate the corresponding row(s)\n of the pktcSigDevMultiFreqToneTable for each tone\n defined in the pktcSigDevToneTable.\n\n The contents of the table may be provisioned via\n MTA configuration.')
pktcSigDevMultiFreqToneEntry = MibTableRow((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1), ).setIndexNames((0, "PKTC-IETF-SIG-MIB", "pktcSigDevToneType"), (0, "PKTC-IETF-SIG-MIB", "pktcSigDevToneNumber"))
if mibBuilder.loadTexts: pktcSigDevMultiFreqToneEntry.setDescription(' The different tone types with multiple frequencies\n that can be provisioned based on country-specific\n needs.')
pktcSigDevToneNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,8)))
if mibBuilder.loadTexts: pktcSigDevToneNumber.setDescription('This MIB object represents the frequency reference\n of a multi-frequency tone.')
pktcSigDevToneFirstFreqValue = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,4000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFirstFreqValue.setDescription('This MIB object represents the value of the first\n frequency of a tone type. A value of zero implies\n absence of the referenced frequency.')
pktcSigDevToneSecondFreqValue = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,4000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneSecondFreqValue.setDescription('This MIB object represents the value of the second\n frequency of a tone type. A value of zero implies\n absence of the referenced frequency.')
pktcSigDevToneThirdFreqValue = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,4000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneThirdFreqValue.setDescription('This MIB object represents the value of the third\n frequency of a tone type. A value of zero implies\n absence of the referenced frequency.')
pktcSigDevToneFourthFreqValue = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,4000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFourthFreqValue.setDescription('This MIB object represents the value of the fourth\n frequency of a tone type. A value of zero implies\n absence of the referenced frequency.')
pktcSigDevToneFreqMode = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("firstModulatedBySecond", 1), ("summation", 2),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFreqMode.setDescription("This MIB object provides directive on the\n modulation or summation of the frequencies\n involved in the tone.\n\n It is to be noted that while summation can\n be done without any constraint on the number\n of frequencies, the modulation (amplitude)\n holds good only when there are two frequencies\n (first and second).\n\n Thus:\n - If the mode is set to a value of\n 'firstModulatedBySecond(1)', the first frequency\n MUST be modulated by the second, and the remaining\n frequencies (third and fourth) ignored. The\n percentage of amplitude modulation to be applied\n is defined by the MIB object\n pktcSigDevToneFreqAmpModePrtg.\n\n - If the mode is set to a value of\n 'summation(2)', all the frequencies MUST be\n summed without any modulation.\n ")
pktcSigDevToneFreqAmpModePrtg = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFreqAmpModePrtg.setDescription("This MIB object represents the percentage of amplitude\n modulation applied to the second frequency\n when the MIB object pktcSigDevToneFreqMode is\n set to a value of 'firstModulatedBySecond (1)'.\n\n If the MIB object pktcSigDevToneFreqMode is set to\n value of 'summation (2)', then this MIB object MUST be\n ignored.")
pktcSigDevToneDbLevel = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 8), TenthdBm().subtype(subtypeSpec=ValueRangeConstraint(-250,-110)).clone(-120)).setUnits('1/10 of a dBm').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneDbLevel.setDescription('This MIB object contains the decibel level for each\n analog signal (tone) that is locally generated\n (versus in-band supervisory tones) and sourced to\n the a-b terminals (TE connection point). Each tone\n in itself may consist of multiple frequencies, as\n defined by the MIB table pktcSigDevMultiFreqToneTable.\n\n This MIB object reflects the desired level at\n the Telco (POTS) a-b (T/R) terminals, including the\n effect of any MTA receiver gain (loss). This is required\n so that locally generated tones are consistent with\n remotely generated in-band tones at the a-b terminals,\n consistent with user expectations.\n\n This MIB object must be set for each tone.\n When tones are formed by combining multi-frequencies,\n the level of each frequency shall be set so as to result\n in the tone level specified in this object at the a-b\n (T/R) terminals.\n\n The wide range of levels for this Object is required\n to provide signal-generator levels across the wide\n range of gains (losses) -- but does not imply the entire\n range is to be achievable given the range of gains (losses)\n in the MTA.')
pktcSigDevToneFreqOnDuration = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,5000))).setUnits('milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFreqOnDuration.setDescription('This MIB object represents the duration for which the\n frequency reference corresponding to the tone type\n is turned on.')
pktcSigDevToneFreqOffDuration = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,5000))).setUnits('milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFreqOffDuration.setDescription('This MIB object represents the duration for which the\n\n\n\n frequency reference corresponding to the tone type\n is turned off.')
pktcSigDevToneFreqRepeatCount = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 1, 33, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,5000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigDevToneFreqRepeatCount.setDescription('This MIB object indicates the number of times\n to repeat the cadence cycle represented by the\n on/off durations (refer to the MIB objects\n pktcSigDevToneFreqOnDuration and\n pktcSigDevToneFreqOffDuration).\n\n Setting this object may result in a tone duration that is\n longer or shorter than the overall signal duration\n specified by the time out (TO) object for the\n corresponding tone type. If the value of this MIB\n Object indicates a longer duration than that\n specified by the TO, the latter overrules the former,\n and the desired tone duration will be truncated according\n to the TO.\n\n However, if the repeat count results in a shorter\n tone duration than the signal duration specified by\n the TO, the tone duration defined by the repeat count\n takes precedence over the TO and will end the signal\n event. In this case, the TO represents a time not to\n be exceeded for the signal. It is recommended, to\n ensure proper telephony signaling, that the TO\n duration setting should always be longer than the\n desired repeat count-time duration. A value of zero\n means the tone sequence is to be played once but not\n repeated.')
pktcSigDevCidDelayAfterLR = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 34), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(300,800)).clone(400)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidDelayAfterLR.setDescription("This object specifies the delay between the end of the\n Line Reversal and the start of the FSK or DTMF signal.\n This MIB object is used only when pktcSigDevCidMode is\n set to a value of 'lrETS'. This timing has a range of\n 300 to 800 ms.\n\n\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevCidMode), and MUST be followed:\n\n Value of pktcSigDevCidMode Default value\n\n duringringingETS any value (not used)\n dtAsETS any value (not used)\n rpAsETS any value (not used)\n lrAsETS any value (not used)\n lrETS 400\n\n An attempt to set this object while the value of\n pktcSigDevCidMode is not set to a value of 'lrETS' will\n result in an 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevCidDtmfStartCode = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 35), DtmfCode().clone('dtmfcodeA')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidDtmfStartCode.setDescription("This object identifies optional start codes used when\n the MIB object pktcSigDevCidSigProtocol is set\n to a value of 'dtmf(2)'.\n\n Different countries define different caller id signaling\n codes to support caller identification. When Dual-Tone\n Multi-Frequency (DTMF) is used, the caller id digits are\n preceded by a 'start code' digit, followed by the digit\n transmission sequence <S1>...<Sn> (where Sx represents\n the digits 0-9), and terminated by the 'end code' digit.\n\n For example,\n <A><S1>...<Sn> <D><S1>...<Sn> <B><S1>...<Sn> <C>.\n The start code for calling number delivery may be DTMF\n 'A' or 'D'. The start code for redirecting a number may be\n DTMF 'D'. The DTMF code 'B' may be sent by the network\n as a start code for the transfer of information values,\n through which special events can be indicated to the\n user. In some countries, the '*' or '#' may be used\n instead of 'A', 'B', 'C', or 'D'.\n\n The value of this MIB object MUST NOT persist across MTA\n\n\n\n reboots.")
pktcSigDevCidDtmfEndCode = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 36), DtmfCode().clone('dtmfcodeC')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevCidDtmfEndCode.setDescription("This object identifies optional end codes used when the\n pktcSigDevCidSigProtocol is set to a value of\n 'dtmf(2)'.\n\n Different countries define different caller id signaling\n protocols to support caller identification. When\n Dual-Tone Multi-Frequency (DTMF) is used, the caller id\n digits are preceded by a 'start code' digit, followed by\n the digit transmission sequence <S1>...<Sn> (where Sx\n represents the digits 0-9), and terminated by the 'end\n code' digit.\n\n For example,\n <A><S1>...<Sn> <D><S1>...<Sn> <B><S1>...<Sn> <C>.\n\n The DTMF code 'C' may be sent by the network as an\n end code for the transfer of information values, through\n which special events can be indicated to the user. In\n some countries, the '*' or '#' may be used instead of\n 'A', 'B', 'C', or 'D'.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevVmwiSigProtocol = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 37), PktcSubscriberSideSigProtocol().clone('fsk')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiSigProtocol.setDescription('This object identifies the subscriber line protocol used\n for signaling the information on Visual Message Waiting\n Indicator (VMWI). Different countries define different\n VMWI signaling protocols to support VMWI service.\n\n\n\n Frequency shift keying (FSK) is most commonly used.\n DTMF is an alternative.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.')
pktcSigDevVmwiDelayAfterLR = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 38), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(300,800),)).clone(400)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiDelayAfterLR.setDescription("This object specifies the delay between the end of the\n Line Reversal and the start of the FSK or DTMF signal.\n This object is only used when pktcSigDevVmwiMode is\n set to a value of 'lrETS'.\n This timing has a range of 300 to 800 ms.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevVmwiMode), and MUST be followed:\n\n Value of pktcSigDevVmwiMode Default value\n\n duringringingETS any value (not used)\n dtAsETS any value (not used)\n rpAsETS any value (not used)\n lrAsETS any value (not used)\n lrETS 400\n\n An attempt to set this object while the value of\n pktcSigDevVmwiMode is not 'lrETS' will result in an\n 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevVmwiDtmfStartCode = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 39), DtmfCode().clone('dtmfcodeA')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiDtmfStartCode.setDescription("This object identifies optional start codes used when\n\n\n\n the pktcSigDevVmwiSigProtocol is set to a value of\n 'dtmf(2)'. Different countries define different On Hook\n Data Transmission Protocol signaling codes to support\n VMWI.\n\n When Dual-Tone Multi-Frequency (DTMF) is used, the VMWI\n digits are preceded by a 'start code' digit, followed\n by the digit transmission sequence <S1>...<Sn> (where\n Sx represents the digits 0-9), and terminated by the 'end\n code' digit.\n\n For example,\n <A><S1>...<Sn> <D><S1>...<Sn> <B><S1>...<Sn> <C>.\n\n The start code for redirecting VMWI may be DTMF 'D'\n The DTMF code 'B' may be sent by the network as a start\n code for the transfer of information values, through\n which special events can be indicated to the user. In\n some countries, the '*' or '#' may be used instead of\n 'A', 'B', 'C', or 'D'.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevVmwiDtmfEndCode = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 40), DtmfCode().clone('dtmfcodeC')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevVmwiDtmfEndCode.setDescription("This object identifies an optional end code used when the\n pktcSigDevVmwiSigProtocol is set to a value of\n 'dtmf(2)'. Different countries define different on-hook\n Data Transmission Protocol signaling codes to support\n VMWI.\n\n When Dual-Tone Multi-Frequency (DTMF) is used, the VMWI\n digits are preceded by a 'start code' digit, followed\n by the digit transmission sequence <S1>...<Sn> (where\n Sx represents the digits 0-9), and terminated by the 'end\n code' digit.\n\n For example,\n <A><S1>...<Sn> <D><S1>...<Sn> <B><S1>...<Sn> <C>.\n\n\n\n\n The DTMF code 'C' may be sent by the network as an end code\n for the transfer of information values, through which\n special events can be indicated to the user. In some\n countries, the '*' or '#' may be used instead of 'A',\n 'B', 'C', or 'D'.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigDevrpAsDtsDuration = MibScalar((1, 3, 6, 1, 2, 1, 169, 1, 1, 41), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(200,500),)).clone(250)).setUnits('Milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: pktcSigDevrpAsDtsDuration.setDescription(" This object specifies the duration of the rpASDTS ring\n pulse prior to the start of the transmission of the\n FSK or DTMF containing the caller id information. It is\n only used when pktcSigDevCidMode is set to a value of\n 'rpAsETS'.\n\n The following table defines the default values\n for this MIB object, depending on the signal type\n (pktcSigDevCidMode), and MUST be followed:\n\n Value of pktcSigDevCidMode Default value\n\n duringringingETS any value (not used)\n dtAsETS any value (not used)\n rpAsETS 250\n lrAsETS any value (not used)\n lrETS any value (not used)\n\n An attempt to set this object while the value of\n pktcSigDevCidMode is not 'rpAsETS' will result in\n an 'inconsistentValue' error.\n\n The value of this MIB object MUST NOT persist across MTA\n reboots.")
pktcSigEndPntConfigTable = MibTable((1, 3, 6, 1, 2, 1, 169, 1, 2, 1), )
if mibBuilder.loadTexts: pktcSigEndPntConfigTable.setDescription(' This table describes the information pertaining to each\n endpoint of the MTA. All entries in this table represent\n the provisioned endpoints provisioned with the information\n required by the MTA to maintain the NCS protocol\n communication with the CMS. Each endpoint can be assigned\n to its own CMS. If the specific endpoint does not have\n the corresponding CMS information in this table, the\n endpoint is considered as not provisioned with voice\n services. Objects in this table do not persist across\n MTA reboots.')
pktcSigEndPntConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: pktcSigEndPntConfigEntry.setDescription('Each entry in the pktcSigEndPntConfigTable represents\n required signaling parameters for the specific endpoint\n provisioned with voice services. The conceptual rows MUST\n NOT persist across MTA reboots.')
pktcSigEndPntConfigCallAgentId = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(3,255))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigCallAgentId.setDescription(" This object contains a string indicating the call agent\n name (e.g., ca@example.com). The call agent name, after\n the character '@', MUST be a fully qualified domain name\n (FQDN) and MUST have a corresponding pktcMtaDevCmsFqdn\n entry in the pktcMtaDevCmsTable. The object\n pktcMtaDevCmsFqdn is defined in the PacketCable MIBMTA\n Specification. For each particular endpoint, the MTA MUST\n use the current value of this object to communicate with\n the corresponding CMS. The MTA MUST update this object\n with the value of the 'Notified Entity' parameter of the\n NCS message. Because of the high importance of this object\n to the ability of the MTA to maintain reliable NCS\n communication with the CMS, it is highly recommended not\n to change this object's value using SNMP during normal\n operation.")
pktcSigEndPntConfigCallAgentUdpPort = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 2), InetPortNumber().subtype(subtypeSpec=ValueRangeConstraint(1025,65535)).clone(2727)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigCallAgentUdpPort.setDescription(" This object contains the current value of the User\n Datagram Protocol (UDP) receive port on which the\n call agent will receive NCS from the endpoint.\n For each particular endpoint, the MTA MUST use the current\n value of this object to communicate with the corresponding\n CMS. The MTA MUST update this object with the value of the\n 'Notified Entity' parameter of the NCS message. If the\n Notified Entity parameter does not contain a CallAgent\n port, the MTA MUST update this object with the default\n value of 2727. Because of the high importance of this\n object to the ability of the MTA to maintain reliable NCS\n communication with the CMS, it is highly recommended not\n to change this object's value using SNMP during normal\n operation.")
pktcSigEndPntConfigPartialDialTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 3), Unsigned32().clone(16)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigPartialDialTO.setDescription("This object contains the value of the partial dial\n time out.\n The time out (TO) elements are intended to limit the time a\n tone or frequency is generated. When this MIB object is set\n to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigCriticalDialTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 4), Unsigned32().clone(4)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigCriticalDialTO.setDescription("This object contains the value of the critical\n dial time out.\n The time out (TO) elements are intended to limit the time a\n tone or frequency is generated. When this MIB object is set\n to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigBusyToneTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 5), Unsigned32().clone(30)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigBusyToneTO.setDescription(" This object contains the default time out value for busy\n tone. The MTA MUST NOT update this object with the\n value provided in the NCS message (if present). If\n the value of the object is modified by the SNMP Management\n Station, the MTA MUST use the new value as a default only\n for a new signal requested by the NCS message.\n The time out (TO) elements are intended to limit the time\n a tone or frequency is generated. When this MIB object is\n set to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigDialToneTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 6), Unsigned32().clone(16)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigDialToneTO.setDescription(" This object contains the default time out value for dial\n tone. The MTA MUST NOT update this object with the\n value provided in the NCS message (if present). If\n\n\n\n the value of the object is modified by the SNMP Management\n Station, the MTA MUST use the new value as a default only\n for a new signal requested by the NCS message.\n The time out (TO) elements are intended to limit the time\n a tone or frequency is generated. When this MIB object is\n set to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigMessageWaitingTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 7), Unsigned32().clone(16)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigMessageWaitingTO.setDescription(" This object contains the default time out value for message\n waiting indicator. The MTA MUST NOT update this object\n with the value provided in the NCS message (if\n present). If the value of the object is modified by the\n SNMP Manager application, the MTA MUST use the new value\n as a default only for a new signal requested by the NCS\n message.\n The time out (TO) elements are intended to limit the time\n a tone or frequency is generated. When this MIB object is\n set to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigOffHookWarnToneTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 8), Unsigned32()).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigOffHookWarnToneTO.setDescription(" This object contains the default time out value for the\n off-hook warning tone. The MTA MUST NOT update this object\n with the value provided in the NCS message (if present). If\n the value of the object is modified by the SNMP Manager\n\n\n\n application, the MTA MUST use the new value as a default\n only for a new signal requested by the NCS message. The\n time out (TO) elements are intended to limit the time a tone\n or frequency is generated. When this MIB object is set to a\n value of '0', the MTA MUST NOT generate the corresponding\n frequency or tone, regardless of the definitions pertaining\n to frequency, tone duration, or cadence.")
pktcSigEndPntConfigRingingTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 9), Unsigned32().clone(180)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigRingingTO.setDescription(" This object contains the default time out value for\n ringing. The MTA MUST NOT update this object with the\n value provided in the NCS message (if present). If\n the value of the object is modified by the SNMP Management\n Station, the MTA MUST use the new value as a default only\n for a new signal requested by the NCS message.\n The time out (TO) elements are intended to limit the time\n a tone or frequency is generated. When this MIB object is\n set to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigRingBackTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 10), Unsigned32().clone(180)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigRingBackTO.setDescription(" This object contains the default time out value for ring\n back. The MTA MUST NOT update this object with the\n value provided in the NCS message (if present). If\n the value of the object is modified by the SNMP Management\n Station, the MTA MUST use the new value as a default only\n for a new signal requested by the NCS message.\n The time out (TO) elements are intended to limit the time\n\n\n\n a tone or frequency is generated. When this MIB object is\n set to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigReorderToneTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 11), Unsigned32().clone(30)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigReorderToneTO.setDescription(" This object contains the default time out value for reorder\n tone. The MTA MUST NOT update this object with the\n value provided in the NCS message (if present). If\n the value of the object is modified by the SNMP Management\n Station, the MTA MUST use the new value as a default only\n for a new signal requested by the NCS message.\n The time out (TO) elements are intended to limit the time\n a tone or frequency is generated. When this MIB object is\n set to a value of '0', the MTA MUST NOT generate the\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigStutterDialToneTO = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 12), Unsigned32().clone(16)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigStutterDialToneTO.setDescription(" This object contains the default time out value for stutter\n dial tone. The MTA MUST NOT update this object with the\n value provided in the NCS message (if present). If\n the value of the object is modified by the SNMP Management\n Station, the MTA MUST use the new value as a default only\n for a new signal requested by the NCS message.\n The time out (TO) elements are intended to limit the time\n a tone or frequency is generated. When this MIB object is\n set to a value of '0', the MTA MUST NOT generate the\n\n\n\n corresponding frequency or tone, regardless of the\n definitions pertaining to frequency, tone duration, or\n cadence.")
pktcSigEndPntConfigTSMax = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 13), Unsigned32().clone(20)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigTSMax.setDescription('This MIB object is used as part of an NCS\n retransmission algorithm. Prior to any retransmission,\n the MTA must check to make sure that the time elapsed\n since the sending of the initial datagram does not\n exceed the value specified by this MIB object. If more\n than Tsmax time has elapsed, then the retransmissions\n MUST cease.\n\n Refer to the MIB object pktcSigEndPntConfigThist for\n information on when the endpoint becomes disconnected.')
pktcSigEndPntConfigMax1 = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 14), Unsigned32().clone(5)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigMax1.setDescription('This object contains the suspicious error threshold for\n signaling messages. The pktcSigEndPntConfigMax1 object\n indicates the retransmission threshold at which the MTA MAY\n actively query the domain name server (DNS) in order to\n detect the possible change of call agent interfaces.')
pktcSigEndPntConfigMax2 = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 15), Unsigned32().clone(7)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigMax2.setDescription('This object contains the disconnect error threshold for\n signaling messages. The pktcSigEndPntConfigMax2 object\n indicates the retransmission threshold at which the MTA\n SHOULD contact the DNS one more time to see if any other\n interfaces to the call agent have become available.')
pktcSigEndPntConfigMax1QEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 16), TruthValue().clone('true')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigMax1QEnable.setDescription('This object enables/disables the Max1 domain name server\n (DNS) query operation when the pktcSigEndPntConfigMax1\n threshold has been reached.\n A value of true(1) indicates enabling, and a value of\n false(2) indicates disabling.')
pktcSigEndPntConfigMax2QEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 17), TruthValue().clone('true')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigMax2QEnable.setDescription('This object enables/disables the Max2 domain name server\n (DNS) query operation when the pktcSigEndPntConfigMax2\n threshold has been reached.\n A value of true(1) indicates enabling, and a value of\n false(2) indicates disabling.')
pktcSigEndPntConfigMWD = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 18), Unsigned32().clone(600)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigMWD.setDescription('Maximum Waiting Delay (MWD) contains the maximum number of\n seconds an MTA waits, after powering on, before initiating\n the restart procedure with the call agent.')
pktcSigEndPntConfigTdinit = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 19), Unsigned32().clone(15)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigTdinit.setDescription("This MIB object represents the 'disconnected' initial\n waiting delay within the context of an MTA's 'disconnected\n procedure'. The 'disconnected procedure' is initiated when\n an endpoint becomes 'disconnected' while attempting to\n communicate with a call agent.\n\n The 'disconnected timer' associated with the 'disconnected\n Procedure' is initialized to a random value, uniformly\n distributed between zero and the value contained in this\n MIB object.\n\n For more information on the usage of this timer, please\n refer to the PacketCable NCS Specification.")
pktcSigEndPntConfigTdmin = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 20), Unsigned32().clone(15)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigTdmin.setDescription("This MIB object represents the 'disconnected' minimum\n waiting delay within the context of an MTA's\n 'disconnected procedure', specifically when local user\n activity is detected.\n The 'disconnected procedure' is initiated when\n an endpoint becomes 'disconnected' while attempting to\n communicate with a call agent.\n For more information on the usage of this timer, please\n refer to the PacketCable NCS Specification.")
pktcSigEndPntConfigTdmax = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 21), Unsigned32().clone(600)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigTdmax.setDescription(' This object contains the maximum number of seconds the MTA\n waits, after a disconnect, before initiating the\n disconnected procedure with the call agent.\n ')
pktcSigEndPntConfigRtoMax = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 22), Unsigned32().clone(4)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigRtoMax.setDescription('This object specifies the maximum number of seconds the MTA\n waits for a response to an NCS message before initiating\n a retransmission.')
pktcSigEndPntConfigRtoInit = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 23), Unsigned32().clone(200)).setUnits('milliseconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigRtoInit.setDescription(' This object contains the initial number of seconds for the\n retransmission timer.')
pktcSigEndPntConfigLongDurationKeepAlive = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 24), Unsigned32().clone(60)).setUnits('minutes').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigLongDurationKeepAlive.setDescription(' Specifies a time out value, in minutes, for sending long\n duration call notification messages.')
pktcSigEndPntConfigThist = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 25), Unsigned32().clone(30)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigThist.setDescription(' Time out period, in seconds, before no response is declared.')
pktcSigEndPntConfigStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 26), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigStatus.setDescription(" This object contains the Row Status associated with the\n pktcSigEndPntConfigTable. There are no restrictions or\n dependencies amidst the columnar objects before this\n row can be activated or for modifications of the\n columnar objects when this object is set to a\n value of 'active(1).")
pktcSigEndPntConfigCallWaitingMaxRep = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 27), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,10)).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigCallWaitingMaxRep.setDescription(' This object contains the default value of the maximum\n number of repetitions of the Call Waiting tone that the\n MTA will play from a single CMS request. The MTA MUST NOT\n update this object with the information provided in the\n NCS message (if present). If the value of the object is\n modified by the SNMP Manager application, the MTA MUST use\n the new value as a default only for a new signal\n requested by the NCS message.')
pktcSigEndPntConfigCallWaitingDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 28), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,100)).clone(10)).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: pktcSigEndPntConfigCallWaitingDelay.setDescription(' This object contains the delay between repetitions of the\n Call Waiting tone that the MTA will play from a single CMS\n request.')
pktcSigEndPntStatusCallIpAddressType = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 29), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntStatusCallIpAddressType.setDescription(" This object contains the type of Internet address contained\n in the MIB object 'pktcSigEndPntStatusCallIpAddress'.\n\n Since pktcSigEndPntStatusCallIpAddress is expected to\n contain an IP address, a value of dns(16) is disallowed.")
pktcSigEndPntStatusCallIpAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 30), InetAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntStatusCallIpAddress.setDescription(" This MIB object contains the chosen IP address of the CMS\n currently being used for the corresponding endpoint.\n\n The device determines the IP address by using DNS to\n resolve the IP address of the CMS from the FQDN stored in\n the MIB object 'pktcSigEndPntConfigCallAgentId'. The\n processes are outlined in the PacketCable NCS and Security\n specifications, and MUST be followed by the MTA.\n\n The IP address type contained in this MIB object is\n indicated by pktcSigEndPntStatusCallIpAddressType.")
pktcSigEndPntStatusError = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("operational", 1), ("noSecurityAssociation", 2), ("disconnected", 3),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntStatusError.setDescription(' This object contains the error status for this interface.\n The operational status indicates that all operations\n necessary to put the line in service have occurred, and the\n CMS has acknowledged the Restart In Progress (RSIP)\n message successfully. If pktcMtaDevCmsIpsecCtrl is enabled\n for the associated call agent, the noSecurityAssociation\n status indicates that no Security Association (SA) yet\n exists for this endpoint. If pktcMtaDevCmsIpsecCtrl is\n disabled for the associated call agent, the\n noSecurityAssociation status is not applicable and should\n not be used by the MTA. The disconnected status indicates\n one of the following two:\n If pktcMtaDevCmsIpsecCtrl is disabled, then no security\n association is involved with this endpoint. The NCS\n signaling software is in process of establishing the NCS\n signaling link via an RSIP exchange.\n Otherwise, when pktcMtaDevCmsIpsecCtrl is enabled,\n security Association has been established, and the NCS\n signaling software is in process of establishing the NCS\n signaling link via an RSIP exchange.')
pktcSigEndPntConfigMinHookFlash = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 32), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(20,1550)).clone(300)).setUnits('Milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntConfigMinHookFlash.setDescription(" This is the minimum time a line needs to be on-hook for a\n valid hook flash. The value of this object MUST be\n greater than the value of\n pktcSigEndPntConfigPulseDialMaxBreakTime. The value of\n pktcSigEndPntConfigMinHookFlash MUST be less than\n pktcSigEndPntConfigMaxHookFlash. This object MUST only be\n set via the MTA configuration during the provisioning\n process.\n Furthermore, given the possibility for the 'pulse dial'\n and 'hook flash' to overlap, the value of this object\n MUST be greater than the value contained by the MIB\n Object 'pktcSigEndPntConfigPulseDialMaxMakeTime'.")
pktcSigEndPntConfigMaxHookFlash = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 33), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(20,1550)).clone(800)).setUnits('Milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntConfigMaxHookFlash.setDescription(' This is the maximum time a line needs to be on-hook for a\n valid hook flash. The value of\n pktcSigEndPntConfigMaxHookFlash MUST be greater than\n pktcSigEndPntConfigMinHookFlash. This object MUST only be\n set via the MTA configuration during the provisioning\n process.')
pktcSigEndPntConfigPulseDialInterdigitTime = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 34), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(100,1500)).clone(100)).setUnits('Milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntConfigPulseDialInterdigitTime.setDescription(' This is the pulse dial inter-digit time out. This object\n MUST only be set via the MTA configuration during the\n provisioning process.')
pktcSigEndPntConfigPulseDialMinMakeTime = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 35), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(20,200)).clone(25)).setUnits('Milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntConfigPulseDialMinMakeTime.setDescription(' This is the minimum make pulse width for the dial pulse.\n The value of pktcSigEndPntConfigPulseDialMinMakeTime MUST\n be less than pktcSigEndPntConfigPulseDialMaxMakeTime. This\n object MUST only be set via the MTA configuration during\n the provisioning process.')
pktcSigEndPntConfigPulseDialMaxMakeTime = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 36), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(20,200)).clone(55)).setUnits('Milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntConfigPulseDialMaxMakeTime.setDescription(" This is the maximum make pulse width for the dial pulse.\n\n\n\n The value of pktcSigEndPntConfigPulseDialMaxMakeTime MUST\n be greater than pktcSigEndPntConfigPulseDialMinMakeTime.\n This object MUST only be provided via the configuration\n file during the provisioning process.\n Furthermore, given the possibility for the 'pulse dial'\n and 'hook flash' to overlap, the value of this object MUST\n be less than the value contained by the MIB object\n pktcSigEndPntConfigMinHookFlash.")
pktcSigEndPntConfigPulseDialMinBreakTime = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 37), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(20,200)).clone(45)).setUnits('Milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntConfigPulseDialMinBreakTime.setDescription(' This is the minimum break pulse width for the dial pulse.\n The value of pktcSigEndPntConfigPulseDialMinBreakTime MUST\n be less than pktcSigEndPntConfigPulseDialMaxBreakTime.\n This object must only be provided via the configuration\n file during the provisioning process.')
pktcSigEndPntConfigPulseDialMaxBreakTime = MibTableColumn((1, 3, 6, 1, 2, 1, 169, 1, 2, 1, 1, 38), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(20,200)).clone(75)).setUnits('Milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: pktcSigEndPntConfigPulseDialMaxBreakTime.setDescription(' This is the maximum break pulse width for the dial pulse.\n The value of pktcSigEndPntConfigPulseDialMaxBreakTime MUST\n be greater than pktcSigEndPntConfigPulseDialMinBreakTime.\n This object MUST only be provided via the configuration\n file during the provisioning process.')
pktcSigNotification = MibIdentifier((1, 3, 6, 1, 2, 1, 169, 0))
pktcSigConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 169, 2))
pktcSigCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 169, 2, 1))
pktcSigGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 169, 2, 2))
pktcSigBasicCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 169, 2, 1, 1)).setObjects(*(("PKTC-IETF-SIG-MIB", "pktcSigDeviceGroup"), ("PKTC-IETF-SIG-MIB", "pktcSigEndpointGroup"), ("PKTC-IETF-SIG-MIB", "pktcInternationalGroup"), ("PKTC-IETF-SIG-MIB", "pktcLLinePackageGroup"), ("PKTC-IETF-SIG-MIB", "pktcELinePackageGroup"),))
if mibBuilder.loadTexts: pktcSigBasicCompliance.setDescription(' The compliance statement for MTAs that implement\n NCS signaling.')
pktcSigDeviceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 169, 2, 2, 1)).setObjects(*(("PKTC-IETF-SIG-MIB", "pktcSigDevCodecMax"), ("PKTC-IETF-SIG-MIB", "pktcSigDevEchoCancellation"), ("PKTC-IETF-SIG-MIB", "pktcSigDevSilenceSuppression"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR0Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR1Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR2Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR3Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR4Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR5Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR6Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR7Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRgCadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRsCadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDefCallSigDscp"), ("PKTC-IETF-SIG-MIB", "pktcSigDefMediaStreamDscp"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiMode"), ("PKTC-IETF-SIG-MIB", "pktcSigCapabilityType"), ("PKTC-IETF-SIG-MIB", "pktcSigCapabilityVersion"), ("PKTC-IETF-SIG-MIB", "pktcSigCapabilityVendorExt"), ("PKTC-IETF-SIG-MIB", "pktcSigDefNcsReceiveUdpPort"),))
if mibBuilder.loadTexts: pktcSigDeviceGroup.setDescription('Group of MIB objects containing signaling configuration\n information that is applicable per-device.')
pktcSigEndpointGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 169, 2, 2, 2)).setObjects(*(("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigCallAgentId"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigCallAgentUdpPort"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigPartialDialTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigCriticalDialTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigBusyToneTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigDialToneTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMessageWaitingTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigOffHookWarnToneTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigRingingTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigRingBackTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigReorderToneTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigStutterDialToneTO"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigTSMax"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMax1"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMax2"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMax1QEnable"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMax2QEnable"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMWD"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigTdinit"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigTdmin"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigTdmax"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigRtoMax"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigRtoInit"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigLongDurationKeepAlive"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigThist"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigStatus"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigCallWaitingMaxRep"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigCallWaitingDelay"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntStatusCallIpAddressType"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntStatusCallIpAddress"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntStatusError"),))
if mibBuilder.loadTexts: pktcSigEndpointGroup.setDescription('Group of MIB objects containing signaling configuration\n information that is applicable per-endpoint.')
pktcInternationalGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 169, 2, 2, 3)).setObjects(*(("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMinHookFlash"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigMaxHookFlash"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigPulseDialInterdigitTime"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigPulseDialMinMakeTime"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigPulseDialMaxMakeTime"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigPulseDialMinBreakTime"), ("PKTC-IETF-SIG-MIB", "pktcSigEndPntConfigPulseDialMaxBreakTime"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRingCadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidSigProtocol"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidDelayAfterLR"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidDtmfStartCode"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidDtmfEndCode"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiSigProtocol"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiDelayAfterLR"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiDtmfStartCode"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiDtmfEndCode"), ("PKTC-IETF-SIG-MIB", "pktcSigDevrpAsDtsDuration"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidMode"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidAfterRing"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidAfterDTAS"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidAfterRPAS"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRingAfterCID"), ("PKTC-IETF-SIG-MIB", "pktcSigDevCidDTASAfterLR"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiMode"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiAfterDTAS"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiAfterRPAS"), ("PKTC-IETF-SIG-MIB", "pktcSigDevVmwiDTASAfterLR"), ("PKTC-IETF-SIG-MIB", "pktcSigPowerRingFrequency"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalFrequency"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalDbLevel"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalDuration"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalPulseInterval"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalRepeatCount"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneDbLevel"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFreqCounter"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneWholeToneRepeatCount"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneSteady"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFirstFreqValue"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneSecondFreqValue"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneThirdFreqValue"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFourthFreqValue"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFreqMode"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFreqAmpModePrtg"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFreqOnDuration"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFreqOffDuration"), ("PKTC-IETF-SIG-MIB", "pktcSigDevToneFreqRepeatCount"),))
if mibBuilder.loadTexts: pktcInternationalGroup.setDescription(' Group of objects that extend the behavior of existing\n objects to support operations in the widest possible set\n of international marketplaces. Note that many of these\n objects represent a superset of behaviors described in\n other objects within this MIB module.')
pktcLLinePackageGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 169, 2, 2, 4)).setObjects(*(("PKTC-IETF-SIG-MIB", "pktcSigDevR0Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR1Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR2Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR3Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR4Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR5Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR6Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR7Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRgCadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRsCadence"),))
if mibBuilder.loadTexts: pktcLLinePackageGroup.setDescription('Group of Objects to support the L line package.')
pktcELinePackageGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 169, 2, 2, 5)).setObjects(*(("PKTC-IETF-SIG-MIB", "pktcSigDevR0Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR1Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR2Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR3Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR4Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR5Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR6Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevR7Cadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRgCadence"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRsCadence"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalFrequency"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalDbLevel"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalDuration"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalPulseInterval"), ("PKTC-IETF-SIG-MIB", "pktcSigPulseSignalRepeatCount"), ("PKTC-IETF-SIG-MIB", "pktcSigDevRingCadence"),))
if mibBuilder.loadTexts: pktcELinePackageGroup.setDescription('Group of Objects to support the E line package.')
mibBuilder.exportSymbols("PKTC-IETF-SIG-MIB", pktcSigEndPntConfigPulseDialInterdigitTime=pktcSigEndPntConfigPulseDialInterdigitTime, pktcSigEndPntStatusCallIpAddress=pktcSigEndPntStatusCallIpAddress, pktcSigDevToneFreqOffDuration=pktcSigDevToneFreqOffDuration, pktcSigDevVmwiDtmfEndCode=pktcSigDevVmwiDtmfEndCode, pktcSigEndPntConfigMax1=pktcSigEndPntConfigMax1, pktcSigDevToneSecondFreqValue=pktcSigDevToneSecondFreqValue, pktcSigDefCallSigDscp=pktcSigDefCallSigDscp, pktcSigDevVmwiSigProtocol=pktcSigDevVmwiSigProtocol, pktcSigDevMultiFreqToneTable=pktcSigDevMultiFreqToneTable, pktcSigEndPntConfigTSMax=pktcSigEndPntConfigTSMax, pktcIetfSigMib=pktcIetfSigMib, pktcSigDevRgCadence=pktcSigDevRgCadence, pktcSigDevRingCadenceIndex=pktcSigDevRingCadenceIndex, pktcSigEndPntConfigBusyToneTO=pktcSigEndPntConfigBusyToneTO, pktcSigDevToneWholeToneRepeatCount=pktcSigDevToneWholeToneRepeatCount, pktcSigDevVmwiDtmfStartCode=pktcSigDevVmwiDtmfStartCode, pktcSigCapabilityType=pktcSigCapabilityType, pktcSigDevCidDtmfStartCode=pktcSigDevCidDtmfStartCode, pktcSigPulseSignalRepeatCount=pktcSigPulseSignalRepeatCount, pktcSigDevCidAfterRPAS=pktcSigDevCidAfterRPAS, pktcSigDevCodecTable=pktcSigDevCodecTable, pktcSigDevToneDbLevel=pktcSigDevToneDbLevel, pktcSigEndPntConfigCallWaitingDelay=pktcSigEndPntConfigCallWaitingDelay, pktcSigDevToneFourthFreqValue=pktcSigDevToneFourthFreqValue, pktcSigDevRingAfterCID=pktcSigDevRingAfterCID, pktcSigDefNcsReceiveUdpPort=pktcSigDefNcsReceiveUdpPort, pktcSigDevCidMode=pktcSigDevCidMode, pktcSigDevRingCadenceTable=pktcSigDevRingCadenceTable, pktcSigCapabilityIndex=pktcSigCapabilityIndex, pktcSigDevCidDTASAfterLR=pktcSigDevCidDTASAfterLR, pktcSigBasicCompliance=pktcSigBasicCompliance, pktcSigEndPntConfigRtoMax=pktcSigEndPntConfigRtoMax, pktcSigDevToneType=pktcSigDevToneType, pktcSigEndPntConfigDialToneTO=pktcSigEndPntConfigDialToneTO, pktcSigNotification=pktcSigNotification, pktcSigDevToneFreqMode=pktcSigDevToneFreqMode, pktcSigEndPntConfigPulseDialMaxMakeTime=pktcSigEndPntConfigPulseDialMaxMakeTime, pktcSigPulseSignalPulseInterval=pktcSigPulseSignalPulseInterval, pktcSigEndPntConfigRingBackTO=pktcSigEndPntConfigRingBackTO, pktcSigEndPntConfigThist=pktcSigEndPntConfigThist, pktcSigDevObjects=pktcSigDevObjects, pktcSigEndPntConfigReorderToneTO=pktcSigEndPntConfigReorderToneTO, pktcSigEndPntConfigMessageWaitingTO=pktcSigEndPntConfigMessageWaitingTO, pktcSigPulseSignalTable=pktcSigPulseSignalTable, pktcSigEndPntConfigEntry=pktcSigEndPntConfigEntry, pktcSigPulseSignalEntry=pktcSigPulseSignalEntry, pktcSigEndPntConfigMax2QEnable=pktcSigEndPntConfigMax2QEnable, pktcELinePackageGroup=pktcELinePackageGroup, pktcSigDevVmwiAfterRPAS=pktcSigDevVmwiAfterRPAS, pktcSigDevToneSteady=pktcSigDevToneSteady, pktcSigPulseSignalFrequency=pktcSigPulseSignalFrequency, pktcSigDevEchoCancellation=pktcSigDevEchoCancellation, pktcSigEndPntConfigMinHookFlash=pktcSigEndPntConfigMinHookFlash, pktcSigEndPntConfigPulseDialMinMakeTime=pktcSigEndPntConfigPulseDialMinMakeTime, PktcSubscriberSideSigProtocol=PktcSubscriberSideSigProtocol, pktcSigEndPntConfigCriticalDialTO=pktcSigEndPntConfigCriticalDialTO, pktcSigDevCidDtmfEndCode=pktcSigDevCidDtmfEndCode, pktcSigEndPntConfigRtoInit=pktcSigEndPntConfigRtoInit, pktcSigEndPntConfigPulseDialMinBreakTime=pktcSigEndPntConfigPulseDialMinBreakTime, pktcSigDevR6Cadence=pktcSigDevR6Cadence, pktcSigCapabilityTable=pktcSigCapabilityTable, DtmfCode=DtmfCode, pktcSigCompliances=pktcSigCompliances, pktcSigConformance=pktcSigConformance, pktcSigCapabilityEntry=pktcSigCapabilityEntry, pktcSigDevToneFreqRepeatCount=pktcSigDevToneFreqRepeatCount, pktcSigPowerRingFrequency=pktcSigPowerRingFrequency, pktcSigPulseSignalDuration=pktcSigPulseSignalDuration, pktcSigDevR3Cadence=pktcSigDevR3Cadence, pktcSigEndPntConfigMWD=pktcSigEndPntConfigMWD, pktcSigDevR1Cadence=pktcSigDevR1Cadence, pktcInternationalGroup=pktcInternationalGroup, pktcSigDevR2Cadence=pktcSigDevR2Cadence, PktcCodecType=PktcCodecType, pktcSigEndPntConfigStatus=pktcSigEndPntConfigStatus, pktcSigEndPntConfigPulseDialMaxBreakTime=pktcSigEndPntConfigPulseDialMaxBreakTime, pktcSigDevR5Cadence=pktcSigDevR5Cadence, pktcSigDevCodecMax=pktcSigDevCodecMax, pktcSigDevToneFreqAmpModePrtg=pktcSigDevToneFreqAmpModePrtg, pktcSigEndPntConfigStutterDialToneTO=pktcSigEndPntConfigStutterDialToneTO, pktcSigDevRsCadence=pktcSigDevRsCadence, pktcSigDevToneFreqOnDuration=pktcSigDevToneFreqOnDuration, pktcSigEndPntConfigCallAgentUdpPort=pktcSigEndPntConfigCallAgentUdpPort, pktcSigEndPntConfigTdinit=pktcSigEndPntConfigTdinit, pktcSigDevToneFreqCounter=pktcSigDevToneFreqCounter, pktcSigDevToneFreqGroup=pktcSigDevToneFreqGroup, pktcSigGroups=pktcSigGroups, pktcSigDevVmwiDelayAfterLR=pktcSigDevVmwiDelayAfterLR, pktcSigEndPntConfigObjects=pktcSigEndPntConfigObjects, pktcSigDeviceGroup=pktcSigDeviceGroup, pktcSigDevVmwiAfterDTAS=pktcSigDevVmwiAfterDTAS, pktcSigEndPntStatusError=pktcSigEndPntStatusError, pktcSigDevRingCadence=pktcSigDevRingCadence, pktcSigDevVmwiDTASAfterLR=pktcSigDevVmwiDTASAfterLR, pktcSigDevR0Cadence=pktcSigDevR0Cadence, PktcRingCadence=PktcRingCadence, pktcSigEndpointGroup=pktcSigEndpointGroup, pktcSigCapabilityVersion=pktcSigCapabilityVersion, pktcSigDevToneFirstFreqValue=pktcSigDevToneFirstFreqValue, pktcSigDevCidAfterRing=pktcSigDevCidAfterRing, pktcSigMibObjects=pktcSigMibObjects, pktcSigDevCodecComboIndex=pktcSigDevCodecComboIndex, pktcSigDevCodecEntry=pktcSigDevCodecEntry, pktcSigEndPntConfigTable=pktcSigEndPntConfigTable, pktcSigEndPntConfigLongDurationKeepAlive=pktcSigEndPntConfigLongDurationKeepAlive, pktcSigDevCodecType=pktcSigDevCodecType, PktcSigType=PktcSigType, pktcSigDevR4Cadence=pktcSigDevR4Cadence, pktcLLinePackageGroup=pktcLLinePackageGroup, pktcSigDevToneNumber=pktcSigDevToneNumber, pktcSigDevRingCadenceEntry=pktcSigDevRingCadenceEntry, pktcSigDevMultiFreqToneEntry=pktcSigDevMultiFreqToneEntry, pktcSigEndPntConfigRingingTO=pktcSigEndPntConfigRingingTO, pktcSigEndPntConfigTdmax=pktcSigEndPntConfigTdmax, pktcSigCapabilityVendorExt=pktcSigCapabilityVendorExt, pktcSigEndPntConfigPartialDialTO=pktcSigEndPntConfigPartialDialTO, pktcSigDevCidSigProtocol=pktcSigDevCidSigProtocol, pktcSigEndPntConfigTdmin=pktcSigEndPntConfigTdmin, pktcSigDevR7Cadence=pktcSigDevR7Cadence, pktcSigPulseSignalDbLevel=pktcSigPulseSignalDbLevel, pktcSigEndPntStatusCallIpAddressType=pktcSigEndPntStatusCallIpAddressType, TenthdBm=TenthdBm, pktcSigDevToneEntry=pktcSigDevToneEntry, pktcSigDevToneThirdFreqValue=pktcSigDevToneThirdFreqValue, pktcSigDevCidDelayAfterLR=pktcSigDevCidDelayAfterLR, pktcSigEndPntConfigMaxHookFlash=pktcSigEndPntConfigMaxHookFlash, pktcSigEndPntConfigOffHookWarnToneTO=pktcSigEndPntConfigOffHookWarnToneTO, pktcSigEndPntConfigCallWaitingMaxRep=pktcSigEndPntConfigCallWaitingMaxRep, pktcSigPulseSignalType=pktcSigPulseSignalType, pktcSigDevSilenceSuppression=pktcSigDevSilenceSuppression, pktcSigDevrpAsDtsDuration=pktcSigDevrpAsDtsDuration, pktcSigEndPntConfigCallAgentId=pktcSigEndPntConfigCallAgentId, PYSNMP_MODULE_ID=pktcIetfSigMib, pktcSigEndPntConfigMax1QEnable=pktcSigEndPntConfigMax1QEnable, pktcSigDevToneTable=pktcSigDevToneTable, pktcSigEndPntConfigMax2=pktcSigEndPntConfigMax2, pktcSigDevVmwiMode=pktcSigDevVmwiMode, pktcSigDefMediaStreamDscp=pktcSigDefMediaStreamDscp, pktcSigDevCidAfterDTAS=pktcSigDevCidAfterDTAS)
| 388.076412 | 7,310 | 0.701758 | 14,736 | 116,811 | 5.562432 | 0.08279 | 0.006051 | 0.006295 | 0.023912 | 0.525339 | 0.469464 | 0.431241 | 0.391641 | 0.36352 | 0.341109 | 0 | 0.035283 | 0.208765 | 116,811 | 300 | 7,311 | 389.37 | 0.851577 | 0.002654 | 0 | 0.006969 | 0 | 0.383275 | 0.664561 | 0.044209 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041812 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
51ac2f7afd0b10c7f4d45ed2669728c2b7e70ccf | 108 | py | Python | enthought/developer/tools/view_tester.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/developer/tools/view_tester.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/developer/tools/view_tester.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from etsdevtools.developer.tools.view_tester import *
| 27 | 53 | 0.851852 | 14 | 108 | 6.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101852 | 108 | 3 | 54 | 36 | 0.886598 | 0.111111 | 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 |
51b37f1a6119881f2986ffae3d6c5853cf284f04 | 26 | py | Python | django/tests/syndication_tests/templates/syndication/title.html.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/tests/syndication_tests/templates/syndication/title.html.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/tests/syndication_tests/templates/syndication/title.html.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXX XX XXXX XXXXXXXXXX
| 13 | 25 | 0.807692 | 4 | 26 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 26 | 1 | 26 | 26 | 1 | 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 |
51b69bafe0664077b7fc459486568b1aade37ff3 | 484 | py | Python | qrcode_Linux.py | deadlysnowman3308/py.QR.code | 376ede1e42a73a23c4cb68a5441a38f82bbfd689 | [
"MIT"
] | 2 | 2020-09-07T15:24:41.000Z | 2020-10-27T13:43:26.000Z | qrcode_Linux.py | deadlysnowman3308/py.QR.code | 376ede1e42a73a23c4cb68a5441a38f82bbfd689 | [
"MIT"
] | null | null | null | qrcode_Linux.py | deadlysnowman3308/py.QR.code | 376ede1e42a73a23c4cb68a5441a38f82bbfd689 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pyqrcode
import os
from pyqrcode import QRCode
user = input('Enter your text>> ')
user = str(user)
s = user
url = pyqrcode.create(s)
url.svg('myqr.svg', scale=9)
new = input('Enter your file name>>> ')
print ()
print ()
print ()
print 'Your qrcode text is >>>>'
print user
print ()
print ()
print ()
print ()
old_file = 'myqr.svg'
new_file = new + '.svg'
os.rename(old_file, new_file)
print 'Done!'
print '
| 18.615385 | 42 | 0.619835 | 71 | 484 | 4.169014 | 0.450704 | 0.202703 | 0.202703 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.210744 | 484 | 25 | 43 | 19.36 | 0.769634 | 0.078512 | 0 | 0.304348 | 0 | 0 | 0.224344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.478261 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
51f210589042b42c859fbca04aded122cb6814cb | 39 | py | Python | scripts/auth.py | Coopss/ConspiracyBERT | dbccc6628ab35cd5bda3edc3a5489ecb37e6335d | [
"MIT"
] | null | null | null | scripts/auth.py | Coopss/ConspiracyBERT | dbccc6628ab35cd5bda3edc3a5489ecb37e6335d | [
"MIT"
] | null | null | null | scripts/auth.py | Coopss/ConspiracyBERT | dbccc6628ab35cd5bda3edc3a5489ecb37e6335d | [
"MIT"
] | null | null | null | username = 'ryan'
password = 'password' | 19.5 | 21 | 0.717949 | 4 | 39 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 39 | 2 | 21 | 19.5 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
cfb0d9930d89743cc78f673f008c3bdc61276dc9 | 1,066 | py | Python | writexls.py | xuanthuong/python-modules | faf8b1c09f93bf43ed9e0330d09d34792f4dca2f | [
"MIT"
] | null | null | null | writexls.py | xuanthuong/python-modules | faf8b1c09f93bf43ed9e0330d09d34792f4dca2f | [
"MIT"
] | null | null | null | writexls.py | xuanthuong/python-modules | faf8b1c09f93bf43ed9e0330d09d34792f4dca2f | [
"MIT"
] | null | null | null | # # xlwt -> only .xls
# # xlsxwriter/openpyxl -> .xlsx
#
# from xlwt import Workbook, Formula, easyxf
#
# wb = Workbook()
# sheet1 = wb.add_sheet('Plan')
# sheet2 = wb.add_sheet('Schedule')
# sheet3 = wb.add_sheet('Resource')
#
# sheet1.write(0, 0, 'This is the plan')
# sheet2.write(0, 1, 'This is the schedule')
# sheet3.write(0, 2, 'This is the resource')
#
# sheet1.col(0).width = 7000
#
# for i in range(10):
# sheet2.write(i, 0, i)
#
# style1 = easyxf('pattern: pattern solid, fore_colour red;')
# sheet2.write(10, 0, Formula('SUM(A1:A10)'), style1)
#
# wb.save('xlwt_sample.xls')
# from PIL import Image
# import sys
import commands
# usrimg = Image.open(sys.argv[1])
# Converting the image to greyscale.
# captcha = usrimg.convert('1')
# Saving the image as tesseract can read.
# captcha.save('temp.bmp', dpi=(200,200))
# Invoking tesseract from python to extract characters
# commands.getoutput('tesseract D:\WhatsApp.jpeg D:\output')
# Reading the output generated in data.txt
# with open('data.txt', 'r') as data:
# print data.readline().strip()
| 28.052632 | 61 | 0.679174 | 160 | 1,066 | 4.49375 | 0.53125 | 0.020862 | 0.041725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043142 | 0.15197 | 1,066 | 37 | 62 | 28.810811 | 0.752212 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cfd6b478c386fb9b65047b1eae1c7d1530f53a83 | 816 | py | Python | PyOpenGL-3.0.2/OpenGL/GL/ARB/shader_bit_encoding.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/GL/ARB/shader_bit_encoding.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/GL/ARB/shader_bit_encoding.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | '''OpenGL extension ARB.shader_bit_encoding
This module customises the behaviour of the
OpenGL.raw.GL.ARB.shader_bit_encoding to provide a more
Python-friendly API
Overview (from the spec)
This extension trivially adds built-in functions for getting/setting
the bit encoding for floating-point values in the OpenGL Shading Language.
These functions are pulled out of ARB_gpu_shader5, since support for such
built-in functions exists in current hardware.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/shader_bit_encoding.txt
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.ARB.shader_bit_encoding import *
### END AUTOGENERATED SECTION | 35.478261 | 75 | 0.814951 | 124 | 816 | 5.282258 | 0.580645 | 0.083969 | 0.073282 | 0.122137 | 0.094656 | 0.094656 | 0.094656 | 0 | 0 | 0 | 0 | 0.001408 | 0.129902 | 816 | 23 | 76 | 35.478261 | 0.921127 | 0.806373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cff67aeca758442124f0a6612e415acadd463898 | 408 | py | Python | src/test/restart_diversion.py | cgjones/rr | dcdde9c497cad27618b27f6754c11b0693894178 | [
"MIT"
] | 3 | 2015-03-01T23:26:27.000Z | 2021-01-14T03:31:36.000Z | src/test/restart_diversion.py | rogerwang/rr | 619b8951d392b46c6f62b2bad7c0861a05d9f32e | [
"MIT"
] | null | null | null | src/test/restart_diversion.py | rogerwang/rr | 619b8951d392b46c6f62b2bad7c0861a05d9f32e | [
"MIT"
] | null | null | null | from rrutil import *
send_gdb('b main\n')
expect_gdb('Breakpoint 1')
send_gdb('c\n')
expect_gdb('Breakpoint 1')
send_gdb('check\n')
expect_gdb('= 1')
send_gdb('p atomic_printf("hello%s", "kitty")\n')
expect_gdb('hellokitty')
restart_replay()
expect_gdb('Breakpoint 1')
send_gdb('p atomic_printf("hello%s", "kitty")\n')
expect_gdb('hellokitty')
send_gdb('restart 1\n')
expect_gdb('Breakpoint 1')
ok()
| 16.32 | 49 | 0.710784 | 67 | 408 | 4.089552 | 0.343284 | 0.229927 | 0.218978 | 0.291971 | 0.729927 | 0.653285 | 0.583942 | 0.379562 | 0.379562 | 0.379562 | 0 | 0.016216 | 0.093137 | 408 | 24 | 50 | 17 | 0.724324 | 0 | 0 | 0.5 | 0 | 0 | 0.426471 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3201ae9181dce75a34101263b2c6e293b38e69ba | 57 | py | Python | ceph/web/plugins/perfometer/ceph_df.py | jthiltges/check_mk | 37fb2aed5841be2cdca751aaf9415a755fa7d62d | [
"MIT"
] | null | null | null | ceph/web/plugins/perfometer/ceph_df.py | jthiltges/check_mk | 37fb2aed5841be2cdca751aaf9415a755fa7d62d | [
"MIT"
] | null | null | null | ceph/web/plugins/perfometer/ceph_df.py | jthiltges/check_mk | 37fb2aed5841be2cdca751aaf9415a755fa7d62d | [
"MIT"
] | null | null | null | perfometers["check_mk-ceph_df"] = perfometer_check_mk_df
| 28.5 | 56 | 0.842105 | 9 | 57 | 4.777778 | 0.666667 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 57 | 1 | 57 | 57 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
321d55cdb87260d88bfd20650facf3604d53d7cd | 329 | py | Python | 4-preprocessing/dividing_languages/polyglot/mapping/__init__.py | correia-marcos/Innovation-on-brazilian-economic-research | 98bc677618ec2dff062db42cda7279a5e7065a32 | [
"MIT"
] | null | null | null | 4-preprocessing/dividing_languages/polyglot/mapping/__init__.py | correia-marcos/Innovation-on-brazilian-economic-research | 98bc677618ec2dff062db42cda7279a5e7065a32 | [
"MIT"
] | null | null | null | 4-preprocessing/dividing_languages/polyglot/mapping/__init__.py | correia-marcos/Innovation-on-brazilian-economic-research | 98bc677618ec2dff062db42cda7279a5e7065a32 | [
"MIT"
] | null | null | null | from .base import CountedVocabulary, OrderedVocabulary, VocabularyBase
from .embeddings import Embedding
from .expansion import CaseExpander, DigitExpander
__all__ = ['CountedVocabulary',
'OrderedVocabulary',
'VocabularyBase',
'Embedding',
'CaseExpander',
'DigitExpander']
| 29.909091 | 70 | 0.680851 | 22 | 329 | 10 | 0.545455 | 0.309091 | 0.436364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240122 | 329 | 10 | 71 | 32.9 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.24924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
5ca2a7d2c409cd3ab5bf21ca896f36b84f0e14d3 | 122 | py | Python | lang/py/cookbook/v2/source/cb2_8_9_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_8_9_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_8_9_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | import pretest
if __name__ != '__main__': # when module imported, NOT run as main script
pretest.pretest(__name__)
| 30.5 | 76 | 0.729508 | 16 | 122 | 4.8125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188525 | 122 | 3 | 77 | 40.666667 | 0.777778 | 0.360656 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
5cbb267f4d87bbbfe5ef7d3712ff2062ae3b4fdb | 127 | py | Python | neko/post.py | Frederick-S/neko | 835305c68019fad821a48bd19030d1c917b7bccf | [
"MIT"
] | 1 | 2017-07-24T08:38:21.000Z | 2017-07-24T08:38:21.000Z | neko/post.py | Frederick-S/neko | 835305c68019fad821a48bd19030d1c917b7bccf | [
"MIT"
] | 1 | 2021-03-19T21:30:48.000Z | 2021-03-20T04:55:31.000Z | neko/post.py | Frederick-S/neko | 835305c68019fad821a48bd19030d1c917b7bccf | [
"MIT"
] | null | null | null | class Post(object):
def __init__(self, metadata, content):
self.metadata = metadata
self.content = content
| 25.4 | 42 | 0.653543 | 14 | 127 | 5.642857 | 0.571429 | 0.303797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251969 | 127 | 4 | 43 | 31.75 | 0.831579 | 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 |
5cbde69a363cb7e351fe32fa64393f78430b6f99 | 171 | py | Python | sorts/plotting/__init__.py | danielk333/SORTS | f8454901fda405c0e8ce6553366553c3f043da0b | [
"MIT"
] | 4 | 2020-09-14T11:38:31.000Z | 2021-05-19T08:10:37.000Z | sorts/plotting/__init__.py | danielk333/SORTS | f8454901fda405c0e8ce6553366553c3f043da0b | [
"MIT"
] | 6 | 2020-09-14T05:48:02.000Z | 2021-05-29T14:12:16.000Z | sorts/plotting/__init__.py | danielk333/SORTS | f8454901fda405c0e8ce6553366553c3f043da0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''Plotting sub package
'''
from .general import orbits, grid_earth
from .radar import radar_earth, radar_map
from .tracking import local_tracking | 19 | 41 | 0.777778 | 25 | 171 | 5.16 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128655 | 171 | 9 | 42 | 19 | 0.865772 | 0.239766 | 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 |
7a20fe23664ed083c93eda2ccc38ba0b2a157d47 | 73 | py | Python | gmad/__init__.py | JoshPiper/Python-InterWorkshop | 1148b927afe27273f7daf25b09a3c55977c641be | [
"MIT"
] | 1 | 2020-03-18T14:50:59.000Z | 2020-03-18T14:50:59.000Z | gmad/__init__.py | JoshPiper/Python-InterWorkshop | 1148b927afe27273f7daf25b09a3c55977c641be | [
"MIT"
] | 3 | 2020-03-17T14:07:43.000Z | 2021-02-14T13:28:22.000Z | gmad/__init__.py | JoshPiper/Python-InterWorkshop | 1148b927afe27273f7daf25b09a3c55977c641be | [
"MIT"
] | 1 | 2020-05-17T15:19:31.000Z | 2020-05-17T15:19:31.000Z | """A module for the processing, creation and unpacking of .gma files."""
| 36.5 | 72 | 0.726027 | 11 | 73 | 4.818182 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 73 | 1 | 73 | 73 | 0.854839 | 0.90411 | 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 |
7a3b8f5d32709e5d54b2fa7b6e654a7602046fe5 | 176 | py | Python | py_sanic_samples/api/__init__.py | liguodongIOT/py-sanic-samples | c8f575a074a409149579cfd1b7073de5213d77c0 | [
"Apache-2.0"
] | null | null | null | py_sanic_samples/api/__init__.py | liguodongIOT/py-sanic-samples | c8f575a074a409149579cfd1b7073de5213d77c0 | [
"Apache-2.0"
] | null | null | null | py_sanic_samples/api/__init__.py | liguodongIOT/py-sanic-samples | c8f575a074a409149579cfd1b7073de5213d77c0 | [
"Apache-2.0"
] | null | null | null | from sanic import Blueprint
from .content import content
from .info import info
from .swagger import swagger
api = Blueprint.group(content, info, swagger, url_prefix="/api")
| 22 | 64 | 0.784091 | 25 | 176 | 5.48 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 176 | 7 | 65 | 25.142857 | 0.901316 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0.4 | 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 |
7a91eff0ffef187d2f07d95ef41b189b20903c07 | 5,718 | py | Python | tests/gromacs/test_mmpbsa.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | null | null | null | tests/gromacs/test_mmpbsa.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | null | null | null | tests/gromacs/test_mmpbsa.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | null | null | null | from icolos.core.workflow_steps.gromacs.mmpbsa import StepGMXmmpbsa
from icolos.core.containers.generic import GenericData
import unittest
import os
from icolos.utils.enums.step_enums import StepBaseEnum, StepGromacsEnum
from tests.tests_paths import PATHS_EXAMPLEDATA, export_unit_test_env_vars, MAIN_CONFIG
from icolos.utils.general.files_paths import attach_root_path
from time import time
_SGE = StepGromacsEnum()
_SBE = StepBaseEnum
class Test_MMPBSA(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
cls._test_dir = attach_root_path("tests/junk/gromacs")
if not os.path.isdir(cls._test_dir):
os.makedirs(cls._test_dir)
export_unit_test_env_vars()
def setUp(self) -> None:
with open(PATHS_EXAMPLEDATA.GROMACS_HOLO_STRUCTURE_GRO, "r") as f:
self.structure = f.read()
with open(PATHS_EXAMPLEDATA.GROMACS_1BVG_TOP, "r") as f:
self.topol = f.read()
with open(PATHS_EXAMPLEDATA.GROMACS_1BVG_TPR, "rb") as f:
self.tpr_file = f.read()
with open(PATHS_EXAMPLEDATA.GROMACS_1BVG_XTC, "rb") as f:
self.xtc_file = f.read()
with open(PATHS_EXAMPLEDATA.MMPBSA_POSRE, "rb") as f:
self.posre = f.read()
with open(PATHS_EXAMPLEDATA.MMPBSA_LIG_ITP, "rb") as f:
self.lig_itp = f.read()
with open(PATHS_EXAMPLEDATA.MMPBSA_LIG_POSRE, "rb") as f:
self.lig_posre = f.read()
def test_protein_lig_single_traj(self):
step_conf = {
_SBE.STEPID: "test_gmmpbsa",
_SBE.STEP_TYPE: "gmx_mmpbsa",
_SBE.EXEC: {
_SBE.EXEC_PREFIXEXECUTION: "module load GROMACS/2021-fosscuda-2019a-PLUMED-2.7.1-Python-3.7.2 && module load gmx_MMPBSA && module load AmberTools/21-fosscuda-2019a-Python-3.7.2"
},
_SBE.SETTINGS: {
_SBE.SETTINGS_ARGUMENTS: {
_SBE.SETTINGS_ARGUMENTS_FLAGS: [],
_SBE.SETTINGS_ARGUMENTS_PARAMETERS: {},
},
_SBE.SETTINGS_ADDITIONAL: {
_SGE.FORCEFIELD: MAIN_CONFIG["FORCEFIELD"],
_SGE.COUPLING_GROUPS: "Protein Other",
},
},
}
step_mmpbsa = StepGMXmmpbsa(**step_conf)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="structure.gro", file_data=self.structure)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="topol.top", file_data=self.topol)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="structure.xtc", file_data=self.xtc_file)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="structure.tpr", file_data=self.tpr_file)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="posre.itp", file_data=self.posre)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="DMP:100.itp", file_data=self.lig_itp)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="posre_DMP:100.itp", file_data=self.lig_posre)
)
step_mmpbsa.execute()
out_path = os.path.join(self._test_dir, "FINAL_RESULTS_MMPBSA.dat")
step_mmpbsa.write_generic_by_extension(self._test_dir, "dat")
stat_inf = os.stat(out_path)
self.assertGreater(stat_inf.st_size, 5570)
def test_protein_lig_single_traj_custom_file(self):
step_conf = {
_SBE.STEPID: "test_gmmpbsa",
_SBE.STEP_TYPE: "gmx_mmpbsa",
_SBE.EXEC: {
_SBE.EXEC_PREFIXEXECUTION: "module load GROMACS/2021-fosscuda-2019a-PLUMED-2.7.1-Python-3.7.2 && module load gmx_MMPBSA && module load AmberTools/21-fosscuda-2019a-Python-3.7.2"
},
_SBE.SETTINGS: {
_SBE.SETTINGS_ARGUMENTS: {
_SBE.SETTINGS_ARGUMENTS_FLAGS: [],
_SBE.SETTINGS_ARGUMENTS_PARAMETERS: {},
},
_SBE.SETTINGS_ADDITIONAL: {
_SGE.FORCEFIELD: MAIN_CONFIG["FORCEFIELD"],
_SGE.COUPLING_GROUPS: "Protein Other",
_SGE.INPUT_FILE: PATHS_EXAMPLEDATA.MMPBSA_CUSTOM_INPUT,
"ntasks": 2,
},
},
}
step_mmpbsa = StepGMXmmpbsa(**step_conf)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="structure.gro", file_data=self.structure)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="topol.top", file_data=self.topol)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="structure.xtc", file_data=self.xtc_file)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="structure.tpr", file_data=self.tpr_file)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="posre.itp", file_data=self.posre)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="DMP:100.itp", file_data=self.lig_itp)
)
step_mmpbsa.data.generic.add_file(
GenericData(file_name="posre_DMP:100.itp", file_data=self.lig_posre)
)
t1 = time()
step_mmpbsa.execute()
exec_time = time() - t1
print("single traj exec time, custom input", exec_time)
out_path = os.path.join(self._test_dir, "FINAL_RESULTS_MMPBSA.dat")
step_mmpbsa.write_generic_by_extension(self._test_dir, "dat")
stat_inf = os.stat(out_path)
self.assertGreater(stat_inf.st_size, 4680)
| 39.986014 | 193 | 0.62242 | 695 | 5,718 | 4.802878 | 0.185612 | 0.059916 | 0.058718 | 0.088077 | 0.767825 | 0.733074 | 0.716896 | 0.704014 | 0.645297 | 0.645297 | 0 | 0.017324 | 0.273172 | 5,718 | 142 | 194 | 40.267606 | 0.785852 | 0 | 0 | 0.488189 | 0 | 0.015748 | 0.119098 | 0.041273 | 0 | 0 | 0 | 0 | 0.015748 | 1 | 0.031496 | false | 0 | 0.062992 | 0 | 0.102362 | 0.007874 | 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 |
7aa2d5ea859d1d38a3c84f3de9cbc87d003f280a | 94 | py | Python | project/apps.py | OkayJosh/Nemis | ebc6b7b0cfc64386517408a3da566f306fe1e140 | [
"MIT"
] | null | null | null | project/apps.py | OkayJosh/Nemis | ebc6b7b0cfc64386517408a3da566f306fe1e140 | [
"MIT"
] | null | null | null | project/apps.py | OkayJosh/Nemis | ebc6b7b0cfc64386517408a3da566f306fe1e140 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ProjectConfig(AppConfig):
name = 'project'
| 15.666667 | 34 | 0.712766 | 10 | 94 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 94 | 5 | 35 | 18.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 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 |
7abf446970967a5b5a0923bc34ff2c89c3f34d1b | 478 | py | Python | release/scripts/presets/cloth/denim.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | release/scripts/presets/cloth/denim.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | release/scripts/presets/cloth/denim.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | import bpy
bpy.context.cloth.settings.quality = 12
bpy.context.cloth.settings.mass = 1
bpy.context.cloth.settings.tension_stiffness = 40
bpy.context.cloth.settings.compression_stiffness = 40
bpy.context.cloth.settings.shear_stiffness = 40
bpy.context.cloth.settings.bending_stiffness = 10
bpy.context.cloth.settings.tension_damping = 25
bpy.context.cloth.settings.compression_damping = 25
bpy.context.cloth.settings.shear_damping = 25
bpy.context.cloth.settings.air_damping = 1
| 39.833333 | 53 | 0.828452 | 70 | 478 | 5.542857 | 0.271429 | 0.257732 | 0.386598 | 0.592784 | 0.747423 | 0.510309 | 0 | 0 | 0 | 0 | 0 | 0.040359 | 0.066946 | 478 | 11 | 54 | 43.454545 | 0.829596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8f9121e96a5e9983fc6f45c4a75e790e65e233a4 | 1,386 | py | Python | resources/panels/seeds/modern_adjective.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 32 | 2016-08-27T01:31:42.000Z | 2022-03-21T08:59:28.000Z | resources/panels/seeds/modern_adjective.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 3 | 2016-08-27T00:51:47.000Z | 2019-08-26T13:23:04.000Z | resources/panels/seeds/modern_adjective.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 10 | 2016-08-28T14:14:41.000Z | 2021-03-18T03:24:22.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Astounding Horror 1930s
chart = ["accursed", "adjoining", "artificial", "attracted", "enbattled", "beady", "broad", "careless", "bovine", "cellar", "certain", "coarse", "common", "official", "damn", "dangerous", "densest", "dependent", "devoted", "different", "dimmest", "disastrous", "distinctive", "distraught", "ethical", "excitement", "faint", "false", "finest", "first", "fittest", "flailing", "folded", "foremost", "tired", "girl's", "greedy", "hypnotic", "endless", "impatient", "inarticulate", "incapable", "inclined", "inner", "inquisitive", "intelligible", "larger", "less", "lightning-like", "little", "logical", "lowered", "ludicrous", "mingled", "momentary", "driven", "near", "nearby", "nearest", "nerve-racking", "noisy", "open", "ordinary", "parched", "peculiar", "porous", "present", "prominent", "queenly", "reasonable", "red-hot", "reflected", "reliable", "rightful", "routine", "rubbish", "sardonic", "several", "shattered", "sinewy", "slower", "smallest", "soundless", "square", "successive", "superior", "supernatural", "sure", "surprised", "surprising", "sustained", "swept", "tattered", "terrible", "thin", "tough", "treasonous", "uncle's", "uncouth", "undisturbed", "unequal", "unparalleled", "unset", "unusual", "upright", "utterly", "watched", "well-laid", "white-hot", "wise", "wistful", "wooden", "wounded"],
| 277.2 | 1,313 | 0.646465 | 131 | 1,386 | 6.839695 | 0.984733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.090909 | 1,386 | 4 | 1,314 | 346.5 | 0.707143 | 0.047619 | 0 | 0 | 0 | 0 | 0.646925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8f996f77b8ed620e999bd5c00027241fe1ca8dcb | 86 | py | Python | src/syrupy/extensions/__init__.py | dtczest/syrupy | c37d6521852c96cf1ae01873c02b94410d38b663 | [
"Apache-2.0"
] | 147 | 2019-11-24T22:44:39.000Z | 2022-03-28T17:19:34.000Z | src/syrupy/extensions/__init__.py | dtczest/syrupy | c37d6521852c96cf1ae01873c02b94410d38b663 | [
"Apache-2.0"
] | 560 | 2019-11-19T19:15:19.000Z | 2022-03-18T19:29:14.000Z | src/syrupy/extensions/__init__.py | dtczest/syrupy | c37d6521852c96cf1ae01873c02b94410d38b663 | [
"Apache-2.0"
] | 13 | 2020-03-07T23:23:10.000Z | 2022-01-25T17:05:07.000Z | from .amber import AmberSnapshotExtension
DEFAULT_EXTENSION = AmberSnapshotExtension
| 21.5 | 42 | 0.883721 | 7 | 86 | 10.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 3 | 43 | 28.666667 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 4 |
8fbcc7b02171a8535bd63cf1e931599f5f7889c8 | 159 | py | Python | src/std/__init__.py | ojimary/titus | ac53bcde5e0f32ab1f8b982b5c2bb7d89c9917a4 | [
"Condor-1.1"
] | 108 | 2015-05-29T07:50:26.000Z | 2022-03-04T06:10:55.000Z | src/std/__init__.py | ROBERT-MCDOWELL/p2p-sip | 3ba6d39327694f662c3e4c9c943f9bfb4abb9a29 | [
"Condor-1.1"
] | 5 | 2015-07-16T16:33:21.000Z | 2020-05-30T23:13:20.000Z | src/std/__init__.py | ROBERT-MCDOWELL/p2p-sip | 3ba6d39327694f662c3e4c9c943f9bfb4abb9a29 | [
"Condor-1.1"
] | 69 | 2015-07-20T16:05:04.000Z | 2022-03-31T15:41:03.000Z | '''
This package contains the core implementations of various protocols as defined
by the IETF in various RFCs and (work-in-progress) Internet-Drafts.
''' | 39.75 | 79 | 0.761006 | 23 | 159 | 5.26087 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163522 | 159 | 4 | 80 | 39.75 | 0.909774 | 0.918239 | 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 |
8fc007823076632aa8bf463fe4304fca52f24b32 | 421 | py | Python | asn1tools/errors.py | cromulencellc/asn1tools | 30eb88e287cc1616903858aa96ee8791a4d7bf1c | [
"MIT"
] | 198 | 2017-08-04T21:49:15.000Z | 2022-03-26T10:11:21.000Z | asn1tools/errors.py | cromulencellc/asn1tools | 30eb88e287cc1616903858aa96ee8791a4d7bf1c | [
"MIT"
] | 144 | 2017-09-29T12:06:51.000Z | 2022-03-29T13:04:44.000Z | asn1tools/errors.py | cromulencellc/asn1tools | 30eb88e287cc1616903858aa96ee8791a4d7bf1c | [
"MIT"
] | 73 | 2017-10-09T13:33:28.000Z | 2022-03-11T01:35:22.000Z | """Various exceptions/errors.
"""
class Error(Exception):
"""Base exception of all asn1tools exceptions.
"""
class CompileError(Error):
"""General ASN.1 compile error.
"""
class EncodeError(Error):
"""General ASN.1 encode error.
"""
class DecodeError(Error):
"""General ASN.1 decode error.
"""
class ConstraintsError(Error):
"""General ASN.1 constraints error.
"""
| 12.382353 | 50 | 0.624703 | 44 | 421 | 5.977273 | 0.477273 | 0.18251 | 0.228137 | 0.243346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.228029 | 421 | 33 | 51 | 12.757576 | 0.793846 | 0.517815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
8ffff98c0b386a39130c4d1182421e1a7eaf71d6 | 70 | py | Python | somewhere.py | liguodongIOT/py-sanic-samples | c8f575a074a409149579cfd1b7073de5213d77c0 | [
"Apache-2.0"
] | null | null | null | somewhere.py | liguodongIOT/py-sanic-samples | c8f575a074a409149579cfd1b7073de5213d77c0 | [
"Apache-2.0"
] | null | null | null | somewhere.py | liguodongIOT/py-sanic-samples | c8f575a074a409149579cfd1b7073de5213d77c0 | [
"Apache-2.0"
] | null | null | null |
# from sanic import Sanic
#
# app = Sanic.get_app("MyHelloWorldApp")
| 14 | 40 | 0.714286 | 9 | 70 | 5.444444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 70 | 4 | 41 | 17.5 | 0.830508 | 0.885714 | 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 |
8902c9eedec1ae4360a090649cbbed24491d7b64 | 108 | py | Python | tests/__init__.py | fossabot/Simr | 9ce90387329fae683413b7e3f292918a4f3af32c | [
"MIT"
] | 1 | 2021-12-06T01:55:01.000Z | 2021-12-06T01:55:01.000Z | tests/__init__.py | fossabot/Simr | 9ce90387329fae683413b7e3f292918a4f3af32c | [
"MIT"
] | 7 | 2018-08-29T15:08:28.000Z | 2021-12-07T22:15:43.000Z | tests/__init__.py | fossabot/Simr | 9ce90387329fae683413b7e3f292918a4f3af32c | [
"MIT"
] | 2 | 2015-11-24T16:20:21.000Z | 2021-10-14T21:43:33.000Z | __author__ = 'Sander Krause <sanderkrause@gmail.com>'
__author__ = 'Roel van Nuland <roel@kompjoefriek.nl>'
| 36 | 53 | 0.768519 | 13 | 108 | 5.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101852 | 108 | 2 | 54 | 54 | 0.773196 | 0 | 0 | 0 | 0 | 0 | 0.703704 | 0.425926 | 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 |
890e72056daed053fd966fe88dee965718be1dc3 | 121 | py | Python | projects/sudoku/utils/__init__.py | andersy005/artificial-intelligence | dcf5ebb1959835aee7dacdb5a2cea14790f2cf01 | [
"MIT"
] | 7 | 2017-08-31T23:27:23.000Z | 2021-11-16T13:20:10.000Z | projects/sudoku/utils/__init__.py | andersy005/artificial-intelligence | dcf5ebb1959835aee7dacdb5a2cea14790f2cf01 | [
"MIT"
] | null | null | null | projects/sudoku/utils/__init__.py | andersy005/artificial-intelligence | dcf5ebb1959835aee7dacdb5a2cea14790f2cf01 | [
"MIT"
] | 7 | 2018-01-01T13:39:38.000Z | 2020-04-26T14:41:39.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 31 20:14:15 2017
@author: Anderson Banihirwe
"""
| 13.444444 | 35 | 0.628099 | 19 | 121 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0.173554 | 121 | 8 | 36 | 15.125 | 0.62 | 0.892562 | 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 |
64e05669569fa8d96ca75790dccc9215919be3cd | 276 | py | Python | tpcp/optimize/__init__.py | mad-lab-fau/tpcp | ef906afec4c58338dd286f37d62996fc83964404 | [
"MIT"
] | 2 | 2021-11-03T16:54:55.000Z | 2021-11-04T17:57:34.000Z | tpcp/optimize/__init__.py | mad-lab-fau/tpcp | ef906afec4c58338dd286f37d62996fc83964404 | [
"MIT"
] | 28 | 2021-11-22T10:25:16.000Z | 2022-03-23T11:54:00.000Z | tpcp/optimize/__init__.py | mad-lab-fau/tpcp | ef906afec4c58338dd286f37d62996fc83964404 | [
"MIT"
] | null | null | null | """Module for all supported parameter optimization methods."""
from tpcp._optimize import BaseOptimize
from tpcp.optimize._optimize import DummyOptimize, GridSearch, GridSearchCV, Optimize
__all__ = ["GridSearch", "GridSearchCV", "Optimize", "DummyOptimize", "BaseOptimize"]
| 46 | 85 | 0.797101 | 27 | 276 | 7.925926 | 0.555556 | 0.074766 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094203 | 276 | 5 | 86 | 55.2 | 0.856 | 0.202899 | 0 | 0 | 0 | 0 | 0.257009 | 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 |
64e65224bf103799731b1bd07085f0eb69963184 | 2,608 | py | Python | ganimides_server/ganimides_openBankingAPI/__init__.py | leandrou-technology-forward/api_server | 0a41335a45f179ba831799722dc049a98ed9c094 | [
"MIT"
] | null | null | null | ganimides_server/ganimides_openBankingAPI/__init__.py | leandrou-technology-forward/api_server | 0a41335a45f179ba831799722dc049a98ed9c094 | [
"MIT"
] | 1 | 2021-06-02T00:31:50.000Z | 2021-06-02T00:31:50.000Z | ganimides_server/ganimides_openBankingAPI/__init__.py | leandrou-technology-forward/ganimides_api_server | 8787927e2cf7568a070c1c65294ee76d89177908 | [
"MIT"
] | null | null | null | import os
import sys
#3 levels up
if not (os.path.dirname(os.path.dirname(os.path.dirname(__file__))) in sys.path): sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
if not (os.path.dirname(os.path.dirname(__file__)) in sys.path): sys.path.append(os.path.dirname(os.path.dirname(__file__)))
if not (os.path.dirname(__file__) in sys.path): sys.path.append(os.path.dirname(__file__))
thisfolder =os.path.dirname(__file__)
module_id = os.path.basename(thisfolder)
module_version = 0.1
# from _serverApp import thisApp
from _serverApp import thisApp
from _serverApp import log_message
#openbanking apis
from _ganimides_openBankingAPI import bankaccount_remove
from _ganimides_openBankingAPI import banksubscription_create
from _ganimides_openBankingAPI import banksubscription_receive_authorization_from_client
from _ganimides_openBankingAPI import banksubscription_register
from _ganimides_openBankingAPI import banksubscription_request_authorization_from_client
from _ganimides_openBankingAPI import banksubscription_unregister
from _ganimides_openBankingAPI import client_banksubscription_register
from _ganimides_openBankingAPI import merchant_banksubscription_register
from ganimides_bankingAPI import authorize_and_commit_subscription
from ganimides_bankingAPI import authorize_payment
from ganimides_bankingAPI import authorize_subscription
from ganimides_bankingAPI import bank_is_supported
from ganimides_bankingAPI import change_subscription
from ganimides_bankingAPI import commit_subscription
from ganimides_bankingAPI import create_authorize_and_commit_subscription
from ganimides_bankingAPI import create_subscription
from ganimides_bankingAPI import delete_payment
from ganimides_bankingAPI import delete_subscription
from ganimides_bankingAPI import get_access_token
from ganimides_bankingAPI import get_account_balances
from ganimides_bankingAPI import get_account_details
from ganimides_bankingAPI import get_account_payments
from ganimides_bankingAPI import get_account_subscriptions
from ganimides_bankingAPI import get_account_transactions
from ganimides_bankingAPI import get_authorization_token
from ganimides_bankingAPI import get_payment_details
from ganimides_bankingAPI import get_payment_status
from ganimides_bankingAPI import get_subscription_accounts
from ganimides_bankingAPI import get_subscription_customers
from ganimides_bankingAPI import get_subscription_details
from ganimides_bankingAPI import post_payment
msg = f'module [{module_id}] [[version {module_version}]] loaded.'
if thisApp.get_module_debug_level(module_id):
log_message(msg)
| 49.207547 | 158 | 0.885736 | 335 | 2,608 | 6.486567 | 0.20597 | 0.185458 | 0.243442 | 0.306949 | 0.76208 | 0.541187 | 0.298665 | 0.23884 | 0.115969 | 0.115969 | 0 | 0.001241 | 0.073236 | 2,608 | 52 | 159 | 50.153846 | 0.897807 | 0.022239 | 0 | 0 | 0 | 0 | 0.022379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.795455 | 0 | 0.795455 | 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 |
8f0d855eadeb38b04f3b250e2bebeeceb83fe863 | 89 | py | Python | rssfeed/apps.py | 5pence/rss_helper | 497c8a74eb64a3874183175af66b75294cd5e091 | [
"MIT"
] | 1 | 2020-07-25T19:36:18.000Z | 2020-07-25T19:36:18.000Z | rssfeed/apps.py | 5pence/rss_helper | 497c8a74eb64a3874183175af66b75294cd5e091 | [
"MIT"
] | 4 | 2021-03-19T03:50:30.000Z | 2021-06-10T19:22:56.000Z | rssfeed/apps.py | 5pence/rss_helper | 497c8a74eb64a3874183175af66b75294cd5e091 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RssfeedConfig(AppConfig):
name = 'rssfeed'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 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 |
8f4c173a8b204d1aa7488581558d01da6901aac4 | 682 | py | Python | web-starter/blueyellow_pycharm_app/blueyellow_pycharm_app/controllers/home_controller.py | agbs2k8/WebLearning | 9976f185f7b9df3bdf448fd0e03ce07fc723a503 | [
"MIT"
] | null | null | null | web-starter/blueyellow_pycharm_app/blueyellow_pycharm_app/controllers/home_controller.py | agbs2k8/WebLearning | 9976f185f7b9df3bdf448fd0e03ce07fc723a503 | [
"MIT"
] | null | null | null | web-starter/blueyellow_pycharm_app/blueyellow_pycharm_app/controllers/home_controller.py | agbs2k8/WebLearning | 9976f185f7b9df3bdf448fd0e03ce07fc723a503 | [
"MIT"
] | null | null | null | import pyramid_handlers
from blueyellow_pycharm_app.controllers.base_controller import BaseController
from blueyellow_pycharm_app.infrastructure.suppressor import suppress
class HomeController(BaseController):
@pyramid_handlers.action(renderer = 'templates/home/index.pt')
def index(self):
return {'value' : 'HOME'}
@pyramid_handlers.action(renderer = 'templates/home/about.pt')
def about(self):
return {'value' : 'ABOUT'}
@pyramid_handlers.action(renderer = 'templates/home/contact.pt')
def contact(self):
return {'value' : 'CONTACT'}
@suppress
def dont_expose_as_web_action(self):
print("Called dont_expose...") | 32.47619 | 77 | 0.721408 | 77 | 682 | 6.207792 | 0.441558 | 0.125523 | 0.131799 | 0.182008 | 0.263598 | 0.263598 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164223 | 682 | 21 | 78 | 32.47619 | 0.838596 | 0 | 0 | 0 | 0 | 0 | 0.180088 | 0.103953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.1875 | 0.6875 | 0.0625 | 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 |
56a9b16f2372dd63675469e3b087c0b245d8b5a3 | 137 | py | Python | djangosige/apps/compras/apps.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/compras/apps.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/compras/apps.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class ComprasConfig(AppConfig):
name = 'compras'
| 17.125 | 40 | 0.751825 | 15 | 137 | 6.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19708 | 137 | 7 | 41 | 19.571429 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
56abbb6fcca6c525ccba972fc9242e29fc733cfc | 407 | py | Python | test/tests/pickle_test.py | vinzenz/pyston | 211aa1dd5b163be7fbe0c0dac85c38b01c36afc2 | [
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | test/tests/pickle_test.py | vinzenz/pyston | 211aa1dd5b163be7fbe0c0dac85c38b01c36afc2 | [
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | test/tests/pickle_test.py | vinzenz/pyston | 211aa1dd5b163be7fbe0c0dac85c38b01c36afc2 | [
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | import pickle
l = [[], (123,)]
l.append(l)
s = pickle.dumps(l)
print repr(s)
l2 = pickle.loads(s)
l3 = l2.pop()
print l2, l3, l2 is l3
print pickle.loads(pickle.dumps("hello world"))
# Sqlalchemy wants this:
import operator
print repr(pickle.dumps(len))
print repr(pickle.dumps(operator.and_))
class C(object):
pass
c = C()
c.a = 1
print repr(pickle.dumps(c))
print pickle.loads(pickle.dumps(c)).a
| 16.28 | 47 | 0.685504 | 71 | 407 | 3.915493 | 0.394366 | 0.23741 | 0.161871 | 0.215827 | 0.194245 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031609 | 0.144963 | 407 | 24 | 48 | 16.958333 | 0.767241 | 0.054054 | 0 | 0 | 0 | 0 | 0.028721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.111111 | null | null | 0.388889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
56bc1dd30db3c6c1639b03816520d14084ceb496 | 19,654 | py | Python | tests/gui/steps/oneprovider/data_tab.py | aoxiangflysky/onedata | 5fe5783f4fb23e90e6567d638a165a0bfcc2f663 | [
"Apache-2.0"
] | 2 | 2017-09-15T10:38:56.000Z | 2017-09-20T12:48:55.000Z | tests/gui/steps/oneprovider/data_tab.py | aoxiangflysky/onedata | 5fe5783f4fb23e90e6567d638a165a0bfcc2f663 | [
"Apache-2.0"
] | 31 | 2016-09-07T11:50:15.000Z | 2017-10-31T11:47:50.000Z | tests/gui/steps/oneprovider/data_tab.py | aoxiangflysky/onedata | 5fe5783f4fb23e90e6567d638a165a0bfcc2f663 | [
"Apache-2.0"
] | 1 | 2017-08-31T11:55:09.000Z | 2017-08-31T11:55:09.000Z | """Steps used for handling of data tab elements (e.g. toolbar)
in various GUI testing scenarios
"""
__author__ = "Bartek Walkowicz"
__copyright__ = "Copyright (C) 2017 ACK CYFRONET AGH"
__license__ = "This software is released under the MIT license cited in " \
"LICENSE.txt"
from itertools import izip
import pytest
from pytest_bdd import given, when, then, parsers
from tests.gui.conftest import WAIT_BACKEND, SELENIUM_IMPLICIT_WAIT, WAIT_FRONTEND
from tests.gui.utils.generic import (repeat_failed, implicit_wait, parse_seq,
upload_file_path, transform)
@when(parsers.parse('user of {browser_id} uses spaces select to change '
'data space to "{space_name}"'))
@then(parsers.parse('user of {browser_id} uses spaces select to change '
'data space to "{space_name}"'))
@repeat_failed(timeout=WAIT_BACKEND)
def change_space_view_in_data_tab_in_op(selenium, browser_id,
space_name, op_page):
driver = selenium[browser_id]
selector = op_page(driver).data.sidebar.space_selector
selector.expand()
selector.spaces[space_name].click()
@when(parsers.re(r'user of (?P<browser_id>.*?) clicks the button '
r'from top menu bar with tooltip '
r'"(?P<tooltip>Create directory|Create file|Share element|'
r'Edit metadata|Rename element|Change element permissions|'
r'Copy element|Cut element|Remove element|'
r'Show data distribution)"'))
@then(parsers.re(r'user of (?P<browser_id>.*?) clicks the button '
r'from top menu bar with tooltip '
r'"(?P<tooltip>Create directory|Create file|Share element|'
r'Edit metadata|Rename element|Change element permissions|'
r'Copy element|Cut element|Remove element|'
r'Show data distribution)"'))
@repeat_failed(timeout=WAIT_FRONTEND)
def click_tooltip_from_toolbar_in_data_tab_in_op(selenium, browser_id,
tooltip, op_page):
driver = selenium[browser_id]
btn = getattr(op_page(driver).data.toolbar, transform(tooltip))
btn.click()
@when(parsers.parse('user of {browser_id} sees that {btn_list} button '
'is enabled in toolbar in data tab in Oneprovider gui'))
@then(parsers.parse('user of {browser_id} sees that {btn_list} button '
'is enabled in toolbar in data tab in Oneprovider gui'))
@when(parsers.parse('user of {browser_id} sees that {btn_list} buttons '
'are enabled in toolbar in data tab in Oneprovider gui'))
@then(parsers.parse('user of {browser_id} sees that {btn_list} buttons '
'are enabled in toolbar in data tab in Oneprovider gui'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_btn_enabled_in_toolbar_in_data_tab_in_op(selenium, browser_id,
btn_list, op_page):
driver = selenium[browser_id]
toolbar = op_page(driver).data.toolbar
err_msg = '{} should be disabled but is not'
for btn in parse_seq(btn_list):
item = getattr(toolbar, transform(btn))
assert item.is_enabled() is True, err_msg.format(item)
@when(parsers.parse('user of {browser_id} sees that {btn_list} button is '
'disabled in toolbar in data tab in Oneprovider gui'))
@then(parsers.parse('user of {browser_id} sees that {btn_list} button is '
'disabled in toolbar in data tab in Oneprovider gui'))
@when(parsers.parse('user of {browser_id} sees that {btn_list} buttons are '
'disabled in toolbar in data tab in Oneprovider gui'))
@then(parsers.parse('user of {browser_id} sees that {btn_list} buttons are '
'disabled in toolbar in data tab in Oneprovider gui'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_btn_disabled_in_toolbar_in_data_tab_in_op(selenium, browser_id,
btn_list, op_page):
driver = selenium[browser_id]
toolbar = op_page(driver).data.toolbar
err_msg = '{} btn should be disabled but is not in toolbar in op data tab'
for btn in parse_seq(btn_list):
item = getattr(toolbar, transform(btn))
assert item.is_enabled() is False, err_msg.format(btn)
@when(parsers.parse('user of {browser_id} sees that current working directory '
'displayed in breadcrumbs is {path}'))
@then(parsers.parse('user of {browser_id} sees that current working directory '
'displayed in breadcrumbs is {path}'))
@repeat_failed(timeout=WAIT_FRONTEND)
def is_displayed_breadcrumbs_in_data_tab_in_op_correct(selenium, browser_id,
path, op_page):
driver = selenium[browser_id]
breadcrumbs = op_page(driver).data.breadcrumbs.pwd()
assert path == breadcrumbs, \
'expected breadcrumbs {}; displayed: {}'.format(path, breadcrumbs)
@when(parsers.parse('user of {browser_id} changes current working directory '
'to {path} using breadcrumbs'))
@then(parsers.parse('user of {browser_id} changes current working directory '
'to {path} using breadcrumbs'))
@repeat_failed(timeout=WAIT_BACKEND)
def change_cwd_using_breadcrumbs_in_data_tab_in_op(selenium, browser_id,
path, op_page):
driver = selenium[browser_id]
op_page(driver).data.breadcrumbs.chdir(path)
@when(parsers.parse('user of {browser_id} sees that current working directory '
'displayed in directory tree is {path}'))
@then(parsers.parse('user of {browser_id} sees that current working directory '
'displayed in directory tree is {path}'))
@repeat_failed(timeout=WAIT_FRONTEND)
def is_displayed_dir_tree_in_data_tab_in_op_correct(selenium, browser_id,
path, op_page):
driver = selenium[browser_id]
with implicit_wait(driver, 0.05, SELENIUM_IMPLICIT_WAIT):
pwd = op_page(driver).data.sidebar.cwd.pwd()
assert path == pwd, 'expected path {}\n got: {}'.format(path, pwd)
@when(parsers.parse('user of {browser_id} changes current working directory '
'to {path} using directory tree'))
@then(parsers.parse('user of {browser_id} changes current working directory '
'to {path} using directory tree'))
@repeat_failed(timeout=WAIT_FRONTEND)
def change_cwd_using_dir_tree_in_data_tab_in_op(selenium, browser_id,
path, op_page):
driver = selenium[browser_id]
cwd = op_page(driver).data.sidebar.root_dir
cwd.click()
for directory in (dir for dir in path.split('/') if dir != ''):
if not cwd.is_expanded():
cwd.expand()
cwd = cwd[directory]
cwd.click()
@when(parsers.parse('user of {browser_id} does not see {path} in directory tree'))
@then(parsers.parse('user of {browser_id} does not see {path} in directory tree'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_absence_of_path_in_dir_tree(selenium, browser_id, path, op_page):
driver = selenium[browser_id]
curr_dir = op_page(driver).data.sidebar.root_dir
with pytest.raises(RuntimeError):
for directory in (dir for dir in path.split('/') if dir != ''):
with implicit_wait(driver, 0.05, SELENIUM_IMPLICIT_WAIT):
curr_dir = curr_dir[directory]
@repeat_failed(timeout=WAIT_FRONTEND)
def _is_space_viewed_space_in_data_tab_in_op(driver, is_home, space_name,
op_page):
selector = op_page(driver).data.sidebar.space_selector
displayed_name = selector.selected_space_name
err_msg = 'current directory tree is displayed for "{}" instead of "{}"'
assert displayed_name == space_name, err_msg.format(displayed_name,
space_name)
if is_home:
assert selector.is_selected_space_home() is True, \
'space {} is not home space'.format(displayed_name)
@given(parsers.re('user of (?P<browser_id>.+?) seen that displayed directory '
'tree in sidebar panel belonged to (?P<is_home>(home )?)space '
'named "(?P<space_name>.+?)'))
def g_is_space_tree_root(selenium, browser_id, is_home, space_name, op_page):
driver = selenium[browser_id]
_is_space_viewed_space_in_data_tab_in_op(driver, True if is_home else False,
space_name, op_page)
@when(parsers.re('user of (?P<browser_id>.+?) sees that displayed directory '
'tree in sidebar panel belongs to (?P<is_home>(home )?)space '
'named "(?P<space_name>.+?)"'))
@then(parsers.re('user of (?P<browser_id>.+?) sees that displayed directory '
'tree in sidebar panel belongs to (?P<is_home>(home )?)space '
'named "(?P<space_name>.+?)"'))
def wt_is_space_tree_root(selenium, browser_id, is_home, space_name, op_page):
driver = selenium[browser_id]
_is_space_viewed_space_in_data_tab_in_op(driver, True if is_home else False,
space_name, op_page)
@when(parsers.parse('user of {browser_id} sees nonempty file browser '
'in data tab in Oneprovider page'))
@then(parsers.parse('user of {browser_id} sees nonempty file browser '
'in data tab in Oneprovider page'))
@repeat_failed(timeout=WAIT_BACKEND*2)
def assert_nonempty_file_browser_in_data_tab_in_op(selenium, browser_id,
op_page, tmp_memory):
driver = selenium[browser_id]
file_browser = op_page(driver).data.file_browser
with implicit_wait(driver, 1, SELENIUM_IMPLICIT_WAIT):
assert not file_browser.is_empty(), 'file browser in data tab in op' \
'should not be empty but is'
tmp_memory[browser_id]['file_browser'] = file_browser
@when(parsers.parse('user of {browser_id} sees empty file browser '
'in data tab in Oneprovider page'))
@then(parsers.parse('user of {browser_id} sees empty file browser '
'in data tab in Oneprovider page'))
@repeat_failed(timeout=WAIT_BACKEND)
def assert_empty_file_browser_in_data_tab_in_op(selenium, browser_id,
op_page, tmp_memory):
driver = selenium[browser_id]
file_browser = op_page(driver).data.file_browser
with implicit_wait(driver, 1, SELENIUM_IMPLICIT_WAIT):
assert file_browser.is_empty(), 'file browser in data tab in op' \
'should be empty but is not'
tmp_memory[browser_id]['file_browser'] = file_browser
@when(parsers.parse('user of {browser_id} sees file browser '
'in data tab in Oneprovider page'))
@then(parsers.parse('user of {browser_id} sees file browser '
'in data tab in Oneprovider page'))
@repeat_failed(timeout=WAIT_BACKEND)
def assert_file_browser_in_data_tab_in_op(selenium, browser_id,
op_page, tmp_memory):
driver = selenium[browser_id]
file_browser = op_page(driver).data.file_browser
tmp_memory[browser_id]['file_browser'] = file_browser
@when(parsers.parse('user of {browser_id} records displayed name length for '
'{path} in directory tree sidebar'))
@when(parsers.parse('user of {browser_id} records displayed name length for '
'{path} in directory tree sidebar'))
@repeat_failed(timeout=WAIT_FRONTEND)
def check_displayed_dir_name_len_in_dir_tree(selenium, browser_id, path,
op_page, tmp_memory):
driver = selenium[browser_id]
cwd = op_page(driver).data.sidebar.root_dir
cwd.click()
for directory in (dir for dir in path.split('/') if dir != ''):
cwd = cwd[directory]
tmp_memory[browser_id][path] = cwd.displayed_name_width
@when(parsers.parse('user of {browser_id} sees that displayed name length for '
'{path} in directory tree sidebar is larger than before'))
@then(parsers.parse('user of {browser_id} sees that displayed name length for '
'{path} in directory tree sidebar is larger than before'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_diff_in_len_of_dir_name_before_and_now(selenium, browser_id, path,
op_page, tmp_memory):
driver = selenium[browser_id]
cwd = op_page(driver).data.sidebar.root_dir
cwd.click()
for directory in (dir for dir in path.split('/') if dir != ''):
cwd = cwd[directory]
prev_len = tmp_memory[browser_id][path]
curr_len = cwd.displayed_name_width
assert prev_len != curr_len, \
'name len of {} is the same as before {}'.format(path, curr_len)
@when(parsers.re(r'user of (?P<browser_id>.+?) expands data tab sidebar to the '
r'(?P<direction>right|left) of approximately (?P<offset>\d+)px'))
@then(parsers.re(r'user of (?P<browser_id>.+?) expands data tab sidebar to the '
r'(?P<direction>right|left) of approximately (?P<offset>\d+)px'))
@repeat_failed(timeout=WAIT_FRONTEND)
def resize_data_tab_sidebar(selenium, browser_id, direction, offset, op_page):
driver = selenium[browser_id]
sidebar = op_page(driver).data.sidebar
offset = (-1 if direction == 'left' else 1) * int(offset)
sidebar.width += offset
@when(parsers.parse('user of {browser_id} waits for file upload to finish'))
@then(parsers.parse('user of {browser_id} waits for file upload to finish'))
@repeat_failed(timeout=WAIT_BACKEND*3)
def wait_for_file_upload_to_finish(selenium, browser_id, op_page):
driver = selenium[browser_id]
uploader = op_page(driver).data.file_uploader
assert not uploader.is_visible(), \
'file upload not finished within given time'
@when(parsers.parse('user of {browser_id} uses upload button in toolbar '
'to upload file "{file_name}" to current dir'))
@then(parsers.parse('user of {browser_id} uses upload button in toolbar '
'to upload file "{file_name}" to current dir'))
def upload_file_to_cwd_in_data_tab(selenium, browser_id, file_name, op_page):
driver = selenium[browser_id]
op_page(driver).data.toolbar.upload_files(upload_file_path(file_name))
@when(parsers.parse('user of {browser_id} uses upload button in toolbar to '
'upload files from local directory "{dir_path}" to remote '
'current dir'))
@then(parsers.parse('user of {browser_id} uses upload button in toolbar to '
'upload files from local directory "{dir_path}" to remote '
'current dir'))
def upload_files_to_cwd_in_data_tab(selenium, browser_id, dir_path,
tmpdir, op_page):
driver = selenium[browser_id]
directory = tmpdir.join(browser_id, *dir_path.split('/'))
if directory.isdir():
op_page(driver).data.toolbar.upload_files('\n'.join(str(item) for item
in directory.listdir()
if item.isfile()))
else:
raise RuntimeError('directory {} does not exist'.format(str(directory)))
@when(parsers.parse('user of {browser_id} sees that chunk bar for provider '
'named "{provider}" is of {size} size'))
@then(parsers.parse('user of {browser_id} sees that chunk bar for provider '
'named "{provider}" is of {size} size'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_provider_chunk_in_data_distribution_size(selenium, browser_id,
size, provider, modals):
driver = selenium[browser_id]
prov_rec = modals(driver).data_distribution.providers[provider]
distribution = prov_rec.distribution
displayed_size = distribution.end
assert displayed_size == size, 'displayed chunk size {} in file ' \
'distribution modal does not match expected ' \
'{}'.format(displayed_size, size)
@when(parsers.parse('user of {browser_id} sees that chunk bar for provider '
'named "{provider}" is entirely filled'))
@then(parsers.parse('user of {browser_id} sees that chunk bar for provider '
'named "{provider}" is entirely filled'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_provider_chunk_in_data_distribution_filled(selenium, browser_id,
provider, modals):
driver = selenium[browser_id]
prov_rec = modals(driver).data_distribution.providers[provider]
distribution = prov_rec.distribution
size, _ = distribution.size
chunks = distribution.chunks
assert len(chunks) == 1, 'distribution for {} is not ' \
'entirely filled'.format(provider)
chunk = chunks[0]
assert chunk[1] - chunk[0] == size, \
'distribution for {} is not filled entirely, but only from ' \
'{} to {}'.format(provider, chunk[0], chunk[1])
@when(parsers.parse('user of {browser_id} sees that chunk bar for provider '
'named "{provider}" is entirely empty'))
@then(parsers.parse('user of {browser_id} sees that chunk bar for provider '
'named "{provider}" is entirely empty'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_provider_chunk_in_data_distribution_empty(selenium, browser_id,
provider, modals):
driver = selenium[browser_id]
prov_rec = modals(driver).data_distribution.providers[provider]
distribution = prov_rec.distribution
size, _ = distribution.size
chunks = distribution.chunks
assert not chunks, 'distribution for {} is not entirely empty. ' \
'Visible chunks: {}'.format(provider, chunks)
@when(parsers.parse('user of {browser_id} sees {chunks} chunk(s) for provider '
'named "{provider}" in chunk bar'))
@then(parsers.parse('user of {browser_id} sees {chunks} chunk(s) for provider '
'named "{provider}" in chunk bar'))
@repeat_failed(timeout=WAIT_FRONTEND)
def assert_provider_chunks_in_data_distribution(selenium, browser_id, chunks,
provider, modals):
driver = selenium[browser_id]
prov_rec = modals(driver).data_distribution.providers[provider]
distribution = prov_rec.distribution
size, _ = distribution.size
displayed_chunks = distribution.chunks
expected_chunks = parse_seq(chunks, pattern=r'\(.+?\)')
assert len(displayed_chunks) == len(expected_chunks), \
'displayed {} chunks instead of expected {}'.format(len(displayed_chunks),
len(expected_chunks))
for chunk1, chunk2 in izip(displayed_chunks, expected_chunks):
assert all(round(x - z) == 0 for x, z in izip(chunk1,
parse_seq(chunk2,
pattern='\d+',
default=int))), \
'displayed chunk {} instead of expected {}'.format(chunk1, chunk2)
| 49.631313 | 82 | 0.63641 | 2,509 | 19,654 | 4.764448 | 0.094061 | 0.079053 | 0.068262 | 0.066254 | 0.794546 | 0.77129 | 0.738163 | 0.708549 | 0.677681 | 0.663209 | 0 | 0.002006 | 0.264475 | 19,654 | 395 | 83 | 49.756962 | 0.824917 | 0.004681 | 0 | 0.543807 | 0 | 0 | 0.309179 | 0.004705 | 0 | 0 | 0 | 0 | 0.081571 | 1 | 0.075529 | false | 0 | 0.015106 | 0 | 0.090634 | 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 |
56c3446db17fe26fc61e1e1ebfa3aedfa929f686 | 95 | py | Python | tests/context.py | sthagen/python-scaling-tribble | 2bb2e41185ae2b0108f341751d0e4a2187909683 | [
"MIT"
] | null | null | null | tests/context.py | sthagen/python-scaling-tribble | 2bb2e41185ae2b0108f341751d0e4a2187909683 | [
"MIT"
] | 18 | 2021-02-14T15:17:17.000Z | 2021-02-14T17:46:27.000Z | tests/context.py | sthagen/python-scaling-tribble | 2bb2e41185ae2b0108f341751d0e4a2187909683 | [
"MIT"
] | null | null | null | import os
PRODUCT_MAPPING = '{"a": "b"}'
os.environ["REPO_PRODUCT_MAPPING"] = PRODUCT_MAPPING
| 19 | 52 | 0.726316 | 13 | 95 | 5 | 0.615385 | 0.646154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 95 | 4 | 53 | 23.75 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 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 |
56de59e1b94e17dd3b719048186d16198c23566e | 169 | py | Python | fabfile/restartapache.py | pastpages/wordpress-memento-plugin | d33a14a955fb9a61fd73d890de3d31145714d785 | [
"MIT"
] | 10 | 2015-09-26T23:10:07.000Z | 2020-02-15T12:14:56.000Z | fabfile/restartapache.py | pastpages/wordpress-memento-plugin | d33a14a955fb9a61fd73d890de3d31145714d785 | [
"MIT"
] | 14 | 2015-08-09T23:19:32.000Z | 2015-10-18T22:19:11.000Z | fabfile/restartapache.py | pastpages/wordpress-memento-plugin | d33a14a955fb9a61fd73d890de3d31145714d785 | [
"MIT"
] | null | null | null | from fabric.api import sudo, task
@task
def restartapache():
"""
Restarts apache on both app servers.
"""
sudo("/etc/init.d/apache2 reload", pty=True)
| 16.9 | 48 | 0.64497 | 23 | 169 | 4.73913 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.218935 | 169 | 9 | 49 | 18.777778 | 0.818182 | 0.213018 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.