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
b1e21b40e037b294f52d53d73a2e377be9f40e45
283
py
Python
Core/HTMLScraper.py
Puddler/ElementalInfo
9ac39e29d701fe80183cc02be0c7e0f51713b289
[ "Unlicense" ]
null
null
null
Core/HTMLScraper.py
Puddler/ElementalInfo
9ac39e29d701fe80183cc02be0c7e0f51713b289
[ "Unlicense" ]
null
null
null
Core/HTMLScraper.py
Puddler/ElementalInfo
9ac39e29d701fe80183cc02be0c7e0f51713b289
[ "Unlicense" ]
null
null
null
import requests from bs4 import BeautifulSoup def getHTML(url): f = requests.get(url) return f.text; def getSoupFromURL(url): html = getHTML(url) return BeautifulSoup(html, "html.parser") def getSoupFromHTML(html): return BeautifulSoup(html, "html.parser")
16.647059
45
0.710247
35
283
5.742857
0.457143
0.099502
0.228856
0.268657
0.328358
0
0
0
0
0
0
0.004329
0.183746
283
16
46
17.6875
0.865801
0
0
0.2
0
0
0.077739
0
0
0
0
0
0
1
0.3
false
0
0.2
0.1
0.8
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
b1eecdccf3c42f050cd86dc0e7bc57d1fa541d56
133
py
Python
command/State.py
junessi/tusync
06d98633db4835138a566c54c228529b5fb8c82e
[ "MIT" ]
1
2021-08-13T02:45:55.000Z
2021-08-13T02:45:55.000Z
command/State.py
junessi/tusync
06d98633db4835138a566c54c228529b5fb8c82e
[ "MIT" ]
null
null
null
command/State.py
junessi/tusync
06d98633db4835138a566c54c228529b5fb8c82e
[ "MIT" ]
null
null
null
from enum import Enum class State(Enum): DONE = 0 NULL = 1 UNKNOWN_COMMAND = 2 INVALID_DATE = 3 EMPTY_DATE = 4
13.3
23
0.616541
20
133
3.95
0.85
0
0
0
0
0
0
0
0
0
0
0.055556
0.323308
133
9
24
14.777778
0.822222
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
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
0
0
1
0
0
3
592888befc224cb52b480f24dacc2e3cf177b4a8
131
py
Python
module01/ex/ex025.py
LauroHBrant/python-course
2154181ca4b684b0d1fa635706bcb1647a753bc3
[ "MIT" ]
2
2021-01-07T23:59:36.000Z
2021-01-18T00:23:52.000Z
module01/ex/ex025.py
LauroHBrant/python-course
2154181ca4b684b0d1fa635706bcb1647a753bc3
[ "MIT" ]
null
null
null
module01/ex/ex025.py
LauroHBrant/python-course
2154181ca4b684b0d1fa635706bcb1647a753bc3
[ "MIT" ]
null
null
null
name = str(input('Type your complete name: ')).strip().upper().split() print(f'Does your name have "POTTER"? {"POTTER" in name}')
32.75
70
0.664122
20
131
4.35
0.75
0
0
0
0
0
0
0
0
0
0
0
0.122137
131
3
71
43.666667
0.756522
0
0
0
0
0
0.557252
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
593cfc5ceed4b81e840815c4d0d9500632a703f7
892
py
Python
apps/core/management/commands/erms_sync_identities_and_users.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/core/management/commands/erms_sync_identities_and_users.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/core/management/commands/erms_sync_identities_and_users.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
import logging from django.core.management.base import BaseCommand from django.db.transaction import atomic from core.models import DataSource from ...logic.sync import sync_identities_with_erms, sync_users_with_erms logger = logging.getLogger(__name__) class Command(BaseCommand): help = 'Sync organizations between ERMS and the database' def add_arguments(self, parser): pass @atomic def handle(self, *args, **options): data_source, _created = DataSource.objects.get_or_create(short_name='ERMS', type=DataSource.TYPE_API) stats = sync_users_with_erms(data_source) self.stderr.write(self.style.WARNING(f'User import stats: {stats}')) stats = sync_identities_with_erms(data_source) self.stderr.write(self.style.WARNING(f'Identity import stats: {stats}'))
33.037037
90
0.690583
110
892
5.372727
0.518182
0.054146
0.060914
0.07445
0.169205
0.169205
0.169205
0.169205
0.169205
0.169205
0
0
0.221973
892
26
91
34.307692
0.851585
0
0
0
0
0
0.121076
0
0
0
0
0
0
1
0.111111
false
0.055556
0.388889
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
59414ae969c1b4ef3471064b5e48c546a698e9b6
152
py
Python
script/cal.py
dongwkim/POCDriver
2ae730686d229263a35b710c4e4c9f49bae458e7
[ "Apache-2.0" ]
null
null
null
script/cal.py
dongwkim/POCDriver
2ae730686d229263a35b710c4e4c9f49bae458e7
[ "Apache-2.0" ]
null
null
null
script/cal.py
dongwkim/POCDriver
2ae730686d229263a35b710c4e4c9f49bae458e7
[ "Apache-2.0" ]
null
null
null
import csv for row in csv.reader(10_10k.out): rowtotal = 0 for column in row[15]: rowtotal += float(column) print(row[0], rowtotal)
19
34
0.631579
24
152
3.958333
0.625
0
0
0
0
0
0
0
0
0
0
0.070175
0.25
152
7
35
21.714286
0.763158
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
3cc05413bedefcb0b46942fa99f810355ff43e2a
194
py
Python
src/config/settings/__init__.py
Flaiers/django-clean-architecture
4d14c1a7426e162d5e413e8f70e16e269cd63f82
[ "MIT" ]
2
2021-07-31T20:01:36.000Z
2021-09-07T13:37:42.000Z
src/config/settings/__init__.py
Flaiers/django-template
4d14c1a7426e162d5e413e8f70e16e269cd63f82
[ "MIT" ]
1
2021-11-13T00:14:14.000Z
2021-11-13T00:14:14.000Z
src/config/settings/__init__.py
Flaiers/django-template
4d14c1a7426e162d5e413e8f70e16e269cd63f82
[ "MIT" ]
2
2021-09-07T13:37:43.000Z
2021-10-31T20:19:29.000Z
import os if os.getenv("LEVEL") == "PRODUCTION": print('RUN PRODUCTION MODE') from .production import * else: print('RUN LOCAL MODE') from .local import * from .base import *
16.166667
38
0.64433
25
194
5
0.52
0.128
0
0
0
0
0
0
0
0
0
0
0.226804
194
11
39
17.636364
0.833333
0
0
0
0
0
0.247423
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.25
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
0
0
0
3
3cc6f0d07ac2527b6ead69602c50cb26a7f9f27f
218
py
Python
steiner/oparser/pace.py
ASchidler/pace17
755e9d652c7d4d9dd1f71fb508ebf773efee8488
[ "MIT" ]
1
2019-01-15T16:58:03.000Z
2019-01-15T16:58:03.000Z
steiner/oparser/pace.py
ASchidler/pace17
755e9d652c7d4d9dd1f71fb508ebf773efee8488
[ "MIT" ]
null
null
null
steiner/oparser/pace.py
ASchidler/pace17
755e9d652c7d4d9dd1f71fb508ebf773efee8488
[ "MIT" ]
null
null
null
"""Output conforming to PACE guidelines""" def parse(solution): if solution is not None: print "VALUE " + str(solution[1]) for (u, v) in solution[0].edges: print "{} {}".format(u, v)
21.8
42
0.56422
29
218
4.241379
0.793103
0.03252
0
0
0
0
0
0
0
0
0
0.012739
0.279817
218
9
43
24.222222
0.770701
0
0
0
0
0
0.0625
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
3cec8054f454d4bb25a1d42410c43a2fcf138987
1,987
py
Python
budgetbanger/models.py
barcai/HackTheBurgh2016
bc5e6dd7d25d72c38d6c3baacc34178222b4f5ce
[ "Apache-2.0" ]
null
null
null
budgetbanger/models.py
barcai/HackTheBurgh2016
bc5e6dd7d25d72c38d6c3baacc34178222b4f5ce
[ "Apache-2.0" ]
null
null
null
budgetbanger/models.py
barcai/HackTheBurgh2016
bc5e6dd7d25d72c38d6c3baacc34178222b4f5ce
[ "Apache-2.0" ]
null
null
null
from flask_login import UserMixin from werkzeug.security import check_password_hash, generate_password_hash from . import db ''' give backrefs unique names ''' class User(db.Model, UserMixin): __tablename__ = 'User' id = db.Column(db.Integer, primary_key = True) user_name = db.Column(db.String(100), unique = True) email = db.Column(db.String(120), unique = True) level_income = db.Column(db.Integer) level_expenditure = db.Column(db.Integer) current_xp_income = db.Column(db.Integer) current_xp_expenditure = db.Column(db.Integer) password_hash = db.Column(db.String) @property def password(self): raise AttributeError('password is a write only field') @password.setter def password(self, password): self.password_hash = generate_password_hash(password) def check_password(self, password): return check_password_hash(self.password_hash, password) @staticmethod def get_by_user_name(user_name): return User.query.filter_by(user_name = user_name).first() @staticmethod def verify_password(user_name, password): if User.get_by_user_name(user_name): u = User.get_by_user_name(user_name) return u.check_password(password) else: return False def __repr__(self): return '<User %r>' % self.user_name class Money(db.Model): __tablename__ = 'Money' id = db.Column(db.Integer, primary_key = True) user_id = db.Column(db.Integer, db.ForeignKey('User.id')) type = db.Column(db.Boolean) done = db.Column(db.Boolean) desc = db.Column(db.String(120)) category = db.Column(db.String(120)) amount = db.Column(db.Float) class Periodic(db.Model): __tablename__ = 'Periodic' periodic_id = db.Column(db.Integer, db.ForeignKey('Money.id'), primary_key = True) periodid_length = db.Column(db.Integer) start_date = db.Column(db.String(80)) end_date = db.Column(db.String(80))
30.106061
86
0.687469
272
1,987
4.790441
0.283088
0.116654
0.145817
0.117421
0.403684
0.24482
0.168074
0.056792
0.056792
0
0
0.010044
0.198289
1,987
66
87
30.106061
0.80791
0
0
0.083333
1
0
0.036336
0
0
0
0
0
0
1
0.125
false
0.229167
0.0625
0.0625
0.8125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
3cf347f8f4c272d5beb8a8b855ec9ae478d9b1fd
95
py
Python
graph2.py
ropso/AlgorithmDesignAndAnalysis-Python
de4a1f695c819a98f590d9156fc84e4468529289
[ "MIT" ]
null
null
null
graph2.py
ropso/AlgorithmDesignAndAnalysis-Python
de4a1f695c819a98f590d9156fc84e4468529289
[ "MIT" ]
null
null
null
graph2.py
ropso/AlgorithmDesignAndAnalysis-Python
de4a1f695c819a98f590d9156fc84e4468529289
[ "MIT" ]
null
null
null
mat=[] m=int(input()) for i in range(0,m): mat.append([int(i) for i in input().split(" ")])
23.75
52
0.568421
19
95
2.842105
0.578947
0.148148
0.222222
0
0
0
0
0
0
0
0
0.0125
0.157895
95
4
52
23.75
0.6625
0
0
0
0
0
0.010417
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3cf3a520c124d2c4205909a02fe91b1337a320fd
463
py
Python
2021_04_14/dojo_test.py
devppjr/dojo
de0bf116153bd1251dd948c18fc73ac41def0fa5
[ "MIT" ]
114
2015-03-10T22:17:42.000Z
2022-03-09T17:49:48.000Z
2021_04_14/dojo_test.py
devppjr/dojo
de0bf116153bd1251dd948c18fc73ac41def0fa5
[ "MIT" ]
9
2018-09-04T12:49:59.000Z
2019-11-17T21:29:51.000Z
2021_04_14/dojo_test.py
devppjr/dojo
de0bf116153bd1251dd948c18fc73ac41def0fa5
[ "MIT" ]
39
2015-01-29T01:20:56.000Z
2022-02-17T16:26:25.000Z
import unittest from dojo import main class DojoTest(unittest.TestCase): def test_zero(self): primes_list = list(primes(0)) self.assertListEqual(primes_list, []) def test_one(self): primes_list = list(primes(3)) self.assertListEqual(primes_list, [2]) def test_two(self): primes_list = list(primes(12)) self.assertListEqual(primes_list, [2,3,5,7,11]) if __name__ == '__main__': unittest.main()
22.047619
55
0.650108
60
463
4.733333
0.433333
0.211268
0.147887
0.190141
0.464789
0
0
0
0
0
0
0.030641
0.224622
463
20
56
23.15
0.760446
0
0
0
0
0
0.017279
0
0
0
0
0
0.214286
1
0.214286
false
0
0.142857
0
0.428571
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
0
0
0
3
a715110a7ecd4f6b4f29cb86e26a33407bf913e5
31
py
Python
_solutions/basics/types/type_strinput_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/basics/types/type_strinput_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/basics/types/type_strinput_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
result = input('Type NASA: ')
10.333333
29
0.612903
4
31
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.193548
31
2
30
15.5
0.76
0
0
0
0
0
0.366667
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a73656b7b454d4d153bbbca154cafd7917ca06b5
6,994
py
Python
tests/test_lint.py
philvarner/stac-check
51d5adde0acf7f9be6fb840bd0828e794ea750e4
[ "MIT" ]
8
2021-11-08T16:15:36.000Z
2022-02-21T23:57:58.000Z
tests/test_lint.py
jonhealy1/stac-check
51d5adde0acf7f9be6fb840bd0828e794ea750e4
[ "MIT" ]
1
2022-03-03T12:24:53.000Z
2022-03-03T12:24:53.000Z
tests/test_lint.py
jonhealy1/stac-check
51d5adde0acf7f9be6fb840bd0828e794ea750e4
[ "MIT" ]
null
null
null
from re import L from stac_check.lint import Linter import pytest def test_linter_bad_asset_requests(): file = "sample_files/1.0.0/core-item.json" linter = Linter(file, assets=True) asset_request_errors = [ "http://cool-sat.com/catalog/20201211_223832_CS2/20201211_223832_CS2.EPH" ] assert linter.version == "1.0.0" assert linter.valid_stac == True assert linter.asset_type == "ITEM" assert linter.invalid_asset_format == [] assert linter.invalid_asset_request == asset_request_errors def test_linter_bad_assets(): file = "sample_files/1.0.0/core-item-bad-links.json" linter = Linter(file, assets=True) asset_format_errors = [ "https:/storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg" ] asset_request_errors = [ "https:/storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg", "http://cool-sat.com/catalog/20201211_223832_CS2/20201211_223832_CS2.EPH" ] assert linter.version == "1.0.0" assert linter.valid_stac == True assert linter.asset_type == "ITEM" assert linter.invalid_asset_format == asset_format_errors assert linter.invalid_asset_request == asset_request_errors def test_linter_bad_links(): file = "sample_files/1.0.0/core-item-bad-links.json" linter = Linter(file, links=True) link_format_errors = ["http:/remotdata.io/catalog/20201211_223832_CS2/index.html"] link_request_errors = [ "http://catalog/collection.json", "http:/remotdata.io/catalog/20201211_223832_CS2/index.html" ] assert linter.version == "1.0.0" assert linter.valid_stac == True assert linter.asset_type == "ITEM" assert len(linter.invalid_link_format) > 0 assert linter.invalid_link_format == link_format_errors assert linter.invalid_link_request == link_request_errors def test_linter_bad_links_assets(): file = "sample_files/1.0.0/core-item-bad-links.json" linter = Linter(file, assets=True, links=True) asset_format_errors = [ "https:/storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg" ] asset_request_errors = [ "https:/storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg", "http://cool-sat.com/catalog/20201211_223832_CS2/20201211_223832_CS2.EPH" ] link_format_errors = ["http:/remotdata.io/catalog/20201211_223832_CS2/index.html"] link_request_errors = [ "http://catalog/collection.json", "http:/remotdata.io/catalog/20201211_223832_CS2/index.html" ] assert linter.version == "1.0.0" assert linter.valid_stac == True assert linter.asset_type == "ITEM" assert len(linter.invalid_link_format) > 0 assert linter.invalid_asset_format == asset_format_errors assert linter.invalid_asset_request == asset_request_errors assert linter.invalid_link_format == link_format_errors assert linter.invalid_link_request == link_request_errors def test_linter_collection(): file = "sample_files/1.0.0/collection.json" linter = Linter(file, assets=False, links=False) assert linter.version == "1.0.0" assert linter.valid_stac == True assert linter.asset_type == "COLLECTION" assert linter.check_summaries() == True def test_linter_collection_no_summaries(): file = "sample_files/1.0.0/collection-no-summaries.json" linter = Linter(file, assets=False, links=False) assert linter.version == "1.0.0" assert linter.valid_stac == True assert linter.asset_type == "COLLECTION" assert linter.check_summaries() == False assert linter.best_practices_msg == [ "STAC Best Practices: ", " Object should be called 'collection.json' not 'collection-no-summaries.json'", "", " A STAC collection should contain a summaries field", " It is recommended to store information like eo:bands in summaries", "" ] def test_linter_catalog(): file = "sample_files/1.0.0/catalog.json" linter = Linter(file, assets=False, links=False) assert linter.version == "1.0.0" assert linter.valid_stac == True assert linter.asset_type == "CATALOG" assert linter.check_bloated_links() == False def test_linter_collection_recursive_remote(): file = "https://raw.githubusercontent.com/stac-utils/pystac/main/tests/data-files/examples/0.9.0/collection-spec/examples/landsat-collection.json" linter = Linter(file, assets=False, links=False, recursive=True) assert linter.version == "0.9.0" assert linter.recursive == True assert linter.recursive_error_msg == "Exception Could not read uri https://landsat-stac.s3.amazonaws.com/landsat-8-l1/paths/catalog.json" def test_linter_item_id_not_matching_file_name(): file = "sample_files/1.0.0/core-item.json" linter = Linter(file) assert linter.file_name == "core-item" assert linter.object_id == "20201211_223832_CS2" assert linter.file_name != linter.object_id assert linter.check_item_id_file_name() == False def test_linter_collection_catalog_id(): file = "sample_files/1.0.0/collection-no-title.json" linter = Linter(file) assert linter.check_catalog_id_file_name() == False def test_linter_item_id_format_best_practices(): file = "sample_files/1.0.0/core-item-invalid-id.json" linter = Linter(file) assert linter.check_searchable_identifiers() == False assert linter.check_percent_encoded() == True def test_datetime_set_to_null(): file = "sample_files/1.0.0/core-item-null-datetime.json" linter = Linter(file) assert linter.check_datetime_null()== True def test_unlocated_item(): file = "sample_files/1.0.0/core-item-unlocated.json" linter = Linter(file) assert linter.check_unlocated() == True assert linter.check_geometry_null() == True def test_bloated_item(): file = "sample_files/1.0.0/core-item-bloated.json" linter = Linter(file) assert linter.check_bloated_metadata() == True assert len(linter.data["properties"]) > 20 assert linter.check_bloated_links() == True assert len(linter.data["links"]) > 20 def test_small_thumbnail(): file = "sample_files/1.0.0/core-item-large-thumbnail.json" linter = Linter(file) assert linter.check_thumbnail() != True file = "sample_files/1.0.0/core-item.json" linter = Linter(file) assert linter.check_thumbnail() == True def test_title_field(): file = "sample_files/1.0.0/collection-no-title.json" linter = Linter(file) assert linter.check_links_title_field() == False def test_self_in_links(): file = "sample_files/1.0.0/collection-no-title.json" linter = Linter(file) assert linter.check_links_self() == False def test_catalog_name(): file = "sample_files/1.0.0/catalog.json" linter = Linter(file) assert linter.check_catalog_id_file_name() file = "sample_files/1.0.0/collection.json" linter = Linter(file) assert linter.check_catalog_id_file_name()
38.218579
150
0.716471
973
6,994
4.911614
0.126413
0.140615
0.016321
0.0837
0.750785
0.71584
0.71584
0.667504
0.643231
0.605775
0
0.054378
0.163855
6,994
182
151
38.428571
0.762825
0
0
0.535484
0
0.012903
0.307692
0.189305
0
0
0
0
0.387097
1
0.116129
false
0
0.019355
0
0.135484
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
599805314db6133f5f1d74953277cc8e2155aac5
1,736
py
Python
saw-remote-api/python/saw_client/llvm_type.py
Grain/saw-script
81287fb74cbdac3bb3f75b984f1125deb3055e64
[ "BSD-3-Clause" ]
411
2015-06-09T22:00:47.000Z
2022-03-30T11:41:23.000Z
saw-remote-api/python/saw_client/llvm_type.py
Grain/saw-script
81287fb74cbdac3bb3f75b984f1125deb3055e64
[ "BSD-3-Clause" ]
1,151
2015-06-12T20:46:31.000Z
2022-03-23T02:56:32.000Z
saw-remote-api/python/saw_client/llvm_type.py
Grain/saw-script
81287fb74cbdac3bb3f75b984f1125deb3055e64
[ "BSD-3-Clause" ]
65
2015-06-10T17:52:26.000Z
2022-02-10T18:17:06.000Z
from abc import ABCMeta, abstractmethod from typing import Any, Dict, List, Optional, Set, Union, overload class LLVMType(metaclass=ABCMeta): @abstractmethod def to_json(self) -> Any: pass class LLVMIntType(LLVMType): def __init__(self, width : int) -> None: self.width = width def to_json(self) -> Any: return {'type': 'primitive type', 'primitive': 'integer', 'size': self.width} class LLVMArrayType(LLVMType): def __init__(self, elemtype : 'LLVMType', size : int) -> None: self.size = size self.elemtype = elemtype def to_json(self) -> Any: return { 'type': 'array', 'element type': self.elemtype.to_json(), 'size': self.size } class LLVMPointerType(LLVMType): def __init__(self, points_to : 'LLVMType') -> None: self.points_to = points_to def to_json(self) -> Any: return {'type': 'pointer', 'to type': self.points_to.to_json()} class LLVMAliasType(LLVMType): def __init__(self, name : str) -> None: self.name = name def to_json(self) -> Any: return {'type': 'type alias', 'alias of': self.name} class LLVMStructType(LLVMType): def __init__(self, field_types : List[LLVMType]) -> None: self.field_types = field_types def to_json(self) -> Any: return {'type': 'struct', 'fields': [fld_ty.to_json() for fld_ty in self.field_types]} class LLVMPackedStructType(LLVMType): def __init__(self, field_types : List[LLVMType]) -> None: self.field_types = field_types def to_json(self) -> Any: return {'type': 'packed struct', 'fields': [fld_ty.to_json() for fld_ty in self.field_types]}
31.563636
85
0.619816
214
1,736
4.78972
0.252336
0.06439
0.061463
0.08878
0.394146
0.378537
0.378537
0.277073
0.277073
0.277073
0
0
0.247696
1,736
54
86
32.148148
0.784839
0
0
0.292683
0
0
0.091014
0
0
0
0
0
0
1
0.317073
false
0.02439
0.04878
0.146341
0.682927
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
59aec7a643b81af95fbdd4c752ac0b6683a15b4d
1,451
py
Python
threp/utils.py
wasupandceacar/threp
606376968a18228b09a73a5cc35bd0a11b16fe04
[ "MIT" ]
24
2018-02-12T13:44:57.000Z
2021-12-16T09:49:54.000Z
threp/utils.py
wasupandceacar/threp
606376968a18228b09a73a5cc35bd0a11b16fe04
[ "MIT" ]
4
2018-03-14T12:16:29.000Z
2021-12-22T12:03:23.000Z
threp/utils.py
wasupandceacar/threp
606376968a18228b09a73a5cc35bd0a11b16fe04
[ "MIT" ]
3
2020-02-01T12:03:38.000Z
2021-12-15T18:02:32.000Z
from struct import unpack from math import ceil, floor def unsigned_int(_bytes, pointer): return unpack('I', _bytes[pointer:pointer + 4])[0] def unsigned_char(_bytes, pointer): return unpack('B', _bytes[pointer:pointer + 1])[0] def float_(_bytes, pointer): return unpack('f', _bytes[pointer:pointer + 4])[0] def bin32(num): return f'{bin(num)[2:]:>32}'.replace(' ', '0') def bin16(num): return f'{bin(num)[2:]:>16}'.replace(' ', '0') class Ref(object): pass def entry(file): buffer = bytearray(0x100000) with open(file, 'rb') as f: _buffer = f.read() flength = len(_buffer) buffer[:flength] = _buffer return buffer # 过滤按住的连续帧为按下帧 # 只用于shift z x # 妖妖梦 永夜抄 花映冢 def filter_constant_frame(frame_list): result_frame_list=[] for i, frame in enumerate(frame_list): if i==0 or (frame!=frame_list[i-1]+1): result_frame_list.append(frame) return result_frame_list # 根据长度获取正确的帧数 def true_frame(llength): frame = floor(llength / (6 + 1/30)) if frame * 6 + ceil(frame / 30) == llength: return frame # 暴搜,,, for i in range(frame - 10, frame + 10): if i * 6 + ceil(i / 30) == llength: return i raise Exception("Can't correct the frame length") def correct_true_frame(llength): try: return true_frame(llength) except Exception: # 一直加65536,直到能够获取正确的帧数 return correct_true_frame(llength + 65536)
25.910714
54
0.634735
204
1,451
4.372549
0.406863
0.080717
0.071749
0.080717
0.091928
0.091928
0
0
0
0
0
0.04647
0.228808
1,451
56
55
25.910714
0.75067
0.052378
0
0
0
0
0.054785
0
0
0
0.005844
0
0
1
0.225
false
0.025
0.05
0.125
0.575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
59b0933a6930882b8db42169897b894d16d4aa39
518
py
Python
api/gsn-api/gsndb/migrations/0004_auto_20190327_1847.py
DonovanDarko/gsn
a6e76fcf7abea4559157de35edff9c184c944898
[ "ISC" ]
2
2019-01-15T22:46:03.000Z
2019-04-09T01:34:19.000Z
api/gsn_api/gsndb/migrations/0004_auto_20190327_1847.py
MrYetly/gsn
1b49a5db31f5e19c0d39ee7f3b8783b55c3bf81d
[ "ISC" ]
null
null
null
api/gsn_api/gsndb/migrations/0004_auto_20190327_1847.py
MrYetly/gsn
1b49a5db31f5e19c0d39ee7f3b8783b55c3bf81d
[ "ISC" ]
3
2019-03-22T03:25:46.000Z
2019-03-30T20:59:29.000Z
# Generated by Django 2.1.5 on 2019-03-27 18:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('gsndb', '0003_auto_20190326_2144'), ] operations = [ migrations.RenameField( model_name='student', old_name='birth_date', new_name='birthdate', ), migrations.RenameField( model_name='student', old_name='program', new_name='current_program', ), ]
21.583333
47
0.567568
52
518
5.442308
0.692308
0.14841
0.183746
0.212014
0.310954
0.310954
0.310954
0
0
0
0
0.088319
0.322394
518
23
48
22.521739
0.717949
0.086873
0
0.352941
1
0
0.176221
0.048832
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
59cbad2a502624c51bb60f8675464c2675138392
259
py
Python
comparing_epsilons.py
Turgibot/Reinforcement_Learning
4894c7da80bf4f915b5aee147fececd7fc94efae
[ "MIT" ]
null
null
null
comparing_epsilons.py
Turgibot/Reinforcement_Learning
4894c7da80bf4f915b5aee147fececd7fc94efae
[ "MIT" ]
null
null
null
comparing_epsilons.py
Turgibot/Reinforcement_Learning
4894c7da80bf4f915b5aee147fececd7fc94efae
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt class Bandit: def __init__(self, true_mean): self.true_mean = true_mean self.mean = 0 self.counter = 0 def pull_handle(self): return np.random.rand() + self.id
18.5
41
0.625483
37
259
4.162162
0.594595
0.155844
0.155844
0
0
0
0
0
0
0
0
0.010929
0.293436
259
14
42
18.5
0.830601
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
59d06798622a6641e63c0ccc653ee776420e47ae
392
py
Python
pyglotaran_extras/plotting/data.py
glotaran/pyglotaran_extras
619bce07782a62a2233aaebb66066d4eee19b16d
[ "MIT" ]
2
2021-07-20T15:14:29.000Z
2022-02-05T20:24:59.000Z
pyglotaran_extras/plotting/data.py
glotaran/pyglotaran-extras
01ab372bbe5cdd6bfa003fafaeb958df915129ba
[ "MIT" ]
54
2021-04-26T06:55:36.000Z
2022-03-25T17:16:17.000Z
pyglotaran_extras/plotting/data.py
glotaran/pyglotaran-extras
01ab372bbe5cdd6bfa003fafaeb958df915129ba
[ "MIT" ]
1
2021-03-25T22:20:39.000Z
2021-03-25T22:20:39.000Z
"""Deprecated module.""" from pyglotaran_extras.deprecation import warn_deprecated from pyglotaran_extras.plotting.plot_data import plot_data_overview __all__ = ["plot_data_overview"] warn_deprecated( deprecated_qual_name_usage="pyglotaran_extras.plotting.data", new_qual_name_usage="pyglotaran_extras.plotting.plot_data", to_be_removed_in_version="0.7.0", stacklevel=3, )
28
67
0.808673
52
392
5.596154
0.5
0.219931
0.247423
0.19244
0.391753
0.254296
0
0
0
0
0
0.011299
0.096939
392
13
68
30.153846
0.810734
0.045918
0
0
0
0
0.244565
0.182065
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
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
0
0
0
3
ab9e26cef7960b66fff8e80179ed6ae6e9987c31
331
py
Python
flasky.py
The-Go-Getter-Dev/happyflaskdev
cb7b36a4146dd37704f7ba26eb8c3adc85fb5097
[ "MIT" ]
null
null
null
flasky.py
The-Go-Getter-Dev/happyflaskdev
cb7b36a4146dd37704f7ba26eb8c3adc85fb5097
[ "MIT" ]
null
null
null
flasky.py
The-Go-Getter-Dev/happyflaskdev
cb7b36a4146dd37704f7ba26eb8c3adc85fb5097
[ "MIT" ]
null
null
null
import os from app import create_app, db from app.models import User,Cult,Rating,Post from flask_migrate import Migrate app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) @app.shell_context_processor def make_shell_context(): return dict(db=db, User=User, Cult=Cult,Post=Post,Rating=Rating)
25.461538
68
0.779456
54
331
4.62963
0.444444
0.056
0
0
0
0
0
0
0
0
0
0
0.114804
331
12
69
27.583333
0.853242
0
0
0
0
0
0.057402
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0.111111
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
0
0
0
1
1
1
0
0
3
aba47e2d92e9d056295626369963b9fafe6e6652
277
py
Python
simple_chatbot/responses.py
Codingplace42/django-simple-chatbot
ba9b5b9f2ed40a1e8b67671f9ad67f1d122e0962
[ "MIT" ]
9
2021-05-02T14:52:00.000Z
2022-03-28T16:07:14.000Z
simple_chatbot/responses.py
Codingplace42/django-simple-chatbot
ba9b5b9f2ed40a1e8b67671f9ad67f1d122e0962
[ "MIT" ]
1
2021-12-05T01:19:44.000Z
2021-12-05T01:19:44.000Z
simple_chatbot/responses.py
Codingplace42/django-simple-chatbot
ba9b5b9f2ed40a1e8b67671f9ad67f1d122e0962
[ "MIT" ]
7
2021-09-08T06:06:48.000Z
2022-03-23T06:53:34.000Z
from abc import ABC, abstractmethod from random import choice class BaseResponse(ABC): @abstractmethod def get_response(self): pass class GenericRandomResponse(BaseResponse): choices = () def get_response(self): return choice(self.choices)
17.3125
42
0.707581
30
277
6.466667
0.533333
0.175258
0.14433
0.185567
0
0
0
0
0
0
0
0
0.220217
277
15
43
18.466667
0.898148
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0.2
false
0.1
0.2
0.1
0.8
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
abb106d3beb6a4c4035c779092c254933c3afc62
374
py
Python
src/discord_bot/bot.py
darakelian/gam-bot
1363c5f44bcc7e622e97e3d0d455eb185417fecb
[ "MIT" ]
null
null
null
src/discord_bot/bot.py
darakelian/gam-bot
1363c5f44bcc7e622e97e3d0d455eb185417fecb
[ "MIT" ]
null
null
null
src/discord_bot/bot.py
darakelian/gam-bot
1363c5f44bcc7e622e97e3d0d455eb185417fecb
[ "MIT" ]
null
null
null
from discord import Intents from discord.ext.commands import Bot from . import settings from typing import TYPE_CHECKING if TYPE_CHECKING: from discord.ext.commands import Context def build_bot() -> "Bot[Context]": b = Bot(command_prefix=settings.COMMAND_PREFIX, intents=Intents.all()) for cog_cls in settings.COGS: b.add_cog(cog_cls(b)) return b
24.933333
74
0.743316
56
374
4.821429
0.464286
0.122222
0.103704
0.162963
0.207407
0
0
0
0
0
0
0
0.171123
374
14
75
26.714286
0.870968
0
0
0
0
0
0.032086
0
0
0
0
0
0
1
0.090909
false
0
0.454545
0
0.636364
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
0
1
0
0
3
abdb234337c3a91a59cd77d0372e6ccd49e9a2b8
3,277
py
Python
extr_registro_civil.py
marcelo-guimaraes/DockerCICD
be4b16b7d3d038a24aeae784806757790d808918
[ "MIT" ]
null
null
null
extr_registro_civil.py
marcelo-guimaraes/DockerCICD
be4b16b7d3d038a24aeae784806757790d808918
[ "MIT" ]
null
null
null
extr_registro_civil.py
marcelo-guimaraes/DockerCICD
be4b16b7d3d038a24aeae784806757790d808918
[ "MIT" ]
null
null
null
import requests import json import time from datetime import date, timedelta """ Classe RegistroCivil: classe para conexão com a API da Transparência do Registro Civil. Métodos: => obitos: => parametros: => data_inicio (str): data inicial da pesquisa no formato YYYY-MM-DD => data_fim (str): data final da pesquisa no formato YYYY-MM-DD => uf (str): sigla do estado a ser pesquisado => retorno: => JSON contendo o total de óbitos no período indicado em cada município do estado. """ class RegistroCivil: def __init__(self): self.url_base = "https://transparencia.registrocivil.org.br/api" self.timestamp = time.strftime("%Y-%m-%dT%H:%M:%S", time.localtime()) def obitos(self, data_inicio, data_fim, uf): rota = "/record/death" cabecalhos = { "Host": "transparencia.registrocivil.org.br", "Connection": "keep-alive", "Accept": "application/json, text/plain, */*", "recaptcha": "03AGdBq247tHEFR8wjhSqNNamh0u5ncPXJ8b8vzEahmmsrjZgbF8n2JKIvk_zNCLkWZZ_aIH3bw-SIPeRBxA2LFLrElvtqS00-myLrGqDGE72x9n_lCw0bQb3hoEBEJNhdB5RVa5uDhs6IE0AXpMNlk-zI4Z_MdA5b_0hKz-H36xlWMBT8f2v0WHo01f-rthLsxqU2UaKwmtwhXrmLNN1FiL1FjaAGvzy3YZt1d924828VROuWYYtDQw_Ml9DoAsi6DpBJO9fpiq34O4p6I7sTDqL5miq4incGjpbWH3nwMDT715s26fkOfyfVzlVV0RM6oMn-Tb4WkR29xIba-W7_BqzTfJxL-ILYmdno10LG4O4YnfHZGGRNymRBD8mb0m6a1EegwiKE07lzAykM1qxN4IVbyVj0AV1A8fc2XwBWdXPnN6xBMiK2uW1nTmFi1hwWbruFM_gmmxvIqDaqluVKZL13zOhN8ihpj_YM-YKErpjtIDsQM3OJJ6HsyVW3gLNkox_6uqJwMK1Mt6k6HHrnMzQXr1lF8hGZKwB59jkN_0fhyzdoM4qtqvo", "X-CSRF-TOKEN": "i2489kcqrVBQpJmb3CxMaImPl64T7pxGnC21UifQ", "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36", "X-XSRF-TOKEN": "eyJpdiI6IncxU0NkMlFLZUplcmdEbnRDanZuXC9nPT0iLCJ2YWx1ZSI6InRKVXY3MU90cDZ0bjI5SEhLMzhZbkd0MmppMFRIeGtiV1FhYXA4c1B6SXE5UnRyODUwXC9QZzRmSmVEYkRoU1FQIiwibWFjIjoiYTVlNzc3ZGRjNjY5ZDI3OTNhN2E2MzcyZWQwYzM2M2Q2Njg3Yzg3MzZlOTEwMzBkYTk4ODRjOTg1NTRlMmU2YiJ9", "Sec-Fetch-Site": "same-origin", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Dest": "empty", "Referer": "https://transparencia.registrocivil.org.br/registros", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7", "Cookie": "XSRF-TOKEN=eyJpdiI6IncxU0NkMlFLZUplcmdEbnRDanZuXC9nPT0iLCJ2YWx1ZSI6InRKVXY3MU90cDZ0bjI5SEhLMzhZbkd0MmppMFRIeGtiV1FhYXA4c1B6SXE5UnRyODUwXC9QZzRmSmVEYkRoU1FQIiwibWFjIjoiYTVlNzc3ZGRjNjY5ZDI3OTNhN2E2MzcyZWQwYzM2M2Q2Njg3Yzg3MzZlOTEwMzBkYTk4ODRjOTg1NTRlMmU2YiJ9; _session=eyJpdiI6IjFaMjVJNTFyekJVRzVlN3NHR2pPQWc9PSIsInZhbHVlIjoibE1wUlBzcEdaSUhiOGNrUzhSNmI0Wnc4TWFpK1N6OEtzRWQ2ZnpwNnRheHRiQ1JLWVZKRkxcL2JpTUx2d3I3VkUiLCJtYWMiOiJkZGY5YzVmZDcxNDBiOWVjM2ZhMDY4NWQ4MDBlM2I2MGU3MmYxZjA5MjU4MDQzMDEzNGJjNjQzYTU5OTBjMzc4In0%3D", } busca = "?start_date=" + data_inicio + "&end_date=" + data_fim + "&state=" + uf requisicao = requests.get( self.url_base + rota + busca, headers=cabecalhos ).json() return requisicao
65.54
597
0.743058
255
3,277
9.443137
0.65098
0.012458
0.03613
0.038621
0.052326
0.022425
0.022425
0
0
0
0
0.089142
0.168142
3,277
49
598
66.877551
0.794204
0
0
0
0
0.0625
0.705819
0.517889
0
0
0
0.020408
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
3
abf691184e98f6ee2696c7b931f8283774a0c97e
135
py
Python
examples/pycuse_hello.py
jevinskie/pycuse
96e8e44bf82d1d90ca8c94a98a296123746ca1ff
[ "MIT" ]
null
null
null
examples/pycuse_hello.py
jevinskie/pycuse
96e8e44bf82d1d90ca8c94a98a296123746ca1ff
[ "MIT" ]
null
null
null
examples/pycuse_hello.py
jevinskie/pycuse
96e8e44bf82d1d90ca8c94a98a296123746ca1ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pycuse import cuse print("pycuse hello") cd = cuse.CUSEDev("cuse-hello", fg=True, debug=True) print(cd)
15
52
0.711111
22
135
4.363636
0.681818
0
0
0
0
0
0
0
0
0
0
0.008475
0.125926
135
8
53
16.875
0.805085
0.155556
0
0
0
0
0.19469
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
28018a1e4621275e9ba03a58e7369b210d5051fd
503
py
Python
tests/mock_browser.py
alfie-max/Publish
0014cc45f2496c44c9171353dc42a58d73dd5490
[ "MIT" ]
1
2016-03-08T07:17:46.000Z
2016-03-08T07:17:46.000Z
tests/mock_browser.py
alfie-max/Publish
0014cc45f2496c44c9171353dc42a58d73dd5490
[ "MIT" ]
5
2021-03-18T19:55:25.000Z
2022-03-11T23:11:27.000Z
tests/mock_browser.py
alfie-max/Publish
0014cc45f2496c44c9171353dc42a58d73dd5490
[ "MIT" ]
null
null
null
class Browser(object): def __init__(self): form = {} def open(self, url): pass def set_handle_robots(self, status): pass def set_cookiejar(self, cj): pass def forms(self): forms = [{'session[username_or_email]':'', 'session[password]':''}] return forms def close(self): pass class submit(object): def __init__(self): pass def get_data(self): return '<code>0123456</code>'
18.62963
75
0.536779
56
503
4.571429
0.517857
0.109375
0.101563
0.132813
0
0
0
0
0
0
0
0.021021
0.337972
503
26
76
19.346154
0.747748
0
0
0.368421
0
0
0.125249
0.05169
0
0
0
0
0
1
0.421053
false
0.315789
0
0.052632
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
e602bfa2c979bd2e63426075e015cb18743ab1e4
1,348
py
Python
tests/test_fpack_utils.py
frankurcrazy/fpack
ce2369ec3018b20d79f101ed0b439fd312681472
[ "BSD-3-Clause" ]
2
2020-08-26T14:16:39.000Z
2021-01-11T08:43:36.000Z
tests/test_fpack_utils.py
frankurcrazy/fpack
ce2369ec3018b20d79f101ed0b439fd312681472
[ "BSD-3-Clause" ]
17
2021-04-28T06:02:45.000Z
2022-03-29T18:05:56.000Z
tests/test_fpack_utils.py
frankurcrazy/fpack
ce2369ec3018b20d79f101ed0b439fd312681472
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import io import unittest try: from fpack.utils import get_length except ImportError: import os import sys sys.path.append(os.path.abspath(os.path.join(".", ".."))) from fpack.utils import get_length class TestGetLength(unittest.TestCase): def test_get_length_memoryview(self): mv = memoryview(b"awekf;jawlekfa") self.assertEqual(get_length(mv), mv.nbytes) def test_get_length_bytes(self): b = b"qwldkjo;aiealiewfu" self.assertEqual(get_length(b), len(b)) def test_get_length_str(self): s = "this is frank speaking." self.assertEqual(get_length(s), len(s)) def test_get_length_bytes_io(self): bio = io.BytesIO(b"wlfae;ksddas.fafjew") self.assertEqual(get_length(bio), bio.getbuffer().nbytes) def test_get_length_none_type(self): self.assertEqual(get_length(None), 0) def test_get_length_invalid_type(self): with self.assertRaises(ValueError): get_length(object()) def test_get_length_list(self): self.assertEqual(get_length([]), 0) def test_get_length_tuple(self): self.assertEqual(get_length((1, 2, 3)), 3) def test_get_length_dict(self): self.assertEqual(get_length({"hello": "world"}), 1) if __name__ == "__main__": unittest.main()
25.923077
65
0.670623
185
1,348
4.621622
0.372973
0.210526
0.105263
0.168421
0.320468
0.067836
0
0
0
0
0
0.00653
0.204748
1,348
51
66
26.431373
0.791045
0.014837
0
0.057143
0
0
0.07159
0
0
0
0
0
0.257143
1
0.257143
false
0
0.2
0
0.485714
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
0
0
0
3
e60611b7c9be4bd86f1cfc6dc463479f0bf59250
216
py
Python
pycspr/codec/_bytearray/cl_list.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
2
2021-04-14T13:49:20.000Z
2021-07-06T22:07:02.000Z
pycspr/codec/_bytearray/cl_list.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
null
null
null
pycspr/codec/_bytearray/cl_list.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
1
2021-04-15T12:52:42.000Z
2021-04-15T12:52:42.000Z
import typing import operator from operator import add def to_bytes(instance: list, item_encoder: typing.Callable) -> bytearray: return [len(instance)] + map(operator.add, [item_encoder(i) for i in instance])
24
83
0.75463
31
216
5.16129
0.645161
0.1375
0
0
0
0
0
0
0
0
0
0
0.143519
216
8
84
27
0.864865
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.6
0.2
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
0
0
0
3
e6079305ec163da80713e2a4a67aaed563a40947
56
py
Python
example-config.py
PabloJabat/trading-bot-python
f97930a34b614ae3538a27398ee82d9fde72cf9a
[ "MIT" ]
4
2020-08-11T16:16:47.000Z
2021-03-13T14:44:43.000Z
example-config.py
fcarazo/trading-bot-python
db1144f18cd12814fa4806cffa1020c6bfcad2a4
[ "MIT" ]
6
2021-03-13T16:06:21.000Z
2022-03-29T22:28:48.000Z
example-config.py
fcarazo/trading-bot-python
db1144f18cd12814fa4806cffa1020c6bfcad2a4
[ "MIT" ]
2
2021-03-13T15:45:23.000Z
2021-10-16T11:10:00.000Z
API_KEY = "your-api-key" SECRET_KEY = "your-secret-key"
18.666667
30
0.714286
10
56
3.8
0.4
0.315789
0
0
0
0
0
0
0
0
0
0
0.107143
56
2
31
28
0.76
0
0
0
0
0
0.482143
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e61cfc9b6d939c1dbaf4b64ec91f4f25d97e76a2
207
py
Python
conditional_distribution.py
lliryc/baytrino
272bd17b7a7c9fb027e976adb7278ec5b582d36c
[ "Apache-2.0" ]
6
2021-01-29T12:13:51.000Z
2022-01-28T18:02:38.000Z
conditional_distribution.py
lliryc/baytrino
272bd17b7a7c9fb027e976adb7278ec5b582d36c
[ "Apache-2.0" ]
null
null
null
conditional_distribution.py
lliryc/baytrino
272bd17b7a7c9fb027e976adb7278ec5b582d36c
[ "Apache-2.0" ]
null
null
null
import numpy as np import typing as t class ProbRelation: def __init__(self, probs: t.List[t.List[float]], shape:t.Tuple[int, int]): self.distibution = np.array(probs) self.shape = shape
29.571429
78
0.676329
32
207
4.25
0.59375
0.073529
0
0
0
0
0
0
0
0
0
0
0.202899
207
7
79
29.571429
0.824242
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
e66704902c8913fb1a77416d13c1b5fb51f51be4
611
py
Python
py/DREAM/Output/HotElectronDistributionFunction.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
12
2020-09-07T11:19:10.000Z
2022-02-17T17:40:19.000Z
py/DREAM/Output/HotElectronDistributionFunction.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
110
2020-09-02T15:29:24.000Z
2022-03-09T09:50:01.000Z
py/DREAM/Output/HotElectronDistributionFunction.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
3
2021-05-21T13:24:31.000Z
2022-02-11T14:43:12.000Z
# Wrapper class for 'f_hot' -- the hot electron distribution function import numpy as np import matplotlib.pyplot as plt from . DistributionFunction import DistributionFunction class HotElectronDistributionFunction(DistributionFunction): def __init__(self, name, data, grid, output, attr=list()): """ Constructor. """ super().__init__(name=name, data=data, attr=attr, grid=grid, output=output, momentumgrid=grid.hottail) def getTeXName(self): """ Returns the TeX-compatible name of this quantity. """ return r'$f_{\rm hot}$'
23.5
110
0.664484
67
611
5.910448
0.626866
0.040404
0
0
0
0
0
0
0
0
0
0
0.232406
611
25
111
24.44
0.84435
0.214403
0
0
0
0
0.030162
0
0
0
0
0
0
1
0.25
false
0
0.375
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
051993096a367f147bd30a21090b38f503c5ffb3
111
py
Python
healthplan/tier.py
jpbarela/pyActuarialValue
bda98370250e6ecaecd9beffb8bcc11456dd4fa4
[ "Apache-2.0" ]
2
2016-05-09T01:01:09.000Z
2017-10-04T12:04:17.000Z
healthplan/tier.py
jpbarela/pyActuarialValue
bda98370250e6ecaecd9beffb8bcc11456dd4fa4
[ "Apache-2.0" ]
1
2015-01-01T17:16:44.000Z
2015-01-01T17:43:30.000Z
healthplan/tier.py
jpbarela/pyActuarialValue
bda98370250e6ecaecd9beffb8bcc11456dd4fa4
[ "Apache-2.0" ]
3
2015-07-25T15:55:06.000Z
2020-05-03T16:48:20.000Z
from enum import Enum class Tier(Enum): platinum = 1 gold = 2 silver = 3 bronze = 4 na = 5
13.875
21
0.558559
17
111
3.647059
0.882353
0
0
0
0
0
0
0
0
0
0
0.071429
0.369369
111
8
22
13.875
0.814286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
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
0
0
1
0
0
3
051e41bed7bb04b2fbc5ed6df8841c7227bdcf13
1,239
py
Python
takenote/notes/models.py
macerocket/takenote
df02c41e44a9c2f4a0505d1de0ed732a59dda173
[ "Apache-2.0" ]
null
null
null
takenote/notes/models.py
macerocket/takenote
df02c41e44a9c2f4a0505d1de0ed732a59dda173
[ "Apache-2.0" ]
null
null
null
takenote/notes/models.py
macerocket/takenote
df02c41e44a9c2f4a0505d1de0ed732a59dda173
[ "Apache-2.0" ]
null
null
null
""" models for the rest interface of the takenotes project. """ from django.db import models # Create your models here. class Note(models.Model): """ A Note represent notes taken at a meeting or w/e. """ name = models.CharField(max_length=255, unique=True) notes = models.TextField() private_flag = models.BooleanField(default=False) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return f"{self.name}, private={self.private}, created: {self.created_at}" class ActionItem(models.Model): """ ActionItem represents bits of text in a note that were extracted into a todo list. These are identifed as starting with AI: or AI(user): or AI(user|due_by_date): and end at a newline. """ note = models.ForeignKey("Note", on_delete=models.CASCADE) item = models.TextField() who = models.TextField() done = models.BooleanField(default=False) due_by = models.TextField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return f"{self.note. name} :: action={self.item}, who: {self.who}"
31.769231
81
0.69088
171
1,239
4.859649
0.491228
0.072202
0.101083
0.120337
0.245487
0.245487
0.245487
0.245487
0.245487
0.245487
0
0.003006
0.194512
1,239
38
82
32.605263
0.829659
0.256659
0
0.315789
0
0.052632
0.141055
0.026376
0
0
0
0.026316
0
1
0.105263
false
0
0.052632
0.105263
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
1
1
0
0
3
051f96840bb8bc6be4e83515474bdf5563b5408b
83
py
Python
src/naturerec_web/home/__init__.py
davewalker5/NatureRecorderPy
53b3c2a589986f91bc78999f40a6dc55f61afe36
[ "MIT" ]
null
null
null
src/naturerec_web/home/__init__.py
davewalker5/NatureRecorderPy
53b3c2a589986f91bc78999f40a6dc55f61afe36
[ "MIT" ]
null
null
null
src/naturerec_web/home/__init__.py
davewalker5/NatureRecorderPy
53b3c2a589986f91bc78999f40a6dc55f61afe36
[ "MIT" ]
null
null
null
from naturerec_web.home.home_blueprint import home_bp __all__ = [ "home_bp" ]
13.833333
53
0.746988
12
83
4.5
0.666667
0.222222
0
0
0
0
0
0
0
0
0
0
0.168675
83
5
54
16.6
0.782609
0
0
0
0
0
0.084337
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0588b1aabfa397fccb6d84b9273f9486260c7fd2
4,326
py
Python
fastshop/fastshop/settings.py
IlyaDjurin/project-shop
affe4d6b02c4676f564088f360fed7bd8bae983a
[ "MIT" ]
null
null
null
fastshop/fastshop/settings.py
IlyaDjurin/project-shop
affe4d6b02c4676f564088f360fed7bd8bae983a
[ "MIT" ]
null
null
null
fastshop/fastshop/settings.py
IlyaDjurin/project-shop
affe4d6b02c4676f564088f360fed7bd8bae983a
[ "MIT" ]
null
null
null
""" Django settings for fastshop project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os import oscar from oscar.defaults import * # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '3oxtwo4^c6*++r(xcp-&1^4i#hzznh$ncvl&yn@9f$6*8466kg' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', 'URL': 'http://127.0.0.1:8983/solr', 'INCLUDE_SPELLING': True, }, } # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.flatpages', 'fastshop', 'compressor', 'widget_tweaks', ] + oscar.get_core_apps() SITE_ID = 1 MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'oscar.apps.basket.middleware.BasketMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', ] ROOT_URLCONF = 'fastshop.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ os.path.join(BASE_DIR, 'templates'), oscar.OSCAR_MAIN_TEMPLATE_DIR, ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.i18n', 'django.contrib.messages.context_processors.messages', 'oscar.apps.search.context_processors.search_form', 'oscar.apps.promotions.context_processors.promotions', 'oscar.apps.checkout.context_processors.checkout', 'oscar.apps.customer.notifications.context_processors.notifications', 'oscar.core.context_processors.metadata', ], }, }, ] WSGI_APPLICATION = 'fastshop.wsgi.application' # Database # https://docs.djangoproject.com/en/1.10/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'ATOMIC_REQUESTS': True, } } AUTHENTICATION_BACKENDS = ( 'oscar.apps.customer.auth_backends.EmailBackend', 'django.contrib.auth.backends.ModelBackend', ) # Password validation # https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/1.10/topics/i18n/ LANGUAGE_CODE = 'ru-RU' TIME_ZONE = 'Europe/Moscow' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.10/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = '/static/'
27.55414
91
0.686778
467
4,326
6.250535
0.396146
0.084618
0.046591
0.059952
0.175745
0.147311
0.093868
0.093868
0.042138
0
0
0.016084
0.180767
4,326
157
92
27.55414
0.807562
0.230236
0
0.041237
1
0.010309
0.567715
0.475212
0
0
0
0
0
1
0
false
0.051546
0.030928
0
0.030928
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
0597b27ffe3c466adb2aa6fea2f9db406729dcd5
271
py
Python
Coursera/Week.2/Task.20.py
v1nnyb0y/Coursera.BasePython
bbfb3184dc27a4cdb16b087123890991afbc5506
[ "MIT" ]
null
null
null
Coursera/Week.2/Task.20.py
v1nnyb0y/Coursera.BasePython
bbfb3184dc27a4cdb16b087123890991afbc5506
[ "MIT" ]
null
null
null
Coursera/Week.2/Task.20.py
v1nnyb0y/Coursera.BasePython
bbfb3184dc27a4cdb16b087123890991afbc5506
[ "MIT" ]
null
null
null
''' Мороженое ''' k = int(input()) if (k % 5 == 4 and k >= 9): print('YES') elif (k % 5 == 3): print('YES') elif (k % 5 == 2 and k >= 12): print('YES') elif (k % 5 == 1 and k >= 6): print('YES') elif (k % 5 == 0): print('YES') else: print('NO')
14.263158
30
0.435424
46
271
2.565217
0.434783
0.084746
0.40678
0.440678
0.474576
0
0
0
0
0
0
0.073684
0.298893
271
18
31
15.055556
0.547368
0.03321
0
0.384615
0
0
0.066929
0
0
0
0
0
0
1
0
false
0
0
0
0
0.461538
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
555624840801c60b45f6ec114e20ecefd1624060
895
py
Python
moby_distribution/__init__.py
shabbywu/distribution
decc93545094089408e1da629a2e8253fc359a90
[ "Apache-2.0" ]
7
2021-12-15T16:02:32.000Z
2022-03-18T08:15:12.000Z
moby_distribution/__init__.py
shabbywu/distribution
decc93545094089408e1da629a2e8253fc359a90
[ "Apache-2.0" ]
null
null
null
moby_distribution/__init__.py
shabbywu/distribution
decc93545094089408e1da629a2e8253fc359a90
[ "Apache-2.0" ]
1
2022-03-18T08:04:46.000Z
2022-03-18T08:04:46.000Z
from moby_distribution.registry.client import DockerRegistryV2Client, default_client, set_default_client from moby_distribution.registry.resources.blobs import Blob from moby_distribution.registry.resources.image import ImageRef, LayerRef from moby_distribution.registry.resources.manifests import ManifestRef from moby_distribution.registry.resources.tags import Tags from moby_distribution.spec.endpoint import OFFICIAL_ENDPOINT, APIEndpoint from moby_distribution.spec.image_json import ImageJSON from moby_distribution.spec.manifest import ManifestSchema1, ManifestSchema2, OCIManifestSchema1 __version__ = "0.5.2" __ALL__ = [ "DockerRegistryV2Client", "Blob", "ManifestRef", "Tags", "APIEndpoint", "ManifestSchema1", "ManifestSchema2", "OCIManifestSchema1", "ImageJSON", "ImageRef", "LayerRef", "default_client", "set_default_client", ]
34.423077
104
0.794413
92
895
7.467391
0.358696
0.093159
0.232897
0.203785
0.299854
0
0
0
0
0
0
0.014031
0.124022
895
25
105
35.8
0.862245
0
0
0
0
0
0.181006
0.024581
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
55ac25df14740dccd0681c52dafb1884ed9136b7
3,969
py
Python
adversarials/core/base.py
deven96/Wasserstein_GAN
c50df5fa6daa31adf50f50b6e4a06f5336777a52
[ "MIT" ]
7
2018-12-20T19:56:06.000Z
2019-05-23T23:39:18.000Z
adversarials/core/base.py
deven96/Wasserstein_GAN
c50df5fa6daa31adf50f50b6e4a06f5336777a52
[ "MIT" ]
null
null
null
adversarials/core/base.py
deven96/Wasserstein_GAN
c50df5fa6daa31adf50f50b6e4a06f5336777a52
[ "MIT" ]
2
2018-12-20T17:24:45.000Z
2019-01-27T23:03:02.000Z
"""Base classes for Adversarial package. @author Victor I. Afolabi Artificial Intelligence Expert & Software Engineer. Email: javafolabi@gmail.com | victor.afolabi@zephyrtel.com GitHub: https://github.com/victor-iyiola @project File: base.py Created on 20 December, 2018 @ 06:56 PM. @license MIT License Copyright (c) 2018. Victor I. Afolabi. All rights reserved. """ import os.path from abc import ABCMeta, abstractmethod from adversarials.core.utils import File, Log from adversarials.core.consts import FS class _Base(object): def __init__(self, *args, **kwargs): # Verbosity level: 0 or 1. self._verbose = kwargs.setdefault('verbose', 1) self._name = kwargs.get('name', self.__class__.__name__) def __repr__(self): """Object representation of Sub-classes.""" # args = self._get_args() kwargs = self._get_kwargs() # Format arguments. # fmt = ", ".join(map(repr, args)) fmt = "" # Format keyword arguments. for k, v in kwargs: # Don't include these in print-out. if k in ('captions', 'filename', 'ids'): continue fmt += ", {}={!r}".format(k, v) # Object representation of Class. return '{}({})'.format(self.__class__.__name__, fmt.lstrip(', ')) def __str__(self): """String representation of Sub-classes.""" return "{}()".format(self.__class__.__name__, ", ".join(map(str, self._get_args()))) def __format__(self, format_spec): if format_spec == "!r": return self.__repr__() return self.__str__() def _log(self, *args, level: str = 'log', **kwargs): """Logging method helper based on verbosity.""" # No logging if verbose is not 'on'. if not kwargs.pop('verbose', self._verbose): return # Validate log levels. _levels = ('log', 'debug', 'info', 'warn', 'error', 'critical') if level.lower() not in _levels: raise ValueError("`level` must be one of {}".format(_levels)) # Call the appropriate log level, eg: Log.info(*args, **kwargs) eval(f'Log.{level.lower()}(*args, **kwargs)') # noinspection PyMethodMayBeStatic def _get_args(self): # names = ('data_dir', 'sub_dirs', 'results_dir') # return [getattr(self, f'_{name}') for name in names] return [] def _get_kwargs(self): return sorted([(k.lstrip('_'), getattr(self, f'{k}')) for k in self.__dict__.keys()]) @property def name(self): return self._name @property def verbose(self): return self._verbose class ModelBase(_Base, metaclass=ABCMeta): def __init__(self, *args, **kwargs): super(ModelBase, self).__init__(*args, **kwargs) # Extract Keyword arguments. self._cache_dir = kwargs.get('cache_dir', os.path.join(FS.MODEL_DIR, self._name)) # Create cache directory if it doesn't exist. File.make_dirs(self._cache_dir, verbose=self._verbose) def __call__(self, *args, **kwargs): return self.call() # noinspection PyUnusedLocal @abstractmethod def call(self, *args, **kwargs): return NotImplemented @staticmethod def int_shape(x): """Returns the shape of tensor or variable as tuple of int or None entries. Args: x (Union[tf.Tensor, tf.Variable]): Tensor or variable. hasattr(x, 'shape') Returns: tuple: A tuple of integers (or None entries). """ try: shape = x.shape if not isinstance(shape, tuple): shape = tuple(shape.as_list()) return shape except ValueError: return None @property def cache_dir(self): return self._cache_dir
30.29771
86
0.582514
461
3,969
4.785249
0.373102
0.036265
0.025385
0.013599
0.066183
0.024479
0
0
0
0
0
0.006043
0.291257
3,969
130
87
30.530769
0.778173
0.317208
0
0.078125
0
0
0.064765
0.010023
0
0
0
0
0
1
0.21875
false
0
0.0625
0.109375
0.53125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
55be563529339912b64bad42311b70e3f52c60de
642
py
Python
midauth/web/admin/dashboard.py
calvinkim27/test0620
36df5190d9c8057ae5dff924f7882603ddc12cfb
[ "MIT" ]
null
null
null
midauth/web/admin/dashboard.py
calvinkim27/test0620
36df5190d9c8057ae5dff924f7882603ddc12cfb
[ "MIT" ]
null
null
null
midauth/web/admin/dashboard.py
calvinkim27/test0620
36df5190d9c8057ae5dff924f7882603ddc12cfb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, render_template, current_app from flask.ext.login import current_user blueprint = Blueprint('admin.dashboard', __name__) @blueprint.before_request def restrict_blueprint_to_admins(): """ .. seealso:: http://flask.pocoo.org/snippets/59/ """ if not current_user.is_authenticated(): return current_app.login_manager.unauthorized() @blueprint.route('') def home(): return render_template('admin/dashboard.html') @blueprint.route('/status') def status(): config = dict(current_app.config) return render_template('admin/status.html', config=config)
22.137931
62
0.719626
78
642
5.692308
0.538462
0.094595
0.09009
0.112613
0
0
0
0
0
0
0
0.005455
0.143302
642
28
63
22.928571
0.801818
0.110592
0
0
0
0
0.106691
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.071429
0.571429
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
1
0
3
e9584c3b19deb69eebea31247be5f27d8a052d56
3,343
py
Python
lang/engine/core.py
marc-dantas/lyon
abbd5a78acf020601e06bee5fc19c6301391275c
[ "MIT" ]
2
2022-01-30T22:10:41.000Z
2022-01-30T22:32:34.000Z
lang/engine/core.py
marc-dantas/lyon
abbd5a78acf020601e06bee5fc19c6301391275c
[ "MIT" ]
null
null
null
lang/engine/core.py
marc-dantas/lyon
abbd5a78acf020601e06bee5fc19c6301391275c
[ "MIT" ]
1
2022-01-10T16:55:26.000Z
2022-01-10T16:55:26.000Z
from .util import filter_interpolations from .models import * from .memory import * from .errs import INVALID_COMMAND # Memory SPACE = Space() NUM = Num() VAR = Var() PARAM = Param() CMP = Cmp() # General constants INTERPOLATIONS = (SPACE, NUM, PARAM) TYPES = (String, Number) class CommandToken: def __init__(self, command: str, parameter: String | Number = None) -> None: self._cmd = command self._param = parameter or 'None' @property def val(self) -> list[str, String | Number]: return [self._cmd, self._param] def __repr__(self) -> list: return [self._cmd, self._param] class Command: def __init__(self, name: str, action: 'function') -> None: self._name = name self._action = action @property def name(self) -> str: return self._name @property def action(self) -> 'function': return self._action def __call__(self, argument) -> None: self.action(argument) class CommandTable: def __init__(self) -> None: self._commands: list[Command] = [] @property def commands(self) -> list[Command]: return self._commands def insert(self, command: Command) -> None: self._commands.append(command) def insert_commands(self, commands: list[Command]) -> None: for command in commands: self.insert(command) def exists(self, name: str) -> bool: return any(not not i for i in self.commands if i.name == name) def get(self, name: str) -> Command: return next(i for i in self.commands if i.name == name) def __repr__(self) -> str: return self._commands # TODO: Implement "Can use more than one parameter in commands." class CommandLexer: @staticmethod def _format_cmd(command: str) -> tuple[str, str]: f = command.strip().split(' ', 1) return (f[0].lower(), f[-1]) if len(f) > 1 else (f[0], '"None"') def _create_token(self, cmd_name: str, param: str) -> CommandToken: for cls in TYPES: if cls.match_syntax(param): return CommandToken(cmd_name, cls(param)) throw(INVALID_ARG, cmd_name, 'Invalid type literal.') return CommandToken(cmd_name, String('""')) def tokenize_command(self, command: str) -> CommandToken: cmd_name, param = self._format_cmd(command) param = filter_interpolations(param, *INTERPOLATIONS) return self._create_token(cmd_name, param) # TODO: Implement "Can use more than one parameter in commands." class CommandInterpreter: def __init__(self, command_table: CommandTable) -> None: self._command_table = command_table @property def command_table(self) -> CommandTable: return self._command_table def _get_command(self, token: CommandToken) -> tuple: cmd, param = token.val if self.command_table.exists(cmd): cmd = self.command_table.get(cmd) return (cmd.action, param.get_value()) return (cmd, None) def run_command(self, token: CommandToken) -> None: cmd, parameter = self._get_command(token) if parameter is not None: cmd(parameter) else: throw(INVALID_COMMAND, f"\"{cmd}\"")
27.178862
72
0.616811
403
3,343
4.920596
0.218362
0.044377
0.040343
0.018154
0.109934
0.087746
0.087746
0.087746
0.087746
0.087746
0
0.002049
0.270117
3,343
122
73
27.401639
0.810656
0.04487
0
0.129412
0
0
0.015997
0
0
0
0
0.008197
0
1
0.247059
false
0
0.047059
0.105882
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e95c31c0c4444bfa44946a6c7fd1121bf0aae106
385
py
Python
chainer_openpose/transforms/box.py
iory/chainer-openpose
020cf7c6946ecaa3e110d937a73565f4e76e3c42
[ "MIT" ]
3
2020-10-20T12:58:48.000Z
2020-10-20T20:38:27.000Z
chainer_openpose/transforms/box.py
iory/chainer-openpose
020cf7c6946ecaa3e110d937a73565f4e76e3c42
[ "MIT" ]
null
null
null
chainer_openpose/transforms/box.py
iory/chainer-openpose
020cf7c6946ecaa3e110d937a73565f4e76e3c42
[ "MIT" ]
null
null
null
import numpy as np def get_pose_bboxes(poses): pose_bboxes = [] for pose in poses: x1 = pose[pose[:, 2] > 0][:, 0].min() y1 = pose[pose[:, 2] > 0][:, 1].min() x2 = pose[pose[:, 2] > 0][:, 0].max() y2 = pose[pose[:, 2] > 0][:, 1].max() pose_bboxes.append([x1, y1, x2, y2]) pose_bboxes = np.array(pose_bboxes) return pose_bboxes
27.5
45
0.514286
59
385
3.237288
0.389831
0.314136
0.188482
0.209424
0.230366
0
0
0
0
0
0
0.072202
0.280519
385
13
46
29.615385
0.617329
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
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
0
0
0
3
e964496da23e6d0bdbfc8544901f4805fe65a250
3,526
py
Python
pytils/object_view.py
d33jiang/pytils
6e44a05480abec6297b77730676bcb5fd5088f6f
[ "MIT" ]
null
null
null
pytils/object_view.py
d33jiang/pytils
6e44a05480abec6297b77730676bcb5fd5088f6f
[ "MIT" ]
null
null
null
pytils/object_view.py
d33jiang/pytils
6e44a05480abec6297b77730676bcb5fd5088f6f
[ "MIT" ]
null
null
null
import collections.abc from typing import Any, ByteString, ItemsView, Iterable, Iterator, KeysView, Mapping, Sequence, Text, ValuesView __all__ = [ 'ObjectView', ] class ObjectView(collections.abc.Sequence, collections.abc.Mapping): def __init__(self, data: Any): object.__setattr__(self, '_ov_backing_data', data) __slots__ = ('_ov_backing_data',) @staticmethod def _select_view_ctor(data: Any): if isinstance(data, (Mapping, Sequence)) \ and not isinstance(data, (Text, ByteString)): return ObjectView else: return lambda x: x @classmethod def _ov_wrap(cls, data: Any) -> Any: return cls._select_view_ctor(data)(data) @staticmethod def _ov_unwrap(view: Any) -> Any: return view() if isinstance(view, ObjectView) else view @classmethod def of(cls, data: Any) -> Any: return cls._ov_wrap(data) @staticmethod def get_value(view: Any) -> Any: return ObjectView._ov_unwrap(view) def __repr__(self) -> str: return f'{type(self).__name__}({self._ov_backing_data!r})' def __str__(self) -> str: return str(self._ov_backing_data) def __bytes__(self): return bytes(self._ov_backing_data) def __format__(self, format_spec: str) -> str: return format(self._ov_backing_data, format_spec) def __hash__(self): return hash(self._ov_backing_data) def __bool__(self): return bool(self._ov_backing_data) def __getattr__(self, key: str): return self._ov_wrap(self._ov_backing_data[key]) def __setattr__(self, key: str, value): self._ov_backing_data[key] = value def __delattr__(self, key: str): del self._ov_backing_data[key] def __call__(self): return self._ov_backing_data def __len__(self): return len(self._ov_backing_data) def __getitem__(self, key): return self._ov_wrap(self._ov_backing_data[key]) def __setitem__(self, key, value): self._ov_backing_data[key] = value def __delitem__(self, key): del self._ov_backing_data[key] def _ov_wrap_iterable(self, iterable: Iterable) -> Iterator: return (self._ov_wrap(item) for item in iterable) def __iter__(self): return self._ov_wrap_iterable(iter(self._ov_backing_data)) def __reversed__(self): return self._ov_wrap_iterable(reversed(self._ov_backing_data)) def __contains__(self, item): return item in self._ov_backing_data def keys(self) -> KeysView: return self._ov_backing_data.keys() def values(self) -> ValuesView: return ObjectView.Values(self) def items(self) -> ItemsView: return ObjectView.Items(self) def _values(self) -> Iterator: return self._ov_wrap_iterable(self._ov_backing_data.values()) def _items(self) -> Iterator: return ( (key, self._ov_wrap(value)) for key, value in self._ov_backing_data.items() ) class Values(collections.abc.ValuesView): def __init__(self, data: 'ObjectView'): super().__init__(data) self._data = data def __iter__(self) -> Iterator: return self._data._values() class Items(collections.abc.ItemsView): def __init__(self, data: 'ObjectView'): super().__init__(data) self._data = data def __iter__(self) -> Iterator: return self._data._items()
27.333333
112
0.645491
436
3,526
4.708716
0.174312
0.081831
0.139308
0.173892
0.364345
0.225037
0.176327
0.150999
0.11885
0.11885
0
0
0.248157
3,526
128
113
27.546875
0.774425
0
0
0.213483
0
0
0.031197
0.013613
0
0
0
0
0
1
0.370787
false
0
0.022472
0.280899
0.741573
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
0
0
0
3
e96513d2ce02fdabfd663be7bb6110c2a93c03c4
188
py
Python
MongoDB/Exercises/personal_finances/run.py
CaioCavalcanti/big-data-course
287cada875ef80333889acedb01af0ecb6fb956b
[ "MIT" ]
15
2019-10-03T19:46:56.000Z
2019-10-16T01:35:45.000Z
MongoDB/Exercises/personal_finances/run.py
CaioCavalcanti/big-data-course
287cada875ef80333889acedb01af0ecb6fb956b
[ "MIT" ]
null
null
null
MongoDB/Exercises/personal_finances/run.py
CaioCavalcanti/big-data-course
287cada875ef80333889acedb01af0ecb6fb956b
[ "MIT" ]
null
null
null
from eve import Eve from personal_finances.auth import RolesAuth, add_token if __name__ == '__main__': app = Eve(auth=RolesAuth) app.on_insert_accounts += add_token app.run()
23.5
55
0.734043
27
188
4.62963
0.62963
0.128
0
0
0
0
0
0
0
0
0
0
0.175532
188
8
56
23.5
0.806452
0
0
0
0
0
0.042328
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
e9873fd47a6c007cd519985bb1c6dacf999573f8
519
py
Python
pinax/testimonials/templatetags/pinax_testimonials_tags.py
pinax/pinax-testimonials
aa3a1cb73011ae88eecc646e8328afabb82a5e27
[ "MIT" ]
9
2015-12-15T22:51:10.000Z
2021-07-06T03:17:13.000Z
pinax/testimonials/templatetags/pinax_testimonials_tags.py
eldarion/marturion
aa3a1cb73011ae88eecc646e8328afabb82a5e27
[ "MIT" ]
15
2015-08-03T13:14:57.000Z
2020-03-26T03:52:55.000Z
pinax/testimonials/templatetags/pinax_testimonials_tags.py
eldarion/marturion
aa3a1cb73011ae88eecc646e8328afabb82a5e27
[ "MIT" ]
6
2015-07-30T22:24:06.000Z
2020-03-23T08:37:11.000Z
from django import template from ..models import Testimonial register = template.Library() @register.simple_tag def random_testimonials(number): return Testimonial.objects.filter(active=True).order_by("?")[:number] @register.simple_tag def random_testimonial(): queryset = Testimonial.objects.filter(active=True).order_by("?") return queryset[0] if queryset else None @register.simple_tag def testimonials(number=None): return Testimonial.objects.filter(active=True).order_by("-added")[:number]
23.590909
78
0.766859
65
519
6
0.415385
0.107692
0.130769
0.153846
0.479487
0.346154
0.346154
0.241026
0
0
0
0.002165
0.109827
519
21
79
24.714286
0.841991
0
0
0.230769
0
0
0.015414
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0.153846
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e9a2e96d396369c95dc2f1fdb6dc97c13a91d0fc
2,291
py
Python
src/bricks/audio_device.py
SandroWissmann/Bricks-Py
640140f9fd4a947b175a090563113108cc047f89
[ "MIT" ]
null
null
null
src/bricks/audio_device.py
SandroWissmann/Bricks-Py
640140f9fd4a947b175a090563113108cc047f89
[ "MIT" ]
null
null
null
src/bricks/audio_device.py
SandroWissmann/Bricks-Py
640140f9fd4a947b175a090563113108cc047f89
[ "MIT" ]
null
null
null
""" Module to play sounds in the game. class AudioDevice Audio device needs to be constructed to play sounds. Use free standing functions to play sounds. Only one audio device should be created. Functions: play_destroy_brick(audio_device: AudioDevice) play_hit_brick(audio_device: AudioDevice) play_hit_platform(audio_device: AudioDevice) play_game_over(audio_device: AudioDevice) play_next_level(audio_device: AudioDevice) play_lost_ball(audio_device: AudioDevice) play_extra_life(audio_device: AudioDevice) play_win_game(audio_device: AudioDevice) """ import pygame FILENAME_DESTROY_BRICK = "sounds/destroyBrick.wav" FILENAME_HIT_BRICK = "sounds/hitBrick.wav" FILENAME_HIT_PLATFORM = "sounds/hitPlatform.wav" FILENAME_GAME_OVER = "sounds/gameOver.wav" FILENAME_NEXT_LEVEL = "sounds/nextLevel.wav" FILENAME_LOST_BALL = "sounds/lostBall.wav" FILENAME_EXTRA_LIFE = "sounds/extraLife.wav" FILENAME_WIN_GAME = "sounds/winGame.wav" class AudioDevice: """AudioDevice to play sounds with freestanding functions.""" def __init__(self): pygame.mixer.init() def _play_sound(self, filename: str): effect = pygame.mixer.Sound(filename) effect.play() def play_destroy_brick(audio_device: AudioDevice): """Play destroy brick sound.""" audio_device._play_sound(FILENAME_DESTROY_BRICK) def play_hit_brick(audio_device: AudioDevice): """Play hit brick sound.""" audio_device._play_sound(FILENAME_HIT_BRICK) def play_hit_platform(audio_device: AudioDevice): """Play hit platform sound.""" audio_device._play_sound(FILENAME_HIT_PLATFORM) def play_game_over(audio_device: AudioDevice): """Play game over sound.""" audio_device._play_sound(FILENAME_GAME_OVER) def play_next_level(audio_device: AudioDevice): """Play next level sound.""" audio_device._play_sound(FILENAME_NEXT_LEVEL) def play_lost_ball(audio_device: AudioDevice): """Play lost ball sound.""" audio_device._play_sound(FILENAME_LOST_BALL) def play_extra_life(audio_device: AudioDevice): """Play extra life sound.""" audio_device._play_sound(FILENAME_EXTRA_LIFE) def play_win_game(audio_device: AudioDevice): """Play win game sound.""" audio_device._play_sound(FILENAME_WIN_GAME)
28.6375
65
0.762549
303
2,291
5.40264
0.181518
0.17471
0.215027
0.238241
0.56628
0.56628
0.393403
0.050092
0
0
0
0
0.143605
2,291
79
66
29
0.834353
0.36316
0
0
0
0
0.113798
0.032006
0
0
0
0
0
1
0.322581
false
0
0.032258
0
0.387097
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
e9a38578e9cbf6241bb87ab327be1509fde834e1
349
py
Python
opsbot/plugins/persistence/__init__.py
Degreeno/opsbot
7050483e63f1ed88d10373cf2f208e42499347fe
[ "Apache-2.0" ]
null
null
null
opsbot/plugins/persistence/__init__.py
Degreeno/opsbot
7050483e63f1ed88d10373cf2f208e42499347fe
[ "Apache-2.0" ]
1
2020-07-28T11:38:56.000Z
2020-07-29T14:32:50.000Z
opsbot/plugins/persistence/__init__.py
Degreeno/opsbot
7050483e63f1ed88d10373cf2f208e42499347fe
[ "Apache-2.0" ]
1
2021-12-23T12:00:37.000Z
2021-12-23T12:00:37.000Z
from abc import abstractmethod from typing import Dict from .. import OpsbotPlugin class PersistencePlugin(OpsbotPlugin): @abstractmethod def read_state(self) -> Dict: pass @abstractmethod def persist_state(self, state): pass @classmethod def _config_key(cls, key): return f"{cls.type()}.{key}"
17.45
38
0.667622
39
349
5.871795
0.564103
0.148472
0
0
0
0
0
0
0
0
0
0
0.243553
349
19
39
18.368421
0.867424
0
0
0.307692
0
0
0.051576
0
0
0
0
0
0
1
0.230769
false
0.153846
0.230769
0.076923
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
e9ab1bec3b2ba5088d7733cc33ff8985682bbe2f
1,016
py
Python
tests/test_passport.py
ukgovdatascience/scrubadub
9d742628345f3e8867ccbb9e9e0181540850bb88
[ "MIT" ]
1
2018-11-19T15:37:46.000Z
2018-11-19T15:37:46.000Z
tests/test_passport.py
ukgovdatascience/scrubadub
9d742628345f3e8867ccbb9e9e0181540850bb88
[ "MIT" ]
1
2018-01-26T17:39:54.000Z
2018-01-26T17:39:54.000Z
tests/test_passport.py
ukgovdatascience/scrubadub
9d742628345f3e8867ccbb9e9e0181540850bb88
[ "MIT" ]
3
2019-08-29T11:53:42.000Z
2021-04-10T19:51:26.000Z
import unittest from base import BaseTestCase class PassportTestCase(unittest.TestCase, BaseTestCase): """ Test cases for Credit Card number removal removal. """ def test_passport_long(self): """ Expect clash with NINO BEFORE: My passport number is 5333800068GBR8812049F2509286. AFTER: My passport number is {{PASSPORT+NINO}}. """ self.compare_before_after() def test_passport_short(self): """ BEFORE: My passport number is 5333800068. AFTER: My passport number is {{PASSPORT}}. """ self.compare_before_after() def test_disable_name(self): """ BEFORE: My passport number is 5333800068GBR8812049F2509286. AFTER: My passport number is {{PASSPORT}}. """ before, after = self.get_before_after() import scrubadub scrubber = scrubadub.Scrubber() scrubber.remove_detector('nino') self.check_equal(after, scrubber.clean(before))
26.736842
67
0.634843
105
1,016
6.009524
0.390476
0.095087
0.152139
0.171157
0.454834
0.454834
0.263074
0.263074
0.263074
0.263074
0
0.078804
0.275591
1,016
37
68
27.459459
0.778533
0.367126
0
0.153846
0
0
0.007619
0
0
0
0
0
0
1
0.230769
false
0.230769
0.230769
0
0.538462
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
1
0
0
0
0
0
3
e9aed929304a73252b3bc5000f7213974b7d68cb
1,878
py
Python
run.py
mikegribov/filedjson
ee9f8408edcf8a72b8ed415237789a602ee6b579
[ "MIT" ]
null
null
null
run.py
mikegribov/filedjson
ee9f8408edcf8a72b8ed415237789a602ee6b579
[ "MIT" ]
null
null
null
run.py
mikegribov/filedjson
ee9f8408edcf8a72b8ed415237789a602ee6b579
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from xjson import XJson from xjson.xnodes import XList import os import io import sys import traceback from xjson.plugins.plugin_json import PluginJson from xjson.classes.file_list import FileList name, ext="arr", "xml" plugin = XJson(os.path.join("tests", "examples", "single_file_" + name + "." + ext)) print(plugin.structure) #plugin = PluginJson("D:\\WORK\\GITHUB\\xjson\\tests\examples\\single_file_objarr.json") #print(plugin.get()) # fj = FiledJson(os.path.join("examples", "countries")) #xj = XJson(os.path.join("tests", "examples", "countries", "single_file")) #xj = XJson(os.path.join("tests", "examples", "empty_file")) #xj = XJson(os.path.join("tests", "examples", "single_file_object.json")) #xj = XJson(os.path.join("tests", "examples", "single_file_objarr.json")) #xj = XJson(os.path.join("tests", "examples", "single_file_arrobj.json")) #xj = XJson(os.path.join("tests", "examples", "single_file_array.json")) #xj = XJson(os.path.join("tests", "examples", "several_file_types")) #xj = XJson(os.path.join("tests", "examples", "empty_dir")) #xj = XJson(os.path.join("tests", "examples", "countries", "dir_one_level")) #xj = XJson(os.path.join("tests", "examples", "countries", "dir_several_level")) #xj = XJson(os.path.join("tests", "examples", "countries", "single_file.xjson")) #xj = XJson(os.path.join("tests", "examples", "countries", "single_file.yaml")) #xj = XJson(os.path.join("tests", "examples", "countries", "single_file.csv")) #xj = XJson(os.path.join("tests", "examples", "countries", "single_file.xml")) #print(xj) #print(xj.structure.alias('russia_population')) #print(xj.structure['russia_population']) #print(dj.get_value('russia.population')) #print(xj.alias('russia_population')) #print(XJson().copy_from(dj)) #print(dj.copy(exclude_info = True)) #print(dj.structure)
40.826087
89
0.688498
260
1,878
4.846154
0.230769
0.07619
0.126984
0.178571
0.552381
0.552381
0.521429
0.521429
0.405556
0.299206
0
0.000593
0.102769
1,878
45
90
41.733333
0.747181
0.768371
0
0
0
0
0.088154
0
0
0
0
0
0
1
0
false
0
0.727273
0
0.727273
0.090909
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
0
1
0
0
3
e9aef05b0e8832b8e97fd86b83e7d2b02e16cb9d
359
py
Python
pils/settings.py
jjerphan/pils
a7b3f4bd8204f56b24c793c9f8a32df80d7d4e9c
[ "MIT" ]
2
2019-01-10T16:25:34.000Z
2021-01-05T02:19:12.000Z
pils/settings.py
jjerphan/pils
a7b3f4bd8204f56b24c793c9f8a32df80d7d4e9c
[ "MIT" ]
1
2019-02-01T13:03:44.000Z
2020-05-09T15:01:11.000Z
pils/settings.py
jjerphan/pils
a7b3f4bd8204f56b24c793c9f8a32df80d7d4e9c
[ "MIT" ]
null
null
null
import os # Folders structures HERE = os.path.abspath(os.path.join(os.path.realpath(__file__), os.pardir)) ROOT = os.path.join(HERE, os.pardir) PROBLEMS_FOLDER = os.path.join(HERE, "problems") BIN_FOLDER = os.path.join(HERE, "bin") TEMP_FOLDER = os.path.join(HERE, "temp") def clean_lines(lines): return list(map(lambda f: f.replace("\n", ""), lines))
27.615385
75
0.707521
58
359
4.241379
0.448276
0.170732
0.203252
0.227642
0.243902
0
0
0
0
0
0
0
0.111421
359
12
76
29.916667
0.77116
0.050139
0
0
0
0
0.050147
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
0.375
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
e9b67b06631c6f775495d448f1680b43a2b898d8
55
py
Python
service_api/service_api/__init__.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
1
2021-07-12T11:20:58.000Z
2021-07-12T11:20:58.000Z
service_api/service_api/__init__.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
null
null
null
service_api/service_api/__init__.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
null
null
null
__version__ = (1, 2, 30) __all__ = ['event', 'event2']
18.333333
29
0.6
7
55
3.571429
1
0
0
0
0
0
0
0
0
0
0
0.108696
0.163636
55
2
30
27.5
0.434783
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e9c5e2f1b89bd04ce6028673fbda948f54f2bbb3
102
py
Python
samples/src/main/resources/datasets/python/76.py
sritchie/kotlingrad
8165ed1cd77220a5347c58cded4c6f2bcf22ee30
[ "Apache-2.0" ]
11
2020-12-19T01:19:44.000Z
2021-12-25T20:43:33.000Z
src/main/resources/datasets/python/76.py
breandan/katholic
081c39f3acc73ff41f5865563debe78a36e1038f
[ "Apache-2.0" ]
null
null
null
src/main/resources/datasets/python/76.py
breandan/katholic
081c39f3acc73ff41f5865563debe78a36e1038f
[ "Apache-2.0" ]
2
2021-01-25T07:59:20.000Z
2021-08-07T07:13:49.000Z
def test13(a, b): """Test for Docstring""" a.b[1] ziffern = "0123456789" ziffern[a:b]
17
28
0.54902
15
102
3.733333
0.666667
0.107143
0
0
0
0
0
0
0
0
0
0.173333
0.264706
102
5
29
20.4
0.573333
0.176471
0
0
0
0
0.128205
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
e9d8a537b569029b5ed477f28f6d20e94c49cc6f
21
py
Python
static/__init__.py
zhwei/ServerMonitor
d6615d00fe886a322a6f702e2acefe330e97f981
[ "MIT" ]
1
2020-02-07T12:59:19.000Z
2020-02-07T12:59:19.000Z
views/__init__.py
zhwei/ServerMonitor
d6615d00fe886a322a6f702e2acefe330e97f981
[ "MIT" ]
null
null
null
views/__init__.py
zhwei/ServerMonitor
d6615d00fe886a322a6f702e2acefe330e97f981
[ "MIT" ]
7
2015-07-28T09:27:58.000Z
2018-07-03T00:35:37.000Z
__author__ = 'zhwei'
10.5
20
0.714286
2
21
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.611111
0
0
0
0
0
0.238095
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e9dc380bcf39fda294adaf9444e58a948b62c4d7
156
py
Python
website/settings/staging.py
LKKTGB/lkk-website
d9cd2f5a11f2b4316ea4b242c5e09981207abdfb
[ "MIT" ]
null
null
null
website/settings/staging.py
LKKTGB/lkk-website
d9cd2f5a11f2b4316ea4b242c5e09981207abdfb
[ "MIT" ]
5
2020-04-26T09:03:33.000Z
2022-02-02T13:00:39.000Z
website/settings/staging.py
LKKTGB/lkk-website
d9cd2f5a11f2b4316ea4b242c5e09981207abdfb
[ "MIT" ]
null
null
null
import os from website.settings.production import * DEBUG = True if "DEBUG" in os.environ else False ALLOWED_HOSTS = ["lkkpomia-stage.azurewebsites.net"]
22.285714
52
0.775641
22
156
5.454545
0.863636
0
0
0
0
0
0
0
0
0
0
0
0.128205
156
6
53
26
0.882353
0
0
0
0
0
0.237179
0.205128
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
759cb233bc9fd01786ea2067cba73e0c94496890
378
py
Python
tests/test_tokens.py
sourovafrin/hiveengine
208a350e4a55983e1ac2ae775f22ca3d581a0377
[ "MIT" ]
7
2020-04-12T20:06:32.000Z
2021-09-16T14:56:06.000Z
tests/test_tokens.py
sourovafrin/hiveengine
208a350e4a55983e1ac2ae775f22ca3d581a0377
[ "MIT" ]
2
2020-05-01T23:27:47.000Z
2020-06-16T20:16:38.000Z
tests/test_tokens.py
sourovafrin/hiveengine
208a350e4a55983e1ac2ae775f22ca3d581a0377
[ "MIT" ]
5
2020-05-01T23:24:28.000Z
2022-02-27T18:42:08.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest from hiveengine.tokens import Tokens class Testcases(unittest.TestCase): def test_tokens(self): tokens = Tokens() self.assertTrue(tokens is not None) self.assertTrue(len(tokens) > 0)
27
43
0.772487
47
378
5.787234
0.510638
0.147059
0.235294
0
0
0
0
0
0
0
0
0.003205
0.174603
378
13
44
29.076923
0.86859
0
0
0
0
0
0
0
0
0
0
0
0.181818
1
0.090909
false
0
0.545455
0
0.727273
0.090909
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
75a4fcb1698fa32d3837e8969adceb094f5972b2
188
py
Python
Programming-101-v3/week6/1-Who-Follows-You-Back/github_network_test.py
pepincho/Python101-and-Algo1-Courses
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
2
2016-10-11T14:09:05.000Z
2017-01-20T19:30:34.000Z
Programming-101-v3/week6/1-Who-Follows-You-Back/github_network_test.py
pepincho/HackBulgaria
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
null
null
null
Programming-101-v3/week6/1-Who-Follows-You-Back/github_network_test.py
pepincho/HackBulgaria
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
null
null
null
import unittest from github_network import GithubNetwork class Test_GithubNetwork(unittest.TestCase): def setUp(self): pass if __name__ == '__main__': unittest.main()
14.461538
44
0.723404
21
188
6
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.196809
188
12
45
15.666667
0.834437
0
0
0
0
0
0.042553
0
0
0
0
0
0
1
0.142857
false
0.142857
0.285714
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
75b5321e1190889eaff3527defbc04461cbb535c
183
py
Python
coursera/stanford-algo/min-cuts/large-data.py
akras14/cs-101
5a836482ae0cca21fea2d8b1ca4be43a6c5e9562
[ "MIT" ]
null
null
null
coursera/stanford-algo/min-cuts/large-data.py
akras14/cs-101
5a836482ae0cca21fea2d8b1ca4be43a6c5e9562
[ "MIT" ]
null
null
null
coursera/stanford-algo/min-cuts/large-data.py
akras14/cs-101
5a836482ae0cca21fea2d8b1ca4be43a6c5e9562
[ "MIT" ]
null
null
null
import csv from mincut import findMin with open("data.txt") as f: data = [] for line in csv.reader(f, dialect="excel-tab"): data.append(line[:-1]) print findMin(data)
22.875
51
0.650273
29
183
4.103448
0.724138
0
0
0
0
0
0
0
0
0
0
0.006849
0.202186
183
7
52
26.142857
0.808219
0
0
0
0
0
0.092896
0
0
0
0
0
0
0
null
null
0
0.285714
null
null
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
75b88f1c632cd458008d1c5b3bce34030c53646e
1,934
py
Python
pava/implementation/natives/java/net/NetworkInterface.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
4
2017-03-30T16:51:16.000Z
2020-10-05T12:25:47.000Z
pava/implementation/natives/java/net/NetworkInterface.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
pava/implementation/natives/java/net/NetworkInterface.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
def add_native_methods(clazz): def getAll____(a0): raise NotImplementedError() def getByName0__java_lang_String__(a0, a1): raise NotImplementedError() def getByIndex0__int__(a0, a1): raise NotImplementedError() def getByInetAddress0__java_net_InetAddress__(a0, a1): raise NotImplementedError() def isUp0__java_lang_String__int__(a0, a1, a2): raise NotImplementedError() def isLoopback0__java_lang_String__int__(a0, a1, a2): raise NotImplementedError() def supportsMulticast0__java_lang_String__int__(a0, a1, a2): raise NotImplementedError() def isP2P0__java_lang_String__int__(a0, a1, a2): raise NotImplementedError() def getMacAddr0__byte____java_lang_String__int__(a0, a1, a2, a3): raise NotImplementedError() def getMTU0__java_lang_String__int__(a0, a1, a2): raise NotImplementedError() def init____(a0): raise NotImplementedError() clazz.getAll____ = staticmethod(getAll____) clazz.getByName0__java_lang_String__ = staticmethod(getByName0__java_lang_String__) clazz.getByIndex0__int__ = staticmethod(getByIndex0__int__) clazz.getByInetAddress0__java_net_InetAddress__ = staticmethod(getByInetAddress0__java_net_InetAddress__) clazz.isUp0__java_lang_String__int__ = staticmethod(isUp0__java_lang_String__int__) clazz.isLoopback0__java_lang_String__int__ = staticmethod(isLoopback0__java_lang_String__int__) clazz.supportsMulticast0__java_lang_String__int__ = staticmethod(supportsMulticast0__java_lang_String__int__) clazz.isP2P0__java_lang_String__int__ = staticmethod(isP2P0__java_lang_String__int__) clazz.getMacAddr0__byte____java_lang_String__int__ = staticmethod(getMacAddr0__byte____java_lang_String__int__) clazz.getMTU0__java_lang_String__int__ = staticmethod(getMTU0__java_lang_String__int__) clazz.init____ = staticmethod(init____)
41.148936
115
0.792658
216
1,934
6.032407
0.138889
0.128933
0.225633
0.234843
0.65848
0.270146
0.209517
0.191865
0.191865
0.191865
0
0.034525
0.146329
1,934
46
116
42.043478
0.754694
0
0
0.323529
0
0
0
0
0
0
0
0
0
1
0.352941
false
0
0
0
0.352941
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
75c19a3b3f89a74186033a10cdee7cd1e3a21b71
98
py
Python
udemy/python-video-workbook/my_progress/025.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/025.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/025.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
# Exercise 25 - Print Alphabet import string for letter in string.ascii_lowercase: print(letter)
19.6
37
0.795918
14
98
5.5
0.785714
0
0
0
0
0
0
0
0
0
0
0.02381
0.142857
98
5
38
19.6
0.892857
0.285714
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
75f244a3b0c155fc3bd3c549e8528826f7a35d1a
1,591
py
Python
examples/tmp.py
wallbreaker007/ada-detection
fbc27a876bb2a8dcc84cf0fe659ccbbc29d17211
[ "Apache-2.0" ]
null
null
null
examples/tmp.py
wallbreaker007/ada-detection
fbc27a876bb2a8dcc84cf0fe659ccbbc29d17211
[ "Apache-2.0" ]
null
null
null
examples/tmp.py
wallbreaker007/ada-detection
fbc27a876bb2a8dcc84cf0fe659ccbbc29d17211
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @Time : 2020/6/8 18:59 @Author : qinhanluo @File : tmp.py @Software: PyCharm @Description : TODO ''' import numpy as np from sklearn.manifold import TSNE import matplotlib.pyplot as plt from sklearn import datasets from sklearn.decomposition import PCA from sklearn.linear_model import LogisticRegression from sklearn import metrics if __name__ == "__main__": digits = datasets.load_digits(n_class=6) data = digits.data label = digits.target # features = np.load("d.npy") npz = np.load('../weights/water_cover.npz') xx = npz['features'] yy = npz['labels'] print(np.isnan(xx).any()) for i in range(12): print(xx[i].shape) print(yy[i].shape) # idx = np.where(~np.isnan(features)) # features[np.isnan(features)] = 0 pass # # print(idx) # # features = features[:-10, :] # print(np.isnan(features).any()) # print(features.shape) # # labels = np.load("label.npy") # # labels = labels[:-10] # print(np.isnan((features.any()))) # print(labels.shape) # # # model = LogisticRegression() # # model.fit(features, labels) # # print(model) # # # # print("RESULT") # # expected = labels # # predicted = model.predict(features) # # print(metrics.classification_report(expected, predicted)) # tsne = TSNE(n_components=2, init="pca", random_state=0) # X_tsne = tsne.fit_transform(features) # plt.figure() # plt.scatter(X_tsne[:,0], X_tsne[:,1], c=labels) # plt.colorbar() # plt.show() # # print(labels.sum())
26.966102
65
0.619736
201
1,591
4.810945
0.447761
0.056877
0.062048
0.028956
0.062048
0.062048
0.062048
0
0
0
0
0.018444
0.216216
1,591
59
66
26.966102
0.757017
0.522313
0
0
0
0
0.067321
0.036466
0
0
0
0.016949
0
1
0
false
0.052632
0.368421
0
0.368421
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
1
0
0
0
0
3
f95431f251945fde1a7338518a29e427bbdd42a4
321
py
Python
problems/subtract_the_product_and_sum_of_digits_of_an_integer/solution.py
jimit105/leetcode-submissions
ff20c54acf8ad71ed0851c81a0463520fca6a69f
[ "MIT" ]
null
null
null
problems/subtract_the_product_and_sum_of_digits_of_an_integer/solution.py
jimit105/leetcode-submissions
ff20c54acf8ad71ed0851c81a0463520fca6a69f
[ "MIT" ]
null
null
null
problems/subtract_the_product_and_sum_of_digits_of_an_integer/solution.py
jimit105/leetcode-submissions
ff20c54acf8ad71ed0851c81a0463520fca6a69f
[ "MIT" ]
null
null
null
class Solution: def subtractProductAndSum(self, n: int) -> int: prod = 1 sum_ = 0 while n > 0: last_digit = n % 10 prod *= last_digit sum_ += last_digit n //= 10 return prod - sum_
21.4
51
0.383178
30
321
3.9
0.533333
0.230769
0.17094
0.205128
0
0
0
0
0
0
0
0.048276
0.548287
321
15
52
21.4
0.758621
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
1
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
3
f95951c464e1894fb4ead27de1055af7d585ce3b
2,104
py
Python
app/migrations/0002_food_foodpackages_foodraw.py
dev-mahmoudwahba/FitnessTrainer
17d5e633d957a2bf4cff165f1d99943d0c54a9d7
[ "MIT" ]
1
2022-01-09T23:01:17.000Z
2022-01-09T23:01:17.000Z
app/migrations/0002_food_foodpackages_foodraw.py
dev-mahmoudwahba/FitnessTrainer
17d5e633d957a2bf4cff165f1d99943d0c54a9d7
[ "MIT" ]
null
null
null
app/migrations/0002_food_foodpackages_foodraw.py
dev-mahmoudwahba/FitnessTrainer
17d5e633d957a2bf4cff165f1d99943d0c54a9d7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-05 14:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateModel( name='FoodPackages', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('name_ar', models.CharField(max_length=255)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='FoodRaw', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('FoodPackages', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Food_packages', to='app.foodpackages')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Food', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('name_ar', models.CharField(max_length=255)), ('food_raw', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='food_raw', to='app.foodraw')), ], options={ 'abstract': False, }, ), ]
38.962963
150
0.55751
204
2,104
5.563725
0.289216
0.042291
0.111013
0.132159
0.742731
0.742731
0.663436
0.663436
0.663436
0.663436
0
0.021204
0.305133
2,104
53
151
39.698113
0.75513
0.021388
0
0.659574
1
0
0.108896
0
0
0
0
0
0
1
0
false
0
0.042553
0
0.106383
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f95bfaead43b7bb5f2ebf23a54ea14bef999ffa3
134
py
Python
Week3/functions.py
JacobFrericks/python-text-adventure-class
90e0af101a2f48aa7ddb0e8074faac37c9dc81a6
[ "MIT" ]
null
null
null
Week3/functions.py
JacobFrericks/python-text-adventure-class
90e0af101a2f48aa7ddb0e8074faac37c9dc81a6
[ "MIT" ]
null
null
null
Week3/functions.py
JacobFrericks/python-text-adventure-class
90e0af101a2f48aa7ddb0e8074faac37c9dc81a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functions.Mario import Mario def main(): print(add('1', '1')) if __name__ == '__main__': main()
14.888889
33
0.626866
19
134
4
0.789474
0
0
0
0
0
0
0
0
0
0
0.027523
0.186567
134
9
34
14.888889
0.669725
0.156716
0
0
0
0
0.088496
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
f9684e6154675a07a2609de58cd885c8135a8bdd
147
py
Python
taskmanager/app/__init__.py
richzli/Task-Manager
de1e0125ec3643afe2d49f9104755b3235c7669e
[ "MIT" ]
null
null
null
taskmanager/app/__init__.py
richzli/Task-Manager
de1e0125ec3643afe2d49f9104755b3235c7669e
[ "MIT" ]
2
2019-09-13T22:51:00.000Z
2019-12-05T04:57:26.000Z
taskmanager/app/__init__.py
richzli/Task-Manager
de1e0125ec3643afe2d49f9104755b3235c7669e
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__, instance_relative_config=True) from taskmanager.app import views app.config.from_object("config")
18.375
52
0.809524
21
147
5.333333
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.108844
147
7
53
21
0.854962
0
0
0
0
0
0.040816
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
f989dcdc5e68d4f8dca24e9433f4c94798b2d5cf
167
py
Python
tests/views.py
prezi/django-debug-toolbar
a95251012afd8cde9c76ea42c8d810ffdd230a00
[ "BSD-3-Clause" ]
64
2015-01-09T02:35:21.000Z
2021-06-18T19:47:41.000Z
tests/views.py
prezi/django-debug-toolbar
a95251012afd8cde9c76ea42c8d810ffdd230a00
[ "BSD-3-Clause" ]
null
null
null
tests/views.py
prezi/django-debug-toolbar
a95251012afd8cde9c76ea42c8d810ffdd230a00
[ "BSD-3-Clause" ]
15
2015-01-22T03:20:32.000Z
2020-09-23T12:40:44.000Z
from django.contrib.auth.models import User from django.http import HttpResponse def execute_sql(request): list(User.objects.all()) return HttpResponse()
23.857143
43
0.754491
22
167
5.681818
0.772727
0.16
0
0
0
0
0
0
0
0
0
0
0.155689
167
7
44
23.857143
0.886525
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
0
0
0
3
f9d323ba18f76e930748f40cbfe34fe56faca981
89
py
Python
login.py
meloncodezhang/testdemo
a36598b29e963203c47041435680953f59229990
[ "MIT" ]
null
null
null
login.py
meloncodezhang/testdemo
a36598b29e963203c47041435680953f59229990
[ "MIT" ]
null
null
null
login.py
meloncodezhang/testdemo
a36598b29e963203c47041435680953f59229990
[ "MIT" ]
null
null
null
# 张三修定义了一个变量 num = 1 num2 = 20 num3 = 30 # 经理定义了一个变量 args = [1,2,3,4] num4 = (1,2,3,4)
8.9
16
0.573034
18
89
2.833333
0.722222
0.078431
0.117647
0.156863
0
0
0
0
0
0
0
0.235294
0.235955
89
9
17
9.888889
0.514706
0.224719
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
3
f9d7ff1adccdc6d26f386f04b0f33d4531e98a70
47
py
Python
pytype/__version__.py
josalmi/pytype
e93d60c22abde3cb19956917109e1ffe5fe1388a
[ "Apache-2.0" ]
null
null
null
pytype/__version__.py
josalmi/pytype
e93d60c22abde3cb19956917109e1ffe5fe1388a
[ "Apache-2.0" ]
null
null
null
pytype/__version__.py
josalmi/pytype
e93d60c22abde3cb19956917109e1ffe5fe1388a
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file __version__ = '2020.09.29'
15.666667
26
0.702128
7
47
4.142857
1
0
0
0
0
0
0
0
0
0
0
0.195122
0.12766
47
2
27
23.5
0.512195
0.361702
0
0
0
0
0.357143
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ddbb467cd68f1c7f6e51e15cc1a6e78c33f45eb4
247
py
Python
app/errors/__init__.py
SilverMaple/MoodBit
e43756c7a3c5a2cfd1b17f8225958bd164fa2044
[ "MIT" ]
null
null
null
app/errors/__init__.py
SilverMaple/MoodBit
e43756c7a3c5a2cfd1b17f8225958bd164fa2044
[ "MIT" ]
null
null
null
app/errors/__init__.py
SilverMaple/MoodBit
e43756c7a3c5a2cfd1b17f8225958bd164fa2044
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2018/3/27 13:41:50 # @Author : SilverMaple # @Site : https://github.com/SilverMaple # @File : __init__.py from flask import Blueprint bp = Blueprint('errors', __name__) from app.errors import handlers
22.454545
43
0.659919
33
247
4.69697
0.848485
0
0
0
0
0
0
0
0
0
0
0.069652
0.186235
247
11
44
22.454545
0.701493
0.562753
0
0
0
0
0.058252
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
3
ddcdb3f178f97c0f0c0ca81b592d9e31a7e7e63e
249
py
Python
governance/snapshot-vote-analysis/2021-11-18 voting centralization analysis/plan.py
SetProtocol/index-coop-analytics
c80c7ffe44034dbba9f64dfbcd0c5b6aba930e13
[ "MIT" ]
12
2021-04-12T23:19:55.000Z
2021-09-06T21:56:26.000Z
governance/snapshot-vote-analysis/2021-11-18 voting centralization analysis/plan.py
joseph-knecht/index-coop-analytics
448635e3b60e5f124295f4415915215b363e2e34
[ "MIT" ]
70
2021-04-05T19:48:22.000Z
2021-09-21T14:00:06.000Z
governance/snapshot-vote-analysis/2021-11-18 voting centralization analysis/plan.py
joseph-knecht/index-coop-analytics
448635e3b60e5f124295f4415915215b363e2e34
[ "MIT" ]
15
2021-04-27T04:15:14.000Z
2021-09-08T15:21:00.000Z
# 1. query GraphQL for all proposal IDs # 2. Iterate through proposals and query GraphQL for votes for each proposal # 3. Check vote results for "0" vote responses - if it's a 0 it's because the proposal closed too recently and we should discard it
62.25
131
0.767068
45
249
4.244444
0.711111
0.125654
0.157068
0
0
0
0
0
0
0
0
0.024752
0.188755
249
3
132
83
0.920792
0.971888
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3
ddce9745df2e28bc93f5bc81590b39138376aa78
2,439
py
Python
test.py
puffy310/PySvelte
c1282a3e02350cae983ea12aca0dbe3070376915
[ "Apache-2.0" ]
null
null
null
test.py
puffy310/PySvelte
c1282a3e02350cae983ea12aca0dbe3070376915
[ "Apache-2.0" ]
1
2022-03-10T13:34:29.000Z
2022-03-10T13:34:29.000Z
test.py
puffy310/PySvelte
c1282a3e02350cae983ea12aca0dbe3070376915
[ "Apache-2.0" ]
2
2022-03-01T22:55:50.000Z
2022-03-19T02:32:35.000Z
import einops from unseal import hooks from unseal.transformers_util import load_from_pretrained # TODO fix that it doesnt work to directly call unseal.transformes_util import pysvelte model, tokenizer, config = load_from_pretrained('gpt2') text = "Mr and Mrs Dursley, of number four, Privet Drive, were proud to say that they were perfectly normal, thank you very much. They were the last people you'd expect to be involved in anything strange or mysterious, because they just didn't hold with such nonsense. Mr Dursley was the director of a firm called Grunnings, which made drills. He was a big, beefy man with hardly any neck, although he did have a very large moustache. Mrs Dursley was thin and blonde and had nearly twice the usual amount of neck, which came in very useful as she spent so much of her time craning over garden fences, spying on the neighbours. The Dursleys had a small son called Dudley and in their opinion there was no finer boy anywhere. The Dursleys had everything they wanted, but they also had a secret, and their greatest fear was that somebody would discover it. They didn't think they could bear it if anyone found out about the Potters. Mrs Potter was Mrs Dursley's sister, but they hadn't met for several years; in fact, Mrs Dursley pretended she didn't have a sister, because her sister and her good- for-nothing husband were as unDursleyish as it was possible to be. The Dursleys shuddered to think what the neighbours would say if the Potters arrived in the street. The Dursleys knew that the Potters had a small son, too, but they had never even seen him. This boy was another good reason for keeping the Potters away; they didn't want Dudley mixing with a child like that." tokenized_text = tokenizer.tokenize(text) # print(tokenized_text) tokenized_text = [token.replace("Ġ", " ") for token in tokenized_text] # print(f'{tokenized_text=}') model_input = tokenizer.encode(text, return_tensors='pt') model = hooks.HookedModel(model) hook = hooks.common_hooks.gpt_get_attention_hook(0, 'my_hook') model.forward(model_input, hooks=[hook], output_attentions=True) attn = model.save_ctx['my_hook']['attn'] attn = einops.rearrange(attn[0], 'h n1 n2 -> n1 n2 h') # print(attn.shape) # pysvelte.Hello(name="World").publish('./test.html') pysvelte.AttentionMulti(tokens=tokenized_text, attention=attn, head_labels=[f'0:{i}' for i in range(attn.shape[-1])]).publish('./test.html', suppress_title=True)
90.333333
1,472
0.781468
413
2,439
4.554479
0.527845
0.041467
0.019139
0.012759
0
0
0
0
0
0
0
0.004317
0.145141
2,439
27
1,473
90.333333
0.897842
0.077491
0
0
0
0.066667
0.678396
0
0
0
0
0.037037
0
1
0
false
0
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
3
ddcff8c9fb0dee86bf2174c3d171e6eb5ee75b2d
341
py
Python
tlib/__init__.py
txu2008/TXLIB
402f3730e8710803675736e0f2e25719cd646409
[ "MIT" ]
1
2019-08-08T05:06:28.000Z
2019-08-08T05:06:28.000Z
tlib/__init__.py
txu2008/TXLIB
402f3730e8710803675736e0f2e25719cd646409
[ "MIT" ]
1
2021-06-02T00:17:19.000Z
2021-06-02T00:17:19.000Z
tlib/__init__.py
txu2008/TXLIB
402f3730e8710803675736e0f2e25719cd646409
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/11/20 13:34 # @Author : Tao.Xu # @Email : tao.xu2008@outlook.com """ Some own/observed great lib/ideas,common useful python libs. """ import sys from tlib import version if sys.version_info < (2, 6): raise ImportError('tlib needs to be run on python 2.6 and above.')
22.733333
70
0.659824
56
341
4
0.839286
0.017857
0
0
0
0
0
0
0
0
0
0.075812
0.187683
341
15
70
22.733333
0.732852
0.539589
0
0
0
0
0.308219
0
0
0
0
0
0
1
0
true
0
0.75
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
0
1
0
1
0
1
0
0
3
ddd55e70360ee34733575321b5502d704fdf32c9
112,886
py
Python
pysnmp-with-texts/CERENT-GLOBAL-REGISTRY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CERENT-GLOBAL-REGISTRY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CERENT-GLOBAL-REGISTRY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CERENT-GLOBAL-REGISTRY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CERENT-GLOBAL-REGISTRY # Produced by pysmi-0.3.4 at Wed May 1 11:48:12 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, IpAddress, Gauge32, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, enterprises, Bits, TimeTicks, iso, Counter32, Unsigned32, NotificationType, Counter64, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "IpAddress", "Gauge32", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "enterprises", "Bits", "TimeTicks", "iso", "Counter32", "Unsigned32", "NotificationType", "Counter64", "ModuleIdentity") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") cerentGlobalRegModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 10, 10)) cerentGlobalRegModule.setRevisions(('1904-10-01 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: cerentGlobalRegModule.setRevisionsDescriptions(('This file can be used with R5.0 release.',)) if mibBuilder.loadTexts: cerentGlobalRegModule.setLastUpdated('0410010000Z') if mibBuilder.loadTexts: cerentGlobalRegModule.setOrganization('Cisco Systems') if mibBuilder.loadTexts: cerentGlobalRegModule.setContactInfo(' Support@Cisco.com Postal: Cisco Systems, Inc. 1450 N. McDowell Blvd. Petaluma, CA 94954 USA Tel: 1-877-323-7368') if mibBuilder.loadTexts: cerentGlobalRegModule.setDescription('This module provides the global registrations for all other Cisco OTBU MIB modules.') cerent = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607)) if mibBuilder.loadTexts: cerent.setStatus('current') if mibBuilder.loadTexts: cerent.setDescription('Sub-tree for Cisco OTBU. Cerent enterprise OID provided by IANA is used.') cerentRegistry = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1)) if mibBuilder.loadTexts: cerentRegistry.setStatus('current') if mibBuilder.loadTexts: cerentRegistry.setDescription('Sub-tree for registrations for all Cisco OTBU modules.') cerentGeneric = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 2)) if mibBuilder.loadTexts: cerentGeneric.setStatus('current') if mibBuilder.loadTexts: cerentGeneric.setDescription('Sub-tree for common object and event definitions.') cerentGenericDummyObjects = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 2, 1)) if mibBuilder.loadTexts: cerentGenericDummyObjects.setStatus('current') if mibBuilder.loadTexts: cerentGenericDummyObjects.setDescription('Sub-tree for object and event definitions which are defined for compilation compatibility reasons. These objects will never be implemented!') cerentExperimental = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 3)) if mibBuilder.loadTexts: cerentExperimental.setStatus('current') if mibBuilder.loadTexts: cerentExperimental.setDescription('cerentExperimental provides a root object identifier from which experimental MIBs may be temporarily based. A MIB module in the cerentExperimental sub-tree will be moved under cerentGeneric or cerentProducts whenever the development of that module is deemed completed.') cerentAgentCapabilities = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 4)) if mibBuilder.loadTexts: cerentAgentCapabilities.setStatus('current') if mibBuilder.loadTexts: cerentAgentCapabilities.setDescription('cerentAgentCaps provides a root object identifier from which AGENT-CAPABILITIES values may be assigned.') cerentRequirements = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 5)) if mibBuilder.loadTexts: cerentRequirements.setStatus('current') if mibBuilder.loadTexts: cerentRequirements.setDescription('Sub-tree for management application requirements.') cerentProducts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 6)) if mibBuilder.loadTexts: cerentProducts.setStatus('current') if mibBuilder.loadTexts: cerentProducts.setDescription('Sub-tree for specific object and event definitions.') cerentModules = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 10)) if mibBuilder.loadTexts: cerentModules.setStatus('current') if mibBuilder.loadTexts: cerentModules.setDescription('Sub-tree to register MIB modules.') cerentCommunicationEquipment = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20)) if mibBuilder.loadTexts: cerentCommunicationEquipment.setStatus('current') if mibBuilder.loadTexts: cerentCommunicationEquipment.setDescription('Sub-tree to register all Cisco manufactured equipment (OTBU only).') cerentComponents = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30)) if mibBuilder.loadTexts: cerentComponents.setStatus('current') if mibBuilder.loadTexts: cerentComponents.setDescription('Sub-tree to register all Cisco OTBU boards.') cerentADMs = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10)) if mibBuilder.loadTexts: cerentADMs.setStatus('current') if mibBuilder.loadTexts: cerentADMs.setDescription('Sub-tree to register Cisco OTBU products - Switches.') cerentDwdmDevices = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 20)) if mibBuilder.loadTexts: cerentDwdmDevices.setStatus('current') if mibBuilder.loadTexts: cerentDwdmDevices.setDescription('Sub-tree to register Cisco OTBU products - DWDM devices.') cerent454Node = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 10)) if mibBuilder.loadTexts: cerent454Node.setStatus('current') if mibBuilder.loadTexts: cerent454Node.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15454') cerent327Node = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 20)) if mibBuilder.loadTexts: cerent327Node.setStatus('current') if mibBuilder.loadTexts: cerent327Node.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15327') cerent600Node = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 30)) if mibBuilder.loadTexts: cerent600Node.setStatus('current') if mibBuilder.loadTexts: cerent600Node.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15600') cerent310Node = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 40)) if mibBuilder.loadTexts: cerent310Node.setStatus('current') if mibBuilder.loadTexts: cerent310Node.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15310') cerent310MaAnsiNode = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 50)) if mibBuilder.loadTexts: cerent310MaAnsiNode.setStatus('current') if mibBuilder.loadTexts: cerent310MaAnsiNode.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15310-MA SONET MULTISERVICE PLATFORM') cerent310MaEtsiNode = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 60)) if mibBuilder.loadTexts: cerent310MaEtsiNode.setStatus('current') if mibBuilder.loadTexts: cerent310MaEtsiNode.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15310-MA SDH MULTISERVICE PLATFORM') cerent454M6Node = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 70)) if mibBuilder.loadTexts: cerent454M6Node.setStatus('current') if mibBuilder.loadTexts: cerent454M6Node.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15456-M6 MULTISERVICE PLATFORM') cerent454M2Node = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 10, 80)) if mibBuilder.loadTexts: cerent454M2Node.setStatus('current') if mibBuilder.loadTexts: cerent454M2Node.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15456-M2 MULTISERVICE PLATFORM') cerent15216OpmNode = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 20, 10)) if mibBuilder.loadTexts: cerent15216OpmNode.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmNode.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15216 OPM') cerent15216EdfaNode = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 20, 20, 20)) if mibBuilder.loadTexts: cerent15216EdfaNode.setStatus('current') if mibBuilder.loadTexts: cerent15216EdfaNode.setDescription('The SNMP agent will return this as the value of sysObjectID of system group in MIB-II for Cisco ONS 15216 EDFA') cerentOtherComponent = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1)) if mibBuilder.loadTexts: cerentOtherComponent.setStatus('current') if mibBuilder.loadTexts: cerentOtherComponent.setDescription('An unknown component is installed or the component type is unavailable.') cerentTcc = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 10)) if mibBuilder.loadTexts: cerentTcc.setStatus('current') if mibBuilder.loadTexts: cerentTcc.setDescription('The OID definition for Cisco OTBU Timing Communications and Control card.') cerentXc = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 20)) if mibBuilder.loadTexts: cerentXc.setStatus('current') if mibBuilder.loadTexts: cerentXc.setDescription('The OID definition for Cross Connect card.') cerentDs114 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 30)) if mibBuilder.loadTexts: cerentDs114.setStatus('current') if mibBuilder.loadTexts: cerentDs114.setDescription('The OID definition for DS1-14 card.') cerentDs1n14 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 40)) if mibBuilder.loadTexts: cerentDs1n14.setStatus('current') if mibBuilder.loadTexts: cerentDs1n14.setDescription('The OID definition for DS1N-14 card.') cerentDs312 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 50)) if mibBuilder.loadTexts: cerentDs312.setStatus('current') if mibBuilder.loadTexts: cerentDs312.setDescription('The OID definition for DS3-12 card.') cerentOc3ir = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 60)) if mibBuilder.loadTexts: cerentOc3ir.setStatus('current') if mibBuilder.loadTexts: cerentOc3ir.setDescription('The OID definition for OC3-IR card.') cerentOc12ir = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 70)) if mibBuilder.loadTexts: cerentOc12ir.setStatus('current') if mibBuilder.loadTexts: cerentOc12ir.setDescription('The OID definition for OC12-IR card.') cerentOc12lr1310 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 80)) if mibBuilder.loadTexts: cerentOc12lr1310.setStatus('current') if mibBuilder.loadTexts: cerentOc12lr1310.setDescription('The OID definition for OC12-LR-1310 card.') cerentOc48ir = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 90)) if mibBuilder.loadTexts: cerentOc48ir.setStatus('current') if mibBuilder.loadTexts: cerentOc48ir.setDescription('The OID definition for OC48-IR card.') cerentOc48lr = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 100)) if mibBuilder.loadTexts: cerentOc48lr.setStatus('current') if mibBuilder.loadTexts: cerentOc48lr.setDescription('The OID definition for OC48-LR card.') cerentFanTray = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 110)) if mibBuilder.loadTexts: cerentFanTray.setStatus('current') if mibBuilder.loadTexts: cerentFanTray.setDescription('') cerentFanSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 120)) if mibBuilder.loadTexts: cerentFanSlot.setStatus('current') if mibBuilder.loadTexts: cerentFanSlot.setDescription('') cerentIoSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 130)) if mibBuilder.loadTexts: cerentIoSlot.setStatus('current') if mibBuilder.loadTexts: cerentIoSlot.setDescription('') cerentXcSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 140)) if mibBuilder.loadTexts: cerentXcSlot.setStatus('current') if mibBuilder.loadTexts: cerentXcSlot.setDescription('') cerentAicSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 150)) if mibBuilder.loadTexts: cerentAicSlot.setStatus('current') if mibBuilder.loadTexts: cerentAicSlot.setDescription('') cerentTccSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 160)) if mibBuilder.loadTexts: cerentTccSlot.setStatus('current') if mibBuilder.loadTexts: cerentTccSlot.setDescription('') cerentBackPlane454 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 170)) if mibBuilder.loadTexts: cerentBackPlane454.setStatus('current') if mibBuilder.loadTexts: cerentBackPlane454.setDescription('') cerentChassis454 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 180)) if mibBuilder.loadTexts: cerentChassis454.setStatus('current') if mibBuilder.loadTexts: cerentChassis454.setDescription('') cerentPowerSupply = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1500)) if mibBuilder.loadTexts: cerentPowerSupply.setStatus('current') if mibBuilder.loadTexts: cerentPowerSupply.setDescription('Power Supply') cerentDs3nCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 190)) if mibBuilder.loadTexts: cerentDs3nCard.setStatus('current') if mibBuilder.loadTexts: cerentDs3nCard.setDescription('Ds3n card.') cerentDs3XmCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 200)) if mibBuilder.loadTexts: cerentDs3XmCard.setStatus('current') if mibBuilder.loadTexts: cerentDs3XmCard.setDescription('Ds3Xm card.') cerentOc3Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 210)) if mibBuilder.loadTexts: cerentOc3Card.setStatus('current') if mibBuilder.loadTexts: cerentOc3Card.setDescription('Oc3 card.') cerentOc3OctaCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 212)) if mibBuilder.loadTexts: cerentOc3OctaCard.setStatus('current') if mibBuilder.loadTexts: cerentOc3OctaCard.setDescription('Oc3-8 card.') cerentOc12Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 220)) if mibBuilder.loadTexts: cerentOc12Card.setStatus('current') if mibBuilder.loadTexts: cerentOc12Card.setDescription('Oc12 card.') cerentOc48Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 230)) if mibBuilder.loadTexts: cerentOc48Card.setStatus('current') if mibBuilder.loadTexts: cerentOc48Card.setDescription('Oc48 card.') cerentEc1Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 240)) if mibBuilder.loadTexts: cerentEc1Card.setStatus('current') if mibBuilder.loadTexts: cerentEc1Card.setDescription('Ec1 card.') cerentEc1nCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 250)) if mibBuilder.loadTexts: cerentEc1nCard.setStatus('current') if mibBuilder.loadTexts: cerentEc1nCard.setDescription('Ec1n card.') cerentEpos100Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 260)) if mibBuilder.loadTexts: cerentEpos100Card.setStatus('current') if mibBuilder.loadTexts: cerentEpos100Card.setDescription('EPOS 100 card.') cerentEpos1000Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 270)) if mibBuilder.loadTexts: cerentEpos1000Card.setStatus('current') if mibBuilder.loadTexts: cerentEpos1000Card.setDescription('EPOS 1000 card.') cerentAicCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 280)) if mibBuilder.loadTexts: cerentAicCard.setStatus('current') if mibBuilder.loadTexts: cerentAicCard.setDescription('AIC card.') cerentXcVtCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 290)) if mibBuilder.loadTexts: cerentXcVtCard.setStatus('current') if mibBuilder.loadTexts: cerentXcVtCard.setDescription('VT cross connect card.') cerentEther1000Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 300)) if mibBuilder.loadTexts: cerentEther1000Port.setStatus('current') if mibBuilder.loadTexts: cerentEther1000Port.setDescription('Ether1000 port.') cerentEther100Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 310)) if mibBuilder.loadTexts: cerentEther100Port.setStatus('current') if mibBuilder.loadTexts: cerentEther100Port.setDescription('Ether100 port.') cerentDs1VtMappedPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 320)) if mibBuilder.loadTexts: cerentDs1VtMappedPort.setStatus('current') if mibBuilder.loadTexts: cerentDs1VtMappedPort.setDescription('Mapped Ds1-Vt port.') cerentDs3XmPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 330)) if mibBuilder.loadTexts: cerentDs3XmPort.setStatus('current') if mibBuilder.loadTexts: cerentDs3XmPort.setDescription('Ds3Xm port.') cerentDs3Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 340)) if mibBuilder.loadTexts: cerentDs3Port.setStatus('current') if mibBuilder.loadTexts: cerentDs3Port.setDescription('Ds3 port.') cerentEc1Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 350)) if mibBuilder.loadTexts: cerentEc1Port.setStatus('current') if mibBuilder.loadTexts: cerentEc1Port.setDescription('Ec1 port.') cerentOc3Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 360)) if mibBuilder.loadTexts: cerentOc3Port.setStatus('current') if mibBuilder.loadTexts: cerentOc3Port.setDescription('Oc3 port.') cerentOc12Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 370)) if mibBuilder.loadTexts: cerentOc12Port.setStatus('current') if mibBuilder.loadTexts: cerentOc12Port.setDescription('Oc12 port.') cerentDs1E156LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1470)) if mibBuilder.loadTexts: cerentDs1E156LineCard.setStatus('current') if mibBuilder.loadTexts: cerentDs1E156LineCard.setDescription('Cerent DS1 E1 56 Port Line Card') cerentMrc12LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1480)) if mibBuilder.loadTexts: cerentMrc12LineCard.setStatus('current') if mibBuilder.loadTexts: cerentMrc12LineCard.setDescription('Cerent Multirate 12 Port Line Card') cerentOc192XfpLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1490)) if mibBuilder.loadTexts: cerentOc192XfpLineCard.setStatus('current') if mibBuilder.loadTexts: cerentOc192XfpLineCard.setDescription('Cerent OC192 XFP Line card') cerentOc48Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 380)) if mibBuilder.loadTexts: cerentOc48Port.setStatus('current') if mibBuilder.loadTexts: cerentOc48Port.setDescription('Oc48 port.') cerentOrderwirePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 390)) if mibBuilder.loadTexts: cerentOrderwirePort.setStatus('current') if mibBuilder.loadTexts: cerentOrderwirePort.setDescription('Orderwire port.') cerentSensorComponent = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 400)) if mibBuilder.loadTexts: cerentSensorComponent.setStatus('current') if mibBuilder.loadTexts: cerentSensorComponent.setDescription('Misc. sensor component.') cerentChassis15327 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 410)) if mibBuilder.loadTexts: cerentChassis15327.setStatus('current') if mibBuilder.loadTexts: cerentChassis15327.setDescription('Chassis of 15327') cerentBackPlane15327 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 420)) if mibBuilder.loadTexts: cerentBackPlane15327.setStatus('current') if mibBuilder.loadTexts: cerentBackPlane15327.setDescription('Backplane of 15327') cerentXtcCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 430)) if mibBuilder.loadTexts: cerentXtcCard.setStatus('current') if mibBuilder.loadTexts: cerentXtcCard.setDescription('Xtc Card') cerentMicCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 440)) if mibBuilder.loadTexts: cerentMicCard.setStatus('current') if mibBuilder.loadTexts: cerentMicCard.setDescription('Mic Card') cerentMicExtCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 450)) if mibBuilder.loadTexts: cerentMicExtCard.setStatus('current') if mibBuilder.loadTexts: cerentMicExtCard.setDescription('Mic Ext Card') cerentXtcSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 460)) if mibBuilder.loadTexts: cerentXtcSlot.setStatus('current') if mibBuilder.loadTexts: cerentXtcSlot.setDescription('Xtc Slot') cerentMicSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 470)) if mibBuilder.loadTexts: cerentMicSlot.setStatus('current') if mibBuilder.loadTexts: cerentMicSlot.setDescription('Mic Slot') cerentVicEncoderLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 480)) if mibBuilder.loadTexts: cerentVicEncoderLineCard.setStatus('current') if mibBuilder.loadTexts: cerentVicEncoderLineCard.setDescription('Vic Encoder Line Card') cerentVicDecoderLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 490)) if mibBuilder.loadTexts: cerentVicDecoderLineCard.setStatus('current') if mibBuilder.loadTexts: cerentVicDecoderLineCard.setDescription('Vic Decoder Line Card') cerentVicEncoderPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 500)) if mibBuilder.loadTexts: cerentVicEncoderPort.setStatus('current') if mibBuilder.loadTexts: cerentVicEncoderPort.setDescription('Vic Encoder Port') cerentVicDecoderPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 510)) if mibBuilder.loadTexts: cerentVicDecoderPort.setStatus('current') if mibBuilder.loadTexts: cerentVicDecoderPort.setDescription('Vic Decoder Port') cerentVicTestPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 520)) if mibBuilder.loadTexts: cerentVicTestPort.setStatus('current') if mibBuilder.loadTexts: cerentVicTestPort.setDescription('Vic Test Port') cerentAip = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 530)) if mibBuilder.loadTexts: cerentAip.setStatus('current') if mibBuilder.loadTexts: cerentAip.setDescription('') cerentBicSmb = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 540)) if mibBuilder.loadTexts: cerentBicSmb.setStatus('current') if mibBuilder.loadTexts: cerentBicSmb.setDescription('Backplane interface card - SMB connector') cerentBicBnc = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 550)) if mibBuilder.loadTexts: cerentBicBnc.setStatus('current') if mibBuilder.loadTexts: cerentBicBnc.setDescription('Backplane interface card - BNC connector') cerentFcb = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 560)) if mibBuilder.loadTexts: cerentFcb.setStatus('current') if mibBuilder.loadTexts: cerentFcb.setDescription('') cerentEnvironmentControl = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 570)) if mibBuilder.loadTexts: cerentEnvironmentControl.setStatus('current') if mibBuilder.loadTexts: cerentEnvironmentControl.setDescription('Environment Control') cerentLedIndicator = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 580)) if mibBuilder.loadTexts: cerentLedIndicator.setStatus('current') if mibBuilder.loadTexts: cerentLedIndicator.setDescription('LED Indicator') cerentAudibleAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 590)) if mibBuilder.loadTexts: cerentAudibleAlarm.setStatus('current') if mibBuilder.loadTexts: cerentAudibleAlarm.setDescription('Audible Alarm') cerentXc10g = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 600)) if mibBuilder.loadTexts: cerentXc10g.setStatus('current') if mibBuilder.loadTexts: cerentXc10g.setDescription('Cross Connect 192 card') cerentOc192Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 610)) if mibBuilder.loadTexts: cerentOc192Card.setStatus('current') if mibBuilder.loadTexts: cerentOc192Card.setDescription('OC192 Card') cerentOc192Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 620)) if mibBuilder.loadTexts: cerentOc192Port.setStatus('current') if mibBuilder.loadTexts: cerentOc192Port.setDescription('OC192 Port') cerentDs3eCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 630)) if mibBuilder.loadTexts: cerentDs3eCard.setStatus('current') if mibBuilder.loadTexts: cerentDs3eCard.setDescription('DS3E Line Card') cerentDs3neCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 640)) if mibBuilder.loadTexts: cerentDs3neCard.setStatus('current') if mibBuilder.loadTexts: cerentDs3neCard.setDescription('DS3NE Line Card') cerent15216OpmChassis = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 650)) if mibBuilder.loadTexts: cerent15216OpmChassis.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmChassis.setDescription('') cerent15216OpmBackPlane = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 660)) if mibBuilder.loadTexts: cerent15216OpmBackPlane.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmBackPlane.setDescription('') cerent15216OpmSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 670)) if mibBuilder.loadTexts: cerent15216OpmSlot.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmSlot.setDescription('') cerent15216OpmController = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 680)) if mibBuilder.loadTexts: cerent15216OpmController.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmController.setDescription('OPM Controller Module') cerent15216OpmSpectrometer = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 690)) if mibBuilder.loadTexts: cerent15216OpmSpectrometer.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmSpectrometer.setDescription('OPM Spectrometer Module') cerent15216OpmOpticalSwitch = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 700)) if mibBuilder.loadTexts: cerent15216OpmOpticalSwitch.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmOpticalSwitch.setDescription('OPM Optical Switch Module') cerent15216OpmOpticalPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 710)) if mibBuilder.loadTexts: cerent15216OpmOpticalPort.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmOpticalPort.setDescription('OPM Optical Port') cerent15216OpmSerialPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 720)) if mibBuilder.loadTexts: cerent15216OpmSerialPort.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmSerialPort.setDescription('OPM RS-232 port for Craft') cerent15216OpmLedIndicator = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 730)) if mibBuilder.loadTexts: cerent15216OpmLedIndicator.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmLedIndicator.setDescription('OPM LED') cerent15216OpmRelay = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 740)) if mibBuilder.loadTexts: cerent15216OpmRelay.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmRelay.setDescription('OPM Relay') cerent15216OpmPowerSupply = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 750)) if mibBuilder.loadTexts: cerent15216OpmPowerSupply.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmPowerSupply.setDescription('OPM Power Supply') cerent15216OpmPcmciaSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 760)) if mibBuilder.loadTexts: cerent15216OpmPcmciaSlot.setStatus('current') if mibBuilder.loadTexts: cerent15216OpmPcmciaSlot.setDescription('OPM PCMCIA slot') cerentOc12QuadCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 770)) if mibBuilder.loadTexts: cerentOc12QuadCard.setStatus('current') if mibBuilder.loadTexts: cerentOc12QuadCard.setDescription('Four Port OC12 Line Card') cerentG1000QuadCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 780)) if mibBuilder.loadTexts: cerentG1000QuadCard.setStatus('deprecated') if mibBuilder.loadTexts: cerentG1000QuadCard.setDescription('G1000-4 Card') cerentG1000Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 790)) if mibBuilder.loadTexts: cerentG1000Port.setStatus('current') if mibBuilder.loadTexts: cerentG1000Port.setDescription('G1000 Port') cerentMlEtherPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 791)) if mibBuilder.loadTexts: cerentMlEtherPort.setStatus('current') if mibBuilder.loadTexts: cerentMlEtherPort.setDescription('Ether Port on ML Series Ether card') cerentMlPosPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 792)) if mibBuilder.loadTexts: cerentMlPosPort.setStatus('current') if mibBuilder.loadTexts: cerentMlPosPort.setDescription('POS Port on ML Series Ether card') cerentG1000GenericCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 800)) if mibBuilder.loadTexts: cerentG1000GenericCard.setStatus('current') if mibBuilder.loadTexts: cerentG1000GenericCard.setDescription('G1000 Card') cerentML100GenericCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 801)) if mibBuilder.loadTexts: cerentML100GenericCard.setStatus('current') if mibBuilder.loadTexts: cerentML100GenericCard.setDescription('ML100T ether Card') cerentML1000GenericCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 802)) if mibBuilder.loadTexts: cerentML1000GenericCard.setStatus('current') if mibBuilder.loadTexts: cerentML1000GenericCard.setDescription('ML1000T ether Card') cerentG1K4Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 810)) if mibBuilder.loadTexts: cerentG1K4Card.setStatus('current') if mibBuilder.loadTexts: cerentG1K4Card.setDescription('G1K-4 Card') cerentOc192IrCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 820)) if mibBuilder.loadTexts: cerentOc192IrCard.setStatus('current') if mibBuilder.loadTexts: cerentOc192IrCard.setDescription('OC192 Intermediate Reach Card') cerentOc192LrCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 830)) if mibBuilder.loadTexts: cerentOc192LrCard.setStatus('current') if mibBuilder.loadTexts: cerentOc192LrCard.setDescription('OC192 Long Reach Card') cerentOc192ItuCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 840)) if mibBuilder.loadTexts: cerentOc192ItuCard.setStatus('current') if mibBuilder.loadTexts: cerentOc192ItuCard.setDescription('OC192 ITU Card') cerentOc3n1Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 850)) if mibBuilder.loadTexts: cerentOc3n1Card.setStatus('current') if mibBuilder.loadTexts: cerentOc3n1Card.setDescription('OC3 1-port Card') ape = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 860)) if mibBuilder.loadTexts: ape.setStatus('current') if mibBuilder.loadTexts: ape.setDescription('') oneGePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 870)) if mibBuilder.loadTexts: oneGePort.setStatus('current') if mibBuilder.loadTexts: oneGePort.setDescription('1 GBit/Sec Ethernet Port') tenGePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 880)) if mibBuilder.loadTexts: tenGePort.setStatus('current') if mibBuilder.loadTexts: tenGePort.setDescription('10 GBit/Sec Ethernet Port') esconPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 890)) if mibBuilder.loadTexts: esconPort.setStatus('current') if mibBuilder.loadTexts: esconPort.setDescription('') dv6000Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 900)) if mibBuilder.loadTexts: dv6000Port.setStatus('current') if mibBuilder.loadTexts: dv6000Port.setDescription('') cerentE1n14 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 910)) if mibBuilder.loadTexts: cerentE1n14.setStatus('current') if mibBuilder.loadTexts: cerentE1n14.setDescription('The OID definition for E1N-14 card.') cerentBackPlane454SDH = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 911)) if mibBuilder.loadTexts: cerentBackPlane454SDH.setStatus('current') if mibBuilder.loadTexts: cerentBackPlane454SDH.setDescription('') cerentChassis454SDH = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 912)) if mibBuilder.loadTexts: cerentChassis454SDH.setStatus('current') if mibBuilder.loadTexts: cerentChassis454SDH.setDescription('') cerentDs3inCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 913)) if mibBuilder.loadTexts: cerentDs3inCard.setStatus('current') if mibBuilder.loadTexts: cerentDs3inCard.setDescription('Ds3in card.') cerentE312Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 914)) if mibBuilder.loadTexts: cerentE312Card.setStatus('current') if mibBuilder.loadTexts: cerentE312Card.setDescription('E3-12 card.') cerentE1Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 915)) if mibBuilder.loadTexts: cerentE1Port.setStatus('current') if mibBuilder.loadTexts: cerentE1Port.setDescription('E1 port.') cerentDs3iPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 916)) if mibBuilder.loadTexts: cerentDs3iPort.setStatus('current') if mibBuilder.loadTexts: cerentDs3iPort.setDescription('Ds3i port.') cerentE3Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 917)) if mibBuilder.loadTexts: cerentE3Port.setStatus('current') if mibBuilder.loadTexts: cerentE3Port.setDescription('E3 port') cerentAlmPwrSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 918)) if mibBuilder.loadTexts: cerentAlmPwrSlot.setStatus('current') if mibBuilder.loadTexts: cerentAlmPwrSlot.setDescription('EFCA Alarm/Power slot') cerentCrftTmgSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 919)) if mibBuilder.loadTexts: cerentCrftTmgSlot.setStatus('current') if mibBuilder.loadTexts: cerentCrftTmgSlot.setDescription('EFCA Craft/Timing Slot') cerentAlmPwr = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 920)) if mibBuilder.loadTexts: cerentAlmPwr.setStatus('current') if mibBuilder.loadTexts: cerentAlmPwr.setDescription('EFCA Alarm/Power Card') cerentCrftTmg = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 921)) if mibBuilder.loadTexts: cerentCrftTmg.setStatus('current') if mibBuilder.loadTexts: cerentCrftTmg.setDescription('EFCA Craft/Timing Card') cerentFmecDb = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 922)) if mibBuilder.loadTexts: cerentFmecDb.setStatus('current') if mibBuilder.loadTexts: cerentFmecDb.setDescription('FMEC-DB card') cerentFmecSmzE1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 923)) if mibBuilder.loadTexts: cerentFmecSmzE1.setStatus('current') if mibBuilder.loadTexts: cerentFmecSmzE1.setDescription('FMEC-SMZ-E1 card') cerentFmecBlank = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 924)) if mibBuilder.loadTexts: cerentFmecBlank.setStatus('current') if mibBuilder.loadTexts: cerentFmecBlank.setDescription('FMEC-BLANK card') cerentXcVxlCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 925)) if mibBuilder.loadTexts: cerentXcVxlCard.setStatus('current') if mibBuilder.loadTexts: cerentXcVxlCard.setDescription('VC cross connect card.') cerentEfca454Sdh = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 926)) if mibBuilder.loadTexts: cerentEfca454Sdh.setStatus('current') if mibBuilder.loadTexts: cerentEfca454Sdh.setDescription('EFCA') cerentFmecSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 927)) if mibBuilder.loadTexts: cerentFmecSlot.setStatus('current') if mibBuilder.loadTexts: cerentFmecSlot.setDescription('FMEC Slot') cerentFmecSmzE3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 928)) if mibBuilder.loadTexts: cerentFmecSmzE3.setStatus('current') if mibBuilder.loadTexts: cerentFmecSmzE3.setDescription('FMEC Slot') cerentDs3i = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 929)) if mibBuilder.loadTexts: cerentDs3i.setStatus('current') if mibBuilder.loadTexts: cerentDs3i.setDescription('FMEC Slot') cerent15216EdfaChassis = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 930)) if mibBuilder.loadTexts: cerent15216EdfaChassis.setStatus('current') if mibBuilder.loadTexts: cerent15216EdfaChassis.setDescription('') cerentAici = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 931)) if mibBuilder.loadTexts: cerentAici.setStatus('current') if mibBuilder.loadTexts: cerentAici.setDescription('Aici Card') cerentFudcPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 932)) if mibBuilder.loadTexts: cerentFudcPort.setStatus('current') if mibBuilder.loadTexts: cerentFudcPort.setDescription('Aici F-UDC Port') cerentDccPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 933)) if mibBuilder.loadTexts: cerentDccPort.setStatus('current') if mibBuilder.loadTexts: cerentDccPort.setDescription('Aici DCC-UDC Port') cerentAiciAep = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 934)) if mibBuilder.loadTexts: cerentAiciAep.setStatus('current') if mibBuilder.loadTexts: cerentAiciAep.setDescription('Aici Alarm Expansion Panel') cerentAiciAie = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 935)) if mibBuilder.loadTexts: cerentAiciAie.setStatus('current') if mibBuilder.loadTexts: cerentAiciAie.setDescription('Aici Alarm Interface Extension') cerentXcVxl25GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 936)) if mibBuilder.loadTexts: cerentXcVxl25GCard.setStatus('current') if mibBuilder.loadTexts: cerentXcVxl25GCard.setDescription('XCVXL25G card') cerentE114 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 937)) if mibBuilder.loadTexts: cerentE114.setStatus('current') if mibBuilder.loadTexts: cerentE114.setDescription('The OID definition for E1-14 card.') cerentPIMSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 940)) if mibBuilder.loadTexts: cerentPIMSlot.setStatus('current') if mibBuilder.loadTexts: cerentPIMSlot.setDescription('Pluggable IO Module Slot') cerentPIM4PPM = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 950)) if mibBuilder.loadTexts: cerentPIM4PPM.setStatus('current') if mibBuilder.loadTexts: cerentPIM4PPM.setDescription('Pluggable IO Module containing 4 Pluggable Port Modules.') cerentPPMSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 960)) if mibBuilder.loadTexts: cerentPPMSlot.setStatus('current') if mibBuilder.loadTexts: cerentPPMSlot.setDescription('Pluggable Port Module Slot') cerentPPM1Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 970)) if mibBuilder.loadTexts: cerentPPM1Port.setStatus('current') if mibBuilder.loadTexts: cerentPPM1Port.setDescription('Pluggable Port Module containing one Port') cerentChassis15310ClOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1000)) if mibBuilder.loadTexts: cerentChassis15310ClOid.setStatus('current') if mibBuilder.loadTexts: cerentChassis15310ClOid.setDescription('Chassis of ONS15310 CL') cerentChassis15310MaAnsiOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1010)) if mibBuilder.loadTexts: cerentChassis15310MaAnsiOid.setStatus('current') if mibBuilder.loadTexts: cerentChassis15310MaAnsiOid.setDescription('Chassis of ONS15310 MA ANSI') cerentChassis15310MaEtsiOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1020)) if mibBuilder.loadTexts: cerentChassis15310MaEtsiOid.setStatus('current') if mibBuilder.loadTexts: cerentChassis15310MaEtsiOid.setDescription('Chassis of ONS15310 MA ETSI') cerentBackplane15310ClOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1030)) if mibBuilder.loadTexts: cerentBackplane15310ClOid.setStatus('current') if mibBuilder.loadTexts: cerentBackplane15310ClOid.setDescription('Backplane of ONS15310 CL') cerentBackplane15310MaAnsiOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1040)) if mibBuilder.loadTexts: cerentBackplane15310MaAnsiOid.setStatus('current') if mibBuilder.loadTexts: cerentBackplane15310MaAnsiOid.setDescription('Backplane of ONS15310 MA ANSI') cerentBackplane15310MaEtsiOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1050)) if mibBuilder.loadTexts: cerentBackplane15310MaEtsiOid.setStatus('current') if mibBuilder.loadTexts: cerentBackplane15310MaEtsiOid.setDescription('Backplane of ONS15310 MA ETSI') cerentCtxCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1060)) if mibBuilder.loadTexts: cerentCtxCardOid.setStatus('current') if mibBuilder.loadTexts: cerentCtxCardOid.setDescription('CTX Card') cerentBbeLineCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1070)) if mibBuilder.loadTexts: cerentBbeLineCardOid.setStatus('current') if mibBuilder.loadTexts: cerentBbeLineCardOid.setDescription('BBE Line Card') cerentWbeLineCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1080)) if mibBuilder.loadTexts: cerentWbeLineCardOid.setStatus('current') if mibBuilder.loadTexts: cerentWbeLineCardOid.setDescription('WBE Line Card') cerentCtxSlotOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1090)) if mibBuilder.loadTexts: cerentCtxSlotOid.setStatus('current') if mibBuilder.loadTexts: cerentCtxSlotOid.setDescription('CTX Slot') cerentBbeSlotOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1100)) if mibBuilder.loadTexts: cerentBbeSlotOid.setStatus('current') if mibBuilder.loadTexts: cerentBbeSlotOid.setDescription('BBE Slot') cerentWbeSlotOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1110)) if mibBuilder.loadTexts: cerentWbeSlotOid.setStatus('current') if mibBuilder.loadTexts: cerentWbeSlotOid.setDescription('WBE Slot') cerentAsap4LineCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1120)) if mibBuilder.loadTexts: cerentAsap4LineCardOid.setStatus('current') if mibBuilder.loadTexts: cerentAsap4LineCardOid.setDescription('ASAP Four Ports Line Card') cerentMrc4LineCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1130)) if mibBuilder.loadTexts: cerentMrc4LineCardOid.setStatus('current') if mibBuilder.loadTexts: cerentMrc4LineCardOid.setDescription('MRC Four ports Line Card') cerent310CE100t8LineCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1140)) if mibBuilder.loadTexts: cerent310CE100t8LineCardOid.setStatus('current') if mibBuilder.loadTexts: cerent310CE100t8LineCardOid.setDescription('ML2 Mapper Line Card') cerent310ML100t8LineCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1150)) if mibBuilder.loadTexts: cerent310ML100t8LineCardOid.setStatus('current') if mibBuilder.loadTexts: cerent310ML100t8LineCardOid.setDescription('ML2 L2L3 Line Card') cerentL1PPosPortOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1160)) if mibBuilder.loadTexts: cerentL1PPosPortOid.setStatus('current') if mibBuilder.loadTexts: cerentL1PPosPortOid.setDescription('L1P POS port') cerentL1PEtherPortOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1170)) if mibBuilder.loadTexts: cerentL1PEtherPortOid.setStatus('current') if mibBuilder.loadTexts: cerentL1PEtherPortOid.setDescription('L1P Ether port') fc10gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1180)) if mibBuilder.loadTexts: fc10gPort.setStatus('current') if mibBuilder.loadTexts: fc10gPort.setDescription('10 GBit/Sec Fiber Channel Port') ficon1gport = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1190)) if mibBuilder.loadTexts: ficon1gport.setStatus('current') if mibBuilder.loadTexts: ficon1gport.setDescription('') ficon2gport = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1200)) if mibBuilder.loadTexts: ficon2gport.setStatus('current') if mibBuilder.loadTexts: ficon2gport.setDescription('') ficon4gport = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1710)) if mibBuilder.loadTexts: ficon4gport.setStatus('current') if mibBuilder.loadTexts: ficon4gport.setDescription('') cerentOc192Card4Ports = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1210)) if mibBuilder.loadTexts: cerentOc192Card4Ports.setStatus('current') if mibBuilder.loadTexts: cerentOc192Card4Ports.setDescription('ONS OC192 4 ports I/O card') cerentOc48Card8Ports = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1215)) if mibBuilder.loadTexts: cerentOc48Card8Ports.setStatus('current') if mibBuilder.loadTexts: cerentOc48Card8Ports.setDescription('ONS OC48 8 ports I/O card') cerentOc48Card16Ports = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1220)) if mibBuilder.loadTexts: cerentOc48Card16Ports.setStatus('current') if mibBuilder.loadTexts: cerentOc48Card16Ports.setDescription('ONS OC48 16 ports I/O card') cerent15600ControllerSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1225)) if mibBuilder.loadTexts: cerent15600ControllerSlot.setStatus('current') if mibBuilder.loadTexts: cerent15600ControllerSlot.setDescription('ONS 15600 controller card slot') cerentTsc = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1230)) if mibBuilder.loadTexts: cerentTsc.setStatus('current') if mibBuilder.loadTexts: cerentTsc.setDescription('ONS 15600 Timing Shelf Controller card') cerentChassis600 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1235)) if mibBuilder.loadTexts: cerentChassis600.setStatus('current') if mibBuilder.loadTexts: cerentChassis600.setDescription('Chassis of ONS 15600') cerentBackPlane600 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1240)) if mibBuilder.loadTexts: cerentBackPlane600.setStatus('current') if mibBuilder.loadTexts: cerentBackPlane600.setDescription('Backplane of ONS 15600') cerentCap = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1245)) if mibBuilder.loadTexts: cerentCap.setStatus('current') if mibBuilder.loadTexts: cerentCap.setDescription('ONS 15600 Customer Access Panel') cerentCxc = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1250)) if mibBuilder.loadTexts: cerentCxc.setStatus('current') if mibBuilder.loadTexts: cerentCxc.setDescription('ONS 15600 Cross Connect Card') cerentCxcSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1255)) if mibBuilder.loadTexts: cerentCxcSlot.setStatus('current') if mibBuilder.loadTexts: cerentCxcSlot.setDescription('ONS 15600 Cross Connect Card Slot') cerentFillerCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1260)) if mibBuilder.loadTexts: cerentFillerCard.setStatus('current') if mibBuilder.loadTexts: cerentFillerCard.setDescription('ONS 15600 Filler Card') cerentFcmrLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1265)) if mibBuilder.loadTexts: cerentFcmrLineCard.setStatus('current') if mibBuilder.loadTexts: cerentFcmrLineCard.setDescription('') cerentFcmrPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1270)) if mibBuilder.loadTexts: cerentFcmrPort.setStatus('current') if mibBuilder.loadTexts: cerentFcmrPort.setDescription('') cerentDs3Xm12Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1285)) if mibBuilder.loadTexts: cerentDs3Xm12Card.setStatus('current') if mibBuilder.loadTexts: cerentDs3Xm12Card.setDescription('Ds3Xm12 card.') ds3Ec148LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1290)) if mibBuilder.loadTexts: ds3Ec148LineCard.setStatus('current') if mibBuilder.loadTexts: ds3Ec148LineCard.setDescription('') gfpPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1300)) if mibBuilder.loadTexts: gfpPort.setStatus('current') if mibBuilder.loadTexts: gfpPort.setDescription('') cerent454CE100t8LineCardOid = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1310)) if mibBuilder.loadTexts: cerent454CE100t8LineCardOid.setStatus('current') if mibBuilder.loadTexts: cerent454CE100t8LineCardOid.setDescription('') bicUniv = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1320)) if mibBuilder.loadTexts: bicUniv.setStatus('current') if mibBuilder.loadTexts: bicUniv.setDescription('') bicUnknown = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1330)) if mibBuilder.loadTexts: bicUnknown.setStatus('current') if mibBuilder.loadTexts: bicUnknown.setDescription('') sdiD1VideoPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1340)) if mibBuilder.loadTexts: sdiD1VideoPort.setStatus('current') if mibBuilder.loadTexts: sdiD1VideoPort.setDescription('') hdtvPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1350)) if mibBuilder.loadTexts: hdtvPort.setStatus('current') if mibBuilder.loadTexts: hdtvPort.setDescription('') passThruPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1360)) if mibBuilder.loadTexts: passThruPort.setStatus('current') if mibBuilder.loadTexts: passThruPort.setDescription('') etrCloPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1370)) if mibBuilder.loadTexts: etrCloPort.setStatus('current') if mibBuilder.loadTexts: etrCloPort.setDescription('') iscPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1380)) if mibBuilder.loadTexts: iscPort.setStatus('current') if mibBuilder.loadTexts: iscPort.setDescription('') fc1gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1390)) if mibBuilder.loadTexts: fc1gPort.setStatus('current') if mibBuilder.loadTexts: fc1gPort.setDescription('') fc2gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1400)) if mibBuilder.loadTexts: fc2gPort.setStatus('current') if mibBuilder.loadTexts: fc2gPort.setDescription('') fc4gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1700)) if mibBuilder.loadTexts: fc4gPort.setStatus('current') if mibBuilder.loadTexts: fc4gPort.setDescription('') mrSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1410)) if mibBuilder.loadTexts: mrSlot.setStatus('current') if mibBuilder.loadTexts: mrSlot.setDescription('') isc3Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1420)) if mibBuilder.loadTexts: isc3Port.setStatus('current') if mibBuilder.loadTexts: isc3Port.setDescription('') isc3Peer1gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1720)) if mibBuilder.loadTexts: isc3Peer1gPort.setStatus('current') if mibBuilder.loadTexts: isc3Peer1gPort.setDescription('') isc3Peer2gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1730)) if mibBuilder.loadTexts: isc3Peer2gPort.setStatus('current') if mibBuilder.loadTexts: isc3Peer2gPort.setDescription('') cerentDs1i14 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1430)) if mibBuilder.loadTexts: cerentDs1i14.setStatus('current') if mibBuilder.loadTexts: cerentDs1i14.setDescription('The OID definition for DS1I-14 card.') cerentFmecDs1i14 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1440)) if mibBuilder.loadTexts: cerentFmecDs1i14.setStatus('current') if mibBuilder.loadTexts: cerentFmecDs1i14.setDescription('The OID definition for FMEC-SMZ-DS1I-14 card.') cerentBackPlane454HD = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1450)) if mibBuilder.loadTexts: cerentBackPlane454HD.setStatus('current') if mibBuilder.loadTexts: cerentBackPlane454HD.setDescription('15454 High Density Backplane') cerentTxpd10GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1550)) if mibBuilder.loadTexts: cerentTxpd10GCard.setStatus('current') if mibBuilder.loadTexts: cerentTxpd10GCard.setDescription('TXP_MR_10G_LINE_CARD') cerentTxpd10ECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1275)) if mibBuilder.loadTexts: cerentTxpd10ECard.setStatus('current') if mibBuilder.loadTexts: cerentTxpd10ECard.setDescription('TXP_MR_10E_LINE_CARD') cerentTxpd25GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1560)) if mibBuilder.loadTexts: cerentTxpd25GCard.setStatus('current') if mibBuilder.loadTexts: cerentTxpd25GCard.setDescription('TXP_MR_2_5G_LINE_CARD') cerentTxpdP25GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1570)) if mibBuilder.loadTexts: cerentTxpdP25GCard.setStatus('current') if mibBuilder.loadTexts: cerentTxpdP25GCard.setDescription('TXPP_MR_2_5G_LINE_CARD') cerentTxpd10EXCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4160)) if mibBuilder.loadTexts: cerentTxpd10EXCard.setStatus('current') if mibBuilder.loadTexts: cerentTxpd10EXCard.setDescription('TXP-MR-10EX_LINE_CARD') cerentOtu2Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4220)) if mibBuilder.loadTexts: cerentOtu2Port.setStatus('current') if mibBuilder.loadTexts: cerentOtu2Port.setDescription('Otu2 port.') cerentTxpdP10EXCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4165)) if mibBuilder.loadTexts: cerentTxpdP10EXCard.setStatus('current') if mibBuilder.loadTexts: cerentTxpdP10EXCard.setDescription('TXPP-MR-10EX_LINE_CARD') cerentMuxpd25G10GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1580)) if mibBuilder.loadTexts: cerentMuxpd25G10GCard.setStatus('current') if mibBuilder.loadTexts: cerentMuxpd25G10GCard.setDescription('MXP_2_5G_10G_LINE_CARD') cerentMuxpd25G10ECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1280)) if mibBuilder.loadTexts: cerentMuxpd25G10ECard.setStatus('current') if mibBuilder.loadTexts: cerentMuxpd25G10ECard.setDescription('MXP_2_5G_10E_LINE_CARD') cerentMuxpd25G10XCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4170)) if mibBuilder.loadTexts: cerentMuxpd25G10XCard.setStatus('current') if mibBuilder.loadTexts: cerentMuxpd25G10XCard.setDescription('MXP_2_5G_10X_LINE_CARD') cerentDwdmClientPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1590)) if mibBuilder.loadTexts: cerentDwdmClientPort.setStatus('current') if mibBuilder.loadTexts: cerentDwdmClientPort.setDescription('DWDM client port.') cerentDwdmTrunkPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1600)) if mibBuilder.loadTexts: cerentDwdmTrunkPort.setStatus('current') if mibBuilder.loadTexts: cerentDwdmTrunkPort.setDescription('DWDM trunk port.') cerentMuxpdMr25GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1610)) if mibBuilder.loadTexts: cerentMuxpdMr25GCard.setStatus('current') if mibBuilder.loadTexts: cerentMuxpdMr25GCard.setDescription('MXP_MR_2_5G_LINE_CARD.') cerentMuxpdPMr25GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1620)) if mibBuilder.loadTexts: cerentMuxpdPMr25GCard.setStatus('current') if mibBuilder.loadTexts: cerentMuxpdPMr25GCard.setDescription('MXPP_MR_2_5G_LINE_CARD.') cerentMxpMr10DmexCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4270)) if mibBuilder.loadTexts: cerentMxpMr10DmexCard.setStatus('current') if mibBuilder.loadTexts: cerentMxpMr10DmexCard.setDescription('MXP-MR-10DMEX card.') cerentXpdGECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4210)) if mibBuilder.loadTexts: cerentXpdGECard.setStatus('current') if mibBuilder.loadTexts: cerentXpdGECard.setDescription('GE_XP_LINE_CARD.') cerentXpd10GECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4205)) if mibBuilder.loadTexts: cerentXpd10GECard.setStatus('current') if mibBuilder.loadTexts: cerentXpd10GECard.setDescription('10GE_XP_LINE_CARD.') cerentMm850Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1630)) if mibBuilder.loadTexts: cerentMm850Port.setStatus('current') if mibBuilder.loadTexts: cerentMm850Port.setDescription('MM_850_PORT.') cerentSm1310Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1640)) if mibBuilder.loadTexts: cerentSm1310Port.setStatus('current') if mibBuilder.loadTexts: cerentSm1310Port.setDescription('SM_1310_PORT.') cerentXcVxcCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1670)) if mibBuilder.loadTexts: cerentXcVxcCard.setStatus('current') if mibBuilder.loadTexts: cerentXcVxcCard.setDescription('VC cross connect card.') cerentXcVxc25GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1680)) if mibBuilder.loadTexts: cerentXcVxc25GCard.setStatus('current') if mibBuilder.loadTexts: cerentXcVxc25GCard.setDescription('XCVXC 2.5G card') cerentOptBstECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 1690)) if mibBuilder.loadTexts: cerentOptBstECard.setStatus('current') if mibBuilder.loadTexts: cerentOptBstECard.setDescription('Enhanced Optical Booster Card.') cerentE1P42LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4000)) if mibBuilder.loadTexts: cerentE1P42LineCard.setStatus('current') if mibBuilder.loadTexts: cerentE1P42LineCard.setDescription('E1_42_LINE_CARD.') cerentE1nP42LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4005)) if mibBuilder.loadTexts: cerentE1nP42LineCard.setStatus('current') if mibBuilder.loadTexts: cerentE1nP42LineCard.setDescription('E1N_42_LINE_CARD.') cerentFmecE1P42TypeUnprotW120Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4010)) if mibBuilder.loadTexts: cerentFmecE1P42TypeUnprotW120Card.setStatus('current') if mibBuilder.loadTexts: cerentFmecE1P42TypeUnprotW120Card.setDescription('FMEC_E1_42_UNPROT_120_CARD.') cerentFmecE1P42Type1To3W120aCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4015)) if mibBuilder.loadTexts: cerentFmecE1P42Type1To3W120aCard.setStatus('current') if mibBuilder.loadTexts: cerentFmecE1P42Type1To3W120aCard.setDescription('FMEC_E1_42_1TO3_120A_CARD.') cerentFmecE1P42Type1To3W120bCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4020)) if mibBuilder.loadTexts: cerentFmecE1P42Type1To3W120bCard.setStatus('current') if mibBuilder.loadTexts: cerentFmecE1P42Type1To3W120bCard.setDescription('FMEC_E1_42_1TO3_120B_CARD.') cerentStm1e12LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4025)) if mibBuilder.loadTexts: cerentStm1e12LineCard.setStatus('current') if mibBuilder.loadTexts: cerentStm1e12LineCard.setDescription('STM1E_12_LINE_CARD.') cerentStm1ePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4030)) if mibBuilder.loadTexts: cerentStm1ePort.setStatus('current') if mibBuilder.loadTexts: cerentStm1ePort.setDescription('STM1E_PORT.') cerentFmec155eUnprotCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4035)) if mibBuilder.loadTexts: cerentFmec155eUnprotCard.setStatus('current') if mibBuilder.loadTexts: cerentFmec155eUnprotCard.setDescription('FMEC_155E_CARD_UNPROT.') cerentFmec155e1To1Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4040)) if mibBuilder.loadTexts: cerentFmec155e1To1Card.setStatus('current') if mibBuilder.loadTexts: cerentFmec155e1To1Card.setDescription('FMEC_155E_CARD_1TO1.') cerentFmec155e1To3Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4045)) if mibBuilder.loadTexts: cerentFmec155e1To3Card.setStatus('current') if mibBuilder.loadTexts: cerentFmec155e1To3Card.setDescription('FMEC_155E_CARD_1TO3.') cerent15216Edfa3ShelfController = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4050)) if mibBuilder.loadTexts: cerent15216Edfa3ShelfController.setStatus('current') if mibBuilder.loadTexts: cerent15216Edfa3ShelfController.setDescription('') cerent15216Edfa3OpticsModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4051)) if mibBuilder.loadTexts: cerent15216Edfa3OpticsModule.setStatus('current') if mibBuilder.loadTexts: cerent15216Edfa3OpticsModule.setDescription('') cerent15216EdfaEtherPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4052)) if mibBuilder.loadTexts: cerent15216EdfaEtherPort.setStatus('current') if mibBuilder.loadTexts: cerent15216EdfaEtherPort.setDescription('Ether port.') cerent15216EdfaSerialPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4053)) if mibBuilder.loadTexts: cerent15216EdfaSerialPort.setStatus('current') if mibBuilder.loadTexts: cerent15216EdfaSerialPort.setDescription('Serial port.') cerentMl100X8LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4055)) if mibBuilder.loadTexts: cerentMl100X8LineCard.setStatus('current') if mibBuilder.loadTexts: cerentMl100X8LineCard.setDescription('ML-100X 8-ports Card.') cerentOscmCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3200)) if mibBuilder.loadTexts: cerentOscmCard.setStatus('current') if mibBuilder.loadTexts: cerentOscmCard.setDescription('Optical Service Channel Module Card.') cerentOscCsmCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3205)) if mibBuilder.loadTexts: cerentOscCsmCard.setStatus('current') if mibBuilder.loadTexts: cerentOscCsmCard.setDescription('Optical Service Channel with COmbiner/Separator module Card.') cerentOptPreCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3210)) if mibBuilder.loadTexts: cerentOptPreCard.setStatus('current') if mibBuilder.loadTexts: cerentOptPreCard.setDescription('Optical Pre-Amplifier Card.') cerentOptBstCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3215)) if mibBuilder.loadTexts: cerentOptBstCard.setStatus('current') if mibBuilder.loadTexts: cerentOptBstCard.setDescription('Optical Booster Card.') cerentOptAmp17Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4175)) if mibBuilder.loadTexts: cerentOptAmp17Card.setStatus('current') if mibBuilder.loadTexts: cerentOptAmp17Card.setDescription('Low Gain C-Band Amplifier.') cerentOptAmp23Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4180)) if mibBuilder.loadTexts: cerentOptAmp23Card.setStatus('current') if mibBuilder.loadTexts: cerentOptAmp23Card.setDescription('High Gain C-Band Amplifier.') cerentOptDemux32ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3220)) if mibBuilder.loadTexts: cerentOptDemux32ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptDemux32ChCard.setDescription('Optical De-Mutiplexer 32 Channels Card.') cerentOptDemux40ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4195)) if mibBuilder.loadTexts: cerentOptDemux40ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptDemux40ChCard.setDescription('Optical De-Mutiplexer 40 Channels Card.') cerentOptMux32ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3225)) if mibBuilder.loadTexts: cerentOptMux32ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptMux32ChCard.setDescription('Optical Mutiplexer 32 Channels Card.') cerentOptMux40ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4190)) if mibBuilder.loadTexts: cerentOptMux40ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptMux40ChCard.setDescription('Optical Mutiplexer 40 Channels Card.') cerentOptWxc40ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4200)) if mibBuilder.loadTexts: cerentOptWxc40ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptWxc40ChCard.setDescription('Optical Wavelenght Cross Connect 40 Channels Card.') cerentOptMuxDemux4ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3230)) if mibBuilder.loadTexts: cerentOptMuxDemux4ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptMuxDemux4ChCard.setDescription('Optical Multiplexer/De-Mutiplexer 4 Channels Card.') cerentOadm1ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3235)) if mibBuilder.loadTexts: cerentOadm1ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOadm1ChCard.setDescription('Optical ADM with 1 Channel Card.') cerentOadm2ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3240)) if mibBuilder.loadTexts: cerentOadm2ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOadm2ChCard.setDescription('Optical ADM with 2 Channels Card.') cerentOadm4ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3245)) if mibBuilder.loadTexts: cerentOadm4ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOadm4ChCard.setDescription('Optical ADM with 4 Channels Card.') cerentOadm1BnCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3250)) if mibBuilder.loadTexts: cerentOadm1BnCard.setStatus('current') if mibBuilder.loadTexts: cerentOadm1BnCard.setDescription('Optical ADM with 1 Band Card.') cerentOadm10GCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4215)) if mibBuilder.loadTexts: cerentOadm10GCard.setStatus('current') if mibBuilder.loadTexts: cerentOadm10GCard.setDescription('Optical ADM 10G Card.') cerentOadm4BnCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3255)) if mibBuilder.loadTexts: cerentOadm4BnCard.setStatus('current') if mibBuilder.loadTexts: cerentOadm4BnCard.setDescription('Optical ADM with 4 Bands Card.') cerentOptDemux32RChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 980)) if mibBuilder.loadTexts: cerentOptDemux32RChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptDemux32RChCard.setDescription('Optical De-Mutiplexer 32 Channels Reconfigurable Card.') cerentOptWss32ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 990)) if mibBuilder.loadTexts: cerentOptWss32ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptWss32ChCard.setDescription('Optical Wavelenght Selectable Switch 32 Channels Reconfigurable Card.') cerentOptWss40ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4185)) if mibBuilder.loadTexts: cerentOptWss40ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptWss40ChCard.setDescription('Optical Wavelenght Selectable Switch 40 Channels Reconfigurable Card.') cerentOTSPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3260)) if mibBuilder.loadTexts: cerentOTSPort.setStatus('current') if mibBuilder.loadTexts: cerentOTSPort.setDescription('Optical Transport Port.') cerentAOTSPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3265)) if mibBuilder.loadTexts: cerentAOTSPort.setStatus('current') if mibBuilder.loadTexts: cerentAOTSPort.setDescription('Optical Amplifier Transport Port.') cerentOMSPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3270)) if mibBuilder.loadTexts: cerentOMSPort.setStatus('current') if mibBuilder.loadTexts: cerentOMSPort.setDescription('Optical Multiplex Section Port.') cerentOCHPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 3275)) if mibBuilder.loadTexts: cerentOCHPort.setStatus('current') if mibBuilder.loadTexts: cerentOCHPort.setDescription('Optical Channel Port.') cerentOptBstLCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4060)) if mibBuilder.loadTexts: cerentOptBstLCard.setStatus('current') if mibBuilder.loadTexts: cerentOptBstLCard.setDescription('L-band amplifier.') cerentOptAmpLCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4065)) if mibBuilder.loadTexts: cerentOptAmpLCard.setStatus('current') if mibBuilder.loadTexts: cerentOptAmpLCard.setDescription('L-band pre-amplifier.') cerentOptAmpCCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4255)) if mibBuilder.loadTexts: cerentOptAmpCCard.setStatus('current') if mibBuilder.loadTexts: cerentOptAmpCCard.setDescription('C-band amplifier.') cerentOptRAmpCCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4285)) if mibBuilder.loadTexts: cerentOptRAmpCCard.setStatus('current') if mibBuilder.loadTexts: cerentOptRAmpCCard.setDescription('C-band RAMAN amplifier.') cerentOptRAmpECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4287)) if mibBuilder.loadTexts: cerentOptRAmpECard.setStatus('current') if mibBuilder.loadTexts: cerentOptRAmpECard.setDescription('C-band Enhanced RAMAN amplifier.') cerentDmx32LCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4070)) if mibBuilder.loadTexts: cerentDmx32LCard.setStatus('current') if mibBuilder.loadTexts: cerentDmx32LCard.setDescription('L-band 32 ch. demux.') cerentWss32LCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4075)) if mibBuilder.loadTexts: cerentWss32LCard.setStatus('current') if mibBuilder.loadTexts: cerentWss32LCard.setDescription('L-band 32 ch. WSS.') cerentWss40LCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4225)) if mibBuilder.loadTexts: cerentWss40LCard.setStatus('current') if mibBuilder.loadTexts: cerentWss40LCard.setDescription('L-band 40 ch. WSS.') cerentWssCE40Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4260)) if mibBuilder.loadTexts: cerentWssCE40Card.setStatus('current') if mibBuilder.loadTexts: cerentWssCE40Card.setDescription('CE 40 ch. WSS.') cerentMux40LCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4230)) if mibBuilder.loadTexts: cerentMux40LCard.setStatus('current') if mibBuilder.loadTexts: cerentMux40LCard.setDescription('L-band 40 ch. MUX.') cerentDmx40LCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4235)) if mibBuilder.loadTexts: cerentDmx40LCard.setStatus('current') if mibBuilder.loadTexts: cerentDmx40LCard.setDescription('L-band 40 ch. DMX.') cerentDmxCE40Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4265)) if mibBuilder.loadTexts: cerentDmxCE40Card.setStatus('current') if mibBuilder.loadTexts: cerentDmxCE40Card.setDescription('CE 40 ch. DMX.') cerentWxc40LCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4240)) if mibBuilder.loadTexts: cerentWxc40LCard.setStatus('current') if mibBuilder.loadTexts: cerentWxc40LCard.setDescription('L-band 40 ch. WXC.') cerentMMUCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4080)) if mibBuilder.loadTexts: cerentMMUCard.setStatus('current') if mibBuilder.loadTexts: cerentMMUCard.setDescription('MMU.') cerentPSMCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4282)) if mibBuilder.loadTexts: cerentPSMCard.setStatus('current') if mibBuilder.loadTexts: cerentPSMCard.setDescription('PSM.') cerentXP10G4LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4290)) if mibBuilder.loadTexts: cerentXP10G4LineCard.setStatus('current') if mibBuilder.loadTexts: cerentXP10G4LineCard.setDescription('XP_4_10G_LINE_CARD.') cerent40SMR1Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4305)) if mibBuilder.loadTexts: cerent40SMR1Card.setStatus('current') if mibBuilder.loadTexts: cerent40SMR1Card.setDescription('40 SMR1 C') cerent40SMR2Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4310)) if mibBuilder.loadTexts: cerent40SMR2Card.setStatus('current') if mibBuilder.loadTexts: cerent40SMR2Card.setDescription('40 SMR2 C') cerentOptWxc80ChCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4315)) if mibBuilder.loadTexts: cerentOptWxc80ChCard.setStatus('current') if mibBuilder.loadTexts: cerentOptWxc80ChCard.setDescription('Optical Wavelenght Cross Connect 80 Channels Card.') cerentBackPlaneM2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4510)) if mibBuilder.loadTexts: cerentBackPlaneM2.setStatus('current') if mibBuilder.loadTexts: cerentBackPlaneM2.setDescription('Backplane for UTS-TNC M2 platform') cerentChassisM2Ansi = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4520)) if mibBuilder.loadTexts: cerentChassisM2Ansi.setStatus('current') if mibBuilder.loadTexts: cerentChassisM2Ansi.setDescription('Chassis for UTS-TNC M2 ANSI platform') cerentChassisM2Etsi = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4530)) if mibBuilder.loadTexts: cerentChassisM2Etsi.setStatus('current') if mibBuilder.loadTexts: cerentChassisM2Etsi.setDescription('Backplane for UTS-TNC M2 SDH platform') cerentBackPlaneM6 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4540)) if mibBuilder.loadTexts: cerentBackPlaneM6.setStatus('current') if mibBuilder.loadTexts: cerentBackPlaneM6.setDescription('Back plane for M6') cerentChassisM6Ansi = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4550)) if mibBuilder.loadTexts: cerentChassisM6Ansi.setStatus('current') if mibBuilder.loadTexts: cerentChassisM6Ansi.setDescription('Cerent Chassis M6 Ansi') cerentChassisM6Etsi = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4560)) if mibBuilder.loadTexts: cerentChassisM6Etsi.setStatus('current') if mibBuilder.loadTexts: cerentChassisM6Etsi.setDescription('Chassis for UTS-TNC M6 platform') cerentPowerSupplyUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4570)) if mibBuilder.loadTexts: cerentPowerSupplyUts.setStatus('current') if mibBuilder.loadTexts: cerentPowerSupplyUts.setDescription('Power supply for UTS mounted on ECU') cerentFlashUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4580)) if mibBuilder.loadTexts: cerentFlashUts.setStatus('current') if mibBuilder.loadTexts: cerentFlashUts.setDescription('FALSH unit for UTS mounted on ECU') cerentAicInUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4590)) if mibBuilder.loadTexts: cerentAicInUts.setStatus('current') if mibBuilder.loadTexts: cerentAicInUts.setDescription('AIC IN on ECU ') cerentAicOutUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4600)) if mibBuilder.loadTexts: cerentAicOutUts.setStatus('current') if mibBuilder.loadTexts: cerentAicOutUts.setDescription('AIC OUT for ECU') cerentIscEqptUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4610)) if mibBuilder.loadTexts: cerentIscEqptUts.setStatus('current') if mibBuilder.loadTexts: cerentIscEqptUts.setDescription('ISC eqpt on ECU') cerentUdcVoipEmsUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4620)) if mibBuilder.loadTexts: cerentUdcVoipEmsUts.setStatus('current') if mibBuilder.loadTexts: cerentUdcVoipEmsUts.setDescription('UDC VOIP unit on ECU') cerentBitsUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4630)) if mibBuilder.loadTexts: cerentBitsUts.setStatus('current') if mibBuilder.loadTexts: cerentBitsUts.setDescription('BITS unit on ECU') cerentFanTrayUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4640)) if mibBuilder.loadTexts: cerentFanTrayUts.setStatus('current') if mibBuilder.loadTexts: cerentFanTrayUts.setDescription('FAN Tray UTS') cerentAlarmDryContactUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4645)) if mibBuilder.loadTexts: cerentAlarmDryContactUts.setStatus('current') if mibBuilder.loadTexts: cerentAlarmDryContactUts.setDescription('Alarm Dry Contact UTS') cerentIoUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4660)) if mibBuilder.loadTexts: cerentIoUts.setStatus('current') if mibBuilder.loadTexts: cerentIoUts.setDescription('IO UTS') cerentEcuTray = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4670)) if mibBuilder.loadTexts: cerentEcuTray.setStatus('current') if mibBuilder.loadTexts: cerentEcuTray.setDescription('ECU Tray') cerentTncUtsCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4680)) if mibBuilder.loadTexts: cerentTncUtsCard.setStatus('current') if mibBuilder.loadTexts: cerentTncUtsCard.setDescription('Transport Node Controller UTS card') cerentTscUtsCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4690)) if mibBuilder.loadTexts: cerentTscUtsCard.setStatus('current') if mibBuilder.loadTexts: cerentTscUtsCard.setDescription('Transport Shelf Controller UTS card') cerentUsbUtsPortCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4655)) if mibBuilder.loadTexts: cerentUsbUtsPortCard.setStatus('current') if mibBuilder.loadTexts: cerentUsbUtsPortCard.setDescription('UTS USB Port ') cerentUsbUts = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4650)) if mibBuilder.loadTexts: cerentUsbUts.setStatus('current') if mibBuilder.loadTexts: cerentUsbUts.setDescription('UTS USB Module ') cerentTncTscUtsSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4700)) if mibBuilder.loadTexts: cerentTncTscUtsSlot.setStatus('current') if mibBuilder.loadTexts: cerentTncTscUtsSlot.setDescription('Transport Node Controller Universal Transport Shelf Slot') cerentEcuSlot = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4710)) if mibBuilder.loadTexts: cerentEcuSlot.setStatus('current') if mibBuilder.loadTexts: cerentEcuSlot.setDescription('ECU slot') cerentMscIscUtsPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4720)) if mibBuilder.loadTexts: cerentMscIscUtsPort.setStatus('current') if mibBuilder.loadTexts: cerentMscIscUtsPort.setDescription('Multi Shelf Controller - Inter shelf Controller') cerentTncFePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4730)) if mibBuilder.loadTexts: cerentTncFePort.setStatus('current') if mibBuilder.loadTexts: cerentTncFePort.setDescription('FE Port') cerentPtSystem = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4740)) if mibBuilder.loadTexts: cerentPtSystem.setStatus('current') if mibBuilder.loadTexts: cerentPtSystem.setDescription('CPT System - NGXP System') cerentPtf10GECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4745)) if mibBuilder.loadTexts: cerentPtf10GECard.setStatus('current') if mibBuilder.loadTexts: cerentPtf10GECard.setDescription('CPT System - Uplink Card') cerentPt10GECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4750)) if mibBuilder.loadTexts: cerentPt10GECard.setStatus('current') if mibBuilder.loadTexts: cerentPt10GECard.setDescription('CPT System - TRIB Card') cerentPtsaGECard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4755)) if mibBuilder.loadTexts: cerentPtsaGECard.setStatus('current') if mibBuilder.loadTexts: cerentPtsaGECard.setDescription('CPT System - Satellite Box') cerentMsIsc100tCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4085)) if mibBuilder.loadTexts: cerentMsIsc100tCard.setStatus('current') if mibBuilder.loadTexts: cerentMsIsc100tCard.setDescription('ms-isc-100t.') cerentMxpMr10DmeCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4090)) if mibBuilder.loadTexts: cerentMxpMr10DmeCard.setStatus('current') if mibBuilder.loadTexts: cerentMxpMr10DmeCard.setDescription('mxp-mr-10dme.') cerentCE1000Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4095)) if mibBuilder.loadTexts: cerentCE1000Card.setStatus('current') if mibBuilder.loadTexts: cerentCE1000Card.setDescription('CE1000 card') cerentCE1000EtherPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4100)) if mibBuilder.loadTexts: cerentCE1000EtherPort.setStatus('current') if mibBuilder.loadTexts: cerentCE1000EtherPort.setDescription('Ether Port on CE1000 card') cerentCE1000PosPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4105)) if mibBuilder.loadTexts: cerentCE1000PosPort.setStatus('current') if mibBuilder.loadTexts: cerentCE1000PosPort.setDescription('POS Port on CE1000 card') cerentPIM1PPM = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4110)) if mibBuilder.loadTexts: cerentPIM1PPM.setStatus('current') if mibBuilder.loadTexts: cerentPIM1PPM.setDescription('Pluggable IO Module containing 1 Pluggable Port Modules.') cerentCEMR454Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4115)) if mibBuilder.loadTexts: cerentCEMR454Card.setStatus('current') if mibBuilder.loadTexts: cerentCEMR454Card.setDescription('CEMR 454 card') cerentCEMR310Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4120)) if mibBuilder.loadTexts: cerentCEMR310Card.setStatus('current') if mibBuilder.loadTexts: cerentCEMR310Card.setDescription('CEMR 310 card') cerentCTX2500Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4125)) if mibBuilder.loadTexts: cerentCTX2500Card.setStatus('current') if mibBuilder.loadTexts: cerentCTX2500Card.setDescription('CTX 2500 Card') cerentDs128Ds3EC13LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4130)) if mibBuilder.loadTexts: cerentDs128Ds3EC13LineCard.setStatus('current') if mibBuilder.loadTexts: cerentDs128Ds3EC13LineCard.setDescription('DS1 28 ports, DS3 EC1 Line Card') cerentDs184Ds3EC13LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4135)) if mibBuilder.loadTexts: cerentDs184Ds3EC13LineCard.setStatus('current') if mibBuilder.loadTexts: cerentDs184Ds3EC13LineCard.setDescription('DS1 84 ports, DS3 EC1 Line Card') cerentDs3EC16LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4140)) if mibBuilder.loadTexts: cerentDs3EC16LineCard.setStatus('current') if mibBuilder.loadTexts: cerentDs3EC16LineCard.setDescription('DS3 EC1 Line Card') cerentBicTelco = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4145)) if mibBuilder.loadTexts: cerentBicTelco.setStatus('current') if mibBuilder.loadTexts: cerentBicTelco.setDescription('Backplane Interface Card -- Telco') cerentBicCmn = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4150)) if mibBuilder.loadTexts: cerentBicCmn.setStatus('current') if mibBuilder.loadTexts: cerentBicCmn.setDescription('Backplane Interface Card -- Cmn') cerentRanSvcLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4155)) if mibBuilder.loadTexts: cerentRanSvcLineCard.setStatus('current') if mibBuilder.loadTexts: cerentRanSvcLineCard.setDescription('Radio Access Network Service Card') cerentIlkPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4245)) if mibBuilder.loadTexts: cerentIlkPort.setStatus('current') if mibBuilder.loadTexts: cerentIlkPort.setDescription('Interl Link Port on 10G ADM card') cerentOc192Card4PortsDwdm = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4250)) if mibBuilder.loadTexts: cerentOc192Card4PortsDwdm.setStatus('current') if mibBuilder.loadTexts: cerentOc192Card4PortsDwdm.setDescription('OC192 4Ports DWDM Card') cerentMrc25G12LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4275)) if mibBuilder.loadTexts: cerentMrc25G12LineCard.setStatus('current') if mibBuilder.loadTexts: cerentMrc25G12LineCard.setDescription('Multi Rate Card 2.5G with 12 ports') cerentMrc25G4LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4280)) if mibBuilder.loadTexts: cerentMrc25G4LineCard.setStatus('current') if mibBuilder.loadTexts: cerentMrc25G4LineCard.setDescription('Multi Rate Card 2.5G with 4 ports') cerentE121E3DS33LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4295)) if mibBuilder.loadTexts: cerentE121E3DS33LineCard.setStatus('current') if mibBuilder.loadTexts: cerentE121E3DS33LineCard.setDescription('E1 21 ports, E3 DS3 Line Card') cerentE163E3DS33LineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4300)) if mibBuilder.loadTexts: cerentE163E3DS33LineCard.setStatus('current') if mibBuilder.loadTexts: cerentE163E3DS33LineCard.setDescription('E1 63 ports, E3 DS3 Line Card') cerentMd40OddPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4320)) if mibBuilder.loadTexts: cerentMd40OddPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentMd40OddPassiveUnit.setDescription('Passive Mux Dmx Odd') cerentMd40EvenPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4325)) if mibBuilder.loadTexts: cerentMd40EvenPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentMd40EvenPassiveUnit.setDescription('Passive Mux Dmx Even') cerentMdId50PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4330)) if mibBuilder.loadTexts: cerentMdId50PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentMdId50PassiveUnit.setDescription('Passive interleav/deinterleav') cerentPP4SMRPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4335)) if mibBuilder.loadTexts: cerentPP4SMRPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentPP4SMRPassiveUnit.setDescription('15216 PP 4 mesh unit') cerentPPMESH4PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4340)) if mibBuilder.loadTexts: cerentPPMESH4PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentPPMESH4PassiveUnit.setDescription('15454 PP MESH 4 unit') cerentPPMESH8PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4345)) if mibBuilder.loadTexts: cerentPPMESH8PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentPPMESH8PassiveUnit.setDescription('15454 PP MESH 8 unit') cerentDcuPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4350)) if mibBuilder.loadTexts: cerentDcuPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentDcuPassiveUnit.setDescription('Passive DCU unit') cerentCTDcuPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4355)) if mibBuilder.loadTexts: cerentCTDcuPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentCTDcuPassiveUnit.setDescription('Coarse Tunable DCU unit') cerentFTDcuPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4360)) if mibBuilder.loadTexts: cerentFTDcuPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFTDcuPassiveUnit.setDescription('Fine Tunable DCU unit') fortyGePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4365)) if mibBuilder.loadTexts: fortyGePort.setStatus('current') if mibBuilder.loadTexts: fortyGePort.setDescription('40 GBit/Sec Ethernet Port') fc8gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4370)) if mibBuilder.loadTexts: fc8gPort.setStatus('current') if mibBuilder.loadTexts: fc8gPort.setDescription('8 GBit/Sec Fiber Channel Port') cerentOtu3Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4375)) if mibBuilder.loadTexts: cerentOtu3Port.setStatus('current') if mibBuilder.loadTexts: cerentOtu3Port.setDescription('OTU3 port.') cerentOc768Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4380)) if mibBuilder.loadTexts: cerentOc768Port.setStatus('current') if mibBuilder.loadTexts: cerentOc768Port.setDescription('Oc768 port.') cerentMechanicalUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4385)) if mibBuilder.loadTexts: cerentMechanicalUnit.setStatus('current') if mibBuilder.loadTexts: cerentMechanicalUnit.setDescription('Mechanical Unit.') cerent40GTxpCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4390)) if mibBuilder.loadTexts: cerent40GTxpCard.setStatus('current') if mibBuilder.loadTexts: cerent40GTxpCard.setDescription('40GBit/s. Transponder C Band.') cerent40GMxpCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4395)) if mibBuilder.loadTexts: cerent40GMxpCard.setStatus('current') if mibBuilder.loadTexts: cerent40GMxpCard.setDescription('40GBit/s. Muxponder C Band.') cerent40EMxpCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4400)) if mibBuilder.loadTexts: cerent40EMxpCard.setStatus('current') if mibBuilder.loadTexts: cerent40EMxpCard.setDescription('40GBit/s. Muxponder C Band.') cerentArXpCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4535)) if mibBuilder.loadTexts: cerentArXpCard.setStatus('current') if mibBuilder.loadTexts: cerentArXpCard.setDescription('Any Rate Transponder/MuxPonder Card') cerentArMxpCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4545)) if mibBuilder.loadTexts: cerentArMxpCard.setStatus('current') if mibBuilder.loadTexts: cerentArMxpCard.setDescription('Any Rate TXP/MXP Card') cerent15216ID50PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4405)) if mibBuilder.loadTexts: cerent15216ID50PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerent15216ID50PassiveUnit.setDescription('15216 interleav/deinterleav') cerent40ETxpCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4415)) if mibBuilder.loadTexts: cerent40ETxpCard.setStatus('current') if mibBuilder.loadTexts: cerent40ETxpCard.setDescription('40GBit/s. Transponder C Band.') cerentOtu1Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4725)) if mibBuilder.loadTexts: cerentOtu1Port.setStatus('current') if mibBuilder.loadTexts: cerentOtu1Port.setDescription('OTU1 Port.') cerentIsc3stp1gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4732)) if mibBuilder.loadTexts: cerentIsc3stp1gPort.setStatus('current') if mibBuilder.loadTexts: cerentIsc3stp1gPort.setDescription('ISC3STP1G Port.') cerentIsc3stp2gPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4735)) if mibBuilder.loadTexts: cerentIsc3stp2gPort.setStatus('current') if mibBuilder.loadTexts: cerentIsc3stp2gPort.setDescription('ISC3STP2G Port.') cerentSdi3gvideoPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4742)) if mibBuilder.loadTexts: cerentSdi3gvideoPort.setStatus('current') if mibBuilder.loadTexts: cerentSdi3gvideoPort.setDescription('SDI3GVIDEO Port.') cerentAutoPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4747)) if mibBuilder.loadTexts: cerentAutoPort.setStatus('current') if mibBuilder.loadTexts: cerentAutoPort.setDescription('AUTO Port.') cerentOptEdfa17Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4420)) if mibBuilder.loadTexts: cerentOptEdfa17Card.setStatus('current') if mibBuilder.loadTexts: cerentOptEdfa17Card.setDescription('Low Gain C-Band Edfa Amplifier.') cerentOptEdfa24Card = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4425)) if mibBuilder.loadTexts: cerentOptEdfa24Card.setStatus('current') if mibBuilder.loadTexts: cerentOptEdfa24Card.setDescription('High Gain C-Band Edfa Amplifier.') cerentFld303PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4760)) if mibBuilder.loadTexts: cerentFld303PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld303PassiveUnit.setDescription('Fld 303 Passive Unit') cerentFld334PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4765)) if mibBuilder.loadTexts: cerentFld334PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld334PassiveUnit.setDescription(' cerent Fld 334 Passive Unit') cerentFld366PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4770)) if mibBuilder.loadTexts: cerentFld366PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld366PassiveUnit.setDescription('cerent Fld 366 Passive Unit') cerentFld397PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4775)) if mibBuilder.loadTexts: cerentFld397PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld397PassiveUnit.setDescription('cerent Fld 397 Passive Unit') cerentFld429PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4780)) if mibBuilder.loadTexts: cerentFld429PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld429PassiveUnit.setDescription('cerent Fld 429 Passive Unit') cerentFld461PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4785)) if mibBuilder.loadTexts: cerentFld461PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld461PassiveUnit.setDescription('cerent Fld 461 Passive Unit') cerentFld493PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4790)) if mibBuilder.loadTexts: cerentFld493PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld493PassiveUnit.setDescription('cerent Fld 493 Passive Unit') cerentFld525PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4795)) if mibBuilder.loadTexts: cerentFld525PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld525PassiveUnit.setDescription('cerent Fld 525 Passive Unit') cerentFld557PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4800)) if mibBuilder.loadTexts: cerentFld557PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld557PassiveUnit.setDescription('cerent Fld 557 Passive Unit') cerentFld589PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4805)) if mibBuilder.loadTexts: cerentFld589PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFld589PassiveUnit.setDescription('cerent Fld 589 Passive Unit') cerentFldOscPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4810)) if mibBuilder.loadTexts: cerentFldOscPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFldOscPassiveUnit.setDescription('cerent Fld Osc Passive Unit') cerentFlcCwdm8PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4815)) if mibBuilder.loadTexts: cerentFlcCwdm8PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFlcCwdm8PassiveUnit.setDescription('cerent Flc Cwdm8 Passive Unit') cerentSdsdiPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4820)) if mibBuilder.loadTexts: cerentSdsdiPort.setStatus('current') if mibBuilder.loadTexts: cerentSdsdiPort.setDescription('SDSDI Port') cerentHdsdiPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4825)) if mibBuilder.loadTexts: cerentHdsdiPort.setStatus('current') if mibBuilder.loadTexts: cerentHdsdiPort.setDescription('HDSDI Port') cerentOptRampCTPCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4830)) if mibBuilder.loadTexts: cerentOptRampCTPCard.setStatus('current') if mibBuilder.loadTexts: cerentOptRampCTPCard.setDescription('cerent OPT RAMP CTP Card') cerentOptRampCOPCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4835)) if mibBuilder.loadTexts: cerentOptRampCOPCard.setStatus('current') if mibBuilder.loadTexts: cerentOptRampCOPCard.setDescription('cerent OPT RAMP COP Card') cerentFbgdcu165PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4840)) if mibBuilder.loadTexts: cerentFbgdcu165PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu165PassiveUnit.setDescription('Passive FBGDCU 165 unit') cerentFbgdcu331PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4845)) if mibBuilder.loadTexts: cerentFbgdcu331PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu331PassiveUnit.setDescription('Passive FBGDCU 331 unit') cerentFbgdcu496PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4850)) if mibBuilder.loadTexts: cerentFbgdcu496PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu496PassiveUnit.setDescription('Passive FBGDCU 496 unit') cerentFbgdcu661PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4855)) if mibBuilder.loadTexts: cerentFbgdcu661PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu661PassiveUnit.setDescription('Passive FBGDCU 661 unit') cerentFbgdcu826PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4860)) if mibBuilder.loadTexts: cerentFbgdcu826PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu826PassiveUnit.setDescription('Passive FBGDCU 826 unit') cerentFbgdcu992PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4865)) if mibBuilder.loadTexts: cerentFbgdcu992PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu992PassiveUnit.setDescription('Passive FBGDCU 992 unit') cerentFbgdcu1157PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4870)) if mibBuilder.loadTexts: cerentFbgdcu1157PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu1157PassiveUnit.setDescription('Passive FBGDCU 1157 unit') cerentFbgdcu1322PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4875)) if mibBuilder.loadTexts: cerentFbgdcu1322PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu1322PassiveUnit.setDescription('Passive FBGDCU 1322 unit') cerentFbgdcu1653PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4880)) if mibBuilder.loadTexts: cerentFbgdcu1653PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu1653PassiveUnit.setDescription('Passive FBGDCU 1653 unit') cerentFbgdcu1983PassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4885)) if mibBuilder.loadTexts: cerentFbgdcu1983PassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentFbgdcu1983PassiveUnit.setDescription('Passive FBGDCU 1983 unit') cerentMd48OddPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4900)) if mibBuilder.loadTexts: cerentMd48OddPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentMd48OddPassiveUnit.setDescription('Passive Mux Dmx 48 ODD') cerentMd48EvenPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4905)) if mibBuilder.loadTexts: cerentMd48EvenPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentMd48EvenPassiveUnit.setDescription('Passive Mux Dmx 48 EVEN') cerentMd48CmPassiveUnit = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4910)) if mibBuilder.loadTexts: cerentMd48CmPassiveUnit.setStatus('current') if mibBuilder.loadTexts: cerentMd48CmPassiveUnit.setDescription('Passive 48 interleav/deinterleav') cerentOtu4Port = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4915)) if mibBuilder.loadTexts: cerentOtu4Port.setStatus('current') if mibBuilder.loadTexts: cerentOtu4Port.setDescription('OTU4 Port') cerentOneHundredGePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4920)) if mibBuilder.loadTexts: cerentOneHundredGePort.setStatus('current') if mibBuilder.loadTexts: cerentOneHundredGePort.setDescription('One Hundred GE Port') cerentHundredGigLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4925)) if mibBuilder.loadTexts: cerentHundredGigLineCard.setStatus('current') if mibBuilder.loadTexts: cerentHundredGigLineCard.setDescription('Hundred Gig Line Card') cerentTENxTENGigLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4930)) if mibBuilder.loadTexts: cerentTENxTENGigLineCard.setStatus('current') if mibBuilder.loadTexts: cerentTENxTENGigLineCard.setDescription('TENxTEN Gig Line Card') cerentCfpLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4935)) if mibBuilder.loadTexts: cerentCfpLineCard.setStatus('current') if mibBuilder.loadTexts: cerentCfpLineCard.setDescription('CFP Line Card') cerentOTLPort = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4940)) if mibBuilder.loadTexts: cerentOTLPort.setStatus('current') if mibBuilder.loadTexts: cerentOTLPort.setDescription('OTL Port') cerentHundredgigPlim = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4945)) if mibBuilder.loadTexts: cerentHundredgigPlim.setStatus('current') if mibBuilder.loadTexts: cerentHundredgigPlim.setDescription('Hundred gig PLIM') cerentWseLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4947)) if mibBuilder.loadTexts: cerentWseLineCard.setStatus('current') if mibBuilder.loadTexts: cerentWseLineCard.setDescription('WSE Line Card') cerentArXpeCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4950)) if mibBuilder.loadTexts: cerentArXpeCard.setStatus('current') if mibBuilder.loadTexts: cerentArXpeCard.setDescription('Any Rate Xponder Card') cerentCPAK100GLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 5010)) if mibBuilder.loadTexts: cerentCPAK100GLineCard.setStatus('current') if mibBuilder.loadTexts: cerentCPAK100GLineCard.setDescription('CPAK 100G Line Card') cerentEDRA126C = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4955)) if mibBuilder.loadTexts: cerentEDRA126C.setStatus('current') if mibBuilder.loadTexts: cerentEDRA126C.setDescription('EDRA1_26C') cerentEDRA135C = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4960)) if mibBuilder.loadTexts: cerentEDRA135C.setStatus('current') if mibBuilder.loadTexts: cerentEDRA135C.setDescription('EDRA1_35C') cerentEDRA226C = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4965)) if mibBuilder.loadTexts: cerentEDRA226C.setStatus('current') if mibBuilder.loadTexts: cerentEDRA226C.setDescription('EDRA2_26C') cerentEDRA235C = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4970)) if mibBuilder.loadTexts: cerentEDRA235C.setStatus('current') if mibBuilder.loadTexts: cerentEDRA235C.setDescription('EDRA2_35C') cerentWXC16FSLineCard = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4975)) if mibBuilder.loadTexts: cerentWXC16FSLineCard.setStatus('current') if mibBuilder.loadTexts: cerentWXC16FSLineCard.setDescription('WXC16 FS Line Card') cerentPassiv1x16COFSC = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4980)) if mibBuilder.loadTexts: cerentPassiv1x16COFSC.setStatus('current') if mibBuilder.loadTexts: cerentPassiv1x16COFSC.setDescription('Passive 1x16 COFS C') cerentPassive4x4COFSC = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4985)) if mibBuilder.loadTexts: cerentPassive4x4COFSC.setStatus('current') if mibBuilder.loadTexts: cerentPassive4x4COFSC.setDescription('Passive 4x4 COFS C') cerentPassiveMODDEG5 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4990)) if mibBuilder.loadTexts: cerentPassiveMODDEG5.setStatus('current') if mibBuilder.loadTexts: cerentPassiveMODDEG5.setDescription('Passive MOD DEG 5') cerentPassiveMODUPG4 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 4995)) if mibBuilder.loadTexts: cerentPassiveMODUPG4.setStatus('current') if mibBuilder.loadTexts: cerentPassiveMODUPG4.setDescription('Passive MOD UPG 4') cerentPassiveMPO8LCADPT = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 5000)) if mibBuilder.loadTexts: cerentPassiveMPO8LCADPT.setStatus('current') if mibBuilder.loadTexts: cerentPassiveMPO8LCADPT.setDescription('Passive MPO 8LC ADPT') cerentPassiveASTEDFA = ObjectIdentity((1, 3, 6, 1, 4, 1, 3607, 1, 30, 5005)) if mibBuilder.loadTexts: cerentPassiveASTEDFA.setStatus('current') if mibBuilder.loadTexts: cerentPassiveASTEDFA.setDescription('Passive AST EDFA') mibBuilder.exportSymbols("CERENT-GLOBAL-REGISTRY", cerentTxpdP25GCard=cerentTxpdP25GCard, cerentDcuPassiveUnit=cerentDcuPassiveUnit, cerentPIM4PPM=cerentPIM4PPM, cerentAlmPwrSlot=cerentAlmPwrSlot, cerentTncUtsCard=cerentTncUtsCard, bicUniv=bicUniv, cerentFld525PassiveUnit=cerentFld525PassiveUnit, cerentHundredgigPlim=cerentHundredgigPlim, cerentTccSlot=cerentTccSlot, cerent310CE100t8LineCardOid=cerent310CE100t8LineCardOid, cerentAutoPort=cerentAutoPort, cerentBackPlaneM6=cerentBackPlaneM6, cerentTxpd25GCard=cerentTxpd25GCard, cerentE3Port=cerentE3Port, fc10gPort=fc10gPort, cerentPassiveMODUPG4=cerentPassiveMODUPG4, cerentCTX2500Card=cerentCTX2500Card, cerentFld557PassiveUnit=cerentFld557PassiveUnit, cerentFlcCwdm8PassiveUnit=cerentFlcCwdm8PassiveUnit, cerentCap=cerentCap, cerentStm1ePort=cerentStm1ePort, cerentFmec155e1To1Card=cerentFmec155e1To1Card, cerentOscCsmCard=cerentOscCsmCard, cerentFld493PassiveUnit=cerentFld493PassiveUnit, cerentMdId50PassiveUnit=cerentMdId50PassiveUnit, cerentMuxpdMr25GCard=cerentMuxpdMr25GCard, cerent454CE100t8LineCardOid=cerent454CE100t8LineCardOid, cerentCE1000EtherPort=cerentCE1000EtherPort, cerentOadm10GCard=cerentOadm10GCard, cerentBackplane15310MaAnsiOid=cerentBackplane15310MaAnsiOid, cerentDs3Xm12Card=cerentDs3Xm12Card, cerentDmx40LCard=cerentDmx40LCard, cerentUsbUtsPortCard=cerentUsbUtsPortCard, cerentML1000GenericCard=cerentML1000GenericCard, cerent15216OpmNode=cerent15216OpmNode, cerentOc3Port=cerentOc3Port, cerent15216OpmChassis=cerent15216OpmChassis, etrCloPort=etrCloPort, cerentGenericDummyObjects=cerentGenericDummyObjects, cerentWbeSlotOid=cerentWbeSlotOid, cerentG1K4Card=cerentG1K4Card, cerentMux40LCard=cerentMux40LCard, cerentOc48Port=cerentOc48Port, cerent15216EdfaSerialPort=cerent15216EdfaSerialPort, cerent454Node=cerent454Node, cerentOptMux32ChCard=cerentOptMux32ChCard, cerentSm1310Port=cerentSm1310Port, cerentCommunicationEquipment=cerentCommunicationEquipment, cerentMxpMr10DmeCard=cerentMxpMr10DmeCard, cerentStm1e12LineCard=cerentStm1e12LineCard, cerentOptDemux40ChCard=cerentOptDemux40ChCard, cerentMrc25G12LineCard=cerentMrc25G12LineCard, cerentMicExtCard=cerentMicExtCard, cerentVicDecoderPort=cerentVicDecoderPort, cerentFmecSmzE3=cerentFmecSmzE3, cerentBicCmn=cerentBicCmn, cerentEc1nCard=cerentEc1nCard, cerentEther100Port=cerentEther100Port, cerentDs1E156LineCard=cerentDs1E156LineCard, cerentComponents=cerentComponents, cerentOCHPort=cerentOCHPort, fortyGePort=fortyGePort, cerentE1n14=cerentE1n14, hdtvPort=hdtvPort, cerentEpos1000Card=cerentEpos1000Card, cerentOc192ItuCard=cerentOc192ItuCard, cerent454M2Node=cerent454M2Node, cerentOc768Port=cerentOc768Port, cerent15600ControllerSlot=cerent15600ControllerSlot, cerentEther1000Port=cerentEther1000Port, cerentOTLPort=cerentOTLPort, cerentOMSPort=cerentOMSPort, cerentOc3Card=cerentOc3Card, cerentVicTestPort=cerentVicTestPort, cerentBicTelco=cerentBicTelco, cerentOc192LrCard=cerentOc192LrCard, cerentOptRAmpCCard=cerentOptRAmpCCard, cerentFbgdcu331PassiveUnit=cerentFbgdcu331PassiveUnit, tenGePort=tenGePort, cerentFmecSlot=cerentFmecSlot, cerentCEMR310Card=cerentCEMR310Card, cerentPIMSlot=cerentPIMSlot, cerent310ML100t8LineCardOid=cerent310ML100t8LineCardOid, cerentOadm1ChCard=cerentOadm1ChCard, cerentOptAmpCCard=cerentOptAmpCCard, cerentFld429PassiveUnit=cerentFld429PassiveUnit, cerentG1000Port=cerentG1000Port, cerentXpdGECard=cerentXpdGECard, fc1gPort=fc1gPort, cerentBackplane15310MaEtsiOid=cerentBackplane15310MaEtsiOid, cerentMlEtherPort=cerentMlEtherPort, cerentMlPosPort=cerentMlPosPort, cerentFcb=cerentFcb, cerentTENxTENGigLineCard=cerentTENxTENGigLineCard, cerentXcVxlCard=cerentXcVxlCard, cerentCrftTmgSlot=cerentCrftTmgSlot, cerent15216OpmSlot=cerent15216OpmSlot, cerentBbeSlotOid=cerentBbeSlotOid, cerentMxpMr10DmexCard=cerentMxpMr10DmexCard, cerentChassisM2Ansi=cerentChassisM2Ansi, cerentOadm2ChCard=cerentOadm2ChCard, cerentFbgdcu1983PassiveUnit=cerentFbgdcu1983PassiveUnit, cerentBackPlane454=cerentBackPlane454, cerent40GTxpCard=cerent40GTxpCard, cerentOptBstLCard=cerentOptBstLCard, cerent=cerent, cerentPIM1PPM=cerentPIM1PPM, cerentLedIndicator=cerentLedIndicator, cerentProducts=cerentProducts, cerentWbeLineCardOid=cerentWbeLineCardOid, cerentAiciAep=cerentAiciAep, cerentPt10GECard=cerentPt10GECard, cerentAicOutUts=cerentAicOutUts, cerentFld303PassiveUnit=cerentFld303PassiveUnit, cerentArXpeCard=cerentArXpeCard, cerentCPAK100GLineCard=cerentCPAK100GLineCard, cerentOc192IrCard=cerentOc192IrCard, cerentExperimental=cerentExperimental, fc2gPort=fc2gPort, cerentEc1Card=cerentEc1Card, cerentDs3iPort=cerentDs3iPort, cerentXcVxl25GCard=cerentXcVxl25GCard, cerentOptAmp23Card=cerentOptAmp23Card, cerentIoSlot=cerentIoSlot, cerentE1nP42LineCard=cerentE1nP42LineCard, cerentFmec155e1To3Card=cerentFmec155e1To3Card, cerentFldOscPassiveUnit=cerentFldOscPassiveUnit, cerentBackPlaneM2=cerentBackPlaneM2, cerentMicCard=cerentMicCard, cerentIsc3stp2gPort=cerentIsc3stp2gPort, cerentDs3i=cerentDs3i, cerentFld366PassiveUnit=cerentFld366PassiveUnit, cerentAicCard=cerentAicCard, cerentPSMCard=cerentPSMCard, cerentMsIsc100tCard=cerentMsIsc100tCard, cerentIsc3stp1gPort=cerentIsc3stp1gPort, cerentAgentCapabilities=cerentAgentCapabilities, cerentOptWss32ChCard=cerentOptWss32ChCard, cerentFillerCard=cerentFillerCard, cerentChassis15327=cerentChassis15327, cerentBicBnc=cerentBicBnc, cerentTsc=cerentTsc, cerentOtu3Port=cerentOtu3Port, cerentDs3EC16LineCard=cerentDs3EC16LineCard, cerentFmecE1P42Type1To3W120bCard=cerentFmecE1P42Type1To3W120bCard, ficon1gport=ficon1gport, cerentFld589PassiveUnit=cerentFld589PassiveUnit, cerentDs128Ds3EC13LineCard=cerentDs128Ds3EC13LineCard, cerent15216OpmLedIndicator=cerent15216OpmLedIndicator, cerentEc1Port=cerentEc1Port, cerentMm850Port=cerentMm850Port, cerentRanSvcLineCard=cerentRanSvcLineCard, cerentOc48Card8Ports=cerentOc48Card8Ports, cerentChassisM6Ansi=cerentChassisM6Ansi, cerentPPM1Port=cerentPPM1Port, cerentSensorComponent=cerentSensorComponent, cerentOc12Port=cerentOc12Port, esconPort=esconPort, cerentTncFePort=cerentTncFePort, fc4gPort=fc4gPort, cerentDs3inCard=cerentDs3inCard, cerentChassis15310MaEtsiOid=cerentChassis15310MaEtsiOid, cerentFanSlot=cerentFanSlot, cerentCrftTmg=cerentCrftTmg, cerentMuxpdPMr25GCard=cerentMuxpdPMr25GCard, cerentMuxpd25G10XCard=cerentMuxpd25G10XCard, cerent15216EdfaNode=cerent15216EdfaNode, fc8gPort=fc8gPort, cerentOc192Port=cerentOc192Port, ds3Ec148LineCard=ds3Ec148LineCard, mrSlot=mrSlot, cerentDs184Ds3EC13LineCard=cerentDs184Ds3EC13LineCard, cerentFbgdcu826PassiveUnit=cerentFbgdcu826PassiveUnit, cerentSdsdiPort=cerentSdsdiPort, cerentAicSlot=cerentAicSlot, cerentChassisM6Etsi=cerentChassisM6Etsi, cerentEcuTray=cerentEcuTray, cerentIoUts=cerentIoUts, cerentCE1000PosPort=cerentCE1000PosPort, cerent40SMR1Card=cerent40SMR1Card, cerent15216EdfaChassis=cerent15216EdfaChassis, cerentFmecBlank=cerentFmecBlank, cerentOtu2Port=cerentOtu2Port, cerentBackPlane454SDH=cerentBackPlane454SDH, cerentOptBstECard=cerentOptBstECard, cerentHundredGigLineCard=cerentHundredGigLineCard, cerentFanTray=cerentFanTray, cerentUsbUts=cerentUsbUts, cerentOc12Card=cerentOc12Card, cerentAudibleAlarm=cerentAudibleAlarm, cerentFbgdcu1322PassiveUnit=cerentFbgdcu1322PassiveUnit, cerentMd48CmPassiveUnit=cerentMd48CmPassiveUnit, cerentCE1000Card=cerentCE1000Card, cerentOptWss40ChCard=cerentOptWss40ChCard, cerentE1P42LineCard=cerentE1P42LineCard, cerent310Node=cerent310Node, cerentDs3neCard=cerentDs3neCard, cerentAip=cerentAip, cerentEcuSlot=cerentEcuSlot, cerentBicSmb=cerentBicSmb, cerentFmecSmzE1=cerentFmecSmzE1, sdiD1VideoPort=sdiD1VideoPort, gfpPort=gfpPort, cerentL1PPosPortOid=cerentL1PPosPortOid, cerentOptPreCard=cerentOptPreCard, cerentFbgdcu661PassiveUnit=cerentFbgdcu661PassiveUnit, cerentFbgdcu496PassiveUnit=cerentFbgdcu496PassiveUnit, cerentCtxCardOid=cerentCtxCardOid, cerent15216OpmPcmciaSlot=cerent15216OpmPcmciaSlot, cerentOc48Card16Ports=cerentOc48Card16Ports, cerentCEMR454Card=cerentCEMR454Card, cerentOptRampCTPCard=cerentOptRampCTPCard, cerentXtcSlot=cerentXtcSlot, cerentEDRA226C=cerentEDRA226C, ape=ape, cerentPP4SMRPassiveUnit=cerentPP4SMRPassiveUnit, cerentWXC16FSLineCard=cerentWXC16FSLineCard, cerentVicDecoderLineCard=cerentVicDecoderLineCard, cerentADMs=cerentADMs, cerentPassive4x4COFSC=cerentPassive4x4COFSC, cerentMscIscUtsPort=cerentMscIscUtsPort, cerentDs1i14=cerentDs1i14, cerentL1PEtherPortOid=cerentL1PEtherPortOid, cerentWss40LCard=cerentWss40LCard, cerentCTDcuPassiveUnit=cerentCTDcuPassiveUnit, cerentWss32LCard=cerentWss32LCard, cerentOc3ir=cerentOc3ir, cerentFmecE1P42Type1To3W120aCard=cerentFmecE1P42Type1To3W120aCard, cerentOtu1Port=cerentOtu1Port, cerentCtxSlotOid=cerentCtxSlotOid, cerentEDRA235C=cerentEDRA235C, cerentPtSystem=cerentPtSystem, cerentAOTSPort=cerentAOTSPort, cerentFmecE1P42TypeUnprotW120Card=cerentFmecE1P42TypeUnprotW120Card, cerentEDRA135C=cerentEDRA135C, cerentSdi3gvideoPort=cerentSdi3gvideoPort, cerentOc12QuadCard=cerentOc12QuadCard, cerentOptDemux32RChCard=cerentOptDemux32RChCard, cerentDs3Port=cerentDs3Port, cerentDs1VtMappedPort=cerentDs1VtMappedPort, cerentOc12lr1310=cerentOc12lr1310, cerent40ETxpCard=cerent40ETxpCard, cerentDwdmTrunkPort=cerentDwdmTrunkPort, cerentML100GenericCard=cerentML100GenericCard, cerentPassiv1x16COFSC=cerentPassiv1x16COFSC, cerentCfpLineCard=cerentCfpLineCard, cerentMd40EvenPassiveUnit=cerentMd40EvenPassiveUnit, iscPort=iscPort, cerentEfca454Sdh=cerentEfca454Sdh, cerentXtcCard=cerentXtcCard, cerentMl100X8LineCard=cerentMl100X8LineCard, cerentModules=cerentModules, cerentMd48EvenPassiveUnit=cerentMd48EvenPassiveUnit, cerentMuxpd25G10ECard=cerentMuxpd25G10ECard) mibBuilder.exportSymbols("CERENT-GLOBAL-REGISTRY", cerent15216OpmSerialPort=cerent15216OpmSerialPort, cerentFbgdcu1157PassiveUnit=cerentFbgdcu1157PassiveUnit, cerentPowerSupplyUts=cerentPowerSupplyUts, cerentEDRA126C=cerentEDRA126C, cerentXcVxc25GCard=cerentXcVxc25GCard, cerentAiciAie=cerentAiciAie, cerentMd48OddPassiveUnit=cerentMd48OddPassiveUnit, cerentMrc12LineCard=cerentMrc12LineCard, cerentG1000GenericCard=cerentG1000GenericCard, ficon4gport=ficon4gport, cerentXcSlot=cerentXcSlot, cerentOptAmpLCard=cerentOptAmpLCard, cerentOptMuxDemux4ChCard=cerentOptMuxDemux4ChCard, cerentMrc4LineCardOid=cerentMrc4LineCardOid, cerentXcVxcCard=cerentXcVxcCard, cerentAicInUts=cerentAicInUts, cerentXcVtCard=cerentXcVtCard, cerentDs1n14=cerentDs1n14, cerentE114=cerentE114, cerentOc48lr=cerentOc48lr, cerentDs3eCard=cerentDs3eCard, cerent15216OpmBackPlane=cerent15216OpmBackPlane, cerentOc192Card=cerentOc192Card, cerentOrderwirePort=cerentOrderwirePort, cerent40EMxpCard=cerent40EMxpCard, cerentDs3nCard=cerentDs3nCard, passThruPort=passThruPort, cerent15216ID50PassiveUnit=cerent15216ID50PassiveUnit, ficon2gport=ficon2gport, cerentOTSPort=cerentOTSPort, PYSNMP_MODULE_ID=cerentGlobalRegModule, cerentE1Port=cerentE1Port, cerentOc192Card4PortsDwdm=cerentOc192Card4PortsDwdm, cerentWseLineCard=cerentWseLineCard, cerent15216OpmOpticalSwitch=cerent15216OpmOpticalSwitch, cerentOadm4ChCard=cerentOadm4ChCard, cerentOadm1BnCard=cerentOadm1BnCard, cerentDs3XmPort=cerentDs3XmPort, cerent600Node=cerent600Node, cerentPPMSlot=cerentPPMSlot, cerentCxc=cerentCxc, cerentArMxpCard=cerentArMxpCard, cerentUdcVoipEmsUts=cerentUdcVoipEmsUts, cerentChassis15310ClOid=cerentChassis15310ClOid, cerent15216OpmController=cerent15216OpmController, cerentMrc25G4LineCard=cerentMrc25G4LineCard, cerentOptEdfa24Card=cerentOptEdfa24Card, cerentOptBstCard=cerentOptBstCard, cerentIscEqptUts=cerentIscEqptUts, cerentOc3n1Card=cerentOc3n1Card, cerentAlmPwr=cerentAlmPwr, cerentWxc40LCard=cerentWxc40LCard, cerentXP10G4LineCard=cerentXP10G4LineCard, isc3Peer1gPort=isc3Peer1gPort, cerentArXpCard=cerentArXpCard, cerentTxpd10EXCard=cerentTxpd10EXCard, cerentDs3XmCard=cerentDs3XmCard, cerentOc192XfpLineCard=cerentOc192XfpLineCard, cerentTxpdP10EXCard=cerentTxpdP10EXCard, cerentFld334PassiveUnit=cerentFld334PassiveUnit, cerentOtherComponent=cerentOtherComponent, cerentG1000QuadCard=cerentG1000QuadCard, cerentMicSlot=cerentMicSlot, cerentChassis600=cerentChassis600, cerentRegistry=cerentRegistry, cerentMMUCard=cerentMMUCard, cerentCxcSlot=cerentCxcSlot, cerent15216OpmPowerSupply=cerent15216OpmPowerSupply, cerentFmec155eUnprotCard=cerentFmec155eUnprotCard, cerentOc48ir=cerentOc48ir, cerentDs312=cerentDs312, cerentOc48Card=cerentOc48Card, cerentFudcPort=cerentFudcPort, cerentBackPlane454HD=cerentBackPlane454HD, cerentOscmCard=cerentOscmCard, cerentGlobalRegModule=cerentGlobalRegModule, cerentFlashUts=cerentFlashUts, cerentWssCE40Card=cerentWssCE40Card, cerentOc192Card4Ports=cerentOc192Card4Ports, cerentDmx32LCard=cerentDmx32LCard, cerent310MaEtsiNode=cerent310MaEtsiNode, cerentFld461PassiveUnit=cerentFld461PassiveUnit, isc3Peer2gPort=isc3Peer2gPort, cerent15216OpmSpectrometer=cerent15216OpmSpectrometer, cerentOptEdfa17Card=cerentOptEdfa17Card, cerentFbgdcu1653PassiveUnit=cerentFbgdcu1653PassiveUnit, cerentBackplane15310ClOid=cerentBackplane15310ClOid, cerent40SMR2Card=cerent40SMR2Card, cerentBackPlane15327=cerentBackPlane15327, cerentPowerSupply=cerentPowerSupply, cerentTcc=cerentTcc, cerentOptWxc40ChCard=cerentOptWxc40ChCard, cerentHdsdiPort=cerentHdsdiPort, cerentVicEncoderLineCard=cerentVicEncoderLineCard, cerentMechanicalUnit=cerentMechanicalUnit, cerent15216OpmRelay=cerent15216OpmRelay, cerentFmecDb=cerentFmecDb, cerentAlarmDryContactUts=cerentAlarmDryContactUts, cerentTxpd10ECard=cerentTxpd10ECard, cerentXpd10GECard=cerentXpd10GECard, cerentDwdmClientPort=cerentDwdmClientPort, cerentPtsaGECard=cerentPtsaGECard, cerentPPMESH4PassiveUnit=cerentPPMESH4PassiveUnit, cerentDs114=cerentDs114, cerentAsap4LineCardOid=cerentAsap4LineCardOid, cerentOptRAmpECard=cerentOptRAmpECard, cerent15216Edfa3ShelfController=cerent15216Edfa3ShelfController, cerentE312Card=cerentE312Card, cerentMd40OddPassiveUnit=cerentMd40OddPassiveUnit, cerent15216OpmOpticalPort=cerent15216OpmOpticalPort, cerentXc10g=cerentXc10g, cerentXc=cerentXc, cerentPassiveMODDEG5=cerentPassiveMODDEG5, cerentOc12ir=cerentOc12ir, cerentOtu4Port=cerentOtu4Port, cerentAici=cerentAici, cerentE121E3DS33LineCard=cerentE121E3DS33LineCard, cerentEpos100Card=cerentEpos100Card, cerent454M6Node=cerent454M6Node, cerentGeneric=cerentGeneric, isc3Port=isc3Port, cerentMuxpd25G10GCard=cerentMuxpd25G10GCard, cerentDccPort=cerentDccPort, cerentChassis15310MaAnsiOid=cerentChassis15310MaAnsiOid, cerentPassiveMPO8LCADPT=cerentPassiveMPO8LCADPT, cerentFcmrLineCard=cerentFcmrLineCard, cerent40GMxpCard=cerent40GMxpCard, cerentChassis454SDH=cerentChassis454SDH, cerentChassis454=cerentChassis454, cerentTncTscUtsSlot=cerentTncTscUtsSlot, cerentOc3OctaCard=cerentOc3OctaCard, cerentOptDemux32ChCard=cerentOptDemux32ChCard, cerentFanTrayUts=cerentFanTrayUts, cerentPassiveASTEDFA=cerentPassiveASTEDFA, cerentOadm4BnCard=cerentOadm4BnCard, cerentVicEncoderPort=cerentVicEncoderPort, cerentDwdmDevices=cerentDwdmDevices, cerentFbgdcu992PassiveUnit=cerentFbgdcu992PassiveUnit, cerent15216EdfaEtherPort=cerent15216EdfaEtherPort, cerentChassisM2Etsi=cerentChassisM2Etsi, cerentFTDcuPassiveUnit=cerentFTDcuPassiveUnit, cerentFmecDs1i14=cerentFmecDs1i14, cerentE163E3DS33LineCard=cerentE163E3DS33LineCard, dv6000Port=dv6000Port, cerentBackPlane600=cerentBackPlane600, cerentIlkPort=cerentIlkPort, cerentFcmrPort=cerentFcmrPort, cerentFld397PassiveUnit=cerentFld397PassiveUnit, cerentFbgdcu165PassiveUnit=cerentFbgdcu165PassiveUnit, cerentOptMux40ChCard=cerentOptMux40ChCard, cerentOneHundredGePort=cerentOneHundredGePort, cerentPPMESH8PassiveUnit=cerentPPMESH8PassiveUnit, cerentPtf10GECard=cerentPtf10GECard, cerentBitsUts=cerentBitsUts, cerentRequirements=cerentRequirements, oneGePort=oneGePort, cerentBbeLineCardOid=cerentBbeLineCardOid, cerentOptWxc80ChCard=cerentOptWxc80ChCard, cerent15216Edfa3OpticsModule=cerent15216Edfa3OpticsModule, cerentEnvironmentControl=cerentEnvironmentControl, cerentDmxCE40Card=cerentDmxCE40Card, cerent310MaAnsiNode=cerent310MaAnsiNode, bicUnknown=bicUnknown, cerentOptAmp17Card=cerentOptAmp17Card, cerentTxpd10GCard=cerentTxpd10GCard, cerentTscUtsCard=cerentTscUtsCard, cerent327Node=cerent327Node, cerentOptRampCOPCard=cerentOptRampCOPCard)
87.849027
9,616
0.799267
12,617
112,886
7.14314
0.109059
0.11251
0.196893
0.018685
0.344422
0.150669
0.144366
0.141903
0.139506
0.13823
0
0.110644
0.083757
112,886
1,284
9,617
87.917445
0.76071
0.002994
0
0
0
0.010188
0.121878
0.004398
0
0
0
0
0
1
0
false
0.100313
0.004702
0
0.004702
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
dde33c5bc097decb403fbf33e834a98c20a71b9d
5,104
py
Python
mknshoes/mknshoes/settings.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
null
null
null
mknshoes/mknshoes/settings.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
null
null
null
mknshoes/mknshoes/settings.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
null
null
null
""" Django settings for mknshoes project. Generated by 'django-admin startproject' using Django 1.11.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os from oscar.defaults import * from oscar import get_core_apps # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'm^j!)d1$z_7ctz-8n&uu$_k-2coml!cxv&x+vg58u1xa7&!!o-' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.flatpages', 'django.contrib.sites', 'compressor', 'widget_tweaks', ] + get_core_apps() SITE_ID = 1 MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'oscar.apps.basket.middleware.BasketMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', ] ROOT_URLCONF = 'mknshoes.urls' AUTHENTICATION_BACKENDS = ( 'oscar.apps.customer.auth_backends.EmailBackend', 'django.contrib.auth.backends.ModelBackend', ) EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' from oscar import OSCAR_MAIN_TEMPLATE_DIR TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ os.path.join(BASE_DIR, 'templates'), OSCAR_MAIN_TEMPLATE_DIR ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.i18n', 'django.contrib.messages.context_processors.messages', 'oscar.apps.search.context_processors.search_form', 'oscar.apps.promotions.context_processors.promotions', 'oscar.apps.checkout.context_processors.checkout', 'oscar.apps.customer.notifications.context_processors.notifications', 'oscar.core.context_processors.metadata', ], }, }, ] WSGI_APPLICATION = 'mknshoes.wsgi.application' HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine', }, } OSCAR_INITIAL_ORDER_STATUS = 'Pending' OSCAR_INITIAL_LINE_STATUS = 'Pending' OSCAR_ORDER_STATUS_PIPELINE = { 'Pending': ('Being processed', 'Cancelled',), 'Being processed': ('Processed', 'Cancelled',), 'Cancelled': (), } # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'db.sqlite3', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', 'ATOMIC_REQUESTS': True, } } # Password validation # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] from django.utils.translation import ugettext_lazy as _ LANGUAGES = ( ('tr', _('Turkish')), ) LOCALE_PATHS = ( os.path.join(BASE_DIR, 'locale'), ) # Internationalization # https://docs.djangoproject.com/en/1.11/topics/i18n/ LANGUAGE_CODE = 'tr' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = 'static' MEDIA_ROOT = 'mknshoes/media/' MEDIA_URL = os.path.join(BASE_DIR, "mknshoes/media/")
28.836158
91
0.662813
529
5,104
6.253308
0.387524
0.074667
0.041112
0.052902
0.160218
0.129988
0.08283
0.08283
0.037183
0
0
0.011133
0.208072
5,104
176
92
29
0.807274
0.195337
0
0.034188
1
0.008547
0.502693
0.407199
0
0
0
0
0
1
0
false
0.051282
0.042735
0
0.042735
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
dde3417a548be93694c558c429646ba35ee4cbfb
39
py
Python
display/display/handlers/calendar/__init__.py
owlsn/h_crawl
c0431ee6484e61d9339553c3350962ea517749d6
[ "MIT" ]
null
null
null
display/display/handlers/calendar/__init__.py
owlsn/h_crawl
c0431ee6484e61d9339553c3350962ea517749d6
[ "MIT" ]
8
2021-03-18T20:33:29.000Z
2022-03-11T23:21:04.000Z
display/display/handlers/calendar/__init__.py
owlsn/h_crawl
c0431ee6484e61d9339553c3350962ea517749d6
[ "MIT" ]
null
null
null
# coding = utf-8 __all__ = ['calendar']
19.5
22
0.641026
5
39
4.2
1
0
0
0
0
0
0
0
0
0
0
0.030303
0.153846
39
2
22
19.5
0.606061
0.358974
0
0
0
0
0.333333
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ddf5271c42b203fab88f7e8c0445e1515113a25b
595
py
Python
social_team_builder/accounts/mixins.py
OzRayan/Social_Team_Builder
a4faeb0b7a88faf2898ace4ca61f75e7721d8527
[ "MIT" ]
null
null
null
social_team_builder/accounts/mixins.py
OzRayan/Social_Team_Builder
a4faeb0b7a88faf2898ace4ca61f75e7721d8527
[ "MIT" ]
8
2021-03-18T21:02:42.000Z
2021-09-22T17:53:18.000Z
social_team_builder/projects/mixin.py
OzRayan/Social_Team_Builder
a4faeb0b7a88faf2898ace4ca61f75e7721d8527
[ "MIT" ]
null
null
null
# NOTE: # noinspection - prefixed comments are for pycharm editor only # for ignoring PEP 8 style highlights class PageTitleMixin: """Page title mixin class - for class based views :argument: -page_title :methods: - get_page_title() - get_context_data() """ page_title = '' def get_page_title(self): return self.page_title def get_context_data(self, **kwargs): # noinspection PyUnresolvedReferences context = super().get_context_data(**kwargs) context['page_title'] = self.get_page_title() return context
27.045455
70
0.658824
69
595
5.449275
0.463768
0.191489
0.095745
0.079787
0
0
0
0
0
0
0
0.002242
0.25042
595
21
71
28.333333
0.840807
0.453782
0
0
0
0
0.033898
0
0
0
0
0
0
1
0.25
false
0
0
0.125
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
0
0
1
1
0
0
3
fb09002a36a89825f03c67cec601abf91be34f70
92
py
Python
lib/emailsmtp/urls.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/emailsmtp/urls.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/emailsmtp/urls.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from django.conf.urls import patterns, url import views urlpatterns = patterns( '', )
11.5
42
0.706522
11
92
5.909091
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.195652
92
7
43
13.142857
0.878378
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3
fb1611f57b2c15a47885c4e5562b9bd057cedb02
8,394
py
Python
nova/objects/bandwidth_usage.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/objects/bandwidth_usage.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/objects/bandwidth_usage.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'\n' comment|'#' nl|'\n' comment|'# http://www.apache.org/licenses/LICENSE-2.0' nl|'\n' comment|'#' nl|'\n' comment|'# Unless required by applicable law or agreed to in writing, software' nl|'\n' comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT' nl|'\n' comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the' nl|'\n' comment|'# License for the specific language governing permissions and limitations' nl|'\n' comment|'# under the License.' nl|'\n' nl|'\n' name|'from' name|'nova' name|'import' name|'db' newline|'\n' name|'from' name|'nova' op|'.' name|'objects' name|'import' name|'base' newline|'\n' name|'from' name|'nova' op|'.' name|'objects' name|'import' name|'fields' newline|'\n' nl|'\n' nl|'\n' op|'@' name|'base' op|'.' name|'NovaObjectRegistry' op|'.' name|'register' newline|'\n' DECL|class|BandwidthUsage name|'class' name|'BandwidthUsage' op|'(' name|'base' op|'.' name|'NovaPersistentObject' op|',' name|'base' op|'.' name|'NovaObject' op|')' op|':' newline|'\n' comment|'# Version 1.0: Initial version' nl|'\n' comment|'# Version 1.1: Add use_slave to get_by_instance_uuid_and_mac' nl|'\n' comment|'# Version 1.2: Add update_cells to create' nl|'\n' DECL|variable|VERSION indent|' ' name|'VERSION' op|'=' string|"'1.2'" newline|'\n' nl|'\n' DECL|variable|fields name|'fields' op|'=' op|'{' nl|'\n' string|"'instance_uuid'" op|':' name|'fields' op|'.' name|'UUIDField' op|'(' op|')' op|',' nl|'\n' string|"'mac'" op|':' name|'fields' op|'.' name|'StringField' op|'(' op|')' op|',' nl|'\n' string|"'start_period'" op|':' name|'fields' op|'.' name|'DateTimeField' op|'(' op|')' op|',' nl|'\n' string|"'last_refreshed'" op|':' name|'fields' op|'.' name|'DateTimeField' op|'(' op|')' op|',' nl|'\n' string|"'bw_in'" op|':' name|'fields' op|'.' name|'IntegerField' op|'(' op|')' op|',' nl|'\n' string|"'bw_out'" op|':' name|'fields' op|'.' name|'IntegerField' op|'(' op|')' op|',' nl|'\n' string|"'last_ctr_in'" op|':' name|'fields' op|'.' name|'IntegerField' op|'(' op|')' op|',' nl|'\n' string|"'last_ctr_out'" op|':' name|'fields' op|'.' name|'IntegerField' op|'(' op|')' nl|'\n' op|'}' newline|'\n' nl|'\n' op|'@' name|'staticmethod' newline|'\n' DECL|member|_from_db_object name|'def' name|'_from_db_object' op|'(' name|'context' op|',' name|'bw_usage' op|',' name|'db_bw_usage' op|')' op|':' newline|'\n' indent|' ' name|'for' name|'field' name|'in' name|'bw_usage' op|'.' name|'fields' op|':' newline|'\n' indent|' ' name|'if' name|'field' op|'==' string|"'instance_uuid'" op|':' newline|'\n' indent|' ' name|'setattr' op|'(' name|'bw_usage' op|',' name|'field' op|',' name|'db_bw_usage' op|'[' string|"'uuid'" op|']' op|')' newline|'\n' dedent|'' name|'else' op|':' newline|'\n' indent|' ' name|'setattr' op|'(' name|'bw_usage' op|',' name|'field' op|',' name|'db_bw_usage' op|'[' name|'field' op|']' op|')' newline|'\n' dedent|'' dedent|'' name|'bw_usage' op|'.' name|'_context' op|'=' name|'context' newline|'\n' name|'bw_usage' op|'.' name|'obj_reset_changes' op|'(' op|')' newline|'\n' name|'return' name|'bw_usage' newline|'\n' nl|'\n' dedent|'' op|'@' name|'staticmethod' newline|'\n' op|'@' name|'db' op|'.' name|'select_db_reader_mode' newline|'\n' DECL|member|_db_bw_usage_get name|'def' name|'_db_bw_usage_get' op|'(' name|'context' op|',' name|'uuid' op|',' name|'start_period' op|',' name|'mac' op|',' name|'use_slave' op|'=' name|'False' op|')' op|':' newline|'\n' indent|' ' name|'return' name|'db' op|'.' name|'bw_usage_get' op|'(' name|'context' op|',' name|'uuid' op|'=' name|'uuid' op|',' name|'start_period' op|'=' name|'start_period' op|',' nl|'\n' name|'mac' op|'=' name|'mac' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'base' op|'.' name|'serialize_args' newline|'\n' op|'@' name|'base' op|'.' name|'remotable_classmethod' newline|'\n' DECL|member|get_by_instance_uuid_and_mac name|'def' name|'get_by_instance_uuid_and_mac' op|'(' name|'cls' op|',' name|'context' op|',' name|'instance_uuid' op|',' name|'mac' op|',' nl|'\n' name|'start_period' op|'=' name|'None' op|',' name|'use_slave' op|'=' name|'False' op|')' op|':' newline|'\n' indent|' ' name|'db_bw_usage' op|'=' name|'cls' op|'.' name|'_db_bw_usage_get' op|'(' name|'context' op|',' name|'uuid' op|'=' name|'instance_uuid' op|',' nl|'\n' name|'start_period' op|'=' name|'start_period' op|',' name|'mac' op|'=' name|'mac' op|',' nl|'\n' name|'use_slave' op|'=' name|'use_slave' op|')' newline|'\n' name|'if' name|'db_bw_usage' op|':' newline|'\n' indent|' ' name|'return' name|'cls' op|'.' name|'_from_db_object' op|'(' name|'context' op|',' name|'cls' op|'(' op|')' op|',' name|'db_bw_usage' op|')' newline|'\n' nl|'\n' dedent|'' dedent|'' op|'@' name|'base' op|'.' name|'serialize_args' newline|'\n' op|'@' name|'base' op|'.' name|'remotable' newline|'\n' DECL|member|create name|'def' name|'create' op|'(' name|'self' op|',' name|'uuid' op|',' name|'mac' op|',' name|'bw_in' op|',' name|'bw_out' op|',' name|'last_ctr_in' op|',' nl|'\n' name|'last_ctr_out' op|',' name|'start_period' op|'=' name|'None' op|',' name|'last_refreshed' op|'=' name|'None' op|',' nl|'\n' name|'update_cells' op|'=' name|'True' op|')' op|':' newline|'\n' indent|' ' name|'db_bw_usage' op|'=' name|'db' op|'.' name|'bw_usage_update' op|'(' nl|'\n' name|'self' op|'.' name|'_context' op|',' name|'uuid' op|',' name|'mac' op|',' name|'start_period' op|',' name|'bw_in' op|',' name|'bw_out' op|',' nl|'\n' name|'last_ctr_in' op|',' name|'last_ctr_out' op|',' name|'last_refreshed' op|'=' name|'last_refreshed' op|',' nl|'\n' name|'update_cells' op|'=' name|'update_cells' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'_from_db_object' op|'(' name|'self' op|'.' name|'_context' op|',' name|'self' op|',' name|'db_bw_usage' op|')' newline|'\n' nl|'\n' nl|'\n' dedent|'' dedent|'' op|'@' name|'base' op|'.' name|'NovaObjectRegistry' op|'.' name|'register' newline|'\n' DECL|class|BandwidthUsageList name|'class' name|'BandwidthUsageList' op|'(' name|'base' op|'.' name|'ObjectListBase' op|',' name|'base' op|'.' name|'NovaObject' op|')' op|':' newline|'\n' comment|'# Version 1.0: Initial version' nl|'\n' comment|'# Version 1.1: Add use_slave to get_by_uuids' nl|'\n' comment|'# Version 1.2: BandwidthUsage <= version 1.2' nl|'\n' DECL|variable|VERSION indent|' ' name|'VERSION' op|'=' string|"'1.2'" newline|'\n' DECL|variable|fields name|'fields' op|'=' op|'{' nl|'\n' string|"'objects'" op|':' name|'fields' op|'.' name|'ListOfObjectsField' op|'(' string|"'BandwidthUsage'" op|')' op|',' nl|'\n' op|'}' newline|'\n' nl|'\n' op|'@' name|'staticmethod' newline|'\n' op|'@' name|'db' op|'.' name|'select_db_reader_mode' newline|'\n' DECL|member|_db_bw_usage_get_by_uuids name|'def' name|'_db_bw_usage_get_by_uuids' op|'(' name|'context' op|',' name|'uuids' op|',' name|'start_period' op|',' nl|'\n' name|'use_slave' op|'=' name|'False' op|')' op|':' newline|'\n' indent|' ' name|'return' name|'db' op|'.' name|'bw_usage_get_by_uuids' op|'(' name|'context' op|',' name|'uuids' op|'=' name|'uuids' op|',' nl|'\n' name|'start_period' op|'=' name|'start_period' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'base' op|'.' name|'serialize_args' newline|'\n' op|'@' name|'base' op|'.' name|'remotable_classmethod' newline|'\n' DECL|member|get_by_uuids name|'def' name|'get_by_uuids' op|'(' name|'cls' op|',' name|'context' op|',' name|'uuids' op|',' name|'start_period' op|'=' name|'None' op|',' name|'use_slave' op|'=' name|'False' op|')' op|':' newline|'\n' indent|' ' name|'db_bw_usages' op|'=' name|'cls' op|'.' name|'_db_bw_usage_get_by_uuids' op|'(' name|'context' op|',' name|'uuids' op|'=' name|'uuids' op|',' nl|'\n' name|'start_period' op|'=' name|'start_period' op|',' nl|'\n' name|'use_slave' op|'=' name|'use_slave' op|')' newline|'\n' name|'return' name|'base' op|'.' name|'obj_make_list' op|'(' name|'context' op|',' name|'cls' op|'(' op|')' op|',' name|'BandwidthUsage' op|',' name|'db_bw_usages' op|')' newline|'\n' dedent|'' dedent|'' endmarker|'' end_unit
13.095164
88
0.615797
1,291
8,394
3.869868
0.109992
0.18735
0.05004
0.042034
0.786229
0.71257
0.6253
0.595076
0.564852
0.520616
0
0.002933
0.106505
8,394
640
89
13.115625
0.6632
0
0
0.915625
0
0
0.401596
0.025137
0
0
0
0
0
0
null
null
0
0.004688
null
null
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
fb3234e56ca12786b57aba482688826501a4b390
172
py
Python
atividades/ex85_1.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex85_1.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex85_1.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
nun = [[], []] val = 0 for c in range(0, 8): val = int(input('Digite um numero: ')) if val % 2 == 0: num[0].append(val) else: num[1].append(val)
21.5
42
0.476744
28
172
2.928571
0.678571
0.219512
0
0
0
0
0
0
0
0
0
0.059322
0.313953
172
8
43
21.5
0.635593
0
0
0
0
0
0.104046
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fb35706c247175d01dee3873ac8f180bbaf83439
8,195
py
Python
cvrf/admin.py
cyberxml/django-cyberxml
58722cd1ca5192851e894e60a063b6da84a14ed0
[ "MIT" ]
null
null
null
cvrf/admin.py
cyberxml/django-cyberxml
58722cd1ca5192851e894e60a063b6da84a14ed0
[ "MIT" ]
null
null
null
cvrf/admin.py
cyberxml/django-cyberxml
58722cd1ca5192851e894e60a063b6da84a14ed0
[ "MIT" ]
null
null
null
from django.contrib import admin from models import \ AcknowledgmentType_model, \ AcknowledgmentType11_model, \ AcknowledgmentsType_model, \ AcknowledgmentsType10_model, \ AggregateSeverityType_model, \ AliasType_model, \ BranchType_model, \ CVSSScoreSetsType_model, \ CWEType_model, \ ContactDetailsType_model, \ DescriptionType_model, \ DescriptionType1_model, \ DescriptionType14_model, \ DescriptionType15_model, \ DescriptionType2_model, \ DescriptionType5_model, \ DescriptionType6_model, \ DescriptionType7_model, \ DescriptionType9_model, \ DocumentDistributionType_model, \ DocumentNotesType_model, \ DocumentPublisherType_model, \ DocumentReferencesType_model, \ DocumentTitleType_model, \ DocumentTrackingType_model, \ DocumentTypeType_model, \ EngineType_model, \ EntitlementType_model, \ FactRefType_model, \ FullProductName_model, \ GeneratorType_model, \ GroupType_model, \ IDType_model, \ IDType3_model, \ IdentificationType_model, \ InvolvementType_model, \ InvolvementsType_model, \ IssuingAuthorityType_model, \ LogicalTestType_model, \ NameType_model, \ NameType12_model, \ NoteType_model, \ NoteType4_model, \ NotesType_model, \ OrganizationType_model, \ OrganizationType13_model, \ PlatformBaseType_model, \ PlatformType_model, \ ProductGroupsType_model, \ ProductStatusesType_model, \ ProductTree_model, \ ReferenceType_model, \ ReferenceType8_model, \ ReferencesType_model, \ RelationshipType_model, \ RemediationType_model, \ RemediationsType_model, \ RevisionHistoryType_model, \ RevisionType_model, \ ScoreSetType_model, \ SimpleLiteral_model, \ StatusType_model, \ TextType_model, \ ThreatType_model, \ ThreatsType_model, \ TitleType_model, \ Vulnerability_model, \ accessComplexityType_model, \ accessVectorType_model, \ assessmentMethodType_model, \ authenticationType_model, \ baseMetricsType_model, \ checkReferenceType_model, \ checkSearchType_model, \ ciaRequirementType_model, \ ciaType_model, \ collateralDamagePotentialType_model, \ confidenceType_model, \ contributor_model, \ controlMappingType_model, \ controlMappingsType_model, \ coverage_model, \ creator_model, \ cvrfdoc_model, \ cvssImpactBaseType_model, \ cvssImpactEnvironmentalType_model, \ cvssImpactTemporalType_model, \ cvssImpactType_model, \ cvssType_model, \ date_model, \ description_model, \ elementContainer_model, \ environmentalMetricsType_model, \ exploitabilityType_model, \ format_model, \ identifier_model, \ identifyableAssessmentMethodType_model, \ language_model, \ localizedNormalizedString_model, \ localizedString_model, \ mappingInstanceType_model, \ metricsType_model, \ platformSpecificationType_model, \ publisher_model, \ relation_model, \ remediationLevelType_model, \ rights_model, \ searchableCpeReferencesType_model, \ source_model, \ subject_model, \ targetDistributionType_model, \ temporalMetricsType_model, \ title_model, \ type__model admin.site.register(AcknowledgmentType_model) admin.site.register(AcknowledgmentType11_model) admin.site.register(AcknowledgmentsType_model) admin.site.register(AcknowledgmentsType10_model) admin.site.register(AggregateSeverityType_model) admin.site.register(AliasType_model) admin.site.register(BranchType_model) admin.site.register(CVSSScoreSetsType_model) admin.site.register(CWEType_model) admin.site.register(ContactDetailsType_model) admin.site.register(DescriptionType_model) admin.site.register(DescriptionType1_model) admin.site.register(DescriptionType14_model) admin.site.register(DescriptionType15_model) admin.site.register(DescriptionType2_model) admin.site.register(DescriptionType5_model) admin.site.register(DescriptionType6_model) admin.site.register(DescriptionType7_model) admin.site.register(DescriptionType9_model) admin.site.register(DocumentDistributionType_model) admin.site.register(DocumentNotesType_model) admin.site.register(DocumentPublisherType_model) admin.site.register(DocumentReferencesType_model) admin.site.register(DocumentTitleType_model) admin.site.register(DocumentTrackingType_model) admin.site.register(DocumentTypeType_model) admin.site.register(EngineType_model) admin.site.register(EntitlementType_model) admin.site.register(FactRefType_model) admin.site.register(FullProductName_model) admin.site.register(GeneratorType_model) admin.site.register(GroupType_model) admin.site.register(IDType_model) admin.site.register(IDType3_model) admin.site.register(IdentificationType_model) admin.site.register(InvolvementType_model) admin.site.register(InvolvementsType_model) admin.site.register(IssuingAuthorityType_model) admin.site.register(LogicalTestType_model) admin.site.register(NameType_model) admin.site.register(NameType12_model) admin.site.register(NoteType_model) admin.site.register(NoteType4_model) admin.site.register(NotesType_model) admin.site.register(OrganizationType_model) admin.site.register(OrganizationType13_model) admin.site.register(PlatformBaseType_model) admin.site.register(PlatformType_model) admin.site.register(ProductGroupsType_model) admin.site.register(ProductStatusesType_model) admin.site.register(ProductTree_model) admin.site.register(ReferenceType_model) admin.site.register(ReferenceType8_model) admin.site.register(ReferencesType_model) admin.site.register(RelationshipType_model) admin.site.register(RemediationType_model) admin.site.register(RemediationsType_model) admin.site.register(RevisionHistoryType_model) admin.site.register(RevisionType_model) admin.site.register(ScoreSetType_model) admin.site.register(SimpleLiteral_model) admin.site.register(StatusType_model) admin.site.register(TextType_model) admin.site.register(ThreatType_model) admin.site.register(ThreatsType_model) admin.site.register(TitleType_model) admin.site.register(Vulnerability_model) admin.site.register(accessComplexityType_model) admin.site.register(accessVectorType_model) admin.site.register(assessmentMethodType_model) admin.site.register(authenticationType_model) admin.site.register(baseMetricsType_model) admin.site.register(checkReferenceType_model) admin.site.register(checkSearchType_model) admin.site.register(ciaRequirementType_model) admin.site.register(ciaType_model) admin.site.register(collateralDamagePotentialType_model) admin.site.register(confidenceType_model) admin.site.register(contributor_model) admin.site.register(controlMappingType_model) admin.site.register(controlMappingsType_model) admin.site.register(coverage_model) admin.site.register(creator_model) admin.site.register(cvrfdoc_model) admin.site.register(cvssImpactBaseType_model) admin.site.register(cvssImpactEnvironmentalType_model) admin.site.register(cvssImpactTemporalType_model) admin.site.register(cvssImpactType_model) admin.site.register(cvssType_model) admin.site.register(date_model) admin.site.register(description_model) admin.site.register(elementContainer_model) admin.site.register(environmentalMetricsType_model) admin.site.register(exploitabilityType_model) admin.site.register(format_model) admin.site.register(identifier_model) admin.site.register(identifyableAssessmentMethodType_model) admin.site.register(language_model) admin.site.register(localizedNormalizedString_model) admin.site.register(localizedString_model) admin.site.register(mappingInstanceType_model) admin.site.register(metricsType_model) admin.site.register(platformSpecificationType_model) admin.site.register(publisher_model) admin.site.register(relation_model) admin.site.register(remediationLevelType_model) admin.site.register(rights_model) admin.site.register(searchableCpeReferencesType_model) admin.site.register(source_model) admin.site.register(subject_model) admin.site.register(targetDistributionType_model) admin.site.register(temporalMetricsType_model) admin.site.register(title_model) admin.site.register(type__model)
35.171674
59
0.81806
806
8,195
8.032258
0.152605
0.176089
0.246525
0.387396
0
0
0
0
0
0
0
0.005685
0.098475
8,195
232
60
35.323276
0.870601
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.008696
0
0.008696
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
0
0
0
3
34a8b37da7474f59b0fdc4d51d777e80f721389d
246
py
Python
Famcy/_elements_/input/input.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
Famcy/_elements_/input/input.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
12
2022-02-05T04:56:44.000Z
2022-03-30T09:59:26.000Z
Famcy/_elements_/input/input.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
import Famcy import json class input(Famcy.FamcyElement): def __init__(self): super(input, self).__init__() def render_element(self): html = "<input" + self.setAttrTag() + ">" self.html = html return html
22.363636
49
0.613821
28
246
5.071429
0.535714
0.126761
0
0
0
0
0
0
0
0
0
0
0.264228
246
11
50
22.363636
0.78453
0
0
0
0
0
0.02834
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.666667
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
0
1
0
0
3
34b3f4f0eb2250ac16704efd0e2d910e15c5b42e
117
py
Python
simple_qrcode_generated.py
spitchi-k/AR_test
a25a47429fbf1487439cdca240684c94842c8856
[ "MIT" ]
null
null
null
simple_qrcode_generated.py
spitchi-k/AR_test
a25a47429fbf1487439cdca240684c94842c8856
[ "MIT" ]
null
null
null
simple_qrcode_generated.py
spitchi-k/AR_test
a25a47429fbf1487439cdca240684c94842c8856
[ "MIT" ]
null
null
null
import qrcode img = qrcode.make('https://keiichimorimoto.github.io/AR_test/') img.save('img/simple_qrcode.png')
23.4
64
0.735043
17
117
4.941176
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.094017
117
4
65
29.25
0.792453
0
0
0
0
0
0.557522
0.185841
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
34cf5e5e7451778b7fed829936c11fe5eab72820
22
py
Python
plyer/platforms/win/__init__.py
johnbolia/plyer
6dc9055a781e30feabb60e1506bd0ac343d2a7d6
[ "MIT" ]
1
2020-07-10T12:50:47.000Z
2020-07-10T12:50:47.000Z
plyer/platforms/win/__init__.py
johnbolia/plyer
6dc9055a781e30feabb60e1506bd0ac343d2a7d6
[ "MIT" ]
null
null
null
plyer/platforms/win/__init__.py
johnbolia/plyer
6dc9055a781e30feabb60e1506bd0ac343d2a7d6
[ "MIT" ]
null
null
null
activity = 'activity'
11
21
0.727273
2
22
8
0.5
0
0
0
0
0
0
0
0
0
0
0
0.136364
22
1
22
22
0.842105
0
0
0
0
0
0.363636
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
34ef54fb3a695bb5abbdc1bd599b97481bac5503
390
py
Python
src/schnetpack/md/utils/__init__.py
giadefa/schnetpack
9dabc3b6e3b28deb2fb3743ea1857c46b055efbf
[ "MIT" ]
450
2018-09-04T08:37:47.000Z
2022-03-30T08:05:37.000Z
src/schnetpack/md/utils/__init__.py
giadefa/schnetpack
9dabc3b6e3b28deb2fb3743ea1857c46b055efbf
[ "MIT" ]
239
2018-09-11T21:09:08.000Z
2022-03-18T09:25:11.000Z
src/schnetpack/md/utils/__init__.py
giadefa/schnetpack
9dabc3b6e3b28deb2fb3743ea1857c46b055efbf
[ "MIT" ]
166
2018-09-13T13:01:06.000Z
2022-03-31T12:59:12.000Z
""" This module contains various utility functions and classes used in combination with :obj:`schnetpack.md`. This includes e.g. unit conversion, loading of molecular dynamics data and the computation of spectra. """ from .basic_utils import * from .md_units import * from .hdf5_data import * from .normal_mode_transformation import * from .spectra import * from .thermostat_utils import *
35.454545
105
0.789744
55
390
5.490909
0.690909
0.165563
0
0
0
0
0
0
0
0
0
0.002976
0.138462
390
10
106
39
0.895833
0.533333
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
34fc2841f9fcdafcd0ef57abda77a28eeb72be06
173
py
Python
challenges/tree_insertion/test_tree_insertion.py
glasscharlie/data-structures-and-algorithms
4546a0606334c6e3156b567d8cc82d39fb183c58
[ "MIT" ]
null
null
null
challenges/tree_insertion/test_tree_insertion.py
glasscharlie/data-structures-and-algorithms
4546a0606334c6e3156b567d8cc82d39fb183c58
[ "MIT" ]
4
2019-12-02T22:28:03.000Z
2019-12-09T04:17:53.000Z
challenges/tree_insertion/test_tree_insertion.py
glasscharlie/data-structures-and-algorithms
4546a0606334c6e3156b567d8cc82d39fb183c58
[ "MIT" ]
null
null
null
from tree_insertion import Node, BinarySearchTree, tree_insertion def test_node(): node = Node(3) actual = node.value expected = 3 assert actual == expected
24.714286
65
0.710983
22
173
5.454545
0.590909
0.216667
0
0
0
0
0
0
0
0
0
0.014706
0.213873
173
7
66
24.714286
0.867647
0
0
0
0
0
0
0
0
0
0
0
0.166667
1
0.166667
false
0
0.166667
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
0
0
0
0
0
3
34fed06738560f5c182150c30f20c1ecde24ef80
103
py
Python
redis-py_test/RedisHlper.py
Askr-ssy/Batch-test-service-
c314fb70bf1346c09ae994ce7e543b68741ee4c0
[ "Apache-2.0" ]
null
null
null
redis-py_test/RedisHlper.py
Askr-ssy/Batch-test-service-
c314fb70bf1346c09ae994ce7e543b68741ee4c0
[ "Apache-2.0" ]
null
null
null
redis-py_test/RedisHlper.py
Askr-ssy/Batch-test-service-
c314fb70bf1346c09ae994ce7e543b68741ee4c0
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- class RedisSubscriber(object): def __init__(self,channel): self.
20.6
31
0.621359
11
103
5.454545
0.909091
0
0
0
0
0
0
0
0
0
0
0.012346
0.213592
103
4
32
25.75
0.728395
0.223301
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
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
3
9b51cb3815a6b78cecbd4224e59e0dc0c392063a
287
py
Python
Func4.py
MiladDeveloper-Hub/Python-Course
dfae734fd6b6ccea1d173919532ae2ea379f6f88
[ "Apache-2.0" ]
null
null
null
Func4.py
MiladDeveloper-Hub/Python-Course
dfae734fd6b6ccea1d173919532ae2ea379f6f88
[ "Apache-2.0" ]
null
null
null
Func4.py
MiladDeveloper-Hub/Python-Course
dfae734fd6b6ccea1d173919532ae2ea379f6f88
[ "Apache-2.0" ]
null
null
null
def power(number, power=2): return number ** power print(power(2, 3)) # 2 * 2 * 2 = 8 print(power(3)) # 3 * 2 = 9 print("------------------") def showFullName(first, last): return f"{first} {last}" print(showFullName(last="Golchinpour", first="Milad"))
16.882353
55
0.536585
37
287
4.162162
0.405405
0.142857
0
0
0
0
0
0
0
0
0
0.05
0.233449
287
16
56
17.9375
0.65
0.080139
0
0
0
0
0.195918
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
1
0
3
9b77f512cfd239f210af71c1b0bdb967a0461411
1,997
py
Python
src/airbnb_priceforecaster/features/__init__.py
andersbogsnes/airbnb_priceforecaster
f397c16a08fe7eba9977611f4af5352d234a4624
[ "MIT" ]
null
null
null
src/airbnb_priceforecaster/features/__init__.py
andersbogsnes/airbnb_priceforecaster
f397c16a08fe7eba9977611f4af5352d234a4624
[ "MIT" ]
null
null
null
src/airbnb_priceforecaster/features/__init__.py
andersbogsnes/airbnb_priceforecaster
f397c16a08fe7eba9977611f4af5352d234a4624
[ "MIT" ]
null
null
null
from airbnb_priceforecaster.features.amenities import amenities from airbnb_priceforecaster.features.bed_type import bed_type from airbnb_priceforecaster.features.beds import beds from airbnb_priceforecaster.features.cleaning_fee import cleaning_fee from airbnb_priceforecaster.features.extra_people import extra_people from airbnb_priceforecaster.features.guests_included import guests_included from airbnb_priceforecaster.features.host_acceptance_rate import host_acceptance_rate from airbnb_priceforecaster.features.host_has_profile_pic import host_has_profile_pic from airbnb_priceforecaster.features.host_identity_verified import host_identity_verified from airbnb_priceforecaster.features.host_response_time import host_response_time from airbnb_priceforecaster.features.house_rules_len import house_rules_len from airbnb_priceforecaster.features.neighbourhood import neighbourhood from airbnb_priceforecaster.features.property_type import property_type from airbnb_priceforecaster.features.room_type import room_type from airbnb_priceforecaster.features.security_deposit import security_deposit from airbnb_priceforecaster.features.square_feet import square_feet from airbnb_priceforecaster.features.zipcode import zipcode from ml_tooling.transformers import DFFeatureUnion features = DFFeatureUnion([ ("amenities", amenities), # ("host_since", host_since), ("host_response_time", host_response_time), ("house_rules_len", house_rules_len), ("host_acceptance_rate", host_acceptance_rate), ("cleaning_fee", cleaning_fee), ("square_feet", square_feet), ("security_deposit", security_deposit), ("neighbourhood", neighbourhood), ("host_has_profile_pic", host_has_profile_pic), ("host_identity_verified", host_identity_verified), ("zipcode", zipcode), ("guests_included", guests_included), ("extra_people", extra_people), ("bed_type", bed_type), ("beds", beds), ("property_type", property_type), ("room_type", room_type) ])
51.205128
89
0.83325
241
1,997
6.506224
0.170124
0.108418
0.271046
0.357781
0.189413
0
0
0
0
0
0
0
0.092639
1,997
39
90
51.205128
0.865342
0.01352
0
0
0
0
0.113763
0.011173
0
0
0
0
0
1
0
false
0
0.486486
0
0.486486
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
0
0
0
3
9ba05f2cde5ab9bc9e093544e537ecaa34ef39e8
701
py
Python
torch/ao/sparsity/__init__.py
chloeyutianyi/pytorch
0751a41ab148b34db1f63e14d7c40781e16ef2f2
[ "Intel" ]
2
2021-03-17T12:00:33.000Z
2021-03-17T12:18:29.000Z
torch/ao/sparsity/__init__.py
stas00/pytorch
6a085648d81ce88ff59d6d1438fdb3707a0d6fb7
[ "Intel" ]
null
null
null
torch/ao/sparsity/__init__.py
stas00/pytorch
6a085648d81ce88ff59d6d1438fdb3707a0d6fb7
[ "Intel" ]
null
null
null
# Variables from ._mappings import get_dynamic_sparse_quantized_mapping from ._mappings import get_static_sparse_quantized_mapping # Sparsifier from .sparsifier.base_sparsifier import BaseSparsifier from .sparsifier.weight_norm_sparsifier import WeightNormSparsifier # Scheduler from .scheduler.base_scheduler import BaseScheduler from .scheduler.lambda_scheduler import LambdaSL # Parametrizations from .sparsifier.utils import FakeSparsity # === Experimental === # Parametrizations from .experimental.pruner.parametrization import PruningParametrization from .experimental.pruner.parametrization import ActivationReconstruction # Pruner from .experimental.pruner.base_pruner import BasePruner
29.208333
73
0.863053
72
701
8.180556
0.402778
0.071307
0.112054
0.071307
0.14601
0
0
0
0
0
0
0
0.088445
701
23
74
30.478261
0.921753
0.131241
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
9bbfd17d9ada7890bcf5386a81e74c55f11c9239
2,622
py
Python
exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor(name='exabel/api/math/aggregation.proto', package='exabel.api.math', syntax='proto3', serialized_options=b'\n\x13com.exabel.api.mathB\x10AggregationProtoP\x01Z\x13exabel.com/api/math', create_key=_descriptor._internal_create_key, serialized_pb=b'\n!exabel/api/math/aggregation.proto\x12\x0fexabel.api.math*`\n\x0bAggregation\x12\x17\n\x13AGGREGATION_INVALID\x10\x00\x12\x08\n\x04MEAN\x10\x01\x12\t\n\x05FIRST\x10\x02\x12\x08\n\x04LAST\x10\x03\x12\x07\n\x03SUM\x10\x04\x12\x07\n\x03MIN\x10\x05\x12\x07\n\x03MAX\x10\x06B>\n\x13com.exabel.api.mathB\x10AggregationProtoP\x01Z\x13exabel.com/api/mathb\x06proto3') _AGGREGATION = _descriptor.EnumDescriptor(name='Aggregation', full_name='exabel.api.math.Aggregation', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[_descriptor.EnumValueDescriptor(name='AGGREGATION_INVALID', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor(name='MEAN', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor(name='FIRST', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor(name='LAST', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor(name='SUM', index=4, number=4, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor(name='MIN', index=5, number=5, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor(name='MAX', index=6, number=6, serialized_options=None, type=None, create_key=_descriptor._internal_create_key)], containing_type=None, serialized_options=None, serialized_start=54, serialized_end=150) _sym_db.RegisterEnumDescriptor(_AGGREGATION) Aggregation = enum_type_wrapper.EnumTypeWrapper(_AGGREGATION) AGGREGATION_INVALID = 0 MEAN = 1 FIRST = 2 LAST = 3 SUM = 4 MIN = 5 MAX = 6 DESCRIPTOR.enum_types_by_name['Aggregation'] = _AGGREGATION _sym_db.RegisterFileDescriptor(DESCRIPTOR) DESCRIPTOR._options = None
124.857143
1,311
0.832571
359
2,622
5.810585
0.278552
0.077661
0.136625
0.116491
0.448226
0.405082
0.370566
0.370566
0.370566
0.370566
0
0.047295
0.048436
2,622
21
1,312
124.857143
0.788778
0.011823
0
0
1
0.1
0.223511
0.191029
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
32d963c76a2f6ab62db037d2496975d9d638955c
236
py
Python
advesarial_text/graphs.py
slowy07/tensorflow-model-research
48ba4ba6240452eb3e3350fe7099f2b045acc530
[ "MIT" ]
null
null
null
advesarial_text/graphs.py
slowy07/tensorflow-model-research
48ba4ba6240452eb3e3350fe7099f2b045acc530
[ "MIT" ]
null
null
null
advesarial_text/graphs.py
slowy07/tensorflow-model-research
48ba4ba6240452eb3e3350fe7099f2b045acc530
[ "MIT" ]
null
null
null
from __future__ import absoulte_import from __future__ import division from __future__ import print_function import csv import os import tensorflow as tf import advesarial_losses as adv_lib flags = tf.app.flags FLAGS = flags.FLAGS
15.733333
38
0.830508
35
236
5.142857
0.514286
0.166667
0.266667
0
0
0
0
0
0
0
0
0
0.148305
236
14
39
16.857143
0.895522
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.777778
0
0.777778
0.111111
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
32e3bd3681b7ded48f678ddbbd1c01177870467e
273
py
Python
hiss/utils/__init__.py
KennethanCeyer/hiss
5aa428333a1a1b10ec4a766029de065a97a514b1
[ "Apache-2.0" ]
2
2018-01-08T05:56:42.000Z
2018-04-02T13:53:23.000Z
hiss/utils/__init__.py
KennethanCeyer/hiss
5aa428333a1a1b10ec4a766029de065a97a514b1
[ "Apache-2.0" ]
5
2020-05-10T12:03:25.000Z
2020-06-17T04:17:09.000Z
hiss/utils/__init__.py
KennethanCeyer/hiss
5aa428333a1a1b10ec4a766029de065a97a514b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # portable serial port access with python # this is a wrapper module for different platform implementations # # (C) 2017-2017 Kenneth Ceyer <kennethan@nhpcw.com> # this is distributed under # Apache 2.0 <https://www.apache.org/licenses/LICENSE-2.0>
30.333333
65
0.754579
42
273
4.904762
0.833333
0.058252
0
0
0
0
0
0
0
0
0
0.050633
0.131868
273
8
66
34.125
0.818565
0.941392
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3
32f0ac15b515470cbc51e2d15b0c98b2fa6423b2
1,637
py
Python
src/modules/service/python/service.py
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
src/modules/service/python/service.py
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
src/modules/service/python/service.py
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
"""@package service @file service.py @author Ivan Murashko <ivan.murashko@gmail.com> Copyright (c) 2007-2011 Kalinka Team This file is part of Kalinka mediaserver. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. CHANGE HISTORY @date - 2011/01/07 created by ipp (Ivan Murashko) """ import klk.common as common from defines import * class Service(common.Module): """ The service module class """ def __init__(self, server): """ Constructor @param[in] server - the mediaserver instance """ common.Module.__init__(self, UUID, NAME, server)
34.829787
74
0.728772
233
1,637
5.085837
0.55794
0.074262
0.021941
0
0
0
0
0
0
0
0
0.012461
0.215638
1,637
46
75
35.586957
0.910436
0.818571
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
fd1069e5f039f3ba9f80c8e3b1ad3f71ceb89dff
97
py
Python
cerver/network.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
5
2021-03-25T20:33:55.000Z
2021-12-21T05:03:23.000Z
cerver/network.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
5
2021-03-31T05:54:07.000Z
2021-07-01T01:21:39.000Z
cerver/network.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
7
2021-03-25T20:33:58.000Z
2021-12-29T05:28:56.000Z
from ctypes import c_int Protocol = c_int PROTOCOL_NONE = 0 PROTOCOL_TCP = 6 PROTOCOL_UDP = 17
12.125
24
0.773196
17
97
4.117647
0.705882
0.114286
0.342857
0
0
0
0
0
0
0
0
0.050633
0.185567
97
7
25
13.857143
0.835443
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fd144c484bc4aae5f0e50b2aefed639336b07c89
1,148
py
Python
SenseHat/rpy_display.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
SenseHat/rpy_display.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
SenseHat/rpy_display.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
from sense_hat import SenseHat from time import sleep sense = SenseHat() sense.clear() w = (255,255,255) b = (0,0,0) # Create screen screen =[[b,b,b,b,b,b,b,b], [b,b,b,b,b,b,b,b], [b,b,b,b,b,b,b,b], [b,b,b,b,b,b,b,b], [b,b,b,b,b,b,b,b], [b,b,b,b,b,b,b,b], [b,b,b,b,b,b,b,b], [b,b,b,b,b,b,b,b]] # Function that determines which way to move dot def move_marble(pitch, roll, x, y): new_x = x new_y = y if 1 < pitch < 179 and x != 0: new_x -= 1 elif 360 > pitch > 181 and x != 7: new_x += 1 if 1 < roll < 179 and y != 7: new_y += 1 elif 360 > roll > 181 and y != 0: new_y -= 1 return new_x, new_y # Set initial position of Dot x = 3 y = 3 while True: # Get Roll & Pitch from sense hat o = sense.get_orientation() pitch = o["pitch"] roll = o["roll"] x,y = move_marble(pitch,roll,x,y) # Add dot to screen screen[y][x] = w # Display screen sense.set_pixels(sum(screen,[])) sleep(0.05) screen[y][x] = b # Print values in shell print('pitch: {}, roll: {}'.format(pitch, roll))
21.259259
52
0.522648
221
1,148
2.656109
0.262443
0.214651
0.316865
0.415673
0.180579
0.180579
0.109029
0.109029
0.109029
0.109029
0
0.05604
0.300523
1,148
53
53
21.660377
0.674969
0.152439
0
0.157895
0
0
0.029076
0
0
0
0
0
0
1
0.026316
false
0
0.052632
0
0.105263
0.026316
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
0
0
3
fd2b70c92de5b297a5e9ce388f635e6da52b67c6
1,078
py
Python
vial/utils.py
martastain/vial
421373e5821ff45f1e1c7313e2be28641f309955
[ "MIT" ]
null
null
null
vial/utils.py
martastain/vial
421373e5821ff45f1e1c7313e2be28641f309955
[ "MIT" ]
null
null
null
vial/utils.py
martastain/vial
421373e5821ff45f1e1c7313e2be28641f309955
[ "MIT" ]
null
null
null
from http import HTTPStatus def status_phrase(status): return HTTPStatus(status).phrase def status_description(status): return HTTPStatus(status).description def format_status(status): return f"{status} {status_phrase(status)}" class CaseInsensitiveDict(dict): """Basic case insensitive dict with strings only keys.""" proxy = {} def __init__(self, data={}): self.proxy = dict((k.lower(), k) for k in data) for k in data: self[k] = data[k] def __contains__(self, k): return k.lower() in self.proxy def __delitem__(self, k): key = self.proxy[k.lower()] super(CaseInsensitiveDict, self).__delitem__(key) del self.proxy[k.lower()] def __getitem__(self, k): key = self.proxy[k.lower()] return super(CaseInsensitiveDict, self).__getitem__(key) def get(self, k, default=None): return self[k] if k in self else default def __setitem__(self, k, v): super(CaseInsensitiveDict, self).__setitem__(k, v) self.proxy[k.lower()] = k
23.955556
64
0.638219
139
1,078
4.690647
0.302158
0.053681
0.06135
0.092025
0.070552
0.070552
0.070552
0
0
0
0
0
0.237477
1,078
44
65
24.5
0.793187
0.04731
0
0.074074
0
0
0.031342
0.022527
0
0
0
0
0
1
0.333333
false
0
0.037037
0.185185
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
fd629f7f3193a608c9cc95f20443f433329a0cc2
1,350
py
Python
Scientific Computing with Python Certification/polygon-area-calculator/shape_calculator.py
ankit27kh/freeCodeCamp
0cddfedea3d908fabf831e5b359df47625095da0
[ "MIT" ]
null
null
null
Scientific Computing with Python Certification/polygon-area-calculator/shape_calculator.py
ankit27kh/freeCodeCamp
0cddfedea3d908fabf831e5b359df47625095da0
[ "MIT" ]
null
null
null
Scientific Computing with Python Certification/polygon-area-calculator/shape_calculator.py
ankit27kh/freeCodeCamp
0cddfedea3d908fabf831e5b359df47625095da0
[ "MIT" ]
null
null
null
class Rectangle: def __init__(self, width, height): self.width = width self.height = height def set_width(self, n): self.width = n def set_height(self, n): self.height = n def get_area(self): return self.height * self.width def get_perimeter(self): return 2 * self.width + 2 * self.height def get_diagonal(self): return (self.width ** 2 + self.height ** 2) ** 0.5 def get_picture(self): if self.width > 50 or self.height > 50: return "Too big for picture." else: lines = [] for n in range(self.height): lines.append('*' * self.width) lines = '\n'.join(lines) + '\n' return lines def get_amount_inside(self, other): return self.get_area() // other.get_area() def __str__(self): return f"Rectangle(width={self.width}, height={self.height})" class Square(Rectangle): def __init__(self, width): super().__init__(width, width) def set_side(self, n): self.set_width(n) self.set_height(n) def set_height(self, n): self.height = n self.width = n def set_width(self, n): self.width = n self.height = n def __str__(self): return f"Square(side={self.height})"
22.881356
69
0.556296
178
1,350
4.022472
0.213483
0.150838
0.062849
0.046089
0.358939
0.166201
0.152235
0.152235
0.081006
0
0
0.010893
0.32
1,350
58
70
23.275862
0.769063
0
0
0.292683
0
0
0.075556
0.056296
0
0
0
0
0
1
0.341463
false
0
0
0.146341
0.585366
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b5d0da974906abd7041e01dd1250c7a2d8d2a97f
219
py
Python
recipe/dump_dir.py
conda-forge/cyflann-feedstock
3a4289e2475558aa274ddd0137ddbd092ff6e247
[ "BSD-3-Clause" ]
1
2019-02-08T15:07:45.000Z
2019-02-08T15:07:45.000Z
recipe/dump_dir.py
conda-forge/cyflann-feedstock
3a4289e2475558aa274ddd0137ddbd092ff6e247
[ "BSD-3-Clause" ]
15
2017-07-29T19:17:27.000Z
2021-11-08T15:26:44.000Z
recipe/dump_dir.py
conda-forge/cyflann-feedstock
3a4289e2475558aa274ddd0137ddbd092ff6e247
[ "BSD-3-Clause" ]
4
2017-07-29T19:09:47.000Z
2019-01-11T18:51:51.000Z
import json import os import cyflann.flann_info pth = os.path.join(os.path.dirname(cyflann.flann_info.__file__), 'flann_config.json') with open(pth, 'w') as f: json.dump({'FLANN_DIR': os.environ['FLANN_DIR']}, f)
24.333333
85
0.726027
37
219
4.054054
0.540541
0.16
0.213333
0
0
0
0
0
0
0
0
0
0.109589
219
8
86
27.375
0.769231
0
0
0
0
0
0.164384
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
b5e9b526435b74bf579825738f7d318ce22f3fff
288
py
Python
gem/templatetags/gem_tags.py
praekeltfoundation/Molo-Merge-CMS-Scratchpad
cad49b4fa57028e473af134851b95112a885b8b2
[ "BSD-2-Clause" ]
null
null
null
gem/templatetags/gem_tags.py
praekeltfoundation/Molo-Merge-CMS-Scratchpad
cad49b4fa57028e473af134851b95112a885b8b2
[ "BSD-2-Clause" ]
3
2017-02-27T09:08:37.000Z
2017-02-28T14:55:39.000Z
gem/templatetags/gem_tags.py
praekeltfoundation/Molo-Merge-CMS-Scratchpad
cad49b4fa57028e473af134851b95112a885b8b2
[ "BSD-2-Clause" ]
1
2017-02-27T07:49:23.000Z
2017-02-27T07:49:23.000Z
from django.template import Library from django.conf import settings register = Library() @register.simple_tag() def get_site_static_prefix(): return settings.SITE_STATIC_PREFIX @register.filter('fieldtype') def fieldtype(field): return field.field.widget.__class__.__name__
19.2
48
0.791667
37
288
5.783784
0.594595
0.093458
0.149533
0
0
0
0
0
0
0
0
0
0.118056
288
14
49
20.571429
0.84252
0
0
0
0
0
0.03125
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.222222
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bd3b06bf366a0f405dae7ab2baf9c133345e90e3
208
py
Python
truechat/chat/urls.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
1
2019-12-19T19:04:33.000Z
2019-12-19T19:04:33.000Z
truechat/chat/urls.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
6
2020-06-05T23:42:41.000Z
2022-02-10T13:32:59.000Z
truechat/chat/urls.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from chat.views import ChatViewSet chats_router = DefaultRouter() chats_router.register(r'', ChatViewSet, basename='chats') urlpatterns = chats_router.urls
23.111111
57
0.822115
25
208
6.68
0.64
0.197605
0
0
0
0
0
0
0
0
0
0
0.096154
208
8
58
26
0.888298
0
0
0
0
0
0.024038
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3
bd4e802fd45e12a0e096cb70fd7123da7053d846
1,046
py
Python
lib/take2/lib/helper.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
lib/take2/lib/helper.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
lib/take2/lib/helper.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
import os import pandas as pd from . import unsafe_helper class Helper: def __init__(self): self.unsafe = unsafe_helper.Unsafe() def format_path_w_symbol(self, path, symbol): return os.path.join(path, symbol) def format_df_dates(self, df, column_name): df[column_name] = pd.to_datetime(df[column_name]) def get_row_w_value(self, df, column, value): return self.unsafe.get_row_w_value(df, column, value) def get_row_w_index(self, df, index): return self.unsafe.get_row_w_index(df, index) def get_value_from_row(self, row, column): return row[column].values[0] def format_date_file(self, symbol, path): filename = '{}_dates.csv'.format(symbol) return os.path.join(path, filename) def format_image_file(self, symbol, path): filename = '{}.npy'.format(symbol) return os.path.join(path, filename) def format_price_file(self, symbol, path): filename= '{}.csv'.format(symbol) return os.path.join(path, filename)
30.764706
61
0.670172
152
1,046
4.368421
0.243421
0.108434
0.084337
0.108434
0.442771
0.325301
0.216867
0.216867
0.216867
0.14759
0
0.001215
0.213193
1,046
34
62
30.764706
0.805589
0
0
0.12
0
0
0.022923
0
0
0
0
0
0
1
0.36
false
0
0.12
0.16
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bd4f1b93f228ba9ea3320dcc83d08d80acb1edec
580
py
Python
Python/Experiments/ITERATORS/Polyglot.Ninja/iterator_protocol.py
nitin-cherian/LifeLongLearning
84084792058358365162c645742c70064a2d5fd6
[ "MIT" ]
4
2018-01-19T17:15:06.000Z
2018-01-24T00:06:42.000Z
Python/Experiments/ITERATORS/Polyglot.Ninja/iterator_protocol.py
nitin-cherian/LifeLongLearning
84084792058358365162c645742c70064a2d5fd6
[ "MIT" ]
null
null
null
Python/Experiments/ITERATORS/Polyglot.Ninja/iterator_protocol.py
nitin-cherian/LifeLongLearning
84084792058358365162c645742c70064a2d5fd6
[ "MIT" ]
null
null
null
# iterator_protocol.py print(""" The iterator protocol specifies two special methods to be implemented for any object to allow iteration 1. For any object to be iterated over, it must implement the __iter__ method which returns an iterator object. Any object that returns an iterator is an iterable. 2. An iterator must implement the __next__ method which returns the next item when called. This method should raise StopIteration exception when items are exhausted. 3. An iterator must also implement __iter__ method returning self, so that it behaves like an iterable. """)
38.666667
115
0.801724
90
580
5.022222
0.566667
0.088496
0.053097
0.061947
0
0
0
0
0
0
0
0.006186
0.163793
580
14
116
41.428571
0.925773
0.034483
0
0
0
0.25
0.969534
0
0
0
0
0
0
1
0
true
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
1fd99a7553b813d9cf5c799454a06285e03b00b9
1,470
py
Python
db/db_models/__init__.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
1
2020-03-14T11:00:14.000Z
2020-03-14T11:00:14.000Z
db/db_models/__init__.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
null
null
null
db/db_models/__init__.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
null
null
null
from .Badge import Badge as BadgeDBModel from .BadgeCondition import BadgeCondition as BadgeConditionDBModel from .BadgeType import BadgeType as BadgeTypeDBModel from .Organization import Organization as OrganizationDBModel from .OrganizationType import OrganizationType as OrganizationTypeDBModel from .OrgPos import OrgPos as OrgPosDBModel from .People import People as PeopleDBModel from .PeopleCredential import PeopleCredential as PeopleCredentialDBModel from .PeoplePosRole import PeoplePosRole as PeoplePosRoleDBModel from .Phone import Phone as PhoneDBModel from .PhoneType import PhoneType as PhoneTypeDBModel from .Position import Position as PositionDBModel from .PreSkill import PreSkill as PreSkillDBModel from .Role import Role as RoleDBModel from .RoleSkillBlock import RoleSkillBlock as RoleSkillBlockDBModel from .Sex import Sex as SexDBModel from .Skill import Skill as SkillDBModel from .SkillBlock import SkillBlock as SkillBlockDBModel from .SkillBlockScore import SkillBlockScore as SkillBlockScoreDBModel from .SkillBlockSkill import SkillBlockSkill as SkillBlockSkillDBModel from .SkillGroup import SkillGroup as SkillGroupDBModel from .SkillGroupSkillBlock import SkillGroupSkillBlock as SkillGroupSkillBlockDBModel from .SkillScore import SkillScore as SkillScoreDBModel from .SkillScoreHistory import SkillScoreHistory as SkillScoreHistoryDBModel from .Status import Status as StatusDBModel from .Structure import Structure as StructureDBModel
56.538462
85
0.876871
156
1,470
8.262821
0.352564
0
0
0
0
0
0
0
0
0
0
0
0.105442
1,470
26
86
56.538462
0.980228
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
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
3
1fdc368975530bca5f7f3ae8a3d13922ebf99417
31,293
py
Python
descriptastorus/descriptors/dists.py
sharmavaruns/descriptastorus
7a3e457bc64e480e44f0ce624052da68d2a27bad
[ "BSD-3-Clause" ]
118
2019-01-15T23:04:29.000Z
2022-03-25T01:31:06.000Z
descriptastorus/descriptors/dists.py
sharmavaruns/descriptastorus
7a3e457bc64e480e44f0ce624052da68d2a27bad
[ "BSD-3-Clause" ]
14
2019-02-15T17:15:46.000Z
2022-03-10T14:18:56.000Z
descriptastorus/descriptors/dists.py
sharmavaruns/descriptastorus
7a3e457bc64e480e44f0ce624052da68d2a27bad
[ "BSD-3-Clause" ]
40
2018-12-18T11:39:38.000Z
2022-03-23T09:45:45.000Z
try: from math import inf except ImportError: inf = float('Inf') dists={ 'VSA_EState1': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0.0, 0.0, 0.0, 0.0), 'Chi4n': ('mielke', (3.4334547302721328, 4.644325894559659, -0.1540765028544061, 3.7724626101152783), 0.0, 60.15570624032009, 3.5583748823804937, 1.9340011133496022), 'EState_VSA3': ('pearson3', (1.2130333692507862, 20.490424246483514, 14.913598628728794), 0.0, 707.4193712196022, 20.490458921014422, 15.02692979610578), 'PEOE_VSA3': ('recipinvgauss', (2039990.2035692804, -1.514157558116536e-12, 5.862765691466683), 0.0, 278.49556054006456, 5.883620301814973, 7.114346140218968), 'PEOE_VSA10': ('ncx2', (1.2634981555275662, 2.1503143438355354, -2.21123444897305e-31, 2.606409115395213), 0.0, 494.0556831191233, 9.763622525936078, 12.915305068064065), 'Chi2v': ('fisk', (5.416294252795936, -0.46711733318914683, 7.911730855234288), 0.0, 152.03415385974233, 7.97051218652611, 4.006279197425447), 'SMR_VSA8': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0.0, 0.0, 0.0, 0.0), 'ExactMolWt': ('mielke', (6.030507225812184, 6.081069808326847, -3.1905715544779594, 393.79789827541134), 7.01545597009, 7902.703267132, 413.2180535712111, 196.11660291127603), 'fr_imidazole': ('wald', (-0.017711130586117518, 0.05908774988990952), 0, 11, 0.10202714189993299, 0.35905461339251266), 'fr_aldehyde': ('halflogistic', (-2.2802084549638172e-10, 0.003260151958473212), 0, 2, 0.0032602282159751184, 0.057529151986179125), 'fr_Al_COO': ('beta', (0.6951891478660377, 401.3878921392054, -1.8490162599417683e-28, 14.902552079575546), 0, 9, 0.05697398817917254, 0.2720833952111172), 'NumAliphaticHeterocycles': ('alpha', (5.571361455216543e-09, -0.07477286399593108, 0.10965986221560856), 0, 22, 0.7546628263978479, 0.9186038062617755), 'fr_Ar_NH': ('wald', (-0.01991313112984635, 0.06651081784403591), 0, 13, 0.11327792945506185, 0.37297284960554855), 'NumHAcceptors': ('logistic', (5.039523695264815, 1.2773064178194637), 0, 199, 5.285449981498705, 3.9293707904214674), 'fr_lactam': ('halflogistic', (-1.9994772259051099e-10, 0.0019599976691355514), 0, 2, 0.0019601372096046724, 0.04490322117641692), 'fr_NH2': ('wald', (-0.025886531735103906, 0.08666379088388962), 0, 17, 0.14403008210574741, 0.5080894197040707), 'fr_Ndealkylation1': ('wald', (-0.014170257884871005, 0.047146436951077536), 0, 8, 0.08431590211314792, 0.3528598050157884), 'SlogP_VSA7': ('recipinvgauss', (124626.03395996531, -5.039104162427062e-11, 0.4157942168226829), 0.0, 77.05538951387919, 1.1814079834441082, 2.9446812598365155), 'fr_Ar_N': ('halfgennorm', (0.32377704425495, -8.49433587779278e-22, 0.010554705354503424), 0, 66, 1.3546848279379557, 1.7700301662397686), 'NumSaturatedHeterocycles': ('halfgennorm', (0.39340463716320073, -3.084884622335595e-23, 0.007755844850523552), 0, 22, 0.545018151270589, 0.8423690871097294), 'NumAliphaticRings': ('gennorm', (0.16214999420806342, 1.0000000000000002, 1.2644170558638866e-06), 0, 24, 0.9787585130959167, 1.0878564569993276), 'SMR_VSA4': ('betaprime', (0.8177035716382387, 2.026000293708502, -2.7076233813444817e-29, 0.8955328046106019), 0.0, 169.22417394169068, 3.521664764716257, 6.367910012270387), 'Chi0v': ('mielke', (5.8775750667785065, 5.969290153282742, -0.051645183224216795, 16.255522569236142), 1.0, 310.3665679014367, 17.129538294841, 7.923870846730872), 'qed': ('johnsonsb', (-0.537683817552717, 0.9438392221113977, -0.05971660981816428, 1.0270014571751256), 0.001610010104943233, 0.9484019712261345, 0.5707778636205341, 0.21314724659491038), 'fr_sulfonamd': ('betaprime', (0.6061868535729906, 2.47005272151398, -1.7109734983680305e-30, 0.024136054923030247), 0, 2, 0.09929695078655505, 0.3106727570704293), 'fr_halogen': ('exponweib', (1.5936220372251417, 0.4773265592552294, -6.305557196427465e-30, 0.11136163589207024), 0, 22, 0.6656565959617173, 1.1538784657180654), 'Chi4v': ('mielke', (3.641407704651825, 4.9160753250874905, -0.19612721404766648, 4.272311768092421), 0.0, 80.31016831275534, 3.997197941292901, 2.1822145921791463), 'MolLogP': ('nct', (5.423133497140618, -0.2505422147848311, 3.787125066469563, 1.447521060093181), -27.121900000000043, 26.476990000000036, 3.357664737331615, 1.8518910248841818), 'Chi2n': ('burr', (5.323167832131418, 0.9614449953883716, -0.5182229173193543, 7.403200388112394), 0.0, 140.4224584835206, 7.320378282785918, 3.6830713407241156), 'fr_Al_OH': ('pareto', (8.075644989366163, -0.6961711017351564, 0.6961711017065046), 0, 37, 0.18985328973028112, 0.5806908433990465), 'LabuteASA': ('mielke', (5.9033344150609555, 6.093254767597408, -1.1647561264561102, 165.59359494140412), 19.375022664857827, 3138.810989711936, 172.78618537968595, 78.72241596326842), 'SMR_VSA5': ('johnsonsu', (-6.770383826447828, 1.5639816052567266, -8.885737844117894, 0.8747218279195421), 0.0, 1059.7000355910607, 31.92088861776502, 31.701702832660054), 'fr_guanido': ('halflogistic', (-2.8948632876909134e-11, 0.012390710083318518), 0, 8, 0.012390867360715251, 0.1352692056473331), 'SlogP_VSA6': ('dweibull', (1.2651196828193871, 44.8855208417171, 19.999416617652344), 0.0, 425.50532391912986, 46.86150277566015, 23.994033852363053), 'NumRadicalElectrons': ('halfnorm', (-3.3556536839857015e-09, 0.047012245813331466), 0, 10, 0.0002900203014210995, 0.047011387972006546), 'HeavyAtomCount': ('mielke', (5.542942710744559, 6.0129203920305345, -0.10475651052005365, 28.19145327714555), 1, 545, 29.187713139919794, 13.728021647131865), 'fr_Ar_COO': ('pearson3', (2.284860216852766, 0.009533409939207087, 0.010891254550521512), 0, 4, 0.019321352494674628, 0.14278703946614923), 'fr_ester': ('wald', (-0.021345006038942453, 0.07132669030690274), 0, 9, 0.12089846289240247, 0.3816605577678055), 'NumSaturatedCarbocycles': ('invweibull', (0.6897602654592729, -1.687045423250026e-28, 0.04100428545396396), 0, 9, 0.16625163761463302, 0.5048961994063688), 'MolMR': ('burr', (6.172170768729716, 0.8936060537538131, -0.6260689145704982, 109.36170666360255), 0.0, 1943.4740000000081, 111.75295175062253, 49.21222833407792), 'fr_SH': ('halflogistic', (-5.627308315330754e-10, 0.002940168145955494), 0, 2, 0.0029402058144070084, 0.057719918625515), 'fr_ketone_Topliss': ('invweibull', (0.7845359779027771, -5.104827196981351e-29, 0.013651958761797665), 0, 5, 0.052113647955356876, 0.24762602874204098), 'MolWt': ('burr', (6.292103975443265, 0.9448356544126613, -2.576132139748636, 398.4147809834958), 6.941, 7906.685999999983, 413.6754726605188, 196.24518387547647), 'Kappa1': ('fisk', (5.090249068250488, 1.5243046476343975, 17.457634086393984), 1.5974025974025972, 452.4780879471051, 20.511369181587643, 10.901150147628785), 'fr_term_acetylene': ('tukeylambda', (1.56196184906287, 0.005212203460720155, 0.008141262955574484), 0, 2, 0.004260298220875461, 0.06634877000162641), 'Chi0n': ('mielke', (4.913702328256858, 5.56535100301131, 0.892757720674525, 15.151908382349568), 1.0, 310.3665679014367, 16.565702068330904, 7.789694974456289), 'SMR_VSA9': ('betaprime', (0.6371524412800221, 0.1653001011937434, -1.1096304834919027e-26, 0.008200829448013355), 0.0, 68.99414199940686, 6.711933474546377, 7.898303955057197), 'fr_hdrzine': ('genexpon', (2.2033965201556205, 4.581950155773536e-11, 1.9344067808226306, -6.071473724440753e-12, 0.021418241524934097), 0, 3, 0.009720680447631334, 0.10023082470639716), 'PEOE_VSA11': ('betaprime', (0.5343466300982029, 2.0391606100747115, -5.644268412961732e-28, 1.3724974434068684), 0.0, 130.7949739456163, 3.9163487225567097, 6.085123241223355), 'PEOE_VSA2': ('genlogistic', (1025.7536859090253, -32.00326592275044, 5.426751909719114), 0.0, 436.5016359224807, 8.968372740727396, 10.688899230076526), 'fr_C_O': ('dweibull', (0.799241338494272, 1.0000000000000002, 1.1376361682177123), 0, 79, 1.3462142349964497, 1.7126177063621493), 'EState_VSA2': ('dgamma', (1.6208597357735999, 14.722163518402503, 5.927601342234055), 0.0, 348.2229478088118, 16.17693847024966, 14.300245340171864), 'fr_aryl_methyl': ('pareto', (2.2590951540541755, -0.03484369022048178, 0.03484369021605811), 0, 10, 0.42467972758093064, 0.7334626175897146), 'EState_VSA9': ('gompertz', (157762717330.9355, -8.297980815964564e-12, 1740272081706.4692), 0.0, 459.53012783207976, 9.405433826279932, 11.29251583636432), 'SlogP_VSA1': ('betaprime', (24.555424043054373, 8.676784435768978, -8.426380550481028, 5.728625412480383), 0.0, 409.4953592555066, 9.984737467652149, 9.779830593415184), 'PEOE_VSA9': ('betaprime', (3.445175492809242, 31.144739014821592, -4.51163967848681, 170.01655826137412), 0.0, 811.1436563731141, 14.95011048070105, 13.041254445054955), 'SMR_VSA2': ('wald', (-0.048767578220460746, 0.16186950174913545), 0.0, 43.27426884633218, 0.29905148573740525, 1.360442550951591), 'fr_quatN': ('halflogistic', (-1.8398640615463982e-10, 0.0022802512521409345), 0, 2, 0.002280159611172782, 0.05094097451844112), 'fr_dihydropyridine': ('tukeylambda', (1.5508163529247363, 0.002932569691259215, 0.004547877033296321), 0, 1, 0.002350164511515806, 0.04842149562213685), 'MinPartialCharge': ('johnsonsu', (-2.7149539980911284, 1.0038367476615098, -0.5139064061681397, 0.008495052829614172), -0.7539104058810929, 1.0, -0.4200780304196831, 0.07189165509088434), 'fr_ketone': ('wald', (-0.01054998963908324, 0.035036217635414556), 0, 6, 0.06421449501465103, 0.27790680727297107), 'MaxAbsEStateIndex': ('t', (1.3108542430395254, 12.75352190648762, 0.7106673064513349), 0.0, 18.093289294329608, 12.009719840202807, 2.3499823939671187), 'MaxAbsPartialCharge': ('johnsonsu', (1.7917111012287341, 0.9884411996798824, 0.509455736564852, 0.019080208112214614), 0.044672166080629815, 3.0, 0.4246995864209025, 0.07158969964653725), 'Chi1v': ('burr', (7.687954133980298, 1.4497345379886477, -5.291458017141911, 14.007066785153341), 0.0, 193.52184470749225, 10.233294455235377, 4.9372866377359905), 'fr_benzodiazepine': ('tukeylambda', (1.5687789926087756, 0.0024158367934644202, 0.0037899140207594472), 0, 1, 0.0019601372096046724, 0.04423002455034584), 'EState_VSA5': ('exponweib', (0.2671814730479748, 1.165636178704992, -1.382245994068274e-31, 22.76769085633479), 0.0, 352.5201628431787, 13.722297283129771, 14.369271762415691), 'VSA_EState7': ('loggamma', (0.00016582407490511742, 4.690543031567471e-07, 5.38971779436177e-08), -0.23935820315780676, 0.0, -2.393749594049651e-06, 0.0007569398071209723), 'fr_C_O_noCOO': ('gennorm', (0.3061307987512025, 1.0, 0.0046024831025323395), 0, 71, 1.2699788985228966, 1.6247465287374963), 'Chi3v': ('mielke', (4.392997381604184, 5.27028468604366, -0.32791696488665867, 5.890409366481655), 0.0, 106.26777041156456, 5.646449010813653, 2.881905780196624), 'PEOE_VSA5': ('gilbrat', (-0.04993824025443838, 0.13664006325267003), 0.0, 73.11939707590946, 2.0398397458425537, 4.669463461453408), 'fr_epoxide': ('hypsecant', (9.775361773901804e-06, 0.004229322664644675), 0, 3, 0.0015001050073505146, 0.041205202260121296), 'fr_prisulfonamd': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0, 0, 0.0, 0.0), 'fr_phenol': ('invweibull', (0.8135991555193818, -4.806156168974463e-28, 0.016229148422267782), 0, 8, 0.05026351844629124, 0.2534132017880052), 'fr_sulfide': ('gengamma', (1.5106281082392625, 0.5574261640341269, -4.4413855396989186e-30, 0.0038351572717300027), 0, 6, 0.08101567109697679, 0.2882927997299278), 'fr_alkyl_halide': ('wald', (-0.04358050576953841, 0.1452321478197392), 0, 17, 0.25484783934875443, 0.9066667900753467), 'NumAromaticHeterocycles': ('halfgennorm', (0.19057145504745865, -1.897689882032624e-17, 2.1261316374019246e-05), 0, 33, 0.9458862120348425, 1.0262824322901387), 'fr_Ar_OH': ('wald', (-0.0100135027386673, 0.03324263418577556), 0, 8, 0.06124428710009701, 0.2766130074506664), 'fr_thiazole': ('wald', (-0.007257531762340398, 0.024068128495977677), 0, 6, 0.04502315162061344, 0.217339283746722), 'fr_imide': ('pearson3', (2.2221583002327714, 0.018063449381832734, 0.02006992198733707), 0, 6, 0.02752192653485744, 0.1778336591269578), 'NumSaturatedRings': ('halfgennorm', (0.23246838885007082, -2.4267394888596534e-25, 0.00026458005932038795), 0, 22, 0.711269788885222, 0.9971159900281824), 'fr_hdrzone': ('wald', (-0.003105521778228028, 0.010274411296672493), 0, 2, 0.019951396597761843, 0.14280545219170362), 'fr_lactone': ('tukeylambda', (1.527151454037369, 0.013585748455595358, 0.020747495508148833), 0, 6, 0.011000770053903774, 0.11242720454031359), 'FractionCSP3': ('gausshyper', (0.4771522405083861, 9.066071275571563, -7.620494949081857, 3.1818106084013347, -4.691817003086665e-28, 1.3215636376781599), 0.0, 1.0, 0.3432847243844843, 0.19586440800503926), 'HallKierAlpha': ('logistic', (-2.756871651517898, 0.6249482292466357), -56.5600000000003, 3.0300000000000002, -2.8236952794487813, 1.362245033459619), 'fr_para_hydroxylation': ('gilbrat', (-0.00874073035192809, 0.023988673379858362), 0, 7, 0.2581980738651706, 0.5588920168597382), 'HeavyAtomMolWt': ('burr', (6.148243331396738, 0.9539656352826273, -2.0597306351675164, 373.86535994513247), 6.941, 7542.798000000015, 389.1014159096795, 184.23918925686846), 'SlogP_VSA12': ('lomax', (1.3526140858007119, -3.8436281815982077e-13, 0.5306720480047502), 0.0, 199.36606648479187, 6.222469001946574, 9.773336061271038), 'fr_allylic_oxid': ('wald', (-0.012125985576272109, 0.04021754130884261), 0, 12, 0.07526526856879981, 0.43369194377652315), 'fr_alkyl_carbamate': ('wald', (-0.0028043421468934076, 0.009276348457582401), 0, 3, 0.018071264988549197, 0.13836470784532925), 'fr_HOCCN': ('wald', (-0.0019826051357043533, 0.006555328648504729), 0, 2, 0.01286090026301841, 0.11373440248499654), 'Chi1n': ('mielke', (4.960260518842145, 5.594233665274178, -0.0629921400622475, 9.415745103559818), 0.0, 179.81742433151658, 9.668289027429788, 4.636496265706159), 'PEOE_VSA4': ('pareto', (1.764490302170505, -1.0130190528730951, 1.0130190526084408), 0.0, 74.63705581047195, 2.871044297114316, 5.252580084878072), 'NOCount': ('dgamma', (0.9114891050741081, 5.999999999999998, 2.360844051557576), 0, 237, 6.576580360625244, 5.165410541429347), 'EState_VSA4': ('foldnorm', (0.005911506485819916, -9.396020384268004e-10, 29.86848626045161), 0.0, 309.6802047001077, 23.73312663187225, 18.134786070135654), 'VSA_EState6': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0.0, 0.0, 0.0, 0.0), 'Chi3n': ('mielke', (3.8419002158163336, 5.021067627998188, -0.12843494993055915, 5.26846058565802), 0.0, 89.41912553532535, 5.1024891606395135, 2.6233324773423217), 'fr_barbitur': ('genhalflogistic', (0.0020825723750872178, -0.0014169372235491489, 0.005286684885304822), 0, 2, 0.0014100987069094837, 0.03805408163051986), 'fr_Al_OH_noTert': ('gompertz', (35118115.876645096, -1.5683266541399722e-10, 5712177.117752606), 0, 37, 0.16987189103237227, 0.5550559671673745), 'fr_COO2': ('wald', (-0.012755896711276589, 0.04241946965978133), 0, 9, 0.07634534417409218, 0.3067871977652909), 'fr_azo': ('genhalflogistic', (0.00040002675029834824, -2.796838513658869e-05, 0.0031033294350019196), 0, 2, 0.0006700469032832298, 0.027011148452530685), 'FpDensityMorgan1': ('t', (7.1357369753127795, 1.0971430458813116, 0.17213544486837606), 0.07971014492753623, 2.111111111111111, 1.0947677251482226, 0.20201147073315795), 'fr_aniline': ('halfgennorm', (0.1049174054668825, -0.0004210957634456598, 2.0561338188621596e-11), 0, 17, 0.6701569109837688, 0.8999932508248457), 'SMR_VSA3': ('dgamma', (1.7525536696583415, 12.349493875194277, 4.09734805299208), 0.0, 394.2610115631847, 12.654567199384484, 11.238213406272283), 'fr_tetrazole': ('wald', (-0.0018040357049599466, 0.005964316702018277), 0, 2, 0.011720820457432021, 0.1080900079828228), 'VSA_EState10': ('gennorm', (0.325862160652744, -1.5857598255070421e-27, 0.009249443355545232), -22.789260764991006, 74.77274927572002, 1.3375950132085297, 3.8197200206817126), 'fr_phenol_noOrthoHbond': ('invweibull', (0.8136034301945807, -5.137954972709019e-29, 0.01610798208070398), 0, 8, 0.049623473643155024, 0.2514798405151786), 'PEOE_VSA8': ('dgamma', (1.49159666908677, 21.468624511796396, 8.385920333308711), 0.0, 311.7903524102208, 25.24827589064641, 16.37842558375825), 'EState_VSA8': ('genexpon', (0.8492139229831794, 0.898456899940423, 1.8794539462657145, -7.998786049300654e-10, 28.40401980183114), 0.0, 364.8615531780818, 21.03371597445418, 18.393077792682497), 'BalabanJ': ('nct', (4.182658638749994, 2.0965263482828114, 1.1271767054584343, 0.2616489125636474), 0.0, 7.289359191119452, 1.8039183288289355, 0.47846986656304485), 'fr_C_S': ('tukeylambda', (1.373229786243365, 0.006142154117625993, 0.008434588986021351), 0, 2, 0.017351214585020952, 0.13360466287284203), 'fr_ArN': ('tukeylambda', (1.4424188577152934, 0.03329139576768536, 0.04802013705497249), 0, 16, 0.05239366755672897, 0.33593599906289534), 'NumAromaticRings': ('dgamma', (2.5851733541458035, 2.495448308226644, 0.3726216029742541), 0, 34, 2.480923664656526, 1.2619073213233434), 'fr_Imine': ('wald', (-0.004133581140781835, 0.013682691065125839), 0, 4, 0.02636184532917304, 0.17166002580284992), 'NumAliphaticCarbocycles': ('halfgennorm', (0.39096958306392793, -4.260236992450893e-24, 0.0012095685496975065), 0, 9, 0.22409568669806887, 0.5847294862795492), 'fr_piperzine': ('invweibull', (0.7886440189451933, -2.4256731163377907e-29, 0.02564081626730841), 0, 5, 0.08231576210334723, 0.28309044391366156), 'fr_nitroso': ('genhalflogistic', (2.1084981882574176e-07, -4.9280506479729835e-05, 0.0027110708397517554), 0, 2, 0.00014000980068604803, 0.012648778519674015), 'FpDensityMorgan2': ('johnsonsu', (0.7111118816857295, 1.7569762969412164, 1.9820508520621796, 0.3566466873696017), 0.13043478260869565, 2.75, 1.807249299497176, 0.26404333001263824), 'SlogP_VSA3': ('genhalflogistic', (0.00150187910000416, -2.3112405176891454e-10, 9.57718508471936), 0.0, 486.412075845355, 13.207558092806261, 14.07198140237455), 'fr_urea': ('wald', (-0.011156011934882477, 0.03708223885227959), 0, 4, 0.06708469592871501, 0.2580011979049133), 'VSA_EState9': ('t', (2.778511535506783, 54.00468044177123, 14.841602340950482), -61.35386460040703, 1513.3333333333328, 58.298150276013196, 32.97223516741629), 'fr_nitro_arom': ('exponweib', (1.1347393331388103, 0.7642415443821742, -9.540668167412522e-31, 0.00766605879556546), 0, 4, 0.03152220655445881, 0.18587317845266496), 'fr_amidine': ('gompertz', (1256395099718.369, -3.6322380930315925e-14, 17278550801.355766), 0, 4, 0.0163211424799736, 0.13976768727132605), 'fr_nitro_arom_nonortho': ('wald', (-0.002927735757054801, 0.009685114750495933), 0, 3, 0.01884131889232246, 0.14002286241970868), 'SlogP_VSA11': ('invweibull', (0.4147001922244138, -1.4325296088889312e-27, 0.4348351110420754), 0.0, 68.99414199940686, 3.2168374575889174, 5.0279560653331945), 'RingCount': ('dgamma', (2.186557671264268, 3.4836909786085286, 0.49776105041563334), 0, 57, 3.4596821777524425, 1.5775840075847496), 'fr_azide': ('hypsecant', (0.0011100250221481181, 0.002817992740312428), 0, 2, 0.0009900693048513396, 0.03238970929040505), 'Ipc': ('ncf', (2.2307091334463722, 0.10899090116091759, 1.0000000000366653, -1.1981582241278056e+221, 0.5596425180505273), 0.0, 9.476131257211451e+221, 1.0245870093128289e+217, inf), 'fr_benzene': ('dgamma', (3.3192814002631734, 1.5061477493525466, 0.23910537147076447), 0, 14, 1.5344274099186943, 0.9561701389956593), 'fr_thiocyan': ('gengamma', (0.5076950581215369, 1.2254477892001665, -1.4543304035389683e-31, 0.00801926074913513), 0, 2, 0.0002900203014210995, 0.017605044440269665), 'PEOE_VSA14': ('pareto', (1.7596722287597166, -2.239860392602096, 2.239860392451776), 0.0, 416.4980987917504, 3.013749589704376, 6.883189641607028), 'PEOE_VSA7': ('dgamma', (1.4806417259357412, 39.98160154845938, 10.168406696469939), 0.0, 508.39601533563194, 41.78662552891026, 19.81428403790816), 'VSA_EState5': ('genhalflogistic', (4.73389199695264e-09, -0.030429032584450635, 0.09155583517487542), 0.0, 68.19071853741498, 0.008147278492018148, 0.5030871156371451), 'EState_VSA7': ('powerlaw', (0.2103250937511124, -1.031145487494383e-26, 231.78083977397324), 0.0, 225.3129516643085, 25.741886434607192, 21.953593999938157), 'fr_N_O': ('exponnorm', (5045.039118637744, -2.4181865220268798e-05, 5.7188007391269775e-06), 0, 6, 0.028882021741521907, 0.23864172665999558), 'VSA_EState4': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0.0, 0.0, 0.0, 0.0), 'EState_VSA6': ('chi', (0.5386485681683548, -2.640567062882436e-29, 30.844792175705116), 0.0, 298.3055333422921, 18.147758868775043, 16.4171251936251), 'PEOE_VSA6': ('exponpow', (0.9016211226446249, -5.748343789415991e-27, 53.824180129747546), 0.0, 415.6833365808712, 30.51404957069927, 23.580292452344), 'fr_diazo': ('halfnorm', (-8.299739916759084e-10, 0.0031623214263548586), 0, 1, 1.000070004900343e-05, 0.0031623725326093326), 'MaxEStateIndex': ('t', (1.3108542430395254, 12.753521906487567, 0.7106673064513349), 0.0, 18.093289294329608, 12.009719840202806, 2.3499823939671187), 'fr_oxime': ('pearson3', (2.517850854435552, 0.009251874821651483, 0.011647420462412978), 0, 3, 0.015401078075465282, 0.1267436305065821), 'SlogP_VSA10': ('betaprime', (0.4375490925573042, 1.8760340999346696, -1.050475196211794e-28, 1.367988164331459), 0.0, 99.49189265982736, 6.345391750680324, 7.373907457789322), 'fr_nitrile': ('invweibull', (0.813385754265167, -2.609225753111669e-30, 0.010587145126146093), 0, 5, 0.04477313411938836, 0.2211084100854278), 'fr_COO': ('wald', (-0.01274707189437067, 0.04238860957269042), 0, 9, 0.07629534067384718, 0.306587684326303), 'VSA_EState8': ('cauchy', (0.4615208647039756, 1.4176964379023667), -4.311579244789392, 610.9052623831149, 9.971522100585924, 18.488170207714543), 'SlogP_VSA2': ('lognorm', (0.5117956692971417, -7.272585382702083, 42.859086084122595), 0.0, 1181.0895715112954, 41.959432071647804, 34.15538345697471), 'fr_priamide': ('exponweib', (1.0954611988211496, 0.7544974723445165, -8.879663989913682e-32, 0.012058631113746431), 0, 6, 0.03770263918474293, 0.21274815822293996), 'SMR_VSA1': ('cauchy', (13.199049915613251, 5.44099244703784), 0.0, 611.7284512306612, 15.881198059745422, 15.324918915564249), 'FpDensityMorgan3': ('johnsonsu', (1.054397168130864, 1.7348730697701296, 2.7630213444641853, 0.3798207348262541), 0.18115942028985507, 3.5454545454545454, 2.4726320476023513, 0.32057971250733736), 'fr_bicyclic': ('beta', (0.5840060328350145, 474.4004348752039, -2.2007759769553093e-31, 286.9088171814874), 0, 31, 0.7892552478673507, 1.2222619740000107), 'TPSA': ('johnsonsu', (-0.8579013079024209, 1.232465212393282, 51.250072658107214, 29.00917664083923), 0.0, 3183.790000000002, 83.57268198773914, 74.84752227939705), 'NumHeteroatoms': ('genlogistic', (22.144409538152043, -1.4241236643022548, 2.462142139013319), 0, 259, 7.61976338343684, 5.484367394332425), 'fr_pyridine': ('gilbrat', (-0.006105798295798184, 0.016715004503743934), 0, 5, 0.22085545988219174, 0.48191548762954484), 'MinEStateIndex': ('cauchy', (-0.4065559618468691, 0.4370714902017909), -9.858201857916416, 1.4242592592592593, -1.1147863044659592, 1.550385821215674), 'NumHDonors': ('johnsonsu', (-6.303785805420036, 1.2935688877340756, -0.44063513396543863, 0.023159008664878106), 0, 104, 1.6016621163481444, 2.2472252977995697), 'NumValenceElectrons': ('t', (2.854251470602213, 144.3027466924646, 32.00913472185999), 0, 2996, 153.57779044533117, 75.10240753520117), 'Chi0': ('fisk', (5.941141785557418, -0.07374276109511947, 19.65464437888598), 0.0, 405.82501416452726, 20.82806399367901, 9.928368342000695), 'Kappa2': ('fisk', (4.668432120081604, 0.2539009602536103, 7.822349728630153), 0.2713156408808583, 225.9686552554005, 8.912276904621457, 5.461845335100644), 'NHOHCount': ('invgamma', (3.8797587021158746, -1.1307664222598288, 8.227943634490117), 0, 117, 1.7429120038402688, 2.563177769965799), 'SMR_VSA10': ('dweibull', (1.1539393051818632, 20.846729374180775, 11.835976638334323), 0.0, 491.00242136254764, 23.906689304667765, 16.4741302013246), 'PEOE_VSA12': ('alpha', (0.5429249279739217, -1.1871493007688236, 2.145045390430375), 0.0, 419.4097607839573, 5.59007921551618, 9.564823801075985), 'PEOE_VSA1': ('burr', (3.9268049096073985, 0.48995232102675695, -1.6407085406832138, 19.294424729301284), 0.0, 561.0838284951058, 14.999241834817811, 13.776374483985686), 'fr_ether': ('fisk', (0.8051168725131534, -2.567380610408963e-22, 0.23753230483392967), 0, 60, 0.8167371716020121, 1.2247008120931449), 'EState_VSA1': ('foldcauchy', (0.0067487067434300755, -2.744934012978528e-09, 4.288215504541297), 0.0, 1261.848165001823, 12.539067008486557, 28.935889287596773), 'VSA_EState3': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0.0, 0.0, 0.0, 0.0), 'SlogP_VSA9': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0.0, 0.0, 0.0, 0.0), 'MaxPartialCharge': ('dgamma', (0.8966427125022032, 0.26138963441733876, 0.06744166351965852), -0.03856361615904991, 3.0, 0.27854710402529237, 0.08364524848258846), 'BertzCT': ('beta', (18.188950676898635, 6538386706999.18, -671.968519633414, 592927086280210.0), 0.0, 30826.22636467273, 987.5790655792254, 632.1534060688446), 'fr_isocyan': ('genhalflogistic', (2.176451524678801e-10, -8.586837508181029e-13, 0.003318792604734705), 0, 1, 0.00011000770053903773, 0.010487878662763976), 'fr_phos_ester': ('genhalflogistic', (3.2594653253264924e-11, -0.0012483281868383108, 0.02952659923331233), 0, 22, 0.007020491434400408, 0.3369253069398357), 'fr_Nhpyrrole': ('wald', (-0.01991313112984635, 0.06651081784403544), 0, 13, 0.11327792945506185, 0.3729728496055485), 'RDKit2D_calculated': ('betaprime', (0.3413091898181908, 238.4251067091114, 0.9999999999999999, 0.8834384815227141), True, True, 1.0, 0.0), 'fr_sulfone': ('pearson3', (2.196096781694557, 0.009513879681788937, 0.01044670027530296), 0, 3, 0.021361495304671328, 0.14807178403739918), 'MinAbsPartialCharge': ('laplace', (0.26315857867884, 0.0561294628943012), 0.00017822665335796042, 1.0, 0.2739606546909672, 0.07533771658554175), 'SMR_VSA6': ('recipinvgauss', (0.5082650634594839, -6.086954132180281, 8.524443845355009), 0.0, 817.1820035633156, 19.209113622421707, 17.41580422042883), 'fr_thiophene': ('halfgennorm', (0.5766089104240131, -6.723634040192055e-19, 0.0018219011330323374), 0, 3, 0.050743552048643406, 0.22669113213778155), 'EState_VSA11': ('genhalflogistic', (0.0010872264517366357, -4.398093849911524e-07, 0.31899977022818193), 0.0, 163.01426425844207, 0.11426916104059913, 1.8841357303463615), 'fr_NH0': ('foldnorm', (0.05865369911318355, -2.4259159741023723e-09, 2.811848848966825), 0, 59, 2.174432210254718, 1.785860796591467), 'SlogP_VSA5': ('genexpon', (0.002852587331303075, 0.23353705964951516, 0.2144337777778184, -2.3573191470339223, 4.447211770059805), 0.0, 649.935656436369, 30.740541351785637, 23.895007786195226), 'EState_VSA10': ('genexpon', (2.705707701965304, 3.771883657629245, 5.375903761907104, -4.354556984551863e-07, 54.16500289129278), 0.0, 322.991248574887, 11.740129013811245, 11.161898269805397), 'fr_NH1': ('exponnorm', (2892.636726669909, -0.0012981492832112645, 0.00037957863319105643), 0, 70, 1.1072875101257087, 1.5590446880501752), 'SlogP_VSA4': ('halfgennorm', (0.13290288528045635, -2.16370553583873e-12, 4.03300081749346e-08), 0.0, 116.32363116174835, 6.358583799897668, 7.800100182361395), 'fr_Ndealkylation2': ('wald', (-0.031069214119069204, 0.10443777001623708), 0, 12, 0.16626163831468202, 0.4316735416648144), 'SMR_VSA7': ('dweibull', (1.215378550488066, 56.28465156519039, 23.02916244099079), 0.0, 551.7863436604832, 58.73997506473642, 28.427064508331743), 'fr_nitro': ('wald', (-0.006030983799621385, 0.019984499845659677), 0, 4, 0.03786265038552699, 0.20368952922550065), 'SlogP_VSA8': ('ncf', (0.010351345715274272, 2.238220060195106, 2.3979254167173853, -2.0305306869043397e-08, 0.00093545475888877), 0.0, 133.9023781814824, 6.766619840611257, 8.671848120645365), 'VSA_EState2': ('genlogistic', (1.415613774458108, -4.0305012625995696e-05, 0.001088572076970272), -0.7726899469689867, 0.0802671757431348, -3.2739988469591856e-05, 0.004083178209614408), 'NumAromaticCarbocycles': ('dgamma', (3.319688925350106, 1.5062285243564748, 0.23908502549666388), 0, 14, 1.5350374526216835, 0.956147979224174), 'fr_furan': ('halfgennorm', (0.5939855958815875, -5.726016095250532e-19, 0.001778526530384881), 0, 2, 0.038802716190133306, 0.19747704781754222), 'PEOE_VSA13': ('halfgennorm', (0.2726011593040699, -6.070628359122943e-24, 0.0023718323492315794), 0.0, 78.17764936502758, 3.30010114873348, 4.358778167233281), 'fr_oxazole': ('wald', (-0.0018806042805029088, 0.006217750403694874), 0, 2, 0.012210854759833188, 0.11073284872542345), 'Kappa3': ('foldnorm', (0.7381901404044835, 0.07499999952842873, 4.410636124980368), 0.07500000000000012, 1760.9964197530858, 4.873556896466643, 6.732045653350472), 'fr_morpholine': ('exponweib', (1.5683748664994073, 0.5053553495208175, -2.1400950538163005e-30, 0.0033466480252323464), 0, 3, 0.046923284629924095, 0.21977656974074022), 'fr_unbrch_alkane': ('genhalflogistic', (0.0001735874860695949, -2.406745376333286e-08, 0.2558409046054385), 0, 167, 0.2555878911523807, 1.8216755193439447), 'fr_amide': ('recipinvgauss', (220103.5665089948, -1.4778017808899836e-11, 0.7451439305459917), 0, 71, 1.1422999609972697, 1.6398141260141192), 'NumRotatableBonds': ('mielke', (2.902960148717509, 4.199193993037961, -0.9968227721720102, 8.267126836374882), 0, 304, 7.140309821687518, 6.233943765856294), 'Chi1': ('mielke', (5.372526418714403, 6.068367649928466, -0.06790886881111757, 13.725737593680664), 0.0, 256.9697300670324, 14.033526281218712, 6.54332057037178), 'fr_phos_acid': ('genhalflogistic', (3.2594653253264924e-11, -0.0012483281868383108, 0.02952659923331233), 0, 22, 0.007130499134939446, 0.3375013082055841), 'fr_piperdine': ('halfgennorm', (0.4238794287379706, -1.2796542653568352e-22, 0.0018770831152461857), 0, 6, 0.14572020041402897, 0.39164760531240855), 'fr_isothiocyan': ('genhalflogistic', (8.886662035991823e-09, -0.0008924947259535538, 0.002685293974604489), 0, 2, 0.0002300161011270789, 0.015810268619422887), 'MinAbsEStateIndex': ('genpareto', (0.11654274500988507, -4.295406365103898e-11, 0.13245709790535898), 0.0, 2.5115740740740735, 0.15016751055787822, 0.17292082606243664), 'fr_methoxy': ('gilbrat', (-0.01550907507397075, 0.042866902160229356), 0, 8, 0.31338193673557146, 0.6523713877037112) }
149.727273
211
0.757006
3,335
31,293
7.052174
0.446177
0.010375
0.005357
0.005612
0.038054
0.036184
0.036184
0.032952
0.032952
0.032952
0
0.695107
0.085003
31,293
208
212
150.447115
0.126288
0
0
0
0
0
0.119164
0.006519
0
0
0
0
0
1
0
false
0
0.009662
0
0.009662
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9524bf3290b6d8f286fd06d32e6b070c02c90bcd
365
py
Python
dsigm/_exceptions.py
paradoxysm/dsigm
42d6f5458fdb52f03c14e25b5cbcd31a2183434a
[ "BSD-3-Clause" ]
null
null
null
dsigm/_exceptions.py
paradoxysm/dsigm
42d6f5458fdb52f03c14e25b5cbcd31a2183434a
[ "BSD-3-Clause" ]
7
2020-03-05T21:35:02.000Z
2020-03-31T02:52:26.000Z
dsigm/_exceptions.py
paradoxysm/dsigm
42d6f5458fdb52f03c14e25b5cbcd31a2183434a
[ "BSD-3-Clause" ]
1
2020-03-05T20:42:06.000Z
2020-03-05T20:42:06.000Z
"""Warnings""" # Authors: Jeffrey Wang # License: BSD 3 clause class ConvergenceWarning(UserWarning): """ Custom warning to capture convergence issues. """ class InitializationWarning(UserWarning): """ Custom warning to capture initialization issues. """ class StabilizationWarning(UserWarning): """ Custom warning to capture stabilization issues. """
18.25
49
0.745205
35
365
7.771429
0.6
0.1875
0.264706
0.286765
0.363971
0
0
0
0
0
0
0.003205
0.145205
365
19
50
19.210526
0.86859
0.536986
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
0
0
0
3