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
05931b681ebfbd6159a5aa943ad8e71c8940fce7
118
py
Python
fixedeffect/fe/__init__.py
rphilipzhang/FixedEffectModel
017a6f555fff44392d33e45e26c406d02ddde109
[ "BSD-3-Clause" ]
null
null
null
fixedeffect/fe/__init__.py
rphilipzhang/FixedEffectModel
017a6f555fff44392d33e45e26c406d02ddde109
[ "BSD-3-Clause" ]
null
null
null
fixedeffect/fe/__init__.py
rphilipzhang/FixedEffectModel
017a6f555fff44392d33e45e26c406d02ddde109
[ "BSD-3-Clause" ]
null
null
null
from .did import did from .fe import fixedeffect from .getfe import getfe __all__ = ["did", "fixedeffect"]
19.666667
27
0.677966
15
118
5.066667
0.466667
0
0
0
0
0
0
0
0
0
0
0
0.228814
118
6
28
19.666667
0.835165
0
0
0
0
0
0.117647
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
55b9574db1a87cbe42357870eb1dc86f9ddaacc9
1,187
py
Python
tests/importing/test_import_class_from_path.py
PaulRenvoise/flashback
f9a16f4b0cb12a2180206c7b95d9eb8fb256381d
[ "MIT" ]
3
2021-06-08T11:40:59.000Z
2022-03-31T16:22:56.000Z
tests/importing/test_import_class_from_path.py
PaulRenvoise/flashback
f9a16f4b0cb12a2180206c7b95d9eb8fb256381d
[ "MIT" ]
28
2020-04-28T22:36:14.000Z
2021-06-06T20:32:00.000Z
tests/importing/test_import_class_from_path.py
PaulRenvoise/flashback
f9a16f4b0cb12a2180206c7b95d9eb8fb256381d
[ "MIT" ]
null
null
null
# pylint: disable=no-self-use,redefined-outer-name import pytest from flashback.importing import import_class_from_path class TestImportClassFromPath: def test_valid_class_valid_relative_path(self): cls = import_class_from_path("dummy_class", path=".dummy_package") assert isinstance(cls, object) def test_valid_class_valid_absolute_path(self): cls = import_class_from_path("dummy_class", path="tests.importing.dummy_package") assert isinstance(cls, object) def test_valid_class_valid_toplevel_path(self): cls = import_class_from_path("dummy_class", path="..importing.dummy_package") assert isinstance(cls, object) def test_invalid_class_invalid_path(self): with pytest.raises(ImportError): import_class_from_path("invalid_class", path=".invalid_package") def test_valid_class_invalid_path(self): with pytest.raises(ImportError): import_class_from_path("dummy_class", path=".invalid_package") def test_invalid_class_valid_path(self): with pytest.raises(AttributeError): import_class_from_path("mismatching_dummy_class", path=".dummy_package")
33.914286
89
0.73968
150
1,187
5.446667
0.233333
0.094247
0.128519
0.162791
0.711138
0.623011
0.560588
0.543452
0.543452
0.467564
0
0
0.168492
1,187
34
90
34.911765
0.827761
0.040438
0
0.238095
0
0
0.170624
0.067722
0
0
0
0
0.142857
1
0.285714
false
0
0.52381
0
0.857143
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
1
0
1
0
0
4
e95f145cfc56a0229730734de97263986d75f3fe
180
py
Python
app_catalog/component_catalog/views.py
mail2nsrajesh/app-catalog-ui
4f5e9f658b309b361f0148945a0a1ae63621090d
[ "Apache-2.0" ]
null
null
null
app_catalog/component_catalog/views.py
mail2nsrajesh/app-catalog-ui
4f5e9f658b309b361f0148945a0a1ae63621090d
[ "Apache-2.0" ]
null
null
null
app_catalog/component_catalog/views.py
mail2nsrajesh/app-catalog-ui
4f5e9f658b309b361f0148945a0a1ae63621090d
[ "Apache-2.0" ]
null
null
null
from app_catalog.app_catalog.views import IndexView as ACView class IndexView(ACView): # A very simple class-based view... template_name = 'component_catalog/index.html'
25.714286
61
0.766667
25
180
5.36
0.76
0.149254
0
0
0
0
0
0
0
0
0
0
0.15
180
6
62
30
0.875817
0.183333
0
0
0
0
0.193103
0.193103
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e974322b49469559a2923f3974adcb004e10e6eb
3,970
py
Python
tests.py
dimitriyremerov/xye-bot
c675aaa0d2f83367ce4f5bc5f5f075db33d885fa
[ "Apache-2.0" ]
null
null
null
tests.py
dimitriyremerov/xye-bot
c675aaa0d2f83367ce4f5bc5f5f075db33d885fa
[ "Apache-2.0" ]
null
null
null
tests.py
dimitriyremerov/xye-bot
c675aaa0d2f83367ce4f5bc5f5f075db33d885fa
[ "Apache-2.0" ]
1
2019-01-11T05:17:56.000Z
2019-01-11T05:17:56.000Z
# coding=utf-8 import sys # local sys.path.insert(1, '/usr/local/google_appengine') sys.path.insert(1, '/usr/local/google_appengine/lib/yaml/lib') # travis sys.path.insert(1, 'google_appengine') sys.path.insert(1, 'google_appengine/lib/yaml/lib') sys.path.insert(1, './lib') from unittest import TestCase import webapp2 from webapp2_extras import json from main import app, huify class TestApp(TestCase): def test_show_error(self): request = webapp2.Request.blank("/") response = request.get_response(app) self.assertEqual(response.status_int, 200) self.assertIn("application/json", response.headers['Content-Type']) self.assertDictEqual( json.decode(response.body), {"name": 'Hello World! I am XyE_bot (https://telegram.me/xye_bot)', "result": "Info"}) def test_get(self): request = webapp2.Request.blank("/") response = request.get_response(app) self.assertEqual(response.status_int, 200) self.assertIn("application/json", response.headers['Content-Type']) self.assertDictEqual( json.decode(response.body), {"name": 'Hello World! I am XyE_bot (https://telegram.me/xye_bot)', "result": "Info"}) def test_bad_post(self): request = webapp2.Request.blank("/") request.method = "POST" response = request.get_response(app) self.assertEqual(response.status_int, 200) self.assertIn("application/json", response.headers['Content-Type']) self.assertDictEqual( json.decode(response.body), {"name": 'Hello World! I am XyE_bot (https://telegram.me/xye_bot)', "result": "Info"}) def test_json_empty_post(self): request = webapp2.Request.blank("/") request.method = "POST" request.headers["Content-Type"] = "application/json" response = request.get_response(app) self.assertEqual(response.status_int, 200) self.assertIn("application/json", response.headers['Content-Type']) self.assertDictEqual( json.decode(response.body), {"name": 'Hello World! I am XyE_bot (https://telegram.me/xye_bot)', "result": "Info"}) def test_json_start_post(self): request = webapp2.Request.blank("/") request.method = "POST" request.headers["Content-Type"] = "application/json" request.body = json.encode({ 'update': 1, 'message': { u'date': 1450696897, u'text': u'/start', u'from': { u'username': u'm_messiah', u'first_name': u'Maxim', u'last_name': u'Muzafarov', u'id': 3798371 }, u'message_id': 1, u'chat': { u'type': u'user', u'id': 3798371, u'username': u'm_messiah', u'first_name': u'Maxim', u'last_name': u'Muzafarov', } } }) response = request.get_response(app) self.assertEqual(response.status_int, 200) self.assertIn("application/json", response.headers['Content-Type']) self.assertDictEqual( json.decode(response.body), { 'method': 'sendMessage', 'text': u"Привет! Я бот-хуебот.\n" u"Я буду хуифицировать " u"некоторые из твоих фраз", 'chat_id': 3798371, } ) def test_huify(self): self.assertEqual(huify(u'привет'), u"хуивет") self.assertEqual(huify(u'привет бот'), u"хуебот") self.assertEqual(huify(u'доброе утро'), u"хуютро") self.assertEqual(huify(u'ты пьяный'), u"хуяный")
37.809524
83
0.551134
431
3,970
4.976798
0.234339
0.062937
0.058741
0.032634
0.767832
0.733333
0.706294
0.706294
0.671795
0.648019
0
0.022369
0.313098
3,970
104
84
38.173077
0.76421
0.006297
0
0.526882
0
0
0.232936
0.024359
0
0
0
0
0.204301
1
0.064516
false
0
0.053763
0
0.129032
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e98682d0724e57fdb6ea5ea7d9767bd25937af72
144
py
Python
reddit2telegram/channels/~inactive/learntodrawx/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/~inactive/learntodrawx/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/~inactive/learntodrawx/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'learntodraw' t_channel = '@Learntodrawx' def send_post(submission, r2t): return r2t.send_simple(submission)
16
38
0.75
18
144
5.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.024
0.131944
144
8
39
18
0.816
0.097222
0
0
0
0
0.186047
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
e9bc3f31c0f55d1ee48e8047b8a3e9d590f8233a
116
py
Python
apis/strings/scratch.py
johnatspreadstreet/Morph-RESTful-HTTP-Utility-API
7549b1c0e700714ba264b4b5eaf4514e16b86fcd
[ "Python-2.0" ]
null
null
null
apis/strings/scratch.py
johnatspreadstreet/Morph-RESTful-HTTP-Utility-API
7549b1c0e700714ba264b4b5eaf4514e16b86fcd
[ "Python-2.0" ]
12
2021-05-06T19:29:04.000Z
2022-02-26T10:01:34.000Z
apis/strings/scratch.py
johnatspreadstreet/Morph-RESTful-HTTP-Utility-API
7549b1c0e700714ba264b4b5eaf4514e16b86fcd
[ "Python-2.0" ]
null
null
null
def splitter(string): split = string.split(' ') return split print(splitter('this is a very messy string'))
23.2
46
0.681034
16
116
4.9375
0.6875
0.278481
0
0
0
0
0
0
0
0
0
0
0.189655
116
5
46
23.2
0.840426
0
0
0
0
0
0.239316
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
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
1
0
0
0
0
0
0
0
4
75989762d54825feb80a074c36c53cc1ba756524
172
py
Python
lib/search/heuristic.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
lib/search/heuristic.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
lib/search/heuristic.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
""" This module contains heuristic search algorithm implemtations, like A*. The ``lib.search.graph.Graph`` is supposed to be used as a bases for these implementations. """
24.571429
48
0.761628
25
172
5.24
0.88
0
0
0
0
0
0
0
0
0
0
0
0.139535
172
6
49
28.666667
0.885135
0.947674
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
75aeb315a2b8212cf930db77e2b2c293abc3c214
367
py
Python
slixmpp/plugins/xep_0012/__init__.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
86
2016-07-04T13:26:02.000Z
2022-02-19T10:26:21.000Z
slixmpp/plugins/xep_0012/__init__.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
10
2016-09-30T18:55:41.000Z
2020-05-01T14:22:47.000Z
slixmpp/plugins/xep_0012/__init__.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
45
2016-09-30T18:48:41.000Z
2022-03-18T21:39:33.000Z
# Slixmpp: The Slick XMPP Library # Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout # This file is part of Slixmpp. # See the file LICENSE for copying permission. from slixmpp.plugins.base import register_plugin from slixmpp.plugins.xep_0012.stanza import LastActivity from slixmpp.plugins.xep_0012.last_activity import XEP_0012 register_plugin(XEP_0012)
28.230769
59
0.80654
57
367
5.070175
0.631579
0.096886
0.186851
0.145329
0.17301
0
0
0
0
0
0
0.062696
0.13079
367
12
60
30.583333
0.84326
0.441417
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
75bbcc8c5f081747a0f426a764a7e6fc66a47849
175
py
Python
MuonAnalysis/Configuration/python/muonL1_SkimPath_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
MuonAnalysis/Configuration/python/muonL1_SkimPath_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
MuonAnalysis/Configuration/python/muonL1_SkimPath_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms # this is just Juan's sequence to select l1 muons from MuonAnalysis.Configuration.muonL1_cfi import * muonL1Path = cms.Path(muonL1)
25
51
0.805714
26
175
5.384615
0.884615
0
0
0
0
0
0
0
0
0
0
0.026316
0.131429
175
6
52
29.166667
0.894737
0.268571
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
75d94a7b970700b33fc8b4d1c62c303635814573
135
py
Python
jason_tuple.py
Estheryu991/Elice_Coding_Python_I
40d715f7f93893300e78cf6aba83122016266f52
[ "CC0-1.0" ]
null
null
null
jason_tuple.py
Estheryu991/Elice_Coding_Python_I
40d715f7f93893300e78cf6aba83122016266f52
[ "CC0-1.0" ]
1
2021-12-05T08:22:57.000Z
2021-12-05T08:22:57.000Z
jason_tuple.py
Estheryu991/Elice_Coding_Python_I
40d715f7f93893300e78cf6aba83122016266f52
[ "CC0-1.0" ]
null
null
null
#create list List = [1,2,3,4] Tuple = (8,1,2011) print("Size of list:", List.__sizeof__()) print("Size of tuple:", Tuple.__sizeof__())
22.5
43
0.659259
23
135
3.521739
0.565217
0.197531
0.271605
0
0
0
0
0
0
0
0
0.084034
0.118519
135
5
44
27
0.596639
0.081481
0
0
0
0
0.219512
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
4
75e0637117efe275dd31a199ca7bd929601d5906
289
py
Python
water/dict_def.py
One-Green/plant-keeper-master
67101a4cc7070d26fd1685631a710ae9a60fc5e8
[ "CC0-1.0" ]
2
2022-02-04T17:52:38.000Z
2022-02-04T17:52:40.000Z
water/dict_def.py
One-Green/plant-keeper-master
67101a4cc7070d26fd1685631a710ae9a60fc5e8
[ "CC0-1.0" ]
4
2021-06-16T20:01:50.000Z
2022-03-09T20:17:53.000Z
water/dict_def.py
One-Green/plant-keeper-master
67101a4cc7070d26fd1685631a710ae9a60fc5e8
[ "CC0-1.0" ]
1
2021-06-27T10:45:36.000Z
2021-06-27T10:45:36.000Z
from typing import TypedDict class WaterCtrlDict(TypedDict): tag: str water_pump_signal: int nutrient_pump_signal: int ph_downer_pump_signal: int mixer_pump_signal: int tds_max_level: float tds_min_level: float ph_max_level: float ph_min_level: float
20.642857
31
0.743945
42
289
4.714286
0.5
0.20202
0.262626
0
0
0
0
0
0
0
0
0
0.214533
289
13
32
22.230769
0.872247
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.090909
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
75e5cda9d0be4cdbdfa981bfe8fea77ec6c31916
77
py
Python
environments/gym-visual/gym_visual/envs/__init__.py
zhihanyang2022/hierarchical_pomdp
18bb0d1f148ab69366e64c1ef2c90142113bf787
[ "MIT" ]
null
null
null
environments/gym-visual/gym_visual/envs/__init__.py
zhihanyang2022/hierarchical_pomdp
18bb0d1f148ab69366e64c1ef2c90142113bf787
[ "MIT" ]
null
null
null
environments/gym-visual/gym_visual/envs/__init__.py
zhihanyang2022/hierarchical_pomdp
18bb0d1f148ab69366e64c1ef2c90142113bf787
[ "MIT" ]
null
null
null
from gym_visual.envs.continuous_mountain_car import Continuous_MountainCarEnv
77
77
0.935065
10
77
6.8
0.9
0
0
0
0
0
0
0
0
0
0
0
0.038961
77
1
77
77
0.918919
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f9406f867d6fa90d78e664345ac5eb2b6112da56
130
py
Python
OverApp/apps.py
sheissage/overnightasiasg
83351e51b26a0ff3759030d5165cc87e987ff07d
[ "Apache-2.0" ]
null
null
null
OverApp/apps.py
sheissage/overnightasiasg
83351e51b26a0ff3759030d5165cc87e987ff07d
[ "Apache-2.0" ]
null
null
null
OverApp/apps.py
sheissage/overnightasiasg
83351e51b26a0ff3759030d5165cc87e987ff07d
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class OverappConfig(AppConfig): name = 'OverApp'
16.25
39
0.792308
15
130
6.533333
0.8
0
0
0
0
0
0
0
0
0
0
0
0.153846
130
7
40
18.571429
0.890909
0
0
0
0
0
0.053846
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f9667dd7a6fb53f2d2fe2d6d1c9eec650e5eaf1c
317
py
Python
tests/test_day17.py
khwilson/advent2020
066591265af5afe905fc583b9a67894d197297ae
[ "MIT" ]
null
null
null
tests/test_day17.py
khwilson/advent2020
066591265af5afe905fc583b9a67894d197297ae
[ "MIT" ]
null
null
null
tests/test_day17.py
khwilson/advent2020
066591265af5afe905fc583b9a67894d197297ae
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from advent import day17 def test_first(fixture_path: Path): assert day17.first(fixture_path / "example17.txt") == 112 @pytest.mark.skip("This test takes a long time") def test_second(fixture_path: Path): assert day17.second(fixture_path / "example17.txt") == 848
21.133333
62
0.744479
47
317
4.893617
0.510638
0.191304
0.13913
0.182609
0.226087
0
0
0
0
0
0
0.05948
0.15142
317
14
63
22.642857
0.795539
0
0
0
0
0
0.167192
0
0
0
0
0
0.25
1
0.25
false
0
0.375
0
0.625
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
1
0
1
0
0
4
f969f37ee01948cbb4b224a514b1d9ede90dc44e
214
py
Python
src/tempra/units.py
jasondraether/tempra
832b319960ac3ec312dc240b6c7b1101d6bb5b78
[ "MIT" ]
null
null
null
src/tempra/units.py
jasondraether/tempra
832b319960ac3ec312dc240b6c7b1101d6bb5b78
[ "MIT" ]
null
null
null
src/tempra/units.py
jasondraether/tempra
832b319960ac3ec312dc240b6c7b1101d6bb5b78
[ "MIT" ]
null
null
null
class Unit(object): def __init__(self): pass def __str__(self): pass class Seconds(Unit): def __init__(self): super().__init__() def __str__(self): return "(s)"
13.375
26
0.546729
24
214
4.041667
0.5
0.14433
0.226804
0
0
0
0
0
0
0
0
0
0.327103
214
15
27
14.266667
0.673611
0
0
0.6
0
0
0.014085
0
0
0
0
0
0
1
0.4
false
0.2
0
0.1
0.7
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
f9c6b17d1a90aeb3617f1e5ae741364d1db72599
360
py
Python
award/serializer.py
Julia-Agasaro/award
cd25d62e646847dfc8429c2f3abfaa93927be1b5
[ "MIT" ]
null
null
null
award/serializer.py
Julia-Agasaro/award
cd25d62e646847dfc8429c2f3abfaa93927be1b5
[ "MIT" ]
3
2020-06-05T23:54:06.000Z
2021-06-10T22:09:40.000Z
award/serializer.py
Julia-Agasaro/award
cd25d62e646847dfc8429c2f3abfaa93927be1b5
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Profile,Post class ProfileSerializer(serializers.ModelSerializer): class Meta: model = Profile fields = ('bio', 'email', 'profile_photo') class PostSerializer(serializers.ModelSerializer): class Meta: model = Post fields = ('name', 'site_link', 'description')
30
53
0.697222
36
360
6.888889
0.611111
0.209677
0.25
0.282258
0.322581
0
0
0
0
0
0
0
0.202778
360
12
54
30
0.864112
0
0
0.2
0
0
0.124654
0
0
0
0
0
0
1
0
false
0
0.2
0
0.6
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
f9cbc264a3ca1076cf7f54c6b9876af270e84291
167
py
Python
egi_notebooks_accounting/utils.py
enolfc/egi-notebooks-accounting
f2dfda199a8909688e467e9dcea3eb0a37efaef7
[ "Apache-2.0" ]
null
null
null
egi_notebooks_accounting/utils.py
enolfc/egi-notebooks-accounting
f2dfda199a8909688e467e9dcea3eb0a37efaef7
[ "Apache-2.0" ]
null
null
null
egi_notebooks_accounting/utils.py
enolfc/egi-notebooks-accounting
f2dfda199a8909688e467e9dcea3eb0a37efaef7
[ "Apache-2.0" ]
null
null
null
NAMESPACE_FILE = '/var/run/secrets/kubernetes.io/serviceaccount/namespace' def get_k8s_namespace(): with open(NAMESPACE_FILE, 'r') as f: return f.read()
23.857143
74
0.712575
23
167
5
0.782609
0.226087
0
0
0
0
0
0
0
0
0
0.007092
0.155689
167
6
75
27.833333
0.808511
0
0
0
0
0
0.335329
0.329341
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
f9d64958d6674391cfb68c812bdb3ceb07c58d6d
162
py
Python
demotivational_policy_descent/utils/io.py
fcole90/demotivational-policy-descent
9193487587c03530bf5a962fda7b6ac5a4ceaae4
[ "MIT" ]
null
null
null
demotivational_policy_descent/utils/io.py
fcole90/demotivational-policy-descent
9193487587c03530bf5a962fda7b6ac5a4ceaae4
[ "MIT" ]
1
2019-11-24T18:16:55.000Z
2019-11-24T18:17:01.000Z
demotivational_policy_descent/utils/io.py
fcole90/demotivational-policy-descent
9193487587c03530bf5a962fda7b6ac5a4ceaae4
[ "MIT" ]
null
null
null
import os IO_FILE_PATH = os.path.realpath(__file__) UTILS_PATH = os.path.dirname(IO_FILE_PATH) MODELS_PATH= os.path.join(UTILS_PATH, os.pardir, "save_models")
20.25
63
0.783951
28
162
4.107143
0.428571
0.208696
0.26087
0
0
0
0
0
0
0
0
0
0.092593
162
7
64
23.142857
0.782313
0
0
0
0
0
0.067901
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f9dfb3c1abf4b4b9f3fa2bfa56279d5ecd3cf1aa
7,843
py
Python
datadotworld/client/_swagger/models/__init__.py
DanialBetres/data.world-py
0e3acf2be9a07c5ab62ecac9289eb662088d54c7
[ "Apache-2.0" ]
99
2017-01-23T16:24:18.000Z
2022-03-30T22:51:58.000Z
datadotworld/client/_swagger/models/__init__.py
DanialBetres/data.world-py
0e3acf2be9a07c5ab62ecac9289eb662088d54c7
[ "Apache-2.0" ]
77
2017-01-26T04:33:06.000Z
2022-03-11T09:39:50.000Z
datadotworld/client/_swagger/models/__init__.py
DanialBetres/data.world-py
0e3acf2be9a07c5ab62ecac9289eb662088d54c7
[ "Apache-2.0" ]
29
2017-01-25T16:55:23.000Z
2022-01-31T01:44:15.000Z
# coding: utf-8 """ data.world API # data.world in a nutshell data.world is a productive, secure platform for modern data teamwork. We bring together your data practitioners, subject matter experts, and other stakeholders by removing costly barriers to data discovery, comprehension, integration, and sharing. Everything your team needs to quickly understand and use data stays with it. Social features and integrations encourage collaborators to ask and answer questions, share discoveries, and coordinate closely while still using their preferred tools. Our focus on interoperability helps you enhance your own data with data from any source, including our vast and growing library of free public datasets. Sophisticated permissions, auditing features, and more make it easy to manage who views your data and what they do with it. # Conventions ## Authentication All data.world API calls require an API token. OAuth2 is the preferred and most secure method for authenticating users of your data.world applications. Visit our [oauth documentation](https://apidocs.data.world/toolkit/oauth) for additional information. Alternatively, you can obtain a token for _personal use or testing_ by navigating to your profile settings, under the Advanced tab ([https://data.world/settings/advanced](https://data.world/settings/advanced)). Authentication must be provided in API requests via the `Authorization` header. For example, for a user whose API token is `my_api_token`, the request header should be `Authorization: Bearer my_api_token` (note the `Bearer` prefix). ## Content type By default, `application/json` is the content type used in request and response bodies. Exceptions are noted in respective endpoint documentation. ## HTTPS only Our APIs can only be accessed via HTTPS. # Interested in building data.world apps? Check out our [developer portal](https://apidocs.data.world) for tips on how to get started, tutorials, and to interact with the API endpoints right within your browser. OpenAPI spec version: 0.21.0 Contact: help@data.world Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # import models into model package from .agent_hydration_dto import AgentHydrationDto from .analysis_image import AnalysisImage from .asset_status import AssetStatus from .catalog_analysis_hydration_dto import CatalogAnalysisHydrationDto from .catalog_analysis_request import CatalogAnalysisRequest from .catalog_business_term_hydration_dto import CatalogBusinessTermHydrationDto from .catalog_column_hydration_dto import CatalogColumnHydrationDto from .catalog_column_request import CatalogColumnRequest from .catalog_concept_hydration_dto import CatalogConceptHydrationDto from .catalog_glossary_request import CatalogGlossaryRequest from .catalog_hydration_dto import CatalogHydrationDto from .catalog_id import CatalogId from .catalog_request import CatalogRequest from .catalog_table_hydration_dto import CatalogTableHydrationDto from .catalog_table_request import CatalogTableRequest from .concept_entry import ConceptEntry from .connection_dto import ConnectionDto from .create_dataset_response import CreateDatasetResponse from .create_insight_response import CreateInsightResponse from .create_project_response import CreateProjectResponse from .create_query_request import CreateQueryRequest from .create_response import CreateResponse from .custom_dataset_or_project_metadata_request import CustomDatasetOrProjectMetadataRequest from .database_credentials import DatabaseCredentials from .database_dbo import DatabaseDbo from .database_source_reference import DatabaseSourceReference from .dataset_create_request import DatasetCreateRequest from .dataset_hydration_dto import DatasetHydrationDto from .dataset_identifier import DatasetIdentifier from .dataset_patch_request import DatasetPatchRequest from .dataset_put_request import DatasetPutRequest from .dataset_summary_response import DatasetSummaryResponse from .doi import Doi from .edit_activities_result_dto import EditActivitiesResultDto from .entry_type import EntryType from .error_message import ErrorMessage from .file_batch_update_request import FileBatchUpdateRequest from .file_create_or_update_request import FileCreateOrUpdateRequest from .file_create_request import FileCreateRequest from .file_source_create_or_update_request import FileSourceCreateOrUpdateRequest from .file_source_create_request import FileSourceCreateRequest from .file_source_summary_response import FileSourceSummaryResponse from .file_summary_response import FileSummaryResponse from .insight_body import InsightBody from .insight_create_request import InsightCreateRequest from .insight_hydration_dto import InsightHydrationDto from .insight_patch_request import InsightPatchRequest from .insight_put_request import InsightPutRequest from .insight_summary_response import InsightSummaryResponse from .instant import Instant from .json_node import JsonNode from .linked_dataset_create_or_update_request import LinkedDatasetCreateOrUpdateRequest from .linked_dataset_summary_response import LinkedDatasetSummaryResponse from .metadata_resource_dto import MetadataResourceDto from .oauth_token_reference import OauthTokenReference from .paginated_connection_results import PaginatedConnectionResults from .paginated_dataset_results import PaginatedDatasetResults from .paginated_insight_results import PaginatedInsightResults from .paginated_metadata_resource_results import PaginatedMetadataResourceResults from .paginated_project_results import PaginatedProjectResults from .paginated_query_results import PaginatedQueryResults from .paginated_search_results_dto import PaginatedSearchResultsDto from .paginated_subscription_results import PaginatedSubscriptionResults from .project_create_request import ProjectCreateRequest from .project_patch_request import ProjectPatchRequest from .project_put_request import ProjectPutRequest from .project_summary_response import ProjectSummaryResponse from .query_parameter import QueryParameter from .query_put_request import QueryPutRequest from .query_summary_response import QuerySummaryResponse from .range import Range from .rdf_term import RdfTerm from .relationship_create_or_delete_request import RelationshipCreateOrDeleteRequest from .relationship_get_request import RelationshipGetRequest from .relationship_get_table_request import RelationshipGetTableRequest from .resource_relationship_dto import ResourceRelationshipDto from .saved_query_execution_request import SavedQueryExecutionRequest from .search_facet_result import SearchFacetResult from .search_hydrations import SearchHydrations from .search_request import SearchRequest from .simple_search_request import SimpleSearchRequest from .single_table_metadata_spec import SingleTableMetadataSpec from .source_id import SourceId from .sql_query_request import SqlQueryRequest from .ssh_tunnel import SshTunnel from .stream_schema import StreamSchema from .stream_schema_patch_request import StreamSchemaPatchRequest from .streams_resource import StreamsResource from .subscription import Subscription from .subscription_api_links import SubscriptionApiLinks from .subscription_create_request import SubscriptionCreateRequest from .subscription_links import SubscriptionLinks from .success_message import SuccessMessage from .table_batch_update_request import TableBatchUpdateRequest from .table_create_or_update_request import TableCreateOrUpdateRequest from .table_id import TableId from .table_source_create_or_update_request import TableSourceCreateOrUpdateRequest from .tag import Tag from .user_data_response import UserDataResponse from .user_identifier import UserIdentifier from .web_authorization import WebAuthorization from .web_credentials import WebCredentials
65.907563
1,984
0.87441
941
7,843
7.061637
0.387885
0.068473
0.024379
0.015801
0.031151
0.009932
0
0
0
0
0
0.000847
0.096264
7,843
118
1,985
66.466102
0.936654
0.275915
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
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
f9e90553cc3ce4bc790fb2e0101fda3d4f270a17
2,878
py
Python
Oled/drv/font.py
chenhao1010/Micropython_Domoticz
fe0ce5d57c4b4215b602a0d87ba6ca9158781204
[ "Apache-2.0" ]
1
2018-12-20T09:10:11.000Z
2018-12-20T09:10:11.000Z
Oled/drv/font.py
chenhao1010/Micropython_Domoticz
fe0ce5d57c4b4215b602a0d87ba6ca9158781204
[ "Apache-2.0" ]
null
null
null
Oled/drv/font.py
chenhao1010/Micropython_Domoticz
fe0ce5d57c4b4215b602a0d87ba6ca9158781204
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/python # -*- encoding: utf-8 -*- """ :开发者: 陈浩 :开发日期: 2018年12月5日 :邮箱地址: chenhao1010@163.com :个人博客: https://www.chenhao-home.cn/ :开发芯片: ESP-32 :修订日志: 1、字符生成请使用PCtoLCD2002(完美版) 2、 3、 4、 5、 """ byte = { 0xe696b0: [ 0x00,0x08,0x0C,0x7F,0x22,0x12,0x7F,0x7F,0x08,0x7F,0x08,0x3A,0x69,0x48,0x18,0x10, 0x00,0x06,0x78,0x60,0x60,0x60,0xFE,0xE4,0x64,0xE4,0x64,0x44,0x44,0xC4,0x84,0x84 ],#新 0xe8b5b7: [ 0x00,0x08,0x08,0x3E,0x08,0x08,0x08,0x7F,0x0C,0x3C,0x2F,0x2C,0x3C,0x4C,0x47,0x00, 0x00,0x00,0xFC,0x04,0x04,0x04,0x7C,0x7C,0x40,0x40,0x46,0x46,0x7C,0x00,0xFE,0x00 ],#起 0xe782b9: [ 0x00,0x01,0x01,0x01,0x01,0x01,0x1F,0x10,0x10,0x10,0x1F,0x00,0x34,0x26,0x62,0x00, 0x00,0x00,0x00,0xFC,0x00,0x00,0xF8,0x08,0x08,0x08,0xF8,0x00,0x4C,0x44,0x26,0x00 ],#点 0xe699ba: [ 0x00,0x18,0x10,0x3F,0x24,0x7F,0x0C,0x1B,0x31,0x2F,0x08,0x0F,0x08,0x08,0x0F,0x08, 0x00,0x00,0x00,0xFC,0x24,0xA4,0x24,0x3C,0xC0,0xF8,0x18,0xF8,0x18,0x18,0xF8,0x18 ],#智 0xe883bd: [ 0x00,0x08,0x18,0x36,0x23,0x7F,0x00,0x3F,0x23,0x3F,0x23,0x23,0x3F,0x23,0x27,0x20, 0x00,0x40,0x44,0x58,0x60,0xC2,0x7E,0x00,0x40,0x44,0x78,0x60,0x40,0x42,0x7E,0x00 ],#能 0xe5aeb6: [ 0x00,0x01,0x01,0x7F,0x60,0x6F,0x03,0x07,0x39,0x63,0x0C,0x71,0x06,0x18,0x63,0x01, 0x00,0x80,0x80,0xFE,0x06,0xF6,0x00,0x08,0x98,0xF0,0xD0,0x58,0x4C,0x46,0x80,0x00 ],#家 0xe5b185: [ 0x00,0x00,0x3F,0x30,0x3F,0x30,0x30,0x3F,0x30,0x30,0x27,0x24,0x24,0x67,0x44,0x00, 0x00,0x00,0xFC,0x0C,0xFC,0xC0,0xC0,0xFE,0xC0,0xC0,0xFC,0x0C,0x0C,0xFC,0x0C,0x00 ],#居 0xe6b8a9: [ 0x00,0x00,0x33,0x12,0x03,0x42,0x32,0x03,0x00,0x17,0x34,0x24,0x24,0x64,0x5F,0x00, 0x00,0x00,0xF8,0x08,0xF8,0x08,0x08,0xF8,0x00,0xFC,0xA4,0xA4,0xA4,0xA4,0xFE,0x00 ],#温 0xe6b9bf: [ 0x00,0x00,0x23,0x1A,0x03,0x02,0x62,0x33,0x00,0x04,0x14,0x22,0x22,0x60,0x4F,0x00, 0x00,0x00,0xFC,0x04,0xFC,0x04,0x04,0xFC,0x00,0x92,0x92,0x94,0x9C,0x90,0xFE,0x00 ],#湿 0xe5baa6: [ 0x00,0x00,0x00,0x3F,0x22,0x22,0x2F,0x22,0x23,0x20,0x2F,0x23,0x21,0x60,0x47,0x08, 0x00,0x80,0x80,0xFC,0x10,0x10,0xFC,0x10,0xF0,0x00,0xF8,0x10,0xA0,0xC0,0x3E,0x02 ],#度 0xe28483: [ 0x00,0x20,0x50,0x50,0x23,0x02,0x06,0x04,0x04,0x04,0x04,0x06,0x03,0x01,0x00,0x00, 0x00,0x00,0x00,0xF0,0x0C,0x04,0x00,0x00,0x00,0x00,0x04,0x04,0x0C,0xF8,0x00,0x00 ],#℃ 0xe2968f: [ 0x01,0x02,0x04,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x09,0x0A,0x0A,0x09,0x04,0x03, 0x80,0x40,0x20,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0x90,0x50,0x50,0x90,0x20,0xC0 ], #温度计 "▏" 0xe29692: [ 0x00,0x01,0x01,0x02,0x02,0x02,0x06,0x04,0x0C,0x08,0x0A,0x0A,0x0D,0x04,0x03,0x00, 0x00,0x80,0x80,0x40,0x40,0x40,0x20,0x20,0x10,0x10,0x10,0x10,0xB0,0x20,0xC0,0x00 ], # 湿度计 "▒" }
34.261905
85
0.66574
477
2,878
4.025157
0.30608
0.116667
0.08125
0.041667
0.05
0.029167
0
0
0
0
0
0.487515
0.151147
2,878
84
86
34.261905
0.296766
0.089646
0
0.19403
0
0
0
0
0
1
0.702703
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
4
dda385f27e28e8ffb96934328ca669f9baf285e3
76,263
py
Python
cloudshell/snmp/mibs/TOKEN-RING-RMON-MIB.py
QualiSystems/cloudshell-snmp
9f8c4a927997d69cf85cac2a9bb1c36952d62d99
[ "Apache-2.0" ]
null
null
null
cloudshell/snmp/mibs/TOKEN-RING-RMON-MIB.py
QualiSystems/cloudshell-snmp
9f8c4a927997d69cf85cac2a9bb1c36952d62d99
[ "Apache-2.0" ]
36
2016-05-13T08:42:13.000Z
2021-07-07T13:53:23.000Z
cloudshell/snmp/mibs/TOKEN-RING-RMON-MIB.py
QualiSystems/cloudshell-snmp
9f8c4a927997d69cf85cac2a9bb1c36952d62d99
[ "Apache-2.0" ]
5
2016-08-05T17:49:21.000Z
2019-05-28T03:27:22.000Z
# PySNMP SMI module. Autogenerated from smidump -f python TOKEN-RING-RMON-MIB # by libsmi2pysnmp-0.1.3 at Mon Apr 2 20:39:46 2012, # Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) # Imports ( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") ( EntryStatus, OwnerString, history, rmon, statistics, ) = mibBuilder.importSymbols("RFC1271-MIB", "EntryStatus", "OwnerString", "history", "rmon", "statistics") ( Bits, Counter32, Integer32, Integer32, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, TimeTicks, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Counter32", "Integer32", "Integer32", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "TimeTicks") # Types class MacAddress(OctetString): subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(6,6) fixedLength = 6 class TimeInterval(Integer32): pass # Objects tokenRingMLStatsTable = MibTable((1, 3, 6, 1, 2, 1, 16, 1, 2)) if mibBuilder.loadTexts: tokenRingMLStatsTable.setDescription("A list of Mac-Layer Token Ring statistics\nentries.") tokenRingMLStatsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 1, 2, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "tokenRingMLStatsIndex")) if mibBuilder.loadTexts: tokenRingMLStatsEntry.setDescription("A collection of Mac-Layer statistics kept for a\nparticular Token Ring interface.") tokenRingMLStatsIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsIndex.setDescription("The value of this object uniquely identifies this\ntokenRingMLStats entry.") tokenRingMLStatsDataSource = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 2), ObjectIdentifier()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenRingMLStatsDataSource.setDescription("This object identifies the source of the data\nthat this tokenRingMLStats entry is configured to\nanalyze. This source can be any tokenRing\ninterface on this device. In order to identify a\nparticular interface, this object shall identify\nthe instance of the ifIndex object, defined in\nMIB-II [3], for the desired interface. For\nexample, if an entry were to receive data from\ninterface #1, this object would be set to\nifIndex.1.\n\nThe statistics in this group reflect all error\nreports on the local network segment attached to\nthe identified interface.\n\nThis object may not be modified if the associated\ntokenRingMLStatsStatus object is equal to\nvalid(1).") tokenRingMLStatsDropEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsDropEvents.setDescription("The total number of events in which packets were\ndropped by the probe due to lack of resources.\nNote that this number is not necessarily the\nnumber of packets dropped; it is just the number\nof times this condition has been detected. This\nvalue is the same as the corresponding\ntokenRingPStatsDropEvents.") tokenRingMLStatsMacOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsMacOctets.setDescription("The total number of octets of data in MAC packets\n(excluding those that were not good frames)\nreceived on the network (excluding framing bits\nbut including FCS octets).") tokenRingMLStatsMacPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsMacPkts.setDescription("The total number of MAC packets (excluding\npackets that were not good frames) received.") tokenRingMLStatsRingPurgeEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsRingPurgeEvents.setDescription("The total number of times that the ring enters\nthe ring purge state from normal ring state. The\nring purge state that comes in response to the\nclaim token or beacon state is not counted.") tokenRingMLStatsRingPurgePkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsRingPurgePkts.setDescription("The total number of ring purge MAC packets\ndetected by probe.") tokenRingMLStatsBeaconEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsBeaconEvents.setDescription("The total number of times that the ring enters a\nbeaconing state (beaconFrameStreamingState,\nbeaconBitStreamingState,\nbeaconSetRecoveryModeState, or\nbeaconRingSignalLossState) from a non-beaconing\nstate. Note that a change of the source address\nof the beacon packet does not constitute a new\nbeacon event.") tokenRingMLStatsBeaconTime = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 9), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsBeaconTime.setDescription("The total amount of time that the ring has been\nin the beaconing state.") tokenRingMLStatsBeaconPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsBeaconPkts.setDescription("The total number of beacon MAC packets detected\nby the probe.") tokenRingMLStatsClaimTokenEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsClaimTokenEvents.setDescription("The total number of times that the ring enters\nthe claim token state from normal ring state or\nring purge state. The claim token state that\ncomes in response to a beacon state is not\ncounted.") tokenRingMLStatsClaimTokenPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsClaimTokenPkts.setDescription("The total number of claim token MAC packets\ndetected by the probe.") tokenRingMLStatsNAUNChanges = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsNAUNChanges.setDescription("The total number of NAUN changes detected by the\nprobe.") tokenRingMLStatsLineErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsLineErrors.setDescription("The total number of line errors reported in error\nreporting packets detected by the probe.") tokenRingMLStatsInternalErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsInternalErrors.setDescription("The total number of adapter internal errors\nreported in error reporting packets detected by\nthe probe.") tokenRingMLStatsBurstErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsBurstErrors.setDescription("The total number of burst errors reported in\nerror reporting packets detected by the probe.") tokenRingMLStatsACErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsACErrors.setDescription("The total number of AC (Address Copied) errors\nreported in error reporting packets detected by\nthe probe.") tokenRingMLStatsAbortErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsAbortErrors.setDescription("The total number of abort delimiters reported in\nerror reporting packets detected by the probe.") tokenRingMLStatsLostFrameErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsLostFrameErrors.setDescription("The total number of lost frame errors reported in\nerror reporting packets detected by the probe.") tokenRingMLStatsCongestionErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsCongestionErrors.setDescription("The total number of receive congestion errors\nreported in error reporting packets detected by\nthe probe.") tokenRingMLStatsFrameCopiedErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsFrameCopiedErrors.setDescription("The total number of frame copied errors reported\nin error reporting packets detected by the probe.") tokenRingMLStatsFrequencyErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsFrequencyErrors.setDescription("The total number of frequency errors reported in\nerror reporting packets detected by the probe.") tokenRingMLStatsTokenErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsTokenErrors.setDescription("The total number of token errors reported in\nerror reporting packets detected by the probe.") tokenRingMLStatsSoftErrorReports = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsSoftErrorReports.setDescription("The total number of soft error report frames\ndetected by the probe.") tokenRingMLStatsRingPollEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLStatsRingPollEvents.setDescription("The total number of ring poll events detected by\nthe probe (i.e. the number of ring polls initiated\nby the active monitor that were detected).") tokenRingMLStatsOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 26), OwnerString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenRingMLStatsOwner.setDescription("The base_entity that configured this entry and is\ntherefore using the resources assigned to it.") tokenRingMLStatsStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 2, 1, 27), EntryStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenRingMLStatsStatus.setDescription("The status of this tokenRingMLStats entry.") tokenRingPStatsTable = MibTable((1, 3, 6, 1, 2, 1, 16, 1, 3)) if mibBuilder.loadTexts: tokenRingPStatsTable.setDescription("A list of promiscuous Token Ring statistics\nentries.") tokenRingPStatsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 1, 3, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "tokenRingPStatsIndex")) if mibBuilder.loadTexts: tokenRingPStatsEntry.setDescription("A collection of promiscuous statistics kept for\nnon-MAC packets on a particular Token Ring\ninterface.") tokenRingPStatsIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsIndex.setDescription("The value of this object uniquely identifies this\ntokenRingPStats entry.") tokenRingPStatsDataSource = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 2), ObjectIdentifier()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenRingPStatsDataSource.setDescription("This object identifies the source of the data\nthat this tokenRingPStats entry is configured to\nanalyze. This source can be any tokenRing\ninterface on this device. In order to identify a\nparticular interface, this object shall identify\nthe instance of the ifIndex object, defined in\nMIB-II [3], for the desired interface. For\nexample, if an entry were to receive data from\ninterface #1, this object would be set to\nifIndex.1.\n\nThe statistics in this group reflect all non-MAC\npackets on the local network segment attached to\nthe identified interface.\n\nThis object may not be modified if the associated\ntokenRingPStatsStatus object is equal to\nvalid(1).") tokenRingPStatsDropEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDropEvents.setDescription("The total number of events in which packets were\ndropped by the probe due to lack of resources.\nNote that this number is not necessarily the\nnumber of packets dropped; it is just the number\nof times this condition has been detected. This\nvalue is the same as the corresponding\ntokenRingMLStatsDropEvents") tokenRingPStatsDataOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataOctets.setDescription("The total number of octets of data in good frames\nreceived on the network (excluding framing bits\nbut including FCS octets) in non-MAC packets.") tokenRingPStatsDataPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts.setDescription("The total number of non-MAC packets in good\nframes. received.") tokenRingPStatsDataBroadcastPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataBroadcastPkts.setDescription("The total number of good non-MAC frames received\nthat were directed to an LLC broadcast address\n(0xFFFFFFFFFFFF or 0xC000FFFFFFFF).") tokenRingPStatsDataMulticastPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataMulticastPkts.setDescription("The total number of good non-MAC frames received\nthat were directed to a local or global multicast\nor functional address. Note that this number does\nnot include packets directed to the broadcast\naddress.") tokenRingPStatsDataPkts18to63Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts18to63Octets.setDescription("The total number of good non-MAC frames received\nthat were between 18 and 63 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts64to127Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts64to127Octets.setDescription("The total number of good non-MAC frames received\nthat were between 64 and 127 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts128to255Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts128to255Octets.setDescription("The total number of good non-MAC frames received\nthat were between 128 and 255 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts256to511Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts256to511Octets.setDescription("The total number of good non-MAC frames received\nthat were between 256 and 511 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts512to1023Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts512to1023Octets.setDescription("The total number of good non-MAC frames received\nthat were between 512 and 1023 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts1024to2047Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts1024to2047Octets.setDescription("The total number of good non-MAC frames received\nthat were between 1024 and 2047 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts2048to4095Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts2048to4095Octets.setDescription("The total number of good non-MAC frames received\nthat were between 2048 and 4095 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts4096to8191Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts4096to8191Octets.setDescription("The total number of good non-MAC frames received\nthat were between 4096 and 8191 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPkts8192to18000Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPkts8192to18000Octets.setDescription("The total number of good non-MAC frames received\nthat were between 8192 and 18000 octets in length\ninclusive, excluding framing bits but including\nFCS octets.") tokenRingPStatsDataPktsGreaterThan18000Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPStatsDataPktsGreaterThan18000Octets.setDescription("The total number of good non-MAC frames received\nthat were greater than 18000 octets in length,\nexcluding framing bits but including FCS octets.") tokenRingPStatsOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 18), OwnerString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenRingPStatsOwner.setDescription("The base_entity that configured this entry and is\ntherefore using the resources assigned to it.") tokenRingPStatsStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 1, 3, 1, 19), EntryStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenRingPStatsStatus.setDescription("The status of this tokenRingPStats entry.") tokenRingMLHistoryTable = MibTable((1, 3, 6, 1, 2, 1, 16, 2, 3)) if mibBuilder.loadTexts: tokenRingMLHistoryTable.setDescription("A list of Mac-Layer Token Ring statistics\nentries.") tokenRingMLHistoryEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 2, 3, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "tokenRingMLHistoryIndex"), (0, "TOKEN-RING-RMON-MIB", "tokenRingMLHistorySampleIndex")) if mibBuilder.loadTexts: tokenRingMLHistoryEntry.setDescription("A collection of Mac-Layer statistics kept for a\nparticular Token Ring interface.") tokenRingMLHistoryIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryIndex.setDescription("The history of which this entry is a part. The\nhistory identified by a particular value of this\nindex is the same history as identified by the\nsame value of historyControlIndex.") tokenRingMLHistorySampleIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistorySampleIndex.setDescription("An index that uniquely identifies the particular\nMac-Layer sample this entry represents among all\nMac-Layer samples associated with the same\nhistoryControlEntry. This index starts at 1 and\nincreases by one as each new sample is taken.") tokenRingMLHistoryIntervalStart = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 3), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryIntervalStart.setDescription("The value of sysUpTime at the start of the\ninterval over which this sample was measured. If\nthe probe keeps track of the time of day, it\nshould start the first sample of the history at a\ntime such that when the next hour of the day\nbegins, a sample is started at that instant. Note\nthat following this rule may require the probe to\ndelay collecting the first sample of the history,\nas each sample must be of the same interval. Also\nnote that the sample which is currently being\ncollected is not accessible in this table until\nthe end of its interval.") tokenRingMLHistoryDropEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryDropEvents.setDescription("The total number of events in which packets were\ndropped by the probe due to lack of resources\nduring this sampling interval. Note that this\nnumber is not necessarily the number of packets\ndropped, it is just the number of times this\ncondition has been detected.") tokenRingMLHistoryMacOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryMacOctets.setDescription("The total number of octets of data in MAC packets\n(excluding those that were not good frames)\nreceived on the network during this sampling\ninterval (excluding framing bits but including FCS\noctets).") tokenRingMLHistoryMacPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryMacPkts.setDescription("The total number of MAC packets (excluding those\nthat were not good frames) received during this\nsampling interval.") tokenRingMLHistoryRingPurgeEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryRingPurgeEvents.setDescription("The total number of times that the ring entered\nthe ring purge state from normal ring state during\nthis sampling interval. The ring purge state that\ncomes from the claim token or beacon state is not\ncounted.") tokenRingMLHistoryRingPurgePkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryRingPurgePkts.setDescription("The total number of Ring Purge MAC packets\ndetected by the probe during this sampling\ninterval.") tokenRingMLHistoryBeaconEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryBeaconEvents.setDescription("The total number of times that the ring enters a\nbeaconing state (beaconFrameStreamingState,\nbeaconBitStreamingState,\nbeaconSetRecoveryModeState, or\nbeaconRingSignalLossState) during this sampling\ninterval. Note that a change of the source\naddress of the beacon packet does not constitute a\nnew beacon event.") tokenRingMLHistoryBeaconTime = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 10), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryBeaconTime.setDescription("The amount of time that the ring has been in the\nbeaconing state during this sampling interval.") tokenRingMLHistoryBeaconPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryBeaconPkts.setDescription("The total number of beacon MAC packets detected\nby the probe during this sampling interval.") tokenRingMLHistoryClaimTokenEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryClaimTokenEvents.setDescription("The total number of times that the ring enters\nthe claim token state from normal ring state or\nring purge state during this sampling interval.\nThe claim token state that comes from the beacon\nstate is not counted.") tokenRingMLHistoryClaimTokenPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryClaimTokenPkts.setDescription("The total number of claim token MAC packets\ndetected by the probe during this sampling\ninterval.") tokenRingMLHistoryNAUNChanges = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryNAUNChanges.setDescription("The total number of NAUN changes detected by the\nprobe during this sampling interval.") tokenRingMLHistoryLineErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryLineErrors.setDescription("The total number of line errors reported in error\nreporting packets detected by the probe during\nthis sampling interval.") tokenRingMLHistoryInternalErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryInternalErrors.setDescription("The total number of adapter internal errors\nreported in error reporting packets detected by\nthe probe during this sampling interval.") tokenRingMLHistoryBurstErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryBurstErrors.setDescription("The total number of burst errors reported in\nerror reporting packets detected by the probe\nduring this sampling interval.") tokenRingMLHistoryACErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryACErrors.setDescription("The total number of AC (Address Copied) errors\nreported in error reporting packets detected by\nthe probe during this sampling interval.") tokenRingMLHistoryAbortErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryAbortErrors.setDescription("The total number of abort delimiters reported in\nerror reporting packets detected by the probe\nduring this sampling interval.") tokenRingMLHistoryLostFrameErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryLostFrameErrors.setDescription("The total number of lost frame errors reported in\nerror reporting packets detected by the probe\nduring this sampling interval.") tokenRingMLHistoryCongestionErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryCongestionErrors.setDescription("The total number of receive congestion errors\nreported in error reporting packets detected by\nthe probe during this sampling interval.") tokenRingMLHistoryFrameCopiedErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryFrameCopiedErrors.setDescription("The total number of frame copied errors reported\nin error reporting packets detected by the probe\nduring this sampling interval.") tokenRingMLHistoryFrequencyErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryFrequencyErrors.setDescription("The total number of frequency errors reported in\nerror reporting packets detected by the probe\nduring this sampling interval.") tokenRingMLHistoryTokenErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryTokenErrors.setDescription("The total number of token errors reported in\nerror reporting packets detected by the probe\nduring this sampling interval.") tokenRingMLHistorySoftErrorReports = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistorySoftErrorReports.setDescription("The total number of soft error report frames\ndetected by the probe during this sampling\ninterval.") tokenRingMLHistoryRingPollEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryRingPollEvents.setDescription("The total number of ring poll events detected by\nthe probe during this sampling interval.") tokenRingMLHistoryActiveStations = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 3, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingMLHistoryActiveStations.setDescription("The maximum number of active stations on the ring\ndetected by the probe during this sampling\ninterval.") tokenRingPHistoryTable = MibTable((1, 3, 6, 1, 2, 1, 16, 2, 4)) if mibBuilder.loadTexts: tokenRingPHistoryTable.setDescription("A list of promiscuous Token Ring statistics\nentries.") tokenRingPHistoryEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 2, 4, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "tokenRingPHistoryIndex"), (0, "TOKEN-RING-RMON-MIB", "tokenRingPHistorySampleIndex")) if mibBuilder.loadTexts: tokenRingPHistoryEntry.setDescription("A collection of promiscuous statistics kept for a\nparticular Token Ring interface.") tokenRingPHistoryIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryIndex.setDescription("The history of which this entry is a part. The\nhistory identified by a particular value of this\nindex is the same history as identified by the\nsame value of historyControlIndex.") tokenRingPHistorySampleIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistorySampleIndex.setDescription("An index that uniquely identifies the particular\nsample this entry represents among all samples\nassociated with the same historyControlEntry.\nThis index starts at 1 and increases by one as\neach new sample is taken.") tokenRingPHistoryIntervalStart = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 3), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryIntervalStart.setDescription("The value of sysUpTime at the start of the\ninterval over which this sample was measured. If\nthe probe keeps track of the time of day, it\nshould start the first sample of the history at a\ntime such that when the next hour of the day\nbegins, a sample is started at that instant. Note\nthat following this rule may require the probe to\ndelay collecting the first sample of the history,\nas each sample must be of the same interval. Also\nnote that the sample which is currently being\ncollected is not accessible in this table until\nthe end of its interval.") tokenRingPHistoryDropEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDropEvents.setDescription("The total number of events in which packets were\ndropped by the probe due to lack of resources\nduring this sampling interval. Note that this\nnumber is not necessarily the number of packets\ndropped, it is just the number of times this\ncondition has been detected.") tokenRingPHistoryDataOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataOctets.setDescription("The total number of octets of data in good frames\nreceived on the network (excluding framing bits\nbut including FCS octets) in non-MAC packets\nduring this sampling interval.") tokenRingPHistoryDataPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts.setDescription("The total number of good non-MAC frames received\nduring this sampling interval.") tokenRingPHistoryDataBroadcastPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataBroadcastPkts.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were directed\nto an LLC broadcast address (0xFFFFFFFFFFFF or\n0xC000FFFFFFFF).") tokenRingPHistoryDataMulticastPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataMulticastPkts.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were directed\nto a local or global multicast or functional\naddress. Note that this number does not include\npackets directed to the broadcast address.") tokenRingPHistoryDataPkts18to63Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts18to63Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between 18\nand 63 octets in length inclusive, excluding\nframing bits but including FCS octets.") tokenRingPHistoryDataPkts64to127Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts64to127Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between 64\nand 127 octets in length inclusive, excluding\nframing bits but including FCS octets.") tokenRingPHistoryDataPkts128to255Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts128to255Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between\n128 and 255 octets in length inclusive, excluding\nframing bits but including FCS octets.") tokenRingPHistoryDataPkts256to511Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts256to511Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between\n256 and 511 octets in length inclusive, excluding\nframing bits but including FCS octets.") tokenRingPHistoryDataPkts512to1023Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts512to1023Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between\n512 and 1023 octets in length inclusive, excluding\nframing bits but including FCS octets.") tokenRingPHistoryDataPkts1024to2047Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts1024to2047Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between\n1024 and 2047 octets in length inclusive,\nexcluding framing bits but including FCS octets.") tokenRingPHistoryDataPkts2048to4095Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts2048to4095Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between\n2048 and 4095 octets in length inclusive,\nexcluding framing bits but including FCS octets.") tokenRingPHistoryDataPkts4096to8191Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts4096to8191Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between\n4096 and 8191 octets in length inclusive,\nexcluding framing bits but including FCS octets.") tokenRingPHistoryDataPkts8192to18000Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPkts8192to18000Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were between\n8192 and 18000 octets in length inclusive,\nexcluding framing bits but including FCS octets.") tokenRingPHistoryDataPktsGreaterThan18000Octets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 2, 4, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenRingPHistoryDataPktsGreaterThan18000Octets.setDescription("The total number of good non-MAC frames received\nduring this sampling interval that were greater\nthan 18000 octets in length, excluding framing\nbits but including FCS octets.") tokenRing = MibIdentifier((1, 3, 6, 1, 2, 1, 16, 10)) ringStationControlTable = MibTable((1, 3, 6, 1, 2, 1, 16, 10, 1)) if mibBuilder.loadTexts: ringStationControlTable.setDescription("A list of ringStation table control entries.") ringStationControlEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 10, 1, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "ringStationControlIfIndex")) if mibBuilder.loadTexts: ringStationControlEntry.setDescription("A list of parameters that set up the discovery of\nstations on a particular interface and the\ncollection of statistics about these stations.") ringStationControlIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlIfIndex.setDescription("The value of this object uniquely identifies the\ninterface on this remote network monitoring device\nfrom which ringStation data is collected. The\ninterface identified by a particular value of this\nobject is the same interface as identified by the\nsame value of the ifIndex object, defined in MIB-\nII [3].") ringStationControlTableSize = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlTableSize.setDescription("The number of ringStationEntries in the\nringStationTable associated with this\nringStationControlEntry.") ringStationControlActiveStations = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlActiveStations.setDescription("The number of active ringStationEntries in the\nringStationTable associated with this\nringStationControlEntry.") ringStationControlRingState = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 4), Integer().subtype(subtypeSpec=SingleValueConstraint(3,5,2,7,4,6,1,)).subtype(namedValues=NamedValues(("normalOperation", 1), ("ringPurgeState", 2), ("claimTokenState", 3), ("beaconFrameStreamingState", 4), ("beaconBitStreamingState", 5), ("beaconRingSignalLossState", 6), ("beaconSetRecoveryModeState", 7), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlRingState.setDescription("The current status of this ring.") ringStationControlBeaconSender = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 5), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlBeaconSender.setDescription("The address of the sender of the last beacon\nframe received by the probe on this ring. If no\nbeacon frames have been received, this object\nshall be equal to six octets of zero.") ringStationControlBeaconNAUN = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 6), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlBeaconNAUN.setDescription("The address of the NAUN in the last beacon frame\nreceived by the probe on this ring. If no beacon\nframes have been received, this object shall be\nequal to six octets of zero.") ringStationControlActiveMonitor = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 7), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlActiveMonitor.setDescription("The address of the Active Monitor on this\nsegment. If this address is unknown, this object\nshall be equal to six octets of zero.") ringStationControlOrderChanges = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationControlOrderChanges.setDescription("The number of add and delete events in the\nringStationOrderTable optionally associated with\nthis ringStationControlEntry.") ringStationControlOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 9), OwnerString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ringStationControlOwner.setDescription("The base_entity that configured this entry and is\ntherefore using the resources assigned to it.") ringStationControlStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 1, 1, 10), EntryStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ringStationControlStatus.setDescription("The status of this ringStationControl entry.\n\nIf this object is not equal to valid(1), all\nassociated entries in the ringStationTable shall\nbe deleted by the agent.") ringStationTable = MibTable((1, 3, 6, 1, 2, 1, 16, 10, 2)) if mibBuilder.loadTexts: ringStationTable.setDescription("A list of ring station entries. An entry will\nexist for each station that is now or has\npreviously been detected as physically present on\nthis ring.") ringStationEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 10, 2, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "ringStationIfIndex"), (0, "TOKEN-RING-RMON-MIB", "ringStationMacAddress")) if mibBuilder.loadTexts: ringStationEntry.setDescription("A collection of statistics for a particular\nstation that has been discovered on a ring\nmonitored by this device.") ringStationIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationIfIndex.setDescription("The value of this object uniquely identifies the\ninterface on this remote network monitoring device\non which this station was detected. The interface\nidentified by a particular value of this object is\nthe same interface as identified by the same value\nof the ifIndex object, defined in MIB-II [3].") ringStationMacAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationMacAddress.setDescription("The physical address of this station.") ringStationLastNAUN = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationLastNAUN.setDescription("The physical address of last known NAUN of this\nstation.") ringStationStationStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 4), Integer().subtype(subtypeSpec=SingleValueConstraint(1,3,2,)).subtype(namedValues=NamedValues(("active", 1), ("inactive", 2), ("forcedRemoval", 3), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationStationStatus.setDescription("The status of this station on the ring.") ringStationLastEnterTime = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationLastEnterTime.setDescription("The value of sysUpTime at the time this station\nlast entered the ring. If the time is unknown,\nthis value shall be zero.") ringStationLastExitTime = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 6), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationLastExitTime.setDescription("The value of sysUpTime at the time the probe\ndetected that this station last exited the ring.\nIf the time is unknown, this value shall be zero.") ringStationDuplicateAddresses = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationDuplicateAddresses.setDescription("The number of times this station experienced a\nduplicate address error.") ringStationInLineErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationInLineErrors.setDescription("The total number of line errors reported by this\nstation in error reporting packets detected by the\nprobe.") ringStationOutLineErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationOutLineErrors.setDescription("The total number of line errors reported in error\nreporting packets sent by the nearest active\ndownstream neighbor of this station and detected\nby the probe.") ringStationInternalErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationInternalErrors.setDescription("The total number of adapter internal errors\nreported by this station in error reporting\npackets detected by the probe.") ringStationInBurstErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationInBurstErrors.setDescription("The total number of burst errors reported by this\nstation in error reporting packets detected by the\nprobe.") ringStationOutBurstErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationOutBurstErrors.setDescription("The total number of burst errors reported in\nerror reporting packets sent by the nearest active\ndownstream neighbor of this station and detected\nby the probe.") ringStationACErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationACErrors.setDescription("The total number of AC (Address Copied) errors\nreported in error reporting packets sent by the\nnearest active downstream neighbor of this station\nand detected by the probe.") ringStationAbortErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationAbortErrors.setDescription("The total number of abort delimiters reported by\nthis station in error reporting packets detected\nby the probe.") ringStationLostFrameErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationLostFrameErrors.setDescription("The total number of lost frame errors reported by\nthis station in error reporting packets detected\nby the probe.") ringStationCongestionErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationCongestionErrors.setDescription("The total number of receive congestion errors\nreported by this station in error reporting\npackets detected by the probe.") ringStationFrameCopiedErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationFrameCopiedErrors.setDescription("The total number of frame copied errors reported\nby this station in error reporting packets\ndetected by the probe.") ringStationFrequencyErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationFrequencyErrors.setDescription("The total number of frequency errors reported by\nthis station in error reporting packets detected\nby the probe.") ringStationTokenErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationTokenErrors.setDescription("The total number of token errors reported by this\nstation in error reporting frames detected by the\nprobe.") ringStationInBeaconErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationInBeaconErrors.setDescription("The total number of beacon frames sent by this\nstation and detected by the probe.") ringStationOutBeaconErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationOutBeaconErrors.setDescription("The total number of beacon frames detected by the\nprobe that name this station as the NAUN.") ringStationInsertions = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationInsertions.setDescription("The number of times the probe detected this\nstation inserting onto the ring.") ringStationOrderTable = MibTable((1, 3, 6, 1, 2, 1, 16, 10, 3)) if mibBuilder.loadTexts: ringStationOrderTable.setDescription("A list of ring station entries for stations in\nthe ring poll, ordered by their ring-order.") ringStationOrderEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 10, 3, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "ringStationOrderIfIndex"), (0, "TOKEN-RING-RMON-MIB", "ringStationOrderOrderIndex")) if mibBuilder.loadTexts: ringStationOrderEntry.setDescription("A collection of statistics for a particular\nstation that is active on a ring monitored by this\ndevice. This table will contain information for\nevery interface that has a\nringStationControlStatus equal to valid.") ringStationOrderIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationOrderIfIndex.setDescription("The value of this object uniquely identifies the\ninterface on this remote network monitoring device\non which this station was detected. The interface\nidentified by a particular value of this object is\nthe same interface as identified by the same value\nof the ifIndex object, defined in MIB-II [3].") ringStationOrderOrderIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationOrderOrderIndex.setDescription("This index denotes the location of this station\nwith respect to other stations on the ring. This\nindex is one more than the number of hops\ndownstream that this station is from the rmon\nprobe. The rmon probe itself gets the value one.") ringStationOrderMacAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 3, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationOrderMacAddress.setDescription("The physical address of this station.") ringStationConfigControlTable = MibTable((1, 3, 6, 1, 2, 1, 16, 10, 4)) if mibBuilder.loadTexts: ringStationConfigControlTable.setDescription("A list of ring station configuration control\nentries.") ringStationConfigControlEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 10, 4, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "ringStationConfigControlIfIndex"), (0, "TOKEN-RING-RMON-MIB", "ringStationConfigControlMacAddress")) if mibBuilder.loadTexts: ringStationConfigControlEntry.setDescription("This entry controls active management of stations\nby the probe. One entry exists in this table for\neach active station in the ringStationTable.") ringStationConfigControlIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigControlIfIndex.setDescription("The value of this object uniquely identifies the\ninterface on this remote network monitoring device\non which this station was detected. The interface\nidentified by a particular value of this object is\nthe same interface as identified by the same value\nof the ifIndex object, defined in MIB-II [3].") ringStationConfigControlMacAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 4, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigControlMacAddress.setDescription("The physical address of this station.") ringStationConfigControlRemove = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 4, 1, 3), Integer().subtype(subtypeSpec=SingleValueConstraint(2,1,)).subtype(namedValues=NamedValues(("stable", 1), ("removing", 2), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ringStationConfigControlRemove.setDescription("Setting this object to `removing(2)' causes a\nRemove Station MAC frame to be sent. The agent\nwill set this object to `stable(1)' after\nprocessing the request.") ringStationConfigControlUpdateStats = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 4, 1, 4), Integer().subtype(subtypeSpec=SingleValueConstraint(1,2,)).subtype(namedValues=NamedValues(("stable", 1), ("updating", 2), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ringStationConfigControlUpdateStats.setDescription("Setting this object to `updating(2)' causes the\nconfiguration information associate with this\nentry to be updated. The agent will set this\nobject to `stable(1)' after processing the\nrequest.") ringStationConfigTable = MibTable((1, 3, 6, 1, 2, 1, 16, 10, 5)) if mibBuilder.loadTexts: ringStationConfigTable.setDescription("A list of configuration entries for stations on a\nring monitored by this probe.") ringStationConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 10, 5, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "ringStationConfigIfIndex"), (0, "TOKEN-RING-RMON-MIB", "ringStationConfigMacAddress")) if mibBuilder.loadTexts: ringStationConfigEntry.setDescription("A collection of statistics for a particular\nstation that has been discovered on a ring\nmonitored by this probe.") ringStationConfigIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigIfIndex.setDescription("The value of this object uniquely identifies the\ninterface on this remote network monitoring device\non which this station was detected. The interface\nidentified by a particular value of this object is\nthe same interface as identified by the same value\nof the ifIndex object, defined in MIB-II [3].") ringStationConfigMacAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 5, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigMacAddress.setDescription("The physical address of this station.") ringStationConfigUpdateTime = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 5, 1, 3), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigUpdateTime.setDescription("The value of sysUpTime at the time this\nconfiguration information was last updated\n(completely).") ringStationConfigLocation = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 5, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigLocation.setDescription("The assigned physical location of this station.") ringStationConfigMicrocode = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 5, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(10, 10)).setFixedLength(10)).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigMicrocode.setDescription("The microcode EC level of this station.") ringStationConfigGroupAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 5, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigGroupAddress.setDescription("The low-order 4 octets of the group address\nrecognized by this station.") ringStationConfigFunctionalAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 5, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: ringStationConfigFunctionalAddress.setDescription("the functional addresses recognized by this\nstation.") sourceRoutingStatsTable = MibTable((1, 3, 6, 1, 2, 1, 16, 10, 6)) if mibBuilder.loadTexts: sourceRoutingStatsTable.setDescription("A list of source routing statistics entries.") sourceRoutingStatsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 10, 6, 1)).setIndexNames((0, "TOKEN-RING-RMON-MIB", "sourceRoutingStatsIfIndex")) if mibBuilder.loadTexts: sourceRoutingStatsEntry.setDescription("A collection of source routing statistics kept\nfor a particular Token Ring interface.") sourceRoutingStatsIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsIfIndex.setDescription("The value of this object uniquely identifies the\ninterface on this remote network monitoring device\non which source routing statistics will be\ndetected. The interface identified by a\nparticular value of this object is the same\ninterface as identified by the same value of the\nifIndex object, defined in MIB-II [3].") sourceRoutingStatsRingNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsRingNumber.setDescription("The ring number of the ring monitored by this\nentry. When any object in this entry is created,\nthe probe will attempt to discover the ring\nnumber. Only after the ring number is discovered\nwill this object be created. After creating an\nobject in this entry, the management station\nshould poll this object to detect when it is\ncreated. Only after this object is created can\nthe management station set the\nsourceRoutingStatsStatus entry to valid(1).") sourceRoutingStatsInFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsInFrames.setDescription("The count of frames sent into this ring from\nanother ring.") sourceRoutingStatsOutFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsOutFrames.setDescription("The count of frames sent from this ring to\nanother ring.") sourceRoutingStatsThroughFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsThroughFrames.setDescription("The count of frames sent from another ring,\nthrough this ring, to another ring.") sourceRoutingStatsAllRoutesBroadcastFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsAllRoutesBroadcastFrames.setDescription("The total number of good frames received that\nwere All Routes Broadcast.") sourceRoutingStatsSingleRouteBroadcastFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsSingleRouteBroadcastFrames.setDescription("The total number of good frames received that\nwere Single Route Broadcast.") sourceRoutingStatsInOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsInOctets.setDescription("The count of octets in good frames sent into this\nring from another ring.") sourceRoutingStatsOutOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsOutOctets.setDescription("The count of octets in good frames sent from this\nring to another ring.") sourceRoutingStatsThroughOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsThroughOctets.setDescription("The count of octets in good frames sent another\nring, through this ring, to another ring.") sourceRoutingStatsAllRoutesBroadcastOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsAllRoutesBroadcastOctets.setDescription("The total number of octets in good frames\nreceived that were All Routes Broadcast.") sourceRoutingStatsSingleRoutesBroadcastOctets = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsSingleRoutesBroadcastOctets.setDescription("The total number of octets in good frames\nreceived that were Single Route Broadcast.") sourceRoutingStatsLocalLLCFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsLocalLLCFrames.setDescription("The total number of frames received who had no\nRIF field (or had a RIF field that only included\nthe local ring's number) and were not All Route\nBroadcast Frames.") sourceRoutingStats1HopFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats1HopFrames.setDescription("The total number of frames received whose route\nhad 1 hop, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStats2HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats2HopsFrames.setDescription("The total number of frames received whose route\nhad 2 hops, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStats3HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats3HopsFrames.setDescription("The total number of frames received whose route\nhad 3 hops, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStats4HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats4HopsFrames.setDescription("The total number of frames received whose route\nhad 4 hops, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStats5HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats5HopsFrames.setDescription("The total number of frames received whose route\nhad 5 hops, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStats6HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats6HopsFrames.setDescription("The total number of frames received whose route\nhad 6 hops, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStats7HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats7HopsFrames.setDescription("The total number of frames received whose route\nhad 7 hops, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStats8HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStats8HopsFrames.setDescription("The total number of frames received whose route\nhad 8 hops, were not All Route Broadcast Frames,\nand whose source or destination were on this ring\n(i.e. frames that had a RIF field and had this\nring number in the first or last entry of the RIF\nfield).") sourceRoutingStatsMoreThan8HopsFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceRoutingStatsMoreThan8HopsFrames.setDescription("The total number of frames received whose route\nhad more than 8 hops, were not All Route Broadcast\nFrames, and whose source or destination were on\nthis ring (i.e. frames that had a RIF field and\nhad this ring number in the first or last entry of\nthe RIF field).") sourceRoutingStatsOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 23), OwnerString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sourceRoutingStatsOwner.setDescription("The base_entity that configured this entry and is\ntherefore using the resources assigned to it.") sourceRoutingStatsStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 10, 6, 1, 24), EntryStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sourceRoutingStatsStatus.setDescription("The status of this sourceRoutingStats entry.") # Augmentions # Exports # Types mibBuilder.exportSymbols("TOKEN-RING-RMON-MIB", MacAddress=MacAddress, TimeInterval=TimeInterval) # Objects mibBuilder.exportSymbols("TOKEN-RING-RMON-MIB", tokenRingMLStatsTable=tokenRingMLStatsTable, tokenRingMLStatsEntry=tokenRingMLStatsEntry, tokenRingMLStatsIndex=tokenRingMLStatsIndex, tokenRingMLStatsDataSource=tokenRingMLStatsDataSource, tokenRingMLStatsDropEvents=tokenRingMLStatsDropEvents, tokenRingMLStatsMacOctets=tokenRingMLStatsMacOctets, tokenRingMLStatsMacPkts=tokenRingMLStatsMacPkts, tokenRingMLStatsRingPurgeEvents=tokenRingMLStatsRingPurgeEvents, tokenRingMLStatsRingPurgePkts=tokenRingMLStatsRingPurgePkts, tokenRingMLStatsBeaconEvents=tokenRingMLStatsBeaconEvents, tokenRingMLStatsBeaconTime=tokenRingMLStatsBeaconTime, tokenRingMLStatsBeaconPkts=tokenRingMLStatsBeaconPkts, tokenRingMLStatsClaimTokenEvents=tokenRingMLStatsClaimTokenEvents, tokenRingMLStatsClaimTokenPkts=tokenRingMLStatsClaimTokenPkts, tokenRingMLStatsNAUNChanges=tokenRingMLStatsNAUNChanges, tokenRingMLStatsLineErrors=tokenRingMLStatsLineErrors, tokenRingMLStatsInternalErrors=tokenRingMLStatsInternalErrors, tokenRingMLStatsBurstErrors=tokenRingMLStatsBurstErrors, tokenRingMLStatsACErrors=tokenRingMLStatsACErrors, tokenRingMLStatsAbortErrors=tokenRingMLStatsAbortErrors, tokenRingMLStatsLostFrameErrors=tokenRingMLStatsLostFrameErrors, tokenRingMLStatsCongestionErrors=tokenRingMLStatsCongestionErrors, tokenRingMLStatsFrameCopiedErrors=tokenRingMLStatsFrameCopiedErrors, tokenRingMLStatsFrequencyErrors=tokenRingMLStatsFrequencyErrors, tokenRingMLStatsTokenErrors=tokenRingMLStatsTokenErrors, tokenRingMLStatsSoftErrorReports=tokenRingMLStatsSoftErrorReports, tokenRingMLStatsRingPollEvents=tokenRingMLStatsRingPollEvents, tokenRingMLStatsOwner=tokenRingMLStatsOwner, tokenRingMLStatsStatus=tokenRingMLStatsStatus, tokenRingPStatsTable=tokenRingPStatsTable, tokenRingPStatsEntry=tokenRingPStatsEntry, tokenRingPStatsIndex=tokenRingPStatsIndex, tokenRingPStatsDataSource=tokenRingPStatsDataSource, tokenRingPStatsDropEvents=tokenRingPStatsDropEvents, tokenRingPStatsDataOctets=tokenRingPStatsDataOctets, tokenRingPStatsDataPkts=tokenRingPStatsDataPkts, tokenRingPStatsDataBroadcastPkts=tokenRingPStatsDataBroadcastPkts, tokenRingPStatsDataMulticastPkts=tokenRingPStatsDataMulticastPkts, tokenRingPStatsDataPkts18to63Octets=tokenRingPStatsDataPkts18to63Octets, tokenRingPStatsDataPkts64to127Octets=tokenRingPStatsDataPkts64to127Octets, tokenRingPStatsDataPkts128to255Octets=tokenRingPStatsDataPkts128to255Octets, tokenRingPStatsDataPkts256to511Octets=tokenRingPStatsDataPkts256to511Octets, tokenRingPStatsDataPkts512to1023Octets=tokenRingPStatsDataPkts512to1023Octets, tokenRingPStatsDataPkts1024to2047Octets=tokenRingPStatsDataPkts1024to2047Octets, tokenRingPStatsDataPkts2048to4095Octets=tokenRingPStatsDataPkts2048to4095Octets, tokenRingPStatsDataPkts4096to8191Octets=tokenRingPStatsDataPkts4096to8191Octets, tokenRingPStatsDataPkts8192to18000Octets=tokenRingPStatsDataPkts8192to18000Octets, tokenRingPStatsDataPktsGreaterThan18000Octets=tokenRingPStatsDataPktsGreaterThan18000Octets, tokenRingPStatsOwner=tokenRingPStatsOwner, tokenRingPStatsStatus=tokenRingPStatsStatus, tokenRingMLHistoryTable=tokenRingMLHistoryTable, tokenRingMLHistoryEntry=tokenRingMLHistoryEntry, tokenRingMLHistoryIndex=tokenRingMLHistoryIndex, tokenRingMLHistorySampleIndex=tokenRingMLHistorySampleIndex, tokenRingMLHistoryIntervalStart=tokenRingMLHistoryIntervalStart, tokenRingMLHistoryDropEvents=tokenRingMLHistoryDropEvents, tokenRingMLHistoryMacOctets=tokenRingMLHistoryMacOctets, tokenRingMLHistoryMacPkts=tokenRingMLHistoryMacPkts, tokenRingMLHistoryRingPurgeEvents=tokenRingMLHistoryRingPurgeEvents, tokenRingMLHistoryRingPurgePkts=tokenRingMLHistoryRingPurgePkts, tokenRingMLHistoryBeaconEvents=tokenRingMLHistoryBeaconEvents, tokenRingMLHistoryBeaconTime=tokenRingMLHistoryBeaconTime, tokenRingMLHistoryBeaconPkts=tokenRingMLHistoryBeaconPkts, tokenRingMLHistoryClaimTokenEvents=tokenRingMLHistoryClaimTokenEvents, tokenRingMLHistoryClaimTokenPkts=tokenRingMLHistoryClaimTokenPkts, tokenRingMLHistoryNAUNChanges=tokenRingMLHistoryNAUNChanges, tokenRingMLHistoryLineErrors=tokenRingMLHistoryLineErrors, tokenRingMLHistoryInternalErrors=tokenRingMLHistoryInternalErrors, tokenRingMLHistoryBurstErrors=tokenRingMLHistoryBurstErrors, tokenRingMLHistoryACErrors=tokenRingMLHistoryACErrors, tokenRingMLHistoryAbortErrors=tokenRingMLHistoryAbortErrors, tokenRingMLHistoryLostFrameErrors=tokenRingMLHistoryLostFrameErrors, tokenRingMLHistoryCongestionErrors=tokenRingMLHistoryCongestionErrors, tokenRingMLHistoryFrameCopiedErrors=tokenRingMLHistoryFrameCopiedErrors, tokenRingMLHistoryFrequencyErrors=tokenRingMLHistoryFrequencyErrors, tokenRingMLHistoryTokenErrors=tokenRingMLHistoryTokenErrors, tokenRingMLHistorySoftErrorReports=tokenRingMLHistorySoftErrorReports, tokenRingMLHistoryRingPollEvents=tokenRingMLHistoryRingPollEvents, tokenRingMLHistoryActiveStations=tokenRingMLHistoryActiveStations, tokenRingPHistoryTable=tokenRingPHistoryTable, tokenRingPHistoryEntry=tokenRingPHistoryEntry, tokenRingPHistoryIndex=tokenRingPHistoryIndex, tokenRingPHistorySampleIndex=tokenRingPHistorySampleIndex, tokenRingPHistoryIntervalStart=tokenRingPHistoryIntervalStart, tokenRingPHistoryDropEvents=tokenRingPHistoryDropEvents, tokenRingPHistoryDataOctets=tokenRingPHistoryDataOctets, tokenRingPHistoryDataPkts=tokenRingPHistoryDataPkts, tokenRingPHistoryDataBroadcastPkts=tokenRingPHistoryDataBroadcastPkts, tokenRingPHistoryDataMulticastPkts=tokenRingPHistoryDataMulticastPkts, tokenRingPHistoryDataPkts18to63Octets=tokenRingPHistoryDataPkts18to63Octets, tokenRingPHistoryDataPkts64to127Octets=tokenRingPHistoryDataPkts64to127Octets, tokenRingPHistoryDataPkts128to255Octets=tokenRingPHistoryDataPkts128to255Octets, tokenRingPHistoryDataPkts256to511Octets=tokenRingPHistoryDataPkts256to511Octets, tokenRingPHistoryDataPkts512to1023Octets=tokenRingPHistoryDataPkts512to1023Octets, tokenRingPHistoryDataPkts1024to2047Octets=tokenRingPHistoryDataPkts1024to2047Octets, tokenRingPHistoryDataPkts2048to4095Octets=tokenRingPHistoryDataPkts2048to4095Octets, tokenRingPHistoryDataPkts4096to8191Octets=tokenRingPHistoryDataPkts4096to8191Octets, tokenRingPHistoryDataPkts8192to18000Octets=tokenRingPHistoryDataPkts8192to18000Octets, tokenRingPHistoryDataPktsGreaterThan18000Octets=tokenRingPHistoryDataPktsGreaterThan18000Octets, tokenRing=tokenRing, ringStationControlTable=ringStationControlTable, ringStationControlEntry=ringStationControlEntry, ringStationControlIfIndex=ringStationControlIfIndex, ringStationControlTableSize=ringStationControlTableSize, ringStationControlActiveStations=ringStationControlActiveStations, ringStationControlRingState=ringStationControlRingState, ringStationControlBeaconSender=ringStationControlBeaconSender, ringStationControlBeaconNAUN=ringStationControlBeaconNAUN, ringStationControlActiveMonitor=ringStationControlActiveMonitor, ringStationControlOrderChanges=ringStationControlOrderChanges, ringStationControlOwner=ringStationControlOwner, ringStationControlStatus=ringStationControlStatus, ringStationTable=ringStationTable, ringStationEntry=ringStationEntry, ringStationIfIndex=ringStationIfIndex, ringStationMacAddress=ringStationMacAddress, ringStationLastNAUN=ringStationLastNAUN, ringStationStationStatus=ringStationStationStatus, ringStationLastEnterTime=ringStationLastEnterTime, ringStationLastExitTime=ringStationLastExitTime, ringStationDuplicateAddresses=ringStationDuplicateAddresses, ringStationInLineErrors=ringStationInLineErrors, ringStationOutLineErrors=ringStationOutLineErrors, ringStationInternalErrors=ringStationInternalErrors, ringStationInBurstErrors=ringStationInBurstErrors, ringStationOutBurstErrors=ringStationOutBurstErrors) mibBuilder.exportSymbols("TOKEN-RING-RMON-MIB", ringStationACErrors=ringStationACErrors, ringStationAbortErrors=ringStationAbortErrors, ringStationLostFrameErrors=ringStationLostFrameErrors, ringStationCongestionErrors=ringStationCongestionErrors, ringStationFrameCopiedErrors=ringStationFrameCopiedErrors, ringStationFrequencyErrors=ringStationFrequencyErrors, ringStationTokenErrors=ringStationTokenErrors, ringStationInBeaconErrors=ringStationInBeaconErrors, ringStationOutBeaconErrors=ringStationOutBeaconErrors, ringStationInsertions=ringStationInsertions, ringStationOrderTable=ringStationOrderTable, ringStationOrderEntry=ringStationOrderEntry, ringStationOrderIfIndex=ringStationOrderIfIndex, ringStationOrderOrderIndex=ringStationOrderOrderIndex, ringStationOrderMacAddress=ringStationOrderMacAddress, ringStationConfigControlTable=ringStationConfigControlTable, ringStationConfigControlEntry=ringStationConfigControlEntry, ringStationConfigControlIfIndex=ringStationConfigControlIfIndex, ringStationConfigControlMacAddress=ringStationConfigControlMacAddress, ringStationConfigControlRemove=ringStationConfigControlRemove, ringStationConfigControlUpdateStats=ringStationConfigControlUpdateStats, ringStationConfigTable=ringStationConfigTable, ringStationConfigEntry=ringStationConfigEntry, ringStationConfigIfIndex=ringStationConfigIfIndex, ringStationConfigMacAddress=ringStationConfigMacAddress, ringStationConfigUpdateTime=ringStationConfigUpdateTime, ringStationConfigLocation=ringStationConfigLocation, ringStationConfigMicrocode=ringStationConfigMicrocode, ringStationConfigGroupAddress=ringStationConfigGroupAddress, ringStationConfigFunctionalAddress=ringStationConfigFunctionalAddress, sourceRoutingStatsTable=sourceRoutingStatsTable, sourceRoutingStatsEntry=sourceRoutingStatsEntry, sourceRoutingStatsIfIndex=sourceRoutingStatsIfIndex, sourceRoutingStatsRingNumber=sourceRoutingStatsRingNumber, sourceRoutingStatsInFrames=sourceRoutingStatsInFrames, sourceRoutingStatsOutFrames=sourceRoutingStatsOutFrames, sourceRoutingStatsThroughFrames=sourceRoutingStatsThroughFrames, sourceRoutingStatsAllRoutesBroadcastFrames=sourceRoutingStatsAllRoutesBroadcastFrames, sourceRoutingStatsSingleRouteBroadcastFrames=sourceRoutingStatsSingleRouteBroadcastFrames, sourceRoutingStatsInOctets=sourceRoutingStatsInOctets, sourceRoutingStatsOutOctets=sourceRoutingStatsOutOctets, sourceRoutingStatsThroughOctets=sourceRoutingStatsThroughOctets, sourceRoutingStatsAllRoutesBroadcastOctets=sourceRoutingStatsAllRoutesBroadcastOctets, sourceRoutingStatsSingleRoutesBroadcastOctets=sourceRoutingStatsSingleRoutesBroadcastOctets, sourceRoutingStatsLocalLLCFrames=sourceRoutingStatsLocalLLCFrames, sourceRoutingStats1HopFrames=sourceRoutingStats1HopFrames, sourceRoutingStats2HopsFrames=sourceRoutingStats2HopsFrames, sourceRoutingStats3HopsFrames=sourceRoutingStats3HopsFrames, sourceRoutingStats4HopsFrames=sourceRoutingStats4HopsFrames, sourceRoutingStats5HopsFrames=sourceRoutingStats5HopsFrames, sourceRoutingStats6HopsFrames=sourceRoutingStats6HopsFrames, sourceRoutingStats7HopsFrames=sourceRoutingStats7HopsFrames, sourceRoutingStats8HopsFrames=sourceRoutingStats8HopsFrames, sourceRoutingStatsMoreThan8HopsFrames=sourceRoutingStatsMoreThan8HopsFrames, sourceRoutingStatsOwner=sourceRoutingStatsOwner, sourceRoutingStatsStatus=sourceRoutingStatsStatus)
191.615578
7,649
0.809842
8,964
76,263
6.889335
0.084226
0.007578
0.010201
0.014816
0.551266
0.52356
0.499968
0.485378
0.40375
0.338769
0
0.049941
0.095472
76,263
398
7,650
191.615578
0.845307
0.003593
0
0
1
0.276596
0.389542
0.019426
0
0
0.000553
0
0
1
0
false
0.00266
0.013298
0
0.023936
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
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ddfad8c6a54ee3dcad998e6151d8fa4f1dc4bcdd
637
py
Python
ATMP_cap_4/cap_4_ex_2.py
gcapistrano/livro-automacao
26b8151146a71d7f0b51473d4a6aef541b872a7d
[ "MIT" ]
null
null
null
ATMP_cap_4/cap_4_ex_2.py
gcapistrano/livro-automacao
26b8151146a71d7f0b51473d4a6aef541b872a7d
[ "MIT" ]
null
null
null
ATMP_cap_4/cap_4_ex_2.py
gcapistrano/livro-automacao
26b8151146a71d7f0b51473d4a6aef541b872a7d
[ "MIT" ]
null
null
null
#"Automatizando tarefas maçantes com Python", capítulo 4, exercício 2 (pág.158 # do pdf) #Objetivo: criar código para reproduzir, a partir do grid, a figura: #..OO.OO.. #.OOOOOOO. #.OOOOOOO. #..OOOOO.. #...OOO... #....O.... #Ou seja, transformar as colunas em linhas. grid = [['.', '.', '.', '.', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['O', 'O', 'O', 'O', 'O', '.'], ['.', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']] x = 0 y = 0 for i in grid: print(grid[x][y]) x += 1
18.735294
78
0.375196
80
637
2.9875
0.525
0.217573
0.313808
0.401674
0.112971
0.112971
0.112971
0.112971
0.112971
0.112971
0
0.015717
0.200942
637
33
79
19.30303
0.453831
0.389325
0
0.428571
0
0
0.14248
0
0
0
0
0
0
1
0
false
0
0
0
0
0.071429
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fb06022ee796b90866c0e51a018a6c6d8846047e
96
py
Python
dist_search/apps.py
pontusgranath/svt-apl
fea759e7629af3e92a03849ad06d82c77e57328e
[ "MIT" ]
2
2021-03-12T14:33:25.000Z
2021-03-12T14:33:27.000Z
dist_search/apps.py
pontusgranath/svt-apl
fea759e7629af3e92a03849ad06d82c77e57328e
[ "MIT" ]
1
2021-04-21T09:29:59.000Z
2021-04-23T12:48:38.000Z
dist_search/apps.py
pontusgranath/svt-apl
fea759e7629af3e92a03849ad06d82c77e57328e
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DistSearchConfig(AppConfig): name = 'dist_search'
16
34
0.770833
11
96
6.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15625
96
5
35
19.2
0.901235
0
0
0
0
0
0.114583
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
348e85757b74dce2e6f5c19737791b4982e4522e
299
py
Python
backend/utils/env.py
Pinletrot/markdown-server
1645bc828b2f8b6c8237bae72e11dcbaea8c41d5
[ "MIT" ]
3
2018-10-31T15:33:49.000Z
2020-04-15T20:48:09.000Z
backend/utils/env.py
Pinletrot/markdown-server
1645bc828b2f8b6c8237bae72e11dcbaea8c41d5
[ "MIT" ]
null
null
null
backend/utils/env.py
Pinletrot/markdown-server
1645bc828b2f8b6c8237bae72e11dcbaea8c41d5
[ "MIT" ]
null
null
null
import os root_path = '/'.join(os.path.dirname(__file__).split('/')[:-2]) tmp_dir = os.path.join(root_path, '.tmp') data_dir = os.path.join(root_path, 'data') note_dir = os.path.join(data_dir, 'notes') slide_dir = os.path.join(data_dir, 'slides') template_dir = os.path.join(data_dir, 'templates')
33.222222
63
0.705686
51
299
3.843137
0.352941
0.244898
0.229592
0.331633
0.520408
0.520408
0
0
0
0
0
0.003663
0.086957
299
8
64
37.375
0.714286
0
0
0
0
0
0.100334
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
55001659270b3652a051a68bee86c92de8700911
98
py
Python
zvt/recorders/yahoo/finance/__init__.py
webclinic017/FinanceCenter
1511751fe6d7d1f1fb940ae66d29b45eb0782fea
[ "MIT" ]
22
2020-10-22T14:24:32.000Z
2022-03-30T22:19:14.000Z
zvt/recorders/yahoo/finance/__init__.py
webclinic017/FinanceCenter
1511751fe6d7d1f1fb940ae66d29b45eb0782fea
[ "MIT" ]
null
null
null
zvt/recorders/yahoo/finance/__init__.py
webclinic017/FinanceCenter
1511751fe6d7d1f1fb940ae66d29b45eb0782fea
[ "MIT" ]
6
2021-01-14T20:50:06.000Z
2022-01-11T23:12:43.000Z
# -*- coding: utf-8 -*- from zvt.recorders.yahoo.finance.us_stock_balance_sheet_recorder import *
32.666667
73
0.765306
14
98
5.071429
1
0
0
0
0
0
0
0
0
0
0
0.011236
0.091837
98
2
74
49
0.786517
0.214286
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
550f6b345dc0a9a3944485e337ad8e308f17f118
53
py
Python
auxjad/makers/__init__.py
gilbertohasnofb/auxjad
553b7fe97221b6f378a93ade6262f024e3cbc678
[ "MIT" ]
6
2020-05-18T09:28:29.000Z
2021-12-22T00:40:54.000Z
auxjad/makers/__init__.py
gilbertohasnofb/auxjad
553b7fe97221b6f378a93ade6262f024e3cbc678
[ "MIT" ]
1
2021-04-21T20:29:38.000Z
2021-04-22T19:44:54.000Z
auxjad/makers/__init__.py
gilbertohasnofb/auxjad
553b7fe97221b6f378a93ade6262f024e3cbc678
[ "MIT" ]
1
2021-04-21T18:54:46.000Z
2021-04-21T18:54:46.000Z
""" makers ====== Auxjad's leaf making classes. """
7.571429
29
0.566038
6
53
5
1
0
0
0
0
0
0
0
0
0
0
0
0.169811
53
6
30
8.833333
0.681818
0.830189
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5513bd2d2077f022f0580caa1e70c69a812457ca
60
py
Python
data/typing/pandas.api.py
pydata-apis/python-api-record
684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b
[ "MIT" ]
67
2020-08-17T11:53:26.000Z
2021-11-08T20:16:06.000Z
data/typing/pandas.api.py
data-apis/python-record-api
684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b
[ "MIT" ]
36
2020-08-17T11:09:51.000Z
2021-12-15T18:09:47.000Z
data/typing/pandas.api.py
pydata-apis/python-api-record
684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b
[ "MIT" ]
7
2020-08-19T05:06:47.000Z
2020-11-04T05:10:38.000Z
from typing import * # usage.geopandas: 2 indexers: object
12
20
0.75
8
60
5.625
1
0
0
0
0
0
0
0
0
0
0
0.02
0.166667
60
4
21
15
0.88
0.3
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9b28bc41df4d5149172214b259fce500d6991cda
29
py
Python
tripleo_validations/tests/lookup_plugins/__init__.py
openstack/tripleo-validations
527860250cfe5b221fc7a39286b8f26f498482dd
[ "Apache-2.0" ]
26
2016-05-25T08:21:03.000Z
2021-12-20T11:26:23.000Z
tripleo_validations/tests/lookup_plugins/__init__.py
openstack/tripleo-validations
527860250cfe5b221fc7a39286b8f26f498482dd
[ "Apache-2.0" ]
null
null
null
tripleo_validations/tests/lookup_plugins/__init__.py
openstack/tripleo-validations
527860250cfe5b221fc7a39286b8f26f498482dd
[ "Apache-2.0" ]
14
2016-09-21T10:10:00.000Z
2022-01-09T13:06:38.000Z
"""Lookup plugins tests. """
9.666667
24
0.62069
3
29
6
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
2
25
14.5
0.72
0.724138
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9b2a7153e2f0c09e7cf35aa71f59b8d933210282
41
py
Python
svtool/__version__.py
zeissmania/sv_tool
7cf60c345fae20e0f79eb660a12ef9b15f561b7f
[ "MIT" ]
null
null
null
svtool/__version__.py
zeissmania/sv_tool
7cf60c345fae20e0f79eb660a12ef9b15f561b7f
[ "MIT" ]
null
null
null
svtool/__version__.py
zeissmania/sv_tool
7cf60c345fae20e0f79eb660a12ef9b15f561b7f
[ "MIT" ]
null
null
null
__version__ = "0.0.2" __name__ = "svtool"
20.5
21
0.682927
6
41
3.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.083333
0.121951
41
2
22
20.5
0.472222
0
0
0
0
0
0.261905
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
9b37b6a2e8ebf494028e6bab98f3dcab33587b05
170
py
Python
transpydata/config/IConfigurable.py
salpreh/transpydata
88cecf53f93b316e8fd95983c28a918ca2f41cf4
[ "Apache-2.0" ]
null
null
null
transpydata/config/IConfigurable.py
salpreh/transpydata
88cecf53f93b316e8fd95983c28a918ca2f41cf4
[ "Apache-2.0" ]
4
2020-12-09T17:56:21.000Z
2021-01-25T22:03:12.000Z
transpydata/config/IConfigurable.py
salpreh/transpydata
88cecf53f93b316e8fd95983c28a918ca2f41cf4
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod class IConfigurable(metaclass=ABCMeta): @abstractmethod def configure(self, config): raise NotImplementedError
18.888889
39
0.752941
16
170
8
0.875
0.328125
0
0
0
0
0
0
0
0
0
0
0.188235
170
8
40
21.25
0.927536
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
9b500a59c5f0a8390981763461d2ef6b2b9a5f5a
206
py
Python
example/apps.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
11
2019-08-07T01:31:42.000Z
2021-02-02T08:12:24.000Z
example/apps.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
148
2019-08-01T04:22:28.000Z
2021-05-10T19:06:31.000Z
example/apps.py
infoxchange/django_elastic_appsearch
65229586f0392d8d8cb143ab625081c89fa4cb64
[ "MIT" ]
6
2019-08-26T10:00:42.000Z
2021-02-01T03:54:02.000Z
"""Example app config.""" from django.apps import AppConfig class ExampleAppConfig(AppConfig): """Example app config.""" name = 'example' default_auto_field = 'django.db.models.BigAutoField'
20.6
56
0.708738
23
206
6.26087
0.73913
0.138889
0.222222
0
0
0
0
0
0
0
0
0
0.160194
206
9
57
22.888889
0.83237
0.18932
0
0
0
0
0.230769
0.185897
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
9b52d5bcadb125341710e19fdf16132ba8e7a948
89
py
Python
Lib/windows/__init__.py
pyparallel/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
Lib/windows/__init__.py
tpn/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
Lib/windows/__init__.py
tpn/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
# Stub for some helper Cython Windows wrappers (source code in # ../../contrib/windows).
29.666667
62
0.719101
12
89
5.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.146067
89
2
63
44.5
0.842105
0.94382
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9b8ff81f29915a496eaf04b69efcc2156d614386
167
py
Python
challenge_2/python/popcorn_anachronism/challenge_2.py
rchicoli/2017-challenges
44f0b672e5dea34de1dde131b6df837d462f8e29
[ "Apache-2.0" ]
271
2017-01-01T22:58:36.000Z
2021-11-28T23:05:29.000Z
challenge_2/python/popcorn_anachronism/challenge_2.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
283
2017-01-01T23:26:05.000Z
2018-03-23T00:48:55.000Z
challenge_2/python/popcorn_anachronism/challenge_2.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
311
2017-01-01T22:59:23.000Z
2021-09-23T00:29:12.000Z
array = list(input().split(",")) def find_single(array): for item in array: if array.count(item) == 1: return item print(find_single(array))
18.555556
34
0.598802
23
167
4.26087
0.652174
0.204082
0.306122
0
0
0
0
0
0
0
0
0.008
0.251497
167
8
35
20.875
0.776
0
0
0
0
0
0.005988
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
9b952a7b5a51d6aad3e8d60d7550fe4399210556
972
py
Python
voithos/cli/service/service.py
breqwatr/voidith
4433b687969ad09de40b399871cec768f199d326
[ "Apache-2.0" ]
3
2020-05-13T16:06:59.000Z
2020-05-14T19:29:50.000Z
voithos/cli/service/service.py
breqwatr/voidith
4433b687969ad09de40b399871cec768f199d326
[ "Apache-2.0" ]
8
2020-12-03T17:35:35.000Z
2021-11-29T16:24:34.000Z
voithos/cli/service/service.py
breqwatr/voidith
4433b687969ad09de40b399871cec768f199d326
[ "Apache-2.0" ]
9
2020-07-30T18:03:45.000Z
2021-12-07T17:34:20.000Z
""" Command-group for Voithos Services """ import click import voithos.cli.service.arcus.arcus as arcus import voithos.cli.service.apt as apt import voithos.cli.service.grafana as grafana import voithos.cli.service.horizon as horizon import voithos.cli.service.registry as registry import voithos.cli.service.pip as pip import voithos.cli.service.pxe as pxe import voithos.cli.service.rsyslog as rsyslog def get_service_group(): """ Return the service click group """ @click.group() def service(): """ Manage Voithos services """ service.add_command(apt.get_apt_group()) service.add_command(arcus.get_arcus_group()) service.add_command(grafana.get_grafana_group()) service.add_command(horizon.get_horizon_group()) service.add_command(pip.get_pip_group()) service.add_command(pxe.get_pxe_group()) service.add_command(registry.get_registry_group()) service.add_command(rsyslog.get_rsyslog_group()) return service
32.4
54
0.763374
138
972
5.188406
0.173913
0.145251
0.178771
0.256983
0
0
0
0
0
0
0
0
0.131687
972
29
55
33.517241
0.848341
0.093621
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
true
0
0.428571
0
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
32e1f98bdcb34320621d503478b8c3852f98d242
91
py
Python
api/contract/apps.py
sttpforever/Account_lite
2f4f42b50d4aff4aabaeb9325abefcf866cd4612
[ "MIT" ]
null
null
null
api/contract/apps.py
sttpforever/Account_lite
2f4f42b50d4aff4aabaeb9325abefcf866cd4612
[ "MIT" ]
3
2020-02-11T22:59:47.000Z
2021-03-19T22:03:11.000Z
contract/apps.py
YangWanjun/ebusiness
03d92908b4db1a305c8cb99fc27700fd4dc972bd
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class ContractConfig(AppConfig): name = 'contract'
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
32e2e241e1a9aef440d96edb7645eb303cf68bc2
929
py
Python
datastruct/queue/ArrayQueue.py
LibertyDream/algorithm_data_structure
5d143d04d001a9b8aef30334881d0af56d8c9850
[ "MIT" ]
null
null
null
datastruct/queue/ArrayQueue.py
LibertyDream/algorithm_data_structure
5d143d04d001a9b8aef30334881d0af56d8c9850
[ "MIT" ]
null
null
null
datastruct/queue/ArrayQueue.py
LibertyDream/algorithm_data_structure
5d143d04d001a9b8aef30334881d0af56d8c9850
[ "MIT" ]
null
null
null
from Array import Array from Queue import Queue class ArrayQueue(Queue): def __init__(self, capacity: int = 10): self.__data = Array(capacity) def get_size(self): return self.__data.get_size() def enqueue(self, ele): self.__data.add_to_last(ele) def is_empty(self): return self.__data.is_empty() def dequeue(self): return self.__data.remove_first() def get_front(self): return self.__data.get_first() def get_capacity(self): return self.__data.get_capacity() def __str__(self): bstr = 'ArrayQueue size: %d, capacity: %d\n' % (self.__data.get_size(), self.__data.get_capacity()) bstr += 'front [' for i in range(self.__data.get_size()): bstr += '' + str(self.__data.get(i)) if i != self.__data.get_size() - 1: bstr += ', ' bstr += '] tail' return bstr
25.108108
107
0.587729
121
929
4.123967
0.31405
0.192385
0.176353
0.180361
0.126253
0
0
0
0
0
0
0.004498
0.282024
929
36
108
25.805556
0.743628
0
0
0
0
0
0.053821
0
0
0
0
0
0
1
0.307692
false
0
0.076923
0.192308
0.653846
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
32e45ebab35aaa1ce182431af060c1d2c3bfd834
573
py
Python
scripts/udf/functions.py
corneliouzbett/Ampath-Data-Flow
397e7ac710c6070d82196cee39613640c5ec8118
[ "MIT" ]
1
2019-04-02T18:49:56.000Z
2019-04-02T18:49:56.000Z
scripts/udf/functions.py
corneliouzbett/Ampath-Data-Flow
397e7ac710c6070d82196cee39613640c5ec8118
[ "MIT" ]
null
null
null
scripts/udf/functions.py
corneliouzbett/Ampath-Data-Flow
397e7ac710c6070d82196cee39613640c5ec8118
[ "MIT" ]
null
null
null
import os import re import sys def search_obs_value(obs, concept): return re.findall('## !!'+ str(concept) + '=(.+?)!! ##',obs) obs= '!!1834=7850!! ## !!1915=Patient is awaiting imaging results, then start darcabazine 250 ml every 21 days.!! ## !!1915=Patient is HIV positive since 2016,no presents with pains on the plantar surface and pelvic pain.!! ## !!5096=2013-07-29!! ## !!5219=1068!! ## !!6504=7189!! ## !!6509=6511!! ## !!6575=1107!! ## !!6605=1065!! ## !!7191=MELANOMA OF THE RIGHT HEEL.!! ## !!8723=5622!!' bett = search_obs_value(obs, '1915') print(bett)
52.090909
389
0.645724
83
573
4.409639
0.795181
0.04918
0.076503
0.092896
0
0
0
0
0
0
0
0.188641
0.139616
573
11
390
52.090909
0.553753
0
0
0
0
0.125
0.700348
0
0
0
0
0
0
1
0.125
false
0
0.375
0.125
0.625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
4
b5c3cf2453c58378a645ad83b69872854563ea9d
222
py
Python
2019/D17/Q2/Operation99.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2019/D17/Q2/Operation99.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2019/D17/Q2/Operation99.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
from Operation import Operation class Operation99(Operation): @staticmethod def getNumberOfOperands(): return 1 @staticmethod def getValue(sequence, currentIndex, modes): return sequence
18.5
48
0.702703
20
222
7.8
0.7
0.192308
0
0
0
0
0
0
0
0
0
0.017751
0.238739
222
11
49
20.181818
0.905325
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0.25
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
b5d08e424ee858adb208502153fcfaccfe34a5d7
174
py
Python
src/insalata/planning/PlanParserBase.py
tumi8/INSALATA
e4c552023334f709b9586f664b7e049036133d33
[ "Apache-2.0" ]
6
2016-11-25T17:31:57.000Z
2018-02-15T16:39:38.000Z
src/insalata/planning/PlanParserBase.py
tumi8/INSALATA
e4c552023334f709b9586f664b7e049036133d33
[ "Apache-2.0" ]
null
null
null
src/insalata/planning/PlanParserBase.py
tumi8/INSALATA
e4c552023334f709b9586f664b7e049036133d33
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod class PlanParserBase(metaclass=ABCMeta): @abstractmethod def parsePlan(self, objects, functionDict, planFile): pass
21.75
57
0.747126
17
174
7.647059
0.882353
0.323077
0
0
0
0
0
0
0
0
0
0
0.183908
174
7
58
24.857143
0.915493
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.2
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
b5d0f6cd857affc94fc49f0776eb243220f9d6aa
278
py
Python
easypeasyml/src/__init__.py
llFireHawkll/easypeasyML
a5d662d85661eeb588b20ffb195dcb223581e708
[ "MIT" ]
null
null
null
easypeasyml/src/__init__.py
llFireHawkll/easypeasyML
a5d662d85661eeb588b20ffb195dcb223581e708
[ "MIT" ]
null
null
null
easypeasyml/src/__init__.py
llFireHawkll/easypeasyML
a5d662d85661eeb588b20ffb195dcb223581e708
[ "MIT" ]
null
null
null
''' File: __init__.py Project: src File Created: Sunday, 28th February 2021 3:03:13 am Author: Sparsh Dutta (sparsh.dtt@gmail.com) ----- Last Modified: Sunday, 28th February 2021 3:03:13 am Modified By: Sparsh Dutta (sparsh.dtt@gmail.com>) ----- Copyright 2021 Sparsh Dutta '''
23.166667
52
0.723022
44
278
4.477273
0.545455
0.167513
0.182741
0.22335
0.57868
0.57868
0.294416
0.294416
0
0
0
0.107884
0.133094
278
11
53
25.272727
0.709544
0.967626
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
bd0d3617bf7252753e3d2f2ecf5cc6fd0b323fa8
151
py
Python
Mundo 1/Desafio/016.py
LeonardoJosedaSilveira/Curso-de-python
e5b7920ce75a3c7af9b8250e18cabaa173e2478b
[ "MIT" ]
null
null
null
Mundo 1/Desafio/016.py
LeonardoJosedaSilveira/Curso-de-python
e5b7920ce75a3c7af9b8250e18cabaa173e2478b
[ "MIT" ]
null
null
null
Mundo 1/Desafio/016.py
LeonardoJosedaSilveira/Curso-de-python
e5b7920ce75a3c7af9b8250e18cabaa173e2478b
[ "MIT" ]
null
null
null
n0 = float(input('Digite um numero ')) print('A parte inteira do número é {:.0f}'.format(n0 // 1)) print('\033[1;35;41meste é um teste de cores\033[m')
50.333333
59
0.668874
29
151
3.482759
0.793103
0
0
0
0
0
0
0
0
0
0
0.114504
0.13245
151
3
60
50.333333
0.656489
0
0
0
0
0
0.618421
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
bd2783a9a07f744730004e0eee03aec065201273
116
py
Python
jupy/__init__.py
Jow1e/jupy
30f5d00c5cc7750d2f0320dc075ec2bf0824275e
[ "MIT" ]
null
null
null
jupy/__init__.py
Jow1e/jupy
30f5d00c5cc7750d2f0320dc075ec2bf0824275e
[ "MIT" ]
null
null
null
jupy/__init__.py
Jow1e/jupy
30f5d00c5cc7750d2f0320dc075ec2bf0824275e
[ "MIT" ]
null
null
null
from .tensor import Tensor from .easy_func_access import * from .optimizers import AdamW, SGD from .nn import *
23.2
35
0.758621
17
116
5.058824
0.588235
0
0
0
0
0
0
0
0
0
0
0
0.181034
116
4
36
29
0.905263
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
bd27d2286d1dbeba121f661cc02f4d58253212d6
112
py
Python
othello/app.py
Mcclujdd/othello
066628d8e6932840c59ad0f726a6e0960490aede
[ "MIT" ]
null
null
null
othello/app.py
Mcclujdd/othello
066628d8e6932840c59ad0f726a6e0960490aede
[ "MIT" ]
null
null
null
othello/app.py
Mcclujdd/othello
066628d8e6932840c59ad0f726a6e0960490aede
[ "MIT" ]
1
2021-07-27T02:12:06.000Z
2021-07-27T02:12:06.000Z
from othello.game.board import drawBoard, generateBoardValues board = generateBoardValues() drawBoard(board)
16
61
0.821429
11
112
8.363636
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.107143
112
6
62
18.666667
0.92
0
0
0
1
0
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
bd520621572d039f183249ff76f1a4331f9ddb9a
59
py
Python
pizzashop/__init__.py
dzeban/python-imports
dafa41ff5faf5e35bddeeaba5849aa02894ec315
[ "MIT" ]
5
2019-05-07T11:52:10.000Z
2021-12-29T15:57:25.000Z
pizzashop/__init__.py
dzeban/python-imports
dafa41ff5faf5e35bddeeaba5849aa02894ec315
[ "MIT" ]
1
2018-09-15T07:36:24.000Z
2018-09-15T07:36:24.000Z
pizzashop/__init__.py
dzeban/python-imports
dafa41ff5faf5e35bddeeaba5849aa02894ec315
[ "MIT" ]
2
2018-12-08T22:37:36.000Z
2019-06-27T18:04:42.000Z
# Presense of __init__.py makes directory a Python package
29.5
58
0.813559
9
59
4.888889
1
0
0
0
0
0
0
0
0
0
0
0
0.152542
59
1
59
59
0.88
0.949153
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
bd539076ee93fb6212590b338376e9b8544c56f8
76
py
Python
src/hello/hello.py
cyancirrus/integration
e2f6ca9e48ec56fb5d9fa94a22dcfa3b81652a01
[ "MIT" ]
null
null
null
src/hello/hello.py
cyancirrus/integration
e2f6ca9e48ec56fb5d9fa94a22dcfa3b81652a01
[ "MIT" ]
null
null
null
src/hello/hello.py
cyancirrus/integration
e2f6ca9e48ec56fb5d9fa94a22dcfa3b81652a01
[ "MIT" ]
null
null
null
def PleaseSayHello(user: str) -> str: print("hello world" + " " + user)
25.333333
37
0.605263
9
76
5.111111
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.210526
76
2
38
38
0.766667
0
0
0
0
0
0.157895
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
4
1fe40d8d215f917088c1c0aa20000f18d6eae21c
34
py
Python
tests/__init__.py
elinsky/padl
7f10be00a799d0a19eaa552f060f2cf9f4bcf3ef
[ "MIT" ]
null
null
null
tests/__init__.py
elinsky/padl
7f10be00a799d0a19eaa552f060f2cf9f4bcf3ef
[ "MIT" ]
20
2020-11-02T14:47:42.000Z
2021-06-12T13:01:07.000Z
tests/__init__.py
elinsky/padl
7f10be00a799d0a19eaa552f060f2cf9f4bcf3ef
[ "MIT" ]
null
null
null
"""Unit test package for padl."""
17
33
0.647059
5
34
4.4
1
0
0
0
0
0
0
0
0
0
0
0
0.147059
34
1
34
34
0.758621
0.794118
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
1fe554b122d237588e3689a75000dc6c73f957f7
146
py
Python
Chapter01/01_first.py
PacktPublishing/MicroPython-Cookbook
ffd6aa15c303459570a89ba31b5bc734f05cb387
[ "MIT" ]
16
2019-07-01T16:24:22.000Z
2022-03-03T06:54:57.000Z
Chapter01/01_first.py
ccwu0918/MicroPython-Cookbook
ffd6aa15c303459570a89ba31b5bc734f05cb387
[ "MIT" ]
null
null
null
Chapter01/01_first.py
ccwu0918/MicroPython-Cookbook
ffd6aa15c303459570a89ba31b5bc734f05cb387
[ "MIT" ]
19
2019-04-17T08:30:12.000Z
2022-01-14T03:05:37.000Z
from adafruit_circuitplayground.express import cpx import time cpx.pixels[0] = (255, 0, 0) # set first NeoPixel to the color red time.sleep(60)
24.333333
66
0.760274
24
146
4.583333
0.791667
0
0
0
0
0
0
0
0
0
0
0.064516
0.150685
146
5
67
29.2
0.822581
0.239726
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
1fee2856824566a14f9ae73ddaff2a5b420925e3
292
py
Python
Develop/subgroup2_dev/movies/models.py
Youhoseong/MovieProject
c8649872a364e2e2ea1a58d6a7431f0282f8e90c
[ "MIT" ]
11
2021-03-24T13:20:22.000Z
2021-08-22T15:43:04.000Z
Develop/subgroup2_dev/movies/models.py
Youhoseong/MovieProject
c8649872a364e2e2ea1a58d6a7431f0282f8e90c
[ "MIT" ]
null
null
null
Develop/subgroup2_dev/movies/models.py
Youhoseong/MovieProject
c8649872a364e2e2ea1a58d6a7431f0282f8e90c
[ "MIT" ]
5
2021-03-24T13:24:44.000Z
2021-07-14T07:05:23.000Z
from django.db import models # Create your models here. class MovieModel(models.Model): created = models.DateTimeField(auto_now_add=True) title = models.CharField(max_length=40) director = models.CharField(max_length=10) keyword = models.CharField(max_length=10, blank=True)
32.444444
57
0.760274
40
292
5.425
0.65
0.207373
0.248848
0.331797
0.239631
0
0
0
0
0
0
0.023904
0.140411
292
8
58
36.5
0.840637
0.082192
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
95115c55742951f6619420d087b50875cdf6c2fb
98
py
Python
pinax/announcements/__init__.py
craigds/pinax-announcements
ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab
[ "MIT" ]
34
2016-03-29T22:09:16.000Z
2022-03-22T11:15:23.000Z
pinax/announcements/__init__.py
craigds/pinax-announcements
ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab
[ "MIT" ]
33
2016-02-20T19:36:40.000Z
2021-12-14T15:49:55.000Z
pinax/announcements/__init__.py
craigds/pinax-announcements
ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab
[ "MIT" ]
19
2016-02-29T18:32:30.000Z
2022-03-28T21:15:15.000Z
import pkg_resources __version__ = pkg_resources.get_distribution("pinax-announcements").version
24.5
75
0.857143
11
98
7
0.727273
0.311688
0
0
0
0
0
0
0
0
0
0
0.061224
98
3
76
32.666667
0.836957
0
0
0
0
0
0.193878
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
951502fbac537a4fd850b103c4f02db7d42e1a04
143
py
Python
tutorials/W0D4_Calculus/solutions/W0D4_Tutorial3_Solution_df2aee4c.py
eduardojdiniz/CompNeuro
20269e66540dc4e802273735c97323020ee37406
[ "CC-BY-4.0", "BSD-3-Clause" ]
2,294
2020-05-11T12:05:35.000Z
2022-03-28T21:23:34.000Z
tutorials/W0D4_Calculus/solutions/W0D4_Tutorial3_Solution_df2aee4c.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
629
2020-05-11T15:42:26.000Z
2022-03-29T12:23:35.000Z
tutorials/W0D4_Calculus/solutions/W0D4_Tutorial3_Solution_df2aee4c.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
917
2020-05-11T12:47:53.000Z
2022-03-31T12:14:41.000Z
""" 1. The oscillations start getting larger and larger which could in the end become uncontrollable 2. Looking at the shape of the spiral """
28.6
96
0.769231
23
143
4.782609
0.826087
0
0
0
0
0
0
0
0
0
0
0.016949
0.174825
143
5
97
28.6
0.915254
0.937063
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
1f0a23214938f80e2d254e96cf2d703174835d54
1,131
py
Python
agsearch/interfaces.py
D-K-E/agsearch-python
40ced806e579c470581c71b22fe762bedf8b4027
[ "MIT" ]
null
null
null
agsearch/interfaces.py
D-K-E/agsearch-python
40ced806e579c470581c71b22fe762bedf8b4027
[ "MIT" ]
null
null
null
agsearch/interfaces.py
D-K-E/agsearch-python
40ced806e579c470581c71b22fe762bedf8b4027
[ "MIT" ]
null
null
null
"""! Abstract objects to be used as interfaces """ from abc import ABC, abstractmethod class AbstractPreprocessor(ABC): """! """ @abstractmethod def clean_text(self, text: str): """! Clean text """ raise NotImplementedError @abstractmethod def read_text(self, path: str) -> str: "" raise NotImplementedError @abstractmethod def to_lower(self, txt: str) -> str: "" raise NotImplementedError @abstractmethod def remove_stop_words(self, txt: str) -> str: "" raise NotImplementedError @abstractmethod def remove_punk(self, txt: str) -> str: "" raise NotImplementedError @abstractmethod def remove_multiple_space(self, txt: str): "" raise NotImplementedError class AbstractGreekPreprocessor(AbstractPreprocessor): """! """ @abstractmethod def remove_accent(self, txt: str) -> str: "" raise NotImplementedError @abstractmethod def remove_non_greek(self, txt: str) -> str: "" raise NotImplementedError
19.842105
54
0.605659
101
1,131
6.673267
0.336634
0.20178
0.280415
0.364985
0.480712
0.480712
0.356083
0.356083
0.356083
0
0
0
0.297966
1,131
56
55
20.196429
0.848867
0.061892
0
0.676471
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.029412
0
0.323529
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
1
0
0
0
0
0
0
0
4
1f62fc72d762a65a66eea10a32ea0312c7d49800
426
py
Python
Chatbot_CN/view.py
guci314/Chatbot_CN
02044eed4a141aa8c61d6064c166f95dbdae894c
[ "Apache-2.0" ]
8
2019-08-12T12:38:35.000Z
2022-02-21T03:25:04.000Z
Chatbot_CN/view.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
null
null
null
Chatbot_CN/view.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
5
2020-01-08T15:30:38.000Z
2022-02-15T02:39:46.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: view Description : Author : charl date: 2018/8/1 ------------------------------------------------- Change Activity: 2018/8/1: ------------------------------------------------- """ from django.http import HttpResponse def hello(request): return HttpResponse("您好,欢迎来到聊天机器人开发实战!")
23.666667
49
0.361502
30
426
5.133333
0.833333
0.064935
0.077922
0
0
0
0
0
0
0
0
0.03869
0.211268
426
18
50
23.666667
0.419643
0.732394
0
0
0
0
0.158879
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
0
0
0
4
1f701a629ff28e4a726fb7607af4e9689b2b410b
99
py
Python
ims_summary/utils.py
andy-d-palmer/ims_summary
3f4cb3a9e82171dc040b1c1da4302529711007f7
[ "MIT" ]
null
null
null
ims_summary/utils.py
andy-d-palmer/ims_summary
3f4cb3a9e82171dc040b1c1da4302529711007f7
[ "MIT" ]
null
null
null
ims_summary/utils.py
andy-d-palmer/ims_summary
3f4cb3a9e82171dc040b1c1da4302529711007f7
[ "MIT" ]
null
null
null
def read_config(filename): import json config = json.load(open(filename)) return config
24.75
38
0.707071
13
99
5.307692
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.20202
99
4
39
24.75
0.873418
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
1f779419d282bc4ad8061db29beb7767a3233e04
413
py
Python
release/src-rt-6.x.4708/router/samba3/lib/testtools/testtools/testresult/__init__.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2019-01-13T09:19:10.000Z
2019-02-15T01:21:02.000Z
release/src-rt-6.x.4708/router/samba3/lib/testtools/testtools/testresult/__init__.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
null
null
null
release/src-rt-6.x.4708/router/samba3/lib/testtools/testtools/testresult/__init__.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2020-03-08T01:58:25.000Z
2020-12-20T10:34:54.000Z
# Copyright (c) 2009 Jonathan M. Lange. See LICENSE for details. """Test result objects.""" __all__ = [ 'ExtendedToOriginalDecorator', 'MultiTestResult', 'TestResult', 'TextTestResult', 'ThreadsafeForwardingResult', ] from testtools.testresult.real import ( ExtendedToOriginalDecorator, MultiTestResult, TestResult, TextTestResult, ThreadsafeForwardingResult, )
20.65
64
0.699758
29
413
9.827586
0.793103
0.294737
0.364912
0.463158
0.645614
0
0
0
0
0
0
0.012158
0.20339
413
19
65
21.736842
0.854103
0.20339
0
0
0
0
0.28483
0.164087
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
1
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
4
1f8051f85214d62cb0800312cf1d6b252054eed5
60
py
Python
src/ap_rss_reader/__main__.py
fossabot/ap-rss-reader
d1909120994390c74066dfbbd5a45055b4c97d8a
[ "MIT" ]
null
null
null
src/ap_rss_reader/__main__.py
fossabot/ap-rss-reader
d1909120994390c74066dfbbd5a45055b4c97d8a
[ "MIT" ]
null
null
null
src/ap_rss_reader/__main__.py
fossabot/ap-rss-reader
d1909120994390c74066dfbbd5a45055b4c97d8a
[ "MIT" ]
null
null
null
"""Execute AP RSS-reader.""" from . import cli cli.main()
10
28
0.633333
9
60
4.222222
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.166667
60
5
29
12
0.76
0.366667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
1f961300f9eb79a0464f4bd8d7fe4a94689b0180
415
py
Python
trainer/base_trainer.py
marsggbo/CovidNet3D
0aeca91a775f938a0e568dd88d8162473dacf3ce
[ "MIT" ]
5
2021-02-23T06:43:31.000Z
2021-07-05T15:24:05.000Z
trainer/base_trainer.py
etherx-dev/CovidNet3D
b107d7d965cad07f1890ee492857273f3468cc01
[ "MIT" ]
1
2021-06-08T21:06:10.000Z
2021-06-08T21:06:10.000Z
trainer/base_trainer.py
etherx-dev/CovidNet3D
b107d7d965cad07f1890ee492857273f3468cc01
[ "MIT" ]
4
2021-02-01T03:29:16.000Z
2021-08-05T09:13:37.000Z
from abc import ABC, abstractmethod __all__ = [ 'BaseTrainer', ] class BaseTrainer(ABC): @abstractmethod def train(self): raise NotImplementedError @abstractmethod def validate(self): raise NotImplementedError @abstractmethod def export(self, file): raise NotImplementedError @abstractmethod def checkpoint(self): raise NotImplementedError
16.6
35
0.674699
35
415
7.885714
0.457143
0.246377
0.304348
0.445652
0.326087
0
0
0
0
0
0
0
0.260241
415
24
36
17.291667
0.899023
0
0
0.470588
0
0
0.02657
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.352941
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
1
0
0
0
0
0
0
0
4
2f096b96703bbe9d5c248fab4dca6f63450cbc4a
140
py
Python
vim/templates/python_header.py
hwp/myrc
942460c6cce0810050ae4cb70106a0a98a30353e
[ "MIT" ]
null
null
null
vim/templates/python_header.py
hwp/myrc
942460c6cce0810050ae4cb70106a0a98a30353e
[ "MIT" ]
null
null
null
vim/templates/python_header.py
hwp/myrc
942460c6cce0810050ae4cb70106a0a98a30353e
[ "MIT" ]
null
null
null
""" <+$FILENAME$+> Copyright (c) <+$YEAR$+> Idiap Research Institute, http://www.idiap.ch/ Written by Weipeng He <weipeng.he@idiap.ch> """
20
71
0.657143
19
140
4.842105
0.736842
0.152174
0
0
0
0
0
0
0
0
0
0
0.114286
140
6
72
23.333333
0.741935
0.935714
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2f1491de0e6f5dcbaebe0aad7ab60997d9b491c9
2,688
py
Python
rl/preprocessor/linear.py
AsimKhan2019/OpenAI-Lab
d0669d89268f2dc01c1cf878e4879775c7b6eb3c
[ "MIT" ]
340
2017-02-21T02:32:39.000Z
2021-12-20T00:47:18.000Z
rl/preprocessor/linear.py
AsimKhan2019/OpenAI-Lab
d0669d89268f2dc01c1cf878e4879775c7b6eb3c
[ "MIT" ]
14
2017-02-15T19:46:36.000Z
2018-12-15T23:42:21.000Z
rl/preprocessor/linear.py
AsimKhan2019/OpenAI-Lab
d0669d89268f2dc01c1cf878e4879775c7b6eb3c
[ "MIT" ]
72
2017-02-21T05:16:00.000Z
2021-12-06T03:34:57.000Z
import numpy as np from rl.preprocessor.base_preprocessor import PreProcessor class NoPreProcessor(PreProcessor): ''' Default class, no preprocessing ''' def __init__(self, **kwargs): # absorb generic param without breaking): super(NoPreProcessor, self).__init__() def preprocess_state(self): return self.state def preprocess_memory(self, action, reward, next_state, done): '''No state processing''' self.add_raw_exp(action, reward, next_state, done) (_state, action, reward, next_state, done) = self.exp_queue[-1] processed_exp = (action, reward, next_state, done) return processed_exp class StackStates(PreProcessor): ''' Current and last state are concatenated to form input to model ''' def __init__(self, **kwargs): # absorb generic param without breaking): super(StackStates, self).__init__(max_queue_size=2) def preprocess_state(self): processed_state = np.concatenate([self.previous_state, self.state]) return processed_state def preprocess_memory(self, action, reward, next_state, done): '''Concatenate: previous + current states''' self.add_raw_exp(action, reward, next_state, done) if (self.exp_queue_size() < self.MAX_QUEUE_SIZE): # insufficient queue return (state, action, reward, next_state, done) = self.exp_queue[-1] processed_state = self.preprocess_state() processed_next_state = np.concatenate([state, next_state]) self.debug_state(processed_state, processed_next_state) processed_exp = (action, reward, processed_next_state, done) return processed_exp class DiffStates(PreProcessor): ''' Different between current and last state is input to model ''' def __init__(self, **kwargs): # absorb generic param without breaking): super(DiffStates, self).__init__(max_queue_size=2) def preprocess_state(self): processed_state = self.state - self.previous_state return processed_state def preprocess_memory(self, action, reward, next_state, done): '''Change in state, curr_state - last_state''' self.add_raw_exp(action, reward, next_state, done) if (self.exp_queue_size() < self.MAX_QUEUE_SIZE): # insufficient queue return (state, action, reward, next_state, done) = self.exp_queue[-1] processed_state = self.preprocess_state() processed_next_state = next_state - state self.debug_state(processed_state, processed_next_state) processed_exp = (action, reward, processed_next_state, done) return processed_exp
35.84
79
0.68564
323
2,688
5.399381
0.198142
0.09289
0.08945
0.120413
0.720183
0.720183
0.711583
0.688073
0.688073
0.666284
0
0.002383
0.219494
2,688
74
80
36.324324
0.828885
0.153274
0
0.659091
0
0
0
0
0
0
0
0
0
1
0.204545
false
0
0.045455
0.022727
0.5
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
1
0
0
0
0
0
0
0
4
2f3ae0eb71d6fafe65d1a781e798de2b25d674a5
108
py
Python
code/python/newmaze.py
Codernob/problem-solving-codes
c852bae4e31887bd442d70af921348c8f1d246bf
[ "MIT" ]
null
null
null
code/python/newmaze.py
Codernob/problem-solving-codes
c852bae4e31887bd442d70af921348c8f1d246bf
[ "MIT" ]
null
null
null
code/python/newmaze.py
Codernob/problem-solving-codes
c852bae4e31887bd442d70af921348c8f1d246bf
[ "MIT" ]
null
null
null
def fun(n): if n%2==0: return '.' return '*' l=[[fun(j) for j in range(5)] for i in range(5)] print(l)
13.5
48
0.546296
24
108
2.458333
0.625
0.237288
0.271186
0
0
0
0
0
0
0
0
0.047059
0.212963
108
8
49
13.5
0.647059
0
0
0
0
0
0.018349
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0.166667
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2f45555903ac2262d4e32c34e3fa499bb1d50d67
101
py
Python
apps.py
marshaleaton/component-test
df40f7e73214007f2b2b9faeb75f5c3d9dbb1f03
[ "MIT" ]
null
null
null
apps.py
marshaleaton/component-test
df40f7e73214007f2b2b9faeb75f5c3d9dbb1f03
[ "MIT" ]
null
null
null
apps.py
marshaleaton/component-test
df40f7e73214007f2b2b9faeb75f5c3d9dbb1f03
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ComponenttestConfig(AppConfig): name = 'ComponentTest'
16.833333
37
0.782178
10
101
7.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.148515
101
5
38
20.2
0.918605
0
0
0
0
0
0.128713
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
2f4a9b1abe886f688ab087cb2d398ad2c966b3c7
2,929
py
Python
test/test_custom_speech_endpoints_api.py
networthdata/generated-swagger-client
41dd3fb02b322ed1d39cbaef6b4091ae6cab0d0b
[ "MIT" ]
null
null
null
test/test_custom_speech_endpoints_api.py
networthdata/generated-swagger-client
41dd3fb02b322ed1d39cbaef6b4091ae6cab0d0b
[ "MIT" ]
null
null
null
test/test_custom_speech_endpoints_api.py
networthdata/generated-swagger-client
41dd3fb02b322ed1d39cbaef6b4091ae6cab0d0b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Speech Services API v2.0 Speech Services API v2.0. # noqa: E501 OpenAPI spec version: v2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.api.custom_speech_endpoints_api import CustomSpeechEndpointsApi # noqa: E501 from swagger_client.rest import ApiException class TestCustomSpeechEndpointsApi(unittest.TestCase): """CustomSpeechEndpointsApi unit test stubs""" def setUp(self): self.api = swagger_client.api.custom_speech_endpoints_api.CustomSpeechEndpointsApi() # noqa: E501 def tearDown(self): pass def test_create_endpoint(self): """Test case for create_endpoint Creates a new endpoint. # noqa: E501 """ pass def test_create_endpoint_data_export(self): """Test case for create_endpoint_data_export Create a new endpoint data export task. # noqa: E501 """ pass def test_delete_endpoint(self): """Test case for delete_endpoint Deletes the endpoint identified by the given ID. # noqa: E501 """ pass def test_delete_endpoint_data(self): """Test case for delete_endpoint_data Deletes the transcriptions and captured audio files associated with the endpoint identified by the given ID. # noqa: E501 """ pass def test_delete_endpoint_data_export(self): """Test case for delete_endpoint_data_export Deletes the endpoint data export task identified by the given ID. # noqa: E501 """ pass def test_get_endpoint(self): """Test case for get_endpoint Gets the endpoint identified by the given ID. # noqa: E501 """ pass def test_get_endpoint_data_export(self): """Test case for get_endpoint_data_export Gets the specified endpoint data export task for the authenticated user. # noqa: E501 """ pass def test_get_endpoint_data_exports(self): """Test case for get_endpoint_data_exports Gets the list of endpoint data export tasks for the authenticated user. # noqa: E501 """ pass def test_get_endpoints(self): """Test case for get_endpoints Gets the list of endpoints for the authenticated subscription. # noqa: E501 """ pass def test_get_supported_locales_for_endpoints(self): """Test case for get_supported_locales_for_endpoints Gets a list of supported locales for endpoint creations. # noqa: E501 """ pass def test_update_endpoint(self): """Test case for update_endpoint Updates the metadata of the endpoint identified by the given ID. # noqa: E501 """ pass if __name__ == '__main__': unittest.main()
26.151786
130
0.663708
363
2,929
5.134986
0.23416
0.060086
0.064914
0.088519
0.559549
0.463519
0.370172
0.217811
0.209227
0.209227
0
0.022897
0.269375
2,929
111
131
26.387387
0.848131
0.498122
0
0.352941
1
0
0.006706
0
0
0
0
0
0
1
0.382353
false
0.352941
0.147059
0
0.558824
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
1
0
1
0
0
1
0
0
4
85cba7698f94eed4adb5abff07aa9b4eb32f5992
166
py
Python
Python 3 - Curso completo/exercicio006.py
PedroMunizdeMatos/Estudos-e-Projetos
5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc
[ "MIT" ]
null
null
null
Python 3 - Curso completo/exercicio006.py
PedroMunizdeMatos/Estudos-e-Projetos
5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc
[ "MIT" ]
null
null
null
Python 3 - Curso completo/exercicio006.py
PedroMunizdeMatos/Estudos-e-Projetos
5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc
[ "MIT" ]
null
null
null
n = int(input('Digite o valor em metros que deseja converter para centímetros e milímetros: ')) print('{}m são equivalentes a {}cm e {}mm.'.format(n, n*100, n*1000))
55.333333
95
0.698795
29
166
4
0.862069
0
0
0
0
0
0
0
0
0
0
0.049296
0.144578
166
2
96
83
0.767606
0
0
0
0
0
0.674699
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
85d132a5d87c8b6e3ffe8b54d57ec5a4faea2045
70
py
Python
addons/googledrive/__init__.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
addons/googledrive/__init__.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
addons/googledrive/__init__.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
default_app_config = 'addons.googledrive.apps.GoogleDriveAddonConfig'
35
69
0.871429
7
70
8.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.042857
70
1
70
70
0.880597
0
0
0
0
0
0.657143
0.657143
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
85d47c5de6250200669152bc34f44cb71c9d0b5b
95
py
Python
django_starwidget/starwidget/apps.py
FabianWe/django-starwidget
8a5fe1cab9bbf13424c3104129f800d8c064eeab
[ "Apache-2.0" ]
null
null
null
django_starwidget/starwidget/apps.py
FabianWe/django-starwidget
8a5fe1cab9bbf13424c3104129f800d8c064eeab
[ "Apache-2.0" ]
null
null
null
django_starwidget/starwidget/apps.py
FabianWe/django-starwidget
8a5fe1cab9bbf13424c3104129f800d8c064eeab
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class StarwidgetConfig(AppConfig): name = 'starwidget'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
85d9927e267584f36936716eff1cb2451fb44c65
95
py
Python
demography/apps.py
The-Politico/politico-civic-demography
080bb964b64b06db7fd04386530e893ceed1cf98
[ "MIT" ]
null
null
null
demography/apps.py
The-Politico/politico-civic-demography
080bb964b64b06db7fd04386530e893ceed1cf98
[ "MIT" ]
null
null
null
demography/apps.py
The-Politico/politico-civic-demography
080bb964b64b06db7fd04386530e893ceed1cf98
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DemographyConfig(AppConfig): name = 'demography'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
85fe544e695746d88b07fbaa67e520c7e2e39320
71
py
Python
app/user/__init__.py
b1ackmatrix/py_func2webapi
c26d4dc1615a089d0ac1d5e1f28165e3857ddd4b
[ "Apache-2.0" ]
2
2017-06-29T10:57:38.000Z
2019-07-17T07:56:55.000Z
app/user/__init__.py
blackmatrix7/func2webapi
c26d4dc1615a089d0ac1d5e1f28165e3857ddd4b
[ "Apache-2.0" ]
null
null
null
app/user/__init__.py
blackmatrix7/func2webapi
c26d4dc1615a089d0ac1d5e1f28165e3857ddd4b
[ "Apache-2.0" ]
1
2020-11-18T05:44:04.000Z
2020-11-18T05:44:04.000Z
from flask import Blueprint # 蓝图注册 user = Blueprint('user', __name__)
14.2
34
0.746479
9
71
5.444444
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.15493
71
4
35
17.75
0.816667
0.056338
0
0
0
0
0.061538
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
4
c83dad210f810e5716eb3516c522e9543a303163
22
py
Python
truechecker/utils/__init__.py
TrueWebApp/TrueCheckerPyton
662d74491d5ee00ec14de4197d5ac3d239175a67
[ "MIT" ]
null
null
null
truechecker/utils/__init__.py
TrueWebApp/TrueCheckerPyton
662d74491d5ee00ec14de4197d5ac3d239175a67
[ "MIT" ]
null
null
null
truechecker/utils/__init__.py
TrueWebApp/TrueCheckerPyton
662d74491d5ee00ec14de4197d5ac3d239175a67
[ "MIT" ]
null
null
null
"""Handy snippets."""
11
21
0.590909
2
22
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.090909
22
1
22
22
0.65
0.681818
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c84a5be9a86263c894ac45a18df6b247e19b2b56
106
py
Python
lyra/admin.py
hylje/Lyra
2a2e71ceb800fded0a60120fbc2bd7bfd9d8c999
[ "BSD-3-Clause" ]
1
2017-12-12T13:02:27.000Z
2017-12-12T13:02:27.000Z
lyra/admin.py
hylje/Lyra
2a2e71ceb800fded0a60120fbc2bd7bfd9d8c999
[ "BSD-3-Clause" ]
null
null
null
lyra/admin.py
hylje/Lyra
2a2e71ceb800fded0a60120fbc2bd7bfd9d8c999
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from lyra import models admin.site.register(models.Reservation)
15.142857
40
0.773585
14
106
5.857143
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.169811
106
6
41
17.666667
0.931818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c84be56b8da546c04a2f975231c392c7522f33fe
125
py
Python
pythonexamples.py
vkmbs/vjgunner
28b3233804fdfa4839593a3cdbeacfdcad2c0725
[ "MIT" ]
null
null
null
pythonexamples.py
vkmbs/vjgunner
28b3233804fdfa4839593a3cdbeacfdcad2c0725
[ "MIT" ]
null
null
null
pythonexamples.py
vkmbs/vjgunner
28b3233804fdfa4839593a3cdbeacfdcad2c0725
[ "MIT" ]
null
null
null
count=0 while count<5 : print(count, "is less than 5") count= count +1 else : print(count, "is greater than 5")
15.625
37
0.616
21
125
3.666667
0.52381
0.25974
0.311688
0
0
0
0
0
0
0
0
0.053763
0.256
125
7
38
17.857143
0.774194
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c08f293f11cdaf442e1784839206021e6acbd71b
241
py
Python
data-pipeline/bcreg/create.py
esune/von-bc-registries-agent
712008543e579eee46be23c418f2eeb41626bfcd
[ "Apache-2.0" ]
1
2019-09-06T07:40:15.000Z
2019-09-06T07:40:15.000Z
data-pipeline/bcreg/create.py
esune/von-bc-registries-agent
712008543e579eee46be23c418f2eeb41626bfcd
[ "Apache-2.0" ]
null
null
null
data-pipeline/bcreg/create.py
esune/von-bc-registries-agent
712008543e579eee46be23c418f2eeb41626bfcd
[ "Apache-2.0" ]
1
2019-06-12T13:47:22.000Z
2019-06-12T13:47:22.000Z
#!/usr/bin/python import psycopg2 from bcreg.config import config from bcreg.eventprocessor import EventProcessor with EventProcessor() as event_processor: event_processor.create_tables() print("Created event processor tables")
21.909091
47
0.792531
29
241
6.482759
0.586207
0.223404
0
0
0
0
0
0
0
0
0
0.004808
0.136929
241
10
48
24.1
0.899038
0.06639
0
0
0
0
0.133929
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
2384c89d87084b76f6bc4f160b97a8bb9849e193
287
py
Python
alvinchow_backend/utils/string.py
alvinchow86/python-backend-template
46c07d733d68bc8682afd8510a17bc2aa360c606
[ "MIT" ]
6
2021-01-07T00:20:49.000Z
2022-01-13T04:53:12.000Z
alvinchow_backend/utils/string.py
alvinchow86/python-backend-template
46c07d733d68bc8682afd8510a17bc2aa360c606
[ "MIT" ]
4
2021-01-06T22:07:43.000Z
2021-06-02T01:52:41.000Z
alvinchow_backend/utils/string.py
alvinchow86/python-backend-template
46c07d733d68bc8682afd8510a17bc2aa360c606
[ "MIT" ]
1
2021-11-09T07:46:44.000Z
2021-11-09T07:46:44.000Z
import re import random import string alphabet = string.ascii_letters + string.digits def random_string(num_chars=16): return ''.join(random.choice(alphabet) for i in range(num_chars)) def camel_to_snake_case(string): return re.sub(r'(?<!^)(?=[A-Z])', '_', string).lower()
19.133333
69
0.703833
43
287
4.511628
0.651163
0.082474
0
0
0
0
0
0
0
0
0
0.008065
0.135889
287
14
70
20.5
0.774194
0
0
0
0
0
0.055749
0
0
0
0
0
0
1
0.25
false
0
0.375
0.25
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
1
1
0
0
4
23c18db85d590b0f1f918e07a5dbdda1fb368961
80
py
Python
venv/Lib/site-packages/git/repo/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
3,132
2015-01-05T10:14:54.000Z
2022-03-31T07:14:10.000Z
venv/Lib/site-packages/git/repo/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,111
2015-01-01T10:03:40.000Z
2022-03-28T23:43:54.000Z
venv/Lib/site-packages/git/repo/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
821
2015-01-02T13:55:46.000Z
2022-03-31T19:08:01.000Z
"""Initialize the Repo package""" # flake8: noqa from .base import Repo as Repo
20
33
0.725
12
80
4.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.014925
0.1625
80
3
34
26.666667
0.850746
0.5125
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
23c8762e9bd1f0e16da1d4948149683d91ce4339
300
py
Python
googleapis/services.py
andruoctavian/hackitall
af6f0b1ed7396e932927786940124145f9a20e61
[ "MIT" ]
null
null
null
googleapis/services.py
andruoctavian/hackitall
af6f0b1ed7396e932927786940124145f9a20e61
[ "MIT" ]
null
null
null
googleapis/services.py
andruoctavian/hackitall
af6f0b1ed7396e932927786940124145f9a20e61
[ "MIT" ]
null
null
null
def adapt_routes_object(object): lat_north = object['routes'][0]['bounds']['northeast']['lat'] long_east = object['routes'][0]['bounds']['northeast']['long'] lat_south = object['routes'][0]['bounds']['southwest']['lat'] long_west = object['routes'][0]['bounds']['southwest']['long']
42.857143
66
0.633333
37
300
4.972973
0.378378
0.26087
0.282609
0.413043
0.608696
0
0
0
0
0
0
0.01487
0.103333
300
6
67
50
0.669145
0
0
0
0
0
0.327759
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
9b0aa4b74c4c9256e9b07318434a023242c22674
747
py
Python
eqpy/tests/test_nums.py
eriknw/eqpy
e7b898194cdd5b27d614ba49ff90e8c15a8e6a26
[ "BSD-3-Clause" ]
5
2015-02-01T21:42:36.000Z
2017-03-06T15:58:50.000Z
eqpy/tests/test_nums.py
eriknw/eqpy
e7b898194cdd5b27d614ba49ff90e8c15a8e6a26
[ "BSD-3-Clause" ]
null
null
null
eqpy/tests/test_nums.py
eriknw/eqpy
e7b898194cdd5b27d614ba49ff90e8c15a8e6a26
[ "BSD-3-Clause" ]
3
2015-04-10T18:07:55.000Z
2021-02-19T21:31:22.000Z
import eqpy import sympy from eqpy._utils import raises def test_constants(): assert eqpy.nums.Catalan is sympy.Catalan assert eqpy.nums.E is sympy.E assert eqpy.nums.EulerGamma is sympy.EulerGamma assert eqpy.nums.GoldenRatio is sympy.GoldenRatio assert eqpy.nums.I is sympy.I assert eqpy.nums.nan is sympy.nan assert eqpy.nums.oo is sympy.oo assert eqpy.nums.pi is sympy.pi assert eqpy.nums.zoo is sympy.zoo def test_sympify(): eqpy.nums.x = '1/2' assert eqpy.nums.x == sympy.S('1/2') assert eqpy.nums('2/3') == sympy.S('2/3') assert raises(sympy.SympifyError, lambda: eqpy.nums('1.2.3')) def test_dunders(): eqpy.nums.__mydunder__ = '1/2' assert eqpy.nums.__mydunder__ == '1/2'
26.678571
65
0.692102
124
747
4.072581
0.25
0.237624
0.332673
0.071287
0.146535
0
0
0
0
0
0
0.024631
0.184739
747
27
66
27.666667
0.804598
0
0
0
0
0
0.03079
0
0
0
0
0
0.619048
1
0.142857
true
0
0.142857
0
0.285714
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
4
9b209e80b1143a388429ceca38c109797930e72c
362
py
Python
exercises/exercise05.py
surajwate/57-python-exercises
3b47c096266fec114300b9340cd852088a00d56e
[ "MIT" ]
null
null
null
exercises/exercise05.py
surajwate/57-python-exercises
3b47c096266fec114300b9340cd852088a00d56e
[ "MIT" ]
1
2021-07-06T17:34:59.000Z
2021-07-06T17:34:59.000Z
exercises/exercise05.py
surajwate/57-python-exercises
3b47c096266fec114300b9340cd852088a00d56e
[ "MIT" ]
null
null
null
def simple_math(first, second): return f"""{first} + {second} = {first + second} {first} - {second} = {first - second} {first} * {second} = {first * second} {first} / {second} = {int(first / second)}""" if __name__ == '__main__': f = int(input('What is the first number?')) s = int(input('What is the second number?')) print(simple_math(f, s))
30.166667
52
0.60221
48
362
4.333333
0.375
0.475962
0.461538
0.634615
0.533654
0.370192
0.370192
0.370192
0.370192
0.370192
0
0
0.19337
362
11
53
32.909091
0.712329
0
0
0
0
0
0.593923
0
0
0
0
0
0
1
0.111111
false
0
0
0.111111
0.222222
0.111111
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
1
0
0
0
4
f1a034c623bc0ee37a86ee15f9d8dcdf3a00cb0d
99
py
Python
simpleskyapp/apps.py
fterh/simplesky
43016b9dce86f932692f7118cde0a59a93d18120
[ "MIT" ]
null
null
null
simpleskyapp/apps.py
fterh/simplesky
43016b9dce86f932692f7118cde0a59a93d18120
[ "MIT" ]
3
2020-02-11T23:28:37.000Z
2021-06-10T18:50:31.000Z
simpleskyapp/apps.py
fterh/simplesky
43016b9dce86f932692f7118cde0a59a93d18120
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SimpleskyappConfig(AppConfig): name = 'simpleskyapp'
16.5
36
0.777778
10
99
7.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.151515
99
5
37
19.8
0.916667
0
0
0
0
0
0.121212
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f1bc310646378092b6cd5e632a1968e5c70cf3ec
313
py
Python
strawberry/asgi/handlers/__init__.py
TheVinhLuong102/Strawberry
3c442dc19d17bc55c4e26de1db7a9eedc0a228f5
[ "MIT" ]
2,062
2019-04-07T17:47:30.000Z
2022-03-31T01:54:16.000Z
strawberry/asgi/handlers/__init__.py
TheVinhLuong102/Strawberry
3c442dc19d17bc55c4e26de1db7a9eedc0a228f5
[ "MIT" ]
1,582
2019-04-07T18:31:33.000Z
2022-03-31T18:32:13.000Z
strawberry/asgi/handlers/__init__.py
TheVinhLuong102/Strawberry
3c442dc19d17bc55c4e26de1db7a9eedc0a228f5
[ "MIT" ]
303
2019-04-13T08:44:40.000Z
2022-03-29T09:54:41.000Z
from strawberry.asgi.handlers.graphql_transport_ws_handler import ( GraphQLTransportWSHandler, ) from strawberry.asgi.handlers.graphql_ws_handler import GraphQLWSHandler from strawberry.asgi.handlers.http_handler import HTTPHandler __all__ = ["GraphQLTransportWSHandler", "GraphQLWSHandler", "HTTPHandler"]
34.777778
74
0.846645
31
313
8.225806
0.451613
0.164706
0.211765
0.305882
0.258824
0
0
0
0
0
0
0
0.079872
313
8
75
39.125
0.885417
0
0
0
0
0
0.166134
0.079872
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
f1c9c8446803c29992d5745d8e1bf245e372ddfe
12,496
py
Python
src/dcm/agent/tests/unit/test_persist.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
null
null
null
src/dcm/agent/tests/unit/test_persist.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
22
2015-09-15T20:52:34.000Z
2016-03-11T22:44:24.000Z
src/dcm/agent/tests/unit/test_persist.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
3
2015-09-11T20:21:33.000Z
2016-09-30T08:30:19.000Z
# # Copyright (C) 2014 Dell, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import datetime import json import os import tempfile import time import threading import unittest import uuid import dcm.agent.exceptions as exceptions import dcm.agent.messaging.persistence as persistence import dcm.agent.messaging.states as messaging_states class TestPersistMemory(unittest.TestCase): def setUp(self): self.db = persistence.SQLiteAgentDB(":memory:") def test_complete_empty(self): res = self.db.get_all_complete() self.assertEqual(res, []) def test_rejected_empty(self): res = self.db.get_all_rejected() self.assertEqual(res, []) def test_nacked_empty(self): res = self.db.get_all_reply_nacked() self.assertEqual(res, []) def test_acked_empty(self): res = self.db.get_all_ack() self.assertEqual(res, []) def test_reply_empty(self): res = self.db.get_all_reply() self.assertEqual(res, []) def test_lookup_empty(self): res = self.db.lookup_req("NotTThere") self.assertIsNone(res) def test_update_not_there(self): passed = False try: self.db.update_record("Nope", "ASTATE") except exceptions.PersistenceException: passed = True self.assertTrue(passed, "An exception did not happen") def test_new_record_ack_search(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.ACKED self.db.new_record(request_id, request_doc, None, state, agent_id) res = self.db.get_all_ack() self.assertTrue(res) self.assertEqual(len(res), 1) self.assertEqual(res[0].agent_id, agent_id) self.assertEqual(res[0].request_id, request_id) def test_new_record_reply_search(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.REPLY self.db.new_record(request_id, request_doc, None, state, agent_id) res = self.db.get_all_reply() self.assertTrue(res) self.assertEqual(len(res), 1) self.assertEqual(res[0].agent_id, agent_id) self.assertEqual(res[0].request_id, request_id) def test_new_record_reply_nacked_search(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.REPLY_NACKED self.db.new_record(request_id, request_doc, None, state, agent_id) res = self.db.get_all_reply_nacked() self.assertTrue(res) self.assertEqual(len(res), 1) self.assertEqual(res[0].agent_id, agent_id) self.assertEqual(res[0].request_id, request_id) def test_new_record_nacked_search(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.NACKED self.db.new_record(request_id, request_doc, None, state, agent_id) res = self.db.get_all_rejected() self.assertTrue(res) self.assertEqual(len(res), 1) self.assertEqual(res[0].agent_id, agent_id) self.assertEqual(res[0].request_id, request_id) def test_new_record_lookup(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.REPLY_NACKED reply_doc = {"akey": "andstuff"} self.db.new_record(request_id, request_doc, reply_doc, state, agent_id) res = self.db.lookup_req(request_id) self.assertEqual(res.agent_id, agent_id) self.assertEqual(res.request_id, request_id) self.assertEqual(json.loads(res.reply_doc), reply_doc) def test_new_record_update_lookup(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.REPLY_NACKED reply_doc = {"akey": "andstuff"} self.db.new_record(request_id, request_doc, None, state, agent_id) state = messaging_states.ReplyStates.ACKED self.db.update_record(request_id, state, reply_doc=reply_doc) res = self.db.lookup_req(request_id) self.assertEqual(res.agent_id, agent_id) self.assertEqual(res.request_id, request_id) self.assertEqual(json.loads(res.reply_doc), reply_doc) self.assertEqual(res.state, state) def test_clear_all_lost(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.ACKED reply_doc = {"akey": "andstuff"} self.db.new_record(request_id, request_doc, reply_doc, state, agent_id) self.db.starting_agent() res = self.db.lookup_req(request_id) self.assertEqual(res.agent_id, agent_id) self.assertEqual(res.request_id, request_id) r = json.loads(res.reply_doc) self.assertEqual(r["return_code"], 1) self.assertEqual(res.state, messaging_states.ReplyStates.REPLY) def test_clear_empty(self): cut_off_time = datetime.datetime.now() self.db.clean_all_expired(cut_off_time) def test_clear_lost(self): request_id1 = str(uuid.uuid4()) request_id2 = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id1} state = messaging_states.ReplyStates.ACKED reply_doc = {"request": "one"} self.db.new_record( request_id1, request_doc, reply_doc, state, agent_id) time.sleep(0.1) cut_off_time = datetime.datetime.now() reply_doc = {"request": "two"} request_doc = {"request_id": request_id2} self.db.new_record( request_id2, request_doc, reply_doc, state, agent_id) self.db.clean_all_expired(cut_off_time) res = self.db.lookup_req(request_id1) self.assertTrue(res is None) res = self.db.lookup_req(request_id2) self.assertTrue(res is not None) class TestPersistDisk(unittest.TestCase): def setUp(self): _, self.db_file = tempfile.mkstemp("test_db") self.db = persistence.SQLiteAgentDB(self.db_file) def tearDown(self): os.remove(self.db_file) def test_record_sweeper(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.REPLY_NACKED self.db.new_record(request_id, request_doc, None, state, agent_id) request_id2 = str(uuid.uuid4()) request_doc = {"request_id": request_id2} self.db.new_record(request_id2, request_doc, None, state, agent_id) cleaner = persistence.DBCleaner(self.db, 10, 10, 0.05) cleaner.start() time.sleep(0.5) cleaner.done() res = self.db.lookup_req(request_id) self.assertTrue(not res) res = self.db.lookup_req(request_id2) self.assertTrue(not res) def test_add_alert_db(self): alert_time1 = int(time.time() * 1000) time_received = int(time.time() * 1000) level = 1 rule = 5000 subject = "Test alert" message = "test message" alert_hash1 = "madeup1" alert_hash2 = "madeup2" alert_time2 = int(time.time() * 1000) x = self.db.add_alert(alert_time1, time_received, alert_hash1, level, rule, subject, message) y = self.db.add_alert(alert_time2, time_received, alert_hash2, level, rule, subject, message) latest_time = self.db.get_latest_alert_time() self.assertEqual(latest_time, alert_time2) class TestPersistMultiThread(unittest.TestCase): def setUp(self): _, self.db_file = tempfile.mkstemp("test_db") self.db = persistence.SQLiteAgentDB(self.db_file) def tearDown(self): os.remove(self.db_file) def test_thread_lookup(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.REPLY_NACKED self.db.new_record(request_id, request_doc, None, state, agent_id) request_id2 = str(uuid.uuid4()) request_doc = {"request_id": request_id2} self.db.new_record(request_id2, request_doc, None, state, agent_id) failed = [] def _thread_lookup(): try: res = self.db.lookup_req(request_id) print(res) except Exception as ex: print(str(ex)) failed.append(True) t = threading.Thread(target=_thread_lookup) t.start() t.join() self.assertTrue(len(failed) == 0) def test_thread_update(self): request_id = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id} state = messaging_states.ReplyStates.REPLY_NACKED self.db.new_record(request_id, request_doc, None, state, agent_id) request_id2 = str(uuid.uuid4()) request_doc = {"request_id": request_id2} self.db.new_record(request_id2, request_doc, None, state, agent_id) failed = [] def _thread_lookup(): try: res = self.db.update_record( request_id, messaging_states.ReplyStates.REPLY) print(res) except Exception as ex: print(str(ex)) failed.append(True) t = threading.Thread(target=_thread_lookup) t.start() t.join() self.assertTrue(len(failed) == 0) def test_agent_mismatch(self): request_id1 = str(uuid.uuid4()) request_id2 = str(uuid.uuid4()) agent_id1 = str(uuid.uuid4()) request_doc = {"request_id": request_id1} state = messaging_states.ReplyStates.REPLY_NACKED reply_doc = {"akey": "andstuff"} self.db.new_record( request_id1, request_doc, reply_doc, state, agent_id1) request_doc["request_id"] = request_id2 self.db.new_record( request_id2, request_doc, reply_doc, state, agent_id1) res = self.db.lookup_req(request_id1) self.assertTrue(res is not None) res = self.db.lookup_req(request_id2) self.assertTrue(res is not None) self.db.check_agent_id("differentid") res = self.db.lookup_req(request_id1) self.assertTrue(res is None) res = self.db.lookup_req(request_id2) self.assertTrue(res is None) def test_agent_id_cleanup_empty(self): self.db.check_agent_id("differentid") def test_agent_id_match(self): request_id1 = str(uuid.uuid4()) request_id2 = str(uuid.uuid4()) agent_id = str(uuid.uuid4()) request_doc = {"request_id": request_id1} state = messaging_states.ReplyStates.REPLY_NACKED reply_doc = {"akey": "andstuff"} self.db.new_record( request_id1, request_doc, reply_doc, state, agent_id) request_doc["request_id"] = request_id2 self.db.new_record( request_id2, request_doc, reply_doc, state, agent_id) res = self.db.lookup_req(request_id1) self.assertTrue(res is not None) res = self.db.lookup_req(request_id2) self.assertTrue(res is not None) self.db.check_agent_id(agent_id) res = self.db.lookup_req(request_id1) self.assertTrue(res is not None) res = self.db.lookup_req(request_id2) self.assertTrue(res is not None)
34.424242
79
0.645407
1,643
12,496
4.653074
0.118077
0.082407
0.075343
0.040288
0.762982
0.731982
0.713669
0.690517
0.663963
0.6569
0
0.014351
0.247199
12,496
362
80
34.519337
0.798342
0.044094
0
0.703971
0
0
0.034121
0
0
0
0
0
0.176895
1
0.108303
false
0.01083
0.039711
0
0.158845
0.01444
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f1f43602917bee384d940d4b3736ba61c0fbdb68
200
py
Python
backoffice_extensions/apps.py
saruba/django-backoffice-extensions
107cf92d4152587bfc471fc742baf7c3b5e616a5
[ "MIT" ]
8
2020-06-30T13:42:57.000Z
2021-04-28T23:54:00.000Z
backoffice_extensions/apps.py
saruba/django-backoffice-extensions
107cf92d4152587bfc471fc742baf7c3b5e616a5
[ "MIT" ]
2
2020-12-15T15:16:47.000Z
2021-04-28T08:07:43.000Z
backoffice_extensions/apps.py
saruba/django-backoffice-extensions
107cf92d4152587bfc471fc742baf7c3b5e616a5
[ "MIT" ]
4
2020-07-10T16:22:21.000Z
2020-08-18T15:54:36.000Z
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class BackofficeAppConfig(AppConfig): name = "backoffice_extensions" verbose_name = _("Backoffice")
22.222222
54
0.785
22
200
6.909091
0.727273
0.131579
0
0
0
0
0
0
0
0
0
0
0.145
200
8
55
25
0.888889
0
0
0
0
0
0.155
0.105
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7b00dd9a7f0e60feeda91572a091792ded2ced90
1,246
py
Python
azure-iot-common/setup.py
olivakar/azure-iot-sdk-python-preview
636855716a362bad1623983026666b5f91c22825
[ "MIT" ]
null
null
null
azure-iot-common/setup.py
olivakar/azure-iot-sdk-python-preview
636855716a362bad1623983026666b5f91c22825
[ "MIT" ]
null
null
null
azure-iot-common/setup.py
olivakar/azure-iot-sdk-python-preview
636855716a362bad1623983026666b5f91c22825
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from setuptools import setup, find_packages setup( name="azure-iot-common", version="0.0.1", description="Microsoft Azure IoT SDK Common", license="MIT License", author="Microsoft Corporation", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: Build Tools", "License :: OSI Approved :: MIT Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], install_requires=["six"], packages=find_packages(exclude=["tests"]), )
40.193548
94
0.535313
112
1,246
5.928571
0.553571
0.228916
0.301205
0.195783
0
0
0
0
0
0
0
0.016129
0.203852
1,246
30
95
41.533333
0.653226
0.269663
0
0
0
0
0.583425
0
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7b07e55659c99210f9f6612db592f67e5c87217e
197
py
Python
src/core/python/core/solver/impl/xpress_interface.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/core/python/core/solver/impl/xpress_interface.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/core/python/core/solver/impl/xpress_interface.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
from core.solver.generic_solver_interface import Solver class XpressSolver(Solver): def __init__(self): raise NotImplementedError("Xpress is not yet implemented in the python core")
24.625
85
0.771574
25
197
5.84
0.84
0
0
0
0
0
0
0
0
0
0
0
0.167513
197
7
86
28.142857
0.890244
0
0
0
0
0
0.243655
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
7b0b3ca731c1c8f570cc4a11e2996b711c3ceaa2
174
py
Python
serverctl_deployd/models/exceptions.py
delta/serverctl_daemon
3999539da01715affc8a3471d860294184756e6f
[ "MIT" ]
2
2021-09-18T15:30:33.000Z
2021-12-23T01:50:19.000Z
serverctl_deployd/models/exceptions.py
delta/serverctl_daemon
3999539da01715affc8a3471d860294184756e6f
[ "MIT" ]
54
2021-09-18T12:22:38.000Z
2022-03-30T13:25:17.000Z
serverctl_deployd/models/exceptions.py
delta/serverctl_deployd
3999539da01715affc8a3471d860294184756e6f
[ "MIT" ]
null
null
null
""" Models for general exception responses """ from pydantic import BaseModel class GenericError(BaseModel): """Model for generic error with detail""" detail: str
15.818182
45
0.724138
20
174
6.3
0.85
0
0
0
0
0
0
0
0
0
0
0
0.183908
174
10
46
17.4
0.887324
0.425287
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
9e287c9d2e617175895c4b219e16469e17aa03f5
117
py
Python
modular_provider_architecture_definition/__init__.py
Incognito/python-architecture-linter
534e1508aaa46920b31601f8fffbb0f132844883
[ "MIT" ]
5
2021-06-30T09:33:09.000Z
2021-08-18T12:20:32.000Z
modular_provider_architecture_definition/__init__.py
Incognito/python-architecture-linter
534e1508aaa46920b31601f8fffbb0f132844883
[ "MIT" ]
45
2021-06-27T10:35:43.000Z
2022-03-28T04:09:05.000Z
modular_provider_architecture_definition/__init__.py
Incognito/python-architecture-linter
534e1508aaa46920b31601f8fffbb0f132844883
[ "MIT" ]
1
2021-07-04T15:48:00.000Z
2021-07-04T15:48:00.000Z
from modular_provider_architecture_definition.definition import project_definition __all__ = ["project_definition"]
29.25
82
0.880342
12
117
7.833333
0.666667
0.361702
0
0
0
0
0
0
0
0
0
0
0.068376
117
3
83
39
0.862385
0
0
0
0
0
0.153846
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
9e2a8c68f4380594c921340ba4fb31118f238681
170
py
Python
7-Math Functions.py
Ahm3d-Salama/Python-apps
fce528ed62ae76cbd856af05209ffc28dac38480
[ "MIT" ]
2
2021-06-08T17:41:30.000Z
2022-01-13T10:44:23.000Z
7-Math Functions.py
Ahm3d-Salama/Python-apps
fce528ed62ae76cbd856af05209ffc28dac38480
[ "MIT" ]
null
null
null
7-Math Functions.py
Ahm3d-Salama/Python-apps
fce528ed62ae76cbd856af05209ffc28dac38480
[ "MIT" ]
null
null
null
# import module import math x = 2.9 print(round(x)) print(abs(-2.9)) print(math.ceil(2.9)) print(math.floor(2.9)) # todo check python 3 math modules
11.333333
58
0.611765
30
170
3.466667
0.533333
0.076923
0.201923
0.211538
0
0
0
0
0
0
0
0.069231
0.235294
170
14
59
12.142857
0.730769
0.270588
0
0
0
0
0
0
0
0
0
0.071429
0
1
0
false
0
0.166667
0
0.166667
0.666667
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
1
0
0
0
0
0
0
0
0
1
0
4
9e3c0678853ffacd20183ff7c26783c806af964c
166
py
Python
evenOdd.py
musaibnazir/MixedPy
b2911f06e2f99aba9fb5b6fa802471710196ba4b
[ "MIT" ]
null
null
null
evenOdd.py
musaibnazir/MixedPy
b2911f06e2f99aba9fb5b6fa802471710196ba4b
[ "MIT" ]
null
null
null
evenOdd.py
musaibnazir/MixedPy
b2911f06e2f99aba9fb5b6fa802471710196ba4b
[ "MIT" ]
null
null
null
print("Welcome To even / odd Check: ") num = int(input("Enter Number: ")) if num % 2 != 0: print("This is Odd Number") else: print("This is an Even Number")
20.75
38
0.614458
27
166
3.777778
0.666667
0.176471
0.215686
0
0
0
0
0
0
0
0
0.015504
0.222892
166
7
39
23.714286
0.775194
0
0
0
0
0
0.50303
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
4
9e5308a3e5546766ecaa99fec01fb08133985655
1,251
py
Python
notebook/pandas_time_series_pct_change.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/pandas_time_series_pct_change.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/pandas_time_series_pct_change.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import pandas as pd df = pd.DataFrame({'value': range(1, 16, 2)}, index=pd.date_range('2018-01-01', '2018-01-15', freq='2D')) print(df) # value # 2018-01-01 1 # 2018-01-03 3 # 2018-01-05 5 # 2018-01-07 7 # 2018-01-09 9 # 2018-01-11 11 # 2018-01-13 13 # 2018-01-15 15 print(df.pct_change()) # value # 2018-01-01 NaN # 2018-01-03 2.000000 # 2018-01-05 0.666667 # 2018-01-07 0.400000 # 2018-01-09 0.285714 # 2018-01-11 0.222222 # 2018-01-13 0.181818 # 2018-01-15 0.153846 print(df.pct_change(2)) # value # 2018-01-01 NaN # 2018-01-03 NaN # 2018-01-05 4.000000 # 2018-01-07 1.333333 # 2018-01-09 0.800000 # 2018-01-11 0.571429 # 2018-01-13 0.444444 # 2018-01-15 0.363636 print(df.pct_change(freq='2D')) # value # 2018-01-01 NaN # 2018-01-03 2.000000 # 2018-01-05 0.666667 # 2018-01-07 0.400000 # 2018-01-09 0.285714 # 2018-01-11 0.222222 # 2018-01-13 0.181818 # 2018-01-15 0.153846 print(df.pct_change(freq='D')) # value # 2018-01-01 NaN # 2018-01-03 NaN # 2018-01-05 NaN # 2018-01-07 NaN # 2018-01-09 NaN # 2018-01-11 NaN # 2018-01-13 NaN # 2018-01-15 NaN
20.85
77
0.560352
232
1,251
3
0.202586
0.362069
0.142241
0.093391
0.528736
0.494253
0.494253
0.494253
0.494253
0.494253
0
0.545856
0.276579
1,251
59
78
21.20339
0.223204
0.701839
0
0
0
0
0.095238
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.625
0
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
9e6c7700032460bedba54c0b7fc287a8cc3d15fc
398
py
Python
daily-problems/Day2/problem1_tests.py
jeffreycshelton/ghp-challenges
c19e6b9964818674502bb096fc87f32146af1ad0
[ "MIT" ]
null
null
null
daily-problems/Day2/problem1_tests.py
jeffreycshelton/ghp-challenges
c19e6b9964818674502bb096fc87f32146af1ad0
[ "MIT" ]
null
null
null
daily-problems/Day2/problem1_tests.py
jeffreycshelton/ghp-challenges
c19e6b9964818674502bb096fc87f32146af1ad0
[ "MIT" ]
null
null
null
import unittest from problem1 import findPoisonedDuration class TestProblem1(unittest.TestCase): def tests(self): self.assertEqual(findPoisonedDuration([1,4], 2), 4) self.assertEqual(findPoisonedDuration([1,2], 2), 3) self.assertEqual(findPoisonedDuration([1,4,5,10], 3), 10) self.assertEqual(findPoisonedDuration([1,8,12,13,15,17], 6), 21) unittest.main()
26.533333
72
0.698492
49
398
5.673469
0.530612
0.215827
0.503597
0.517986
0.266187
0
0
0
0
0
0
0.092814
0.160804
398
14
73
28.428571
0.739521
0
0
0
0
0
0
0
0
0
0
0
0.444444
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
9e73b6a1b1de9233c83a0e7902d41d8ba85de274
77
py
Python
Artesian/_GMEPublicOffers/Config/ExtractionRangeConfig.py
ARKlab/Artesian.SDK-Python
79b54ad00526f5a75c400422fd1c0c8532b67436
[ "MIT" ]
2
2022-02-21T17:03:04.000Z
2022-02-24T17:14:02.000Z
Artesian/_GMEPublicOffers/Config/ExtractionRangeConfig.py
ARKlab/Artesian.SDK-Python
79b54ad00526f5a75c400422fd1c0c8532b67436
[ "MIT" ]
2
2020-02-06T10:03:35.000Z
2022-03-01T09:39:54.000Z
Artesian/_GMEPublicOffers/Config/ExtractionRangeConfig.py
ARKlab/Artesian.SDK-Python
79b54ad00526f5a75c400422fd1c0c8532b67436
[ "MIT" ]
1
2019-08-01T06:20:58.000Z
2019-08-01T06:20:58.000Z
class ExtractionRangeConfig: def __init__(self): self.date = None
25.666667
28
0.688312
8
77
6.125
0.875
0
0
0
0
0
0
0
0
0
0
0
0.233766
77
3
29
25.666667
0.830508
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
9e7b4cbc4d1c90109304b982c28b47fddfb52032
100
py
Python
bindings/pydeck/pydeck/bindings/providers.py
robinator8/deck.gl
f9a23a0fb36de452556a7a6870f1f6afe303387c
[ "MIT" ]
2
2020-11-02T23:08:12.000Z
2021-03-31T23:53:43.000Z
bindings/pydeck/pydeck/bindings/providers.py
robinator8/deck.gl
f9a23a0fb36de452556a7a6870f1f6afe303387c
[ "MIT" ]
21
2019-09-17T14:10:09.000Z
2020-10-09T15:17:49.000Z
bindings/pydeck/pydeck/bindings/providers.py
robinator8/deck.gl
f9a23a0fb36de452556a7a6870f1f6afe303387c
[ "MIT" ]
4
2020-01-05T21:37:24.000Z
2020-11-02T23:08:14.000Z
# List of base-map providers class Providers: MAPBOX = "mapbox" GOOGLE_MAPS = "google_maps"
20
31
0.7
13
100
5.230769
0.692308
0.294118
0
0
0
0
0
0
0
0
0
0
0.21
100
4
32
25
0.860759
0.26
0
0
0
0
0.236111
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
9eb919aedf75dbe48fcdb0969e59966283ed645e
142
py
Python
binance/__init__.py
lostoli/python-binance
15a61ae1285a7ae9e2fb900b3a70c4cb206448df
[ "MIT" ]
1
2019-07-12T11:13:39.000Z
2019-07-12T11:13:39.000Z
binance/__init__.py
lostoli/python-binance
15a61ae1285a7ae9e2fb900b3a70c4cb206448df
[ "MIT" ]
null
null
null
binance/__init__.py
lostoli/python-binance
15a61ae1285a7ae9e2fb900b3a70c4cb206448df
[ "MIT" ]
1
2018-12-06T16:15:04.000Z
2018-12-06T16:15:04.000Z
"""An unofficial Python wrapper for the Binance exchange API v3 .. moduleauthor:: Sam McHardy """ from .client import Client # noqa: F401
17.75
63
0.725352
19
142
5.421053
0.947368
0
0
0
0
0
0
0
0
0
0
0.034483
0.183099
142
7
64
20.285714
0.853448
0.725352
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9eba44ce64142c4da9d09638f4be6d3c20781796
88
py
Python
magic/magicdb/apps.py
ParserKnight/django-app-magic
bdedf7f423da558f09d5818157762f3d8ac65d93
[ "MIT" ]
1
2019-12-20T17:56:13.000Z
2019-12-20T17:56:13.000Z
magic/magicdb/apps.py
ParserKnight/django-app-magic
bdedf7f423da558f09d5818157762f3d8ac65d93
[ "MIT" ]
11
2019-11-23T19:24:17.000Z
2022-03-11T23:34:21.000Z
magic/magicdb/apps.py
ParserKnight/django-app-magic
bdedf7f423da558f09d5818157762f3d8ac65d93
[ "MIT" ]
1
2019-12-20T17:58:20.000Z
2019-12-20T17:58:20.000Z
from django.apps import AppConfig class MagicdbConfig(AppConfig): name = 'magicdb'
17.6
33
0.761364
10
88
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.159091
88
4
34
22
0.905405
0
0
0
0
0
0.079545
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7b3a020a9c2ecb54bcb1abb02e4efbd44ae06347
361
py
Python
prompt.py
wellyington/gpt3-translator
367d164ae6cb3d21330f48eed27cb29a15a77237
[ "MIT" ]
10
2021-05-20T11:10:32.000Z
2022-03-03T12:33:45.000Z
prompt.py
wellyington/gpt3-translator
367d164ae6cb3d21330f48eed27cb29a15a77237
[ "MIT" ]
null
null
null
prompt.py
wellyington/gpt3-translator
367d164ae6cb3d21330f48eed27cb29a15a77237
[ "MIT" ]
2
2021-09-11T04:52:12.000Z
2022-03-06T12:19:29.000Z
en_ru = "English: Good morning!\nRussian: Доброе утро!\n###\nEnglish: Good afternoon!\nRussian: Добрый день!\n###\nEnglish: Good evening!\nRussian: Добрый вечер!\n###\nEnglish: " ru_en = "Russian: Доброе утро!\nEnglish: Good morning!\n###\nRussian: Как поживаешь?\nEnglish: How are you?\n###\nRussian: Откуда ты?\nEnglish: Where are you from?\n###\nRussian: "
180.5
181
0.711911
51
361
5
0.490196
0.105882
0.101961
0
0
0
0
0
0
0
0
0
0.099723
361
2
181
180.5
0.784615
0
0
0
0
1
0.939058
0.121884
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7b42d8cee77640f28b89cc0026a935fc5fbb1baf
64
py
Python
apps/demoapp/tests.py
cyberjacob/monzo-save-change
c2fbdf787287dac1ebc77d65b621f01f95dc6071
[ "MIT" ]
null
null
null
apps/demoapp/tests.py
cyberjacob/monzo-save-change
c2fbdf787287dac1ebc77d65b621f01f95dc6071
[ "MIT" ]
6
2018-05-03T16:49:46.000Z
2018-05-03T16:52:01.000Z
apps/demoapp/tests.py
cyberjacob/monzo-template
c2fbdf787287dac1ebc77d65b621f01f95dc6071
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # Create your tests here.
12.8
25
0.6875
11
64
4
1
0
0
0
0
0
0
0
0
0
0
0.018519
0.15625
64
4
26
16
0.796296
0.890625
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7b5f76cfe70739d79f6f551d386c6c2b53850ed4
164
py
Python
hello-world.py
iamjoel/python-note
49332fe2e0bf41c48719b1437870e53a98d091e9
[ "MIT" ]
92
2016-10-17T14:47:06.000Z
2021-11-07T20:29:43.000Z
hello-world.py
iamjoel/python-learn
49332fe2e0bf41c48719b1437870e53a98d091e9
[ "MIT" ]
null
null
null
hello-world.py
iamjoel/python-learn
49332fe2e0bf41c48719b1437870e53a98d091e9
[ "MIT" ]
39
2015-04-04T06:38:15.000Z
2016-08-22T11:39:08.000Z
#!/usr/bin/python #coding:utf-8 #上面两行是解决文件中 中文的问题 print 'why do you think python is cool?'; answer = raw_input(); print 'your answer is: ', answer, ' is so cool~';
23.428571
49
0.689024
27
164
4.148148
0.740741
0.142857
0
0
0
0
0
0
0
0
0
0.007194
0.152439
164
6
50
27.333333
0.798561
0.268293
0
0
0
0
0.512821
0
0
0
0
0
0
0
null
null
0
0
null
null
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
7b62c31d0727d011e24f13b645f91ddf4731cf51
138
py
Python
vcgencmd/__init__.py
renetec-io/vcgencmd
38b3849d6b0800f24eba138fde46d6970be507f4
[ "MIT" ]
2
2021-08-05T17:29:47.000Z
2021-10-03T05:50:08.000Z
vcgencmd/__init__.py
renetec-io/vcgencmd
38b3849d6b0800f24eba138fde46d6970be507f4
[ "MIT" ]
9
2020-08-30T10:01:10.000Z
2021-10-03T06:04:44.000Z
vcgencmd/__init__.py
renetec-io/vcgencmd
38b3849d6b0800f24eba138fde46d6970be507f4
[ "MIT" ]
7
2020-06-05T17:13:13.000Z
2021-12-11T11:11:43.000Z
from .vcgencmd import * try: subprocess.check_output("vcgencmd") except Exception: raise ImportError("\"vcgencmd\" command not found")
19.714286
52
0.76087
16
138
6.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.115942
138
6
53
23
0.852459
0
0
0
0
0
0.195652
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
7b7800499b4e2156aee01d0db606cbee0f84799c
87
py
Python
shopid/apps.py
yuntechcloud/GreaterWMS
4a1c54fb962a0a6a3790e30340424c81175fe07b
[ "Apache-2.0" ]
3
2020-10-19T05:55:28.000Z
2020-11-12T03:55:06.000Z
shopid/apps.py
yuntechcloud/GreaterWMS
4a1c54fb962a0a6a3790e30340424c81175fe07b
[ "Apache-2.0" ]
1
2020-07-24T07:34:36.000Z
2020-07-24T07:34:36.000Z
shopid/apps.py
Singosgu/Elvis_WMS
e6911b7daae76be640ece8946104af24b6cf0fa6
[ "MIT" ]
4
2020-09-04T13:35:15.000Z
2020-10-16T15:10:38.000Z
from django.apps import AppConfig class ShopidConfig(AppConfig): name = 'shopid'
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7ba3c03c634494e6801514bc1862d75a04ef8a85
287
py
Python
pyGLLib/__init__.py
juanmcasillas/pyGLLib
eb91e5f50ed2e05b7822de8a7125e57eafa91eca
[ "Apache-2.0" ]
null
null
null
pyGLLib/__init__.py
juanmcasillas/pyGLLib
eb91e5f50ed2e05b7822de8a7125e57eafa91eca
[ "Apache-2.0" ]
null
null
null
pyGLLib/__init__.py
juanmcasillas/pyGLLib
eb91e5f50ed2e05b7822de8a7125e57eafa91eca
[ "Apache-2.0" ]
null
null
null
from . object import GLObjectBase, GLObjectBaseEBO, GLObjectBaseNormal, GLCube from . shader import GLShaderPlain, GLShaderVertexColor, GLShaderAmbient, GLShaderStandard from . texture import GLTexture from . light import GLLight from . camera import GLCamera from . app import GLApp
47.833333
90
0.8223
30
287
7.866667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.135889
287
6
91
47.833333
0.951613
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
7babb52725384ca073360814bc9375c1968fa9a2
1,309
py
Python
pyfilter/timeseries/models/ar.py
tingiskhan/pyfilter
2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd
[ "MIT" ]
61
2018-07-12T17:17:37.000Z
2022-03-19T17:37:59.000Z
pyfilter/timeseries/models/ar.py
tingiskhan/pyfilter
2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd
[ "MIT" ]
12
2018-08-26T20:01:03.000Z
2021-12-04T16:42:48.000Z
pyfilter/timeseries/models/ar.py
tingiskhan/pyfilter
2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd
[ "MIT" ]
9
2019-01-20T16:31:03.000Z
2021-12-24T07:10:04.000Z
from ..affine import AffineProcess from torch.distributions import Distribution, Normal, TransformedDistribution, AffineTransform from ...distributions import DistributionWrapper def _f(x, alpha, beta, sigma): return alpha + beta * x.values def _g(x, alpha, beta, sigma): return sigma def _init_trans(module: "AR", dist): alpha, beta, sigma = module.functional_parameters() return TransformedDistribution(dist, AffineTransform(alpha, sigma / ((1 - beta) ** 2.0).sqrt())) # TODO: Implement lags class AR(AffineProcess): """ Implements an AR(1) process, i.e. a process given by .. math: X_{t+1} = \\alpha + \\beta X_t + \\sigma W_t, \n X_0 \\sim \\mathcal{N}(\\alpha, \\frac{\\sigma}{\\sqrt{(1 - \\beta)^2}). """ def __init__(self, alpha, beta, sigma, **kwargs): """ Initializes the ``AR`` class. Args: alpha: The mean of the process. beta: The reversion of the process, usually constrained to :math:`(-1, 1)`. sigma: The volatility of the process. kwargs: See base. """ inc_dist = DistributionWrapper(Normal, loc=0.0, scale=1.0) super().__init__((_f, _g), (alpha, beta, sigma), inc_dist, inc_dist, initial_transform=_init_trans, **kwargs)
31.926829
117
0.621849
164
1,309
4.810976
0.426829
0.079848
0.08872
0.038023
0.053232
0
0
0
0
0
0
0.014028
0.237586
1,309
40
118
32.725
0.776553
0.329259
0
0
0
0
0.002577
0
0
0
0
0.025
0
1
0.285714
false
0
0.214286
0.142857
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
7babbcdfa2aa450acfcfe096edf3c99d3ebca7b3
192
py
Python
source/__init__.py
dante831/precip_cluster
d427a30f34db5aee57cb5f7b85a8adb6f5d264b8
[ "MIT" ]
3
2021-04-26T21:47:33.000Z
2021-11-24T08:53:22.000Z
source/__init__.py
dante831/precip_cluster
d427a30f34db5aee57cb5f7b85a8adb6f5d264b8
[ "MIT" ]
null
null
null
source/__init__.py
dante831/precip_cluster
d427a30f34db5aee57cb5f7b85a8adb6f5d264b8
[ "MIT" ]
1
2021-11-24T08:54:34.000Z
2021-11-24T08:54:34.000Z
__author__ = 'Ziwei Li' __email__ = 'lzw831@gmail.com' #from .source import * from .classes import * from .model_precip import * from .pickle_io import * from .precip_distribution import *
17.454545
34
0.744792
25
192
5.28
0.64
0.30303
0
0
0
0
0
0
0
0
0
0.018519
0.15625
192
10
35
19.2
0.796296
0.109375
0
0
0
0
0.142857
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7bb62c3d94c3ed291739f3c77c148c9e0037e430
130
py
Python
terrascript/resource/at_wat/ucodecov.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/at_wat/ucodecov.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/at_wat/ucodecov.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/at-wat/ucodecov.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:29:37 UTC) __all__ = []
26
73
0.753846
20
130
4.7
0.95
0
0
0
0
0
0
0
0
0
0
0.103448
0.107692
130
4
74
32.5
0.706897
0.853846
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4