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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6898f796a397aa78c8a0d4dd2b813816a33d0adb
| 270
|
py
|
Python
|
nodes/__init__.py
|
jimboca/udi-poly-ELK-v2
|
5c7590d17f8a805bc9de92b7ab7fbed388f3de50
|
[
"MIT"
] | 1
|
2020-04-14T03:25:44.000Z
|
2020-04-14T03:25:44.000Z
|
nodes/__init__.py
|
jimboca/udi-poly-ELK-v2
|
5c7590d17f8a805bc9de92b7ab7fbed388f3de50
|
[
"MIT"
] | 61
|
2019-10-11T22:45:22.000Z
|
2021-07-04T02:44:49.000Z
|
nodes/__init__.py
|
jimboca/udi-poly-elk
|
5c7590d17f8a805bc9de92b7ab7fbed388f3de50
|
[
"MIT"
] | null | null | null |
""" Node classes used by the Airscape Node Server. """
from .BaseNode import BaseNode
from .ZoneOff import ZoneOffNode
from .Zone import ZoneNode
from .Output import OutputNode
from .Keypad import KeypadNode
from .Area import AreaNode
from .Controller import Controller
| 30
| 54
| 0.807407
| 36
| 270
| 6.055556
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140741
| 270
| 8
| 55
| 33.75
| 0.939655
| 0.17037
| 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
|
689f25c1e67cbee455bf5707fdbc97b4449d3ec4
| 65
|
py
|
Python
|
looseserver/default/common/__init__.py
|
KillAChicken/loose-server
|
082402f1fec94faea20343142b0c306dc5f86026
|
[
"MIT"
] | 3
|
2019-04-21T13:10:34.000Z
|
2019-10-08T05:20:04.000Z
|
looseserver/default/common/__init__.py
|
KillAChicken/loose-server
|
082402f1fec94faea20343142b0c306dc5f86026
|
[
"MIT"
] | null | null | null |
looseserver/default/common/__init__.py
|
KillAChicken/loose-server
|
082402f1fec94faea20343142b0c306dc5f86026
|
[
"MIT"
] | null | null | null |
"""Package with common entities of the default configuration."""
| 32.5
| 64
| 0.769231
| 8
| 65
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123077
| 65
| 1
| 65
| 65
| 0.877193
| 0.892308
| 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
|
d7ec0d1935047ee53a096d3f5d7ce797c65d5a35
| 318
|
py
|
Python
|
thumbnails/tests/test_settings.py
|
cosmoosic/django-thumbnails
|
91eef01c224e2f4a7e6b9f8c6ee8739a2911d408
|
[
"MIT"
] | 23
|
2016-02-26T13:08:42.000Z
|
2022-03-27T11:39:35.000Z
|
thumbnails/tests/test_settings.py
|
cosmoosic/django-thumbnails
|
91eef01c224e2f4a7e6b9f8c6ee8739a2911d408
|
[
"MIT"
] | 31
|
2015-01-28T03:03:11.000Z
|
2022-03-10T01:53:10.000Z
|
thumbnails/tests/test_settings.py
|
cosmoosic/django-thumbnails
|
91eef01c224e2f4a7e6b9f8c6ee8739a2911d408
|
[
"MIT"
] | 18
|
2015-04-14T15:44:44.000Z
|
2022-01-26T08:57:50.000Z
|
from django.test import TestCase
from thumbnails import conf
class SettingsTest(TestCase):
def test_load_settings(self):
self.assertNotEqual(conf.METADATA, None)
self.assertNotEqual(conf.STORAGE, None)
self.assertNotEqual(conf.THUMBNAILS, {})
self.assertNotEqual(conf.SIZES, {})
| 26.5
| 48
| 0.716981
| 35
| 318
| 6.457143
| 0.514286
| 0.318584
| 0.389381
| 0.230089
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185535
| 318
| 11
| 49
| 28.909091
| 0.872587
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.125
| false
| 0
| 0.25
| 0
| 0.5
| 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
|
cc09cdca46f6b30b5a9be457f9f93f9385df24b6
| 105
|
py
|
Python
|
object/root/enforcer/py.py
|
pwwiur/sendo
|
5dc0806cd2632e8faaf832fd9d5d5445c0e5c429
|
[
"Apache-2.0"
] | 3
|
2019-12-27T14:20:58.000Z
|
2022-02-16T13:09:47.000Z
|
object/root/enforcer/py.py
|
pwwiur/Sendo
|
5dc0806cd2632e8faaf832fd9d5d5445c0e5c429
|
[
"Apache-2.0"
] | null | null | null |
object/root/enforcer/py.py
|
pwwiur/Sendo
|
5dc0806cd2632e8faaf832fd9d5d5445c0e5c429
|
[
"Apache-2.0"
] | null | null | null |
import os
import sys;
del sys.argv[0]
cmd = " ".join(sys.argv)
os.system('{} {}'.format('python', cmd))
| 15
| 40
| 0.619048
| 17
| 105
| 3.823529
| 0.647059
| 0.215385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010989
| 0.133333
| 105
| 7
| 40
| 15
| 0.703297
| 0
| 0
| 0
| 0
| 0
| 0.113208
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0bd03fe05ea7e310d9e44f79369c31296410cbfc
| 85
|
py
|
Python
|
roles/apps.py
|
Yojanpardo/desechables
|
037435d0aaa18f06c784932e3e7e643ee4172692
|
[
"Apache-2.0"
] | 6
|
2020-02-21T22:06:31.000Z
|
2020-12-08T10:48:07.000Z
|
roles/apps.py
|
Yojanpardo/desechables
|
037435d0aaa18f06c784932e3e7e643ee4172692
|
[
"Apache-2.0"
] | 13
|
2020-08-05T16:17:09.000Z
|
2022-03-12T00:18:42.000Z
|
apps/roles/apps.py
|
andresbermeoq/CajaAhorros
|
cb0769fc04529088768ea650f9ee048bd9a55837
|
[
"MIT"
] | 4
|
2019-08-05T13:22:29.000Z
|
2021-07-21T16:04:03.000Z
|
from django.apps import AppConfig
class RolesConfig(AppConfig):
name = 'roles'
| 14.166667
| 33
| 0.741176
| 10
| 85
| 6.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 85
| 5
| 34
| 17
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 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
|
0bfed4252a9b1a7c80bdf22d6182682a302cdfa3
| 792
|
py
|
Python
|
rasa/core/policies/registry.py
|
kunci115/rasa
|
41e3b227101e6ace3f85c2d99a7f48f4528a8b93
|
[
"Apache-2.0"
] | 1
|
2021-04-29T18:21:20.000Z
|
2021-04-29T18:21:20.000Z
|
rasa/core/policies/registry.py
|
kunci115/rasa
|
41e3b227101e6ace3f85c2d99a7f48f4528a8b93
|
[
"Apache-2.0"
] | 167
|
2020-09-30T18:30:56.000Z
|
2022-03-28T12:22:07.000Z
|
rasa/core/policies/registry.py
|
kunci115/rasa
|
41e3b227101e6ace3f85c2d99a7f48f4528a8b93
|
[
"Apache-2.0"
] | 1
|
2021-04-29T18:27:46.000Z
|
2021-04-29T18:27:46.000Z
|
# Import all policies at one place to be able to to resolve them via a common module
# path. Don't do this in `__init__.py` to avoid importing them without need.
from rasa.core.policies.ted_policy import TEDPolicy # noqa: F401
from rasa.core.policies.fallback import FallbackPolicy # noqa: F401
from rasa.core.policies.memoization import ( # noqa: F401
MemoizationPolicy,
AugmentedMemoizationPolicy,
)
from rasa.core.policies.sklearn_policy import SklearnPolicy # noqa: F401
from rasa.core.policies.form_policy import FormPolicy # noqa: F401
from rasa.core.policies.two_stage_fallback import TwoStageFallbackPolicy # noqa: F401
from rasa.core.policies.mapping_policy import MappingPolicy # noqa: F401
from rasa.core.policies.rule_policy import RulePolicy # noqa: F401
| 36
| 86
| 0.790404
| 111
| 792
| 5.540541
| 0.459459
| 0.104065
| 0.156098
| 0.260163
| 0.273171
| 0.273171
| 0
| 0
| 0
| 0
| 0
| 0.035398
| 0.143939
| 792
| 21
| 87
| 37.714286
| 0.871681
| 0.309343
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.727273
| 0
| 0.727273
| 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
|
04110671e17a44fe19e92466df1f348b0a811a91
| 166
|
py
|
Python
|
core.py
|
zorbathut/webficstats
|
d065d4d9ae33c675b9bb7335d90a22dcd8cf7a77
|
[
"MIT"
] | null | null | null |
core.py
|
zorbathut/webficstats
|
d065d4d9ae33c675b9bb7335d90a22dcd8cf7a77
|
[
"MIT"
] | 1
|
2021-06-01T22:28:47.000Z
|
2021-06-01T22:28:47.000Z
|
core.py
|
zorbathut/webficstats
|
d065d4d9ae33c675b9bb7335d90a22dcd8cf7a77
|
[
"MIT"
] | null | null | null |
def log_error(e):
"""
It is always a good idea to log errors.
This function just prints them, but you can
make it do anything.
"""
print(e)
| 16.6
| 47
| 0.60241
| 27
| 166
| 3.666667
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.313253
| 166
| 9
| 48
| 18.444444
| 0.868421
| 0.626506
| 0
| 0
| 0
| 0
| 0
| 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
|
0435c14d816227542bd2df01238fbfe23f8913f5
| 189
|
py
|
Python
|
hodolbot/views/stock.py
|
solar0037/hodolbot
|
f758375efce2dede58d920d41cab4a8ad38d1d58
|
[
"MIT"
] | null | null | null |
hodolbot/views/stock.py
|
solar0037/hodolbot
|
f758375efce2dede58d920d41cab4a8ad38d1d58
|
[
"MIT"
] | 3
|
2021-08-02T01:59:04.000Z
|
2021-08-02T01:59:15.000Z
|
hodolbot/views/stock.py
|
solar0037/hodolbot
|
f758375efce2dede58d920d41cab4a8ad38d1d58
|
[
"MIT"
] | null | null | null |
from hodolbot.classes import View
from hodolbot.controllers import stock_handler
class StockView(View):
command = "주식"
@staticmethod
def get():
return stock_handler()
| 18.9
| 46
| 0.714286
| 22
| 189
| 6.045455
| 0.727273
| 0.180451
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.21164
| 189
| 9
| 47
| 21
| 0.892617
| 0
| 0
| 0
| 0
| 0
| 0.010582
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.285714
| 0.142857
| 0.857143
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
0444be1729ee74ae6b69811bacda3c3154ac6b55
| 2,025
|
py
|
Python
|
app/models.py
|
mrtoronto/find-a-lab
|
2b2ae164703f9c8e4eadbe56ee32fb0bf8d618f8
|
[
"MIT"
] | null | null | null |
app/models.py
|
mrtoronto/find-a-lab
|
2b2ae164703f9c8e4eadbe56ee32fb0bf8d618f8
|
[
"MIT"
] | null | null | null |
app/models.py
|
mrtoronto/find-a-lab
|
2b2ae164703f9c8e4eadbe56ee32fb0bf8d618f8
|
[
"MIT"
] | null | null | null |
from datetime import datetime
from hashlib import md5
from time import time
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
import jwt
from app import db, login
from sqlalchemy.dialects.postgresql import JSON
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64), index=True, unique=True)
email = db.Column(db.String(120), index=True, unique=True)
password_hash = db.Column(db.String(128))
about_me = db.Column(db.String(140))
last_seen = db.Column(db.DateTime, default=datetime.utcnow)
def __repr__(self):
return '<User {}>'.format(self.username)
def set_password(self, password):
self.password_hash = generate_password_hash(password)
def check_password(self, password):
return check_password_hash(self.password_hash, password)
def get_reset_password_token(self, expires_in=600):
return jwt.encode(
{'reset_password': self.id, 'exp': time() + expires_in},
app.config['SECRET_KEY'], algorithm='HS256').decode('utf-8')
@staticmethod
def verify_reset_password_token(token):
try:
id = jwt.decode(token, app.config['SECRET_KEY'],
algorithms=['HS256'])['reset_password']
except:
return
return User.query.get(id)
@login.user_loader
def load_user(id):
return User.query.get(int(id))
class Result(db.Model):
id = db.Column(db.Integer, primary_key=True)
query_type = db.Column(db.String(120))
query_text = db.Column(db.String(500))
query_from = db.Column(db.Integer)
query_affiliations = db.Column(db.String(250))
query_locations = db.Column(db.String(250))
user_querying = db.Column(db.String(250))
redis_token = db.Column(db.String(400))
length_of_results = db.Column(db.Integer)
result_all = db.Column(JSON)
def __repr__(self):
return '<id {}>'.format(self.id)
| 31.640625
| 73
| 0.681975
| 278
| 2,025
| 4.78777
| 0.323741
| 0.096168
| 0.112697
| 0.12021
| 0.13148
| 0.060105
| 0.060105
| 0.060105
| 0.060105
| 0.060105
| 0
| 0.024555
| 0.195556
| 2,025
| 64
| 74
| 31.640625
| 0.792511
| 0
| 0
| 0.081633
| 1
| 0
| 0.040474
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0.204082
| 0.163265
| 0.102041
| 0.795918
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
0445f9073ed7d7815990aa62dbb366edae082eb6
| 323
|
py
|
Python
|
uncertainty/learning/__init__.py
|
sangdon/intern2020_cocal
|
2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba
|
[
"Apache-2.0"
] | null | null | null |
uncertainty/learning/__init__.py
|
sangdon/intern2020_cocal
|
2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba
|
[
"Apache-2.0"
] | 4
|
2020-09-02T04:20:06.000Z
|
2022-02-10T02:13:35.000Z
|
uncertainty/learning/__init__.py
|
sangdon/intern2020_cocal
|
2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba
|
[
"Apache-2.0"
] | 1
|
2020-08-31T16:17:28.000Z
|
2020-08-31T16:17:28.000Z
|
from learning.loss import *
from learning.base import BaseLearner
from learning.classification import LearnerCls, LearnerDACls
from learning.calibration import TempScalingCls
from learning.conf import LearnerConfPred
from learning.base_self import BaseLearnerSelf
from learning.classification_self import LearnerClsSelf
| 29.363636
| 60
| 0.873065
| 37
| 323
| 7.567568
| 0.432432
| 0.3
| 0.114286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.099071
| 323
| 10
| 61
| 32.3
| 0.962199
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0453841c24663a976a4dfc622604d0ced5a7ee73
| 363
|
py
|
Python
|
notebook/random_list.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 174
|
2018-05-30T21:14:50.000Z
|
2022-03-25T07:59:37.000Z
|
notebook/random_list.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 5
|
2019-08-10T03:22:02.000Z
|
2021-07-12T20:31:17.000Z
|
notebook/random_list.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 53
|
2018-04-27T05:26:35.000Z
|
2022-03-25T07:59:37.000Z
|
import random
print([random.random() for i in range(5)])
# [0.5518201298350598, 0.3476911314933616, 0.8463426180468342, 0.8949046353303931, 0.40822657702632625]
print([random.randint(0, 10) for i in range(5)])
# [8, 5, 7, 10, 7]
print(random.sample(range(10), k=5))
# [6, 4, 3, 7, 5]
print(random.sample(range(100, 200, 10), k=5))
# [130, 190, 140, 150, 170]
| 25.928571
| 103
| 0.672176
| 61
| 363
| 4
| 0.491803
| 0.180328
| 0.04918
| 0.090164
| 0.098361
| 0
| 0
| 0
| 0
| 0
| 0
| 0.408228
| 0.129477
| 363
| 13
| 104
| 27.923077
| 0.363924
| 0.440771
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 0.8
| 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 | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
f0a4ac0c883bfef8b7862e7440142953e031d92c
| 182
|
py
|
Python
|
example/days_in_month.py
|
chenqim/Python3
|
398d3bfcf36ace667b73c7db44752aaf6b0a88ad
|
[
"MIT"
] | 1
|
2017-07-18T08:51:02.000Z
|
2017-07-18T08:51:02.000Z
|
example/days_in_month.py
|
chenqim/Python3
|
398d3bfcf36ace667b73c7db44752aaf6b0a88ad
|
[
"MIT"
] | null | null | null |
example/days_in_month.py
|
chenqim/Python3
|
398d3bfcf36ace667b73c7db44752aaf6b0a88ad
|
[
"MIT"
] | null | null | null |
import calendar
monthRange = calendar.monthrange(2016,9)
print(monthRange)
# (3, 30)
# 输出的是一个元组,第一个元素是所查月份的第一天对应的是星期几(0-6),第二个元素是这个月的天数。
# 以上实例输出的意思为 2016 年 9 月份的第一天是星期四,该月总共有 30 天。
| 26
| 51
| 0.78022
| 24
| 182
| 5.916667
| 0.75
| 0.253521
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104294
| 0.104396
| 182
| 6
| 52
| 30.333333
| 0.766871
| 0.549451
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 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
|
f0aa4f23b0dcd7f04fdf9cd808ad8db100ff4081
| 162
|
py
|
Python
|
src/attendance/resources/config.py
|
JakubBatel/Attendance-Recorder
|
18d7d019d0284b7fcccf5bbbfc450ba70c922fc2
|
[
"MIT"
] | null | null | null |
src/attendance/resources/config.py
|
JakubBatel/Attendance-Recorder
|
18d7d019d0284b7fcccf5bbbfc450ba70c922fc2
|
[
"MIT"
] | null | null | null |
src/attendance/resources/config.py
|
JakubBatel/Attendance-Recorder
|
18d7d019d0284b7fcccf5bbbfc450ba70c922fc2
|
[
"MIT"
] | null | null | null |
from configparser import ConfigParser
from pkg_resources import resource_filename
config = ConfigParser()
config.read(resource_filename(__name__, 'config.ini'))
| 27
| 54
| 0.839506
| 19
| 162
| 6.789474
| 0.578947
| 0.248062
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08642
| 162
| 5
| 55
| 32.4
| 0.871622
| 0
| 0
| 0
| 0
| 0
| 0.061728
| 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
|
f0aede548a0dba447631b565eb03f553b907fb8a
| 31,584
|
py
|
Python
|
test/genomicsqlite_smoke_test.py
|
jbedo/GenomicSQLite
|
98131974233186039122e09f0f2d0b85d0810e51
|
[
"Apache-2.0"
] | 1
|
2020-09-29T10:25:03.000Z
|
2020-09-29T10:25:03.000Z
|
test/genomicsqlite_smoke_test.py
|
jbedo/GenomicSQLite
|
98131974233186039122e09f0f2d0b85d0810e51
|
[
"Apache-2.0"
] | null | null | null |
test/genomicsqlite_smoke_test.py
|
jbedo/GenomicSQLite
|
98131974233186039122e09f0f2d0b85d0810e51
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python3
"""
Display platform, environment, & version info for debugging GenomicSQLite installation. Load a
small test database and check GRI query plan on it.
"""
import sys
import time
import os
import subprocess
import traceback
import platform
import textwrap
def main():
header = f"""\
-- GenomicSQLite smoke test --
timestamp: {time.asctime(time.gmtime())}
platform: {platform.platform()}
uname: {os.uname()}
python: {platform.python_implementation()} {platform.python_version()}"""
print(textwrap.dedent(header))
print("cpu", end="")
try:
if platform.system() == "Linux":
with open("/proc/cpuinfo") as cpuinfo:
modelname = (
line.strip().replace("\t", "")
for line in cpuinfo
if line.lower().strip().startswith("model name")
)
print(" " + next(modelname, ": ???"))
elif platform.system() == "Darwin":
sysctl = subprocess.run(
["sysctl", "-n", "machdep.cpu.brand_string"],
check=True,
universal_newlines=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
if sysctl.returncode == 0 and sysctl.stdout.strip():
print(": " + sysctl.stdout.strip())
else:
print(": ???")
else:
print(": ???")
except Exception:
print(": ???")
env_keys = [
k
for k in os.environ
if ("genomicsqlite" in k.lower())
or k in ("PATH", "PYTHONPATH", "LD_LIBRARY_PATH", "DYLD_LIBRARY_PATH")
]
if env_keys:
print("environment:")
for k in env_keys:
print(f" {k}={os.environ[k]}")
print("sqlite3: ", end="")
import sqlite3
conn = sqlite3.connect(":memory:")
print(next(conn.execute("SELECT sqlite_version()"))[0])
print("genomicsqlite: ", end="")
try:
import genomicsqlite
except ImportError as exn:
print(f"\n\nUnable to import genomicsqlite: {exn}")
print("The Python genomicsqlite package may need to be installed via pip3 or conda,")
print("or its location may need to be added to PYTHONPATH.")
sys.exit(1)
print(genomicsqlite.__version__)
print(f"genomicsqlite library: {genomicsqlite._DLL}")
dbfile = os.path.join(
os.environ.get("TMPDIR", "/tmp"), f"genomicsqlite_smoke_test.{time.monotonic()}"
)
print(f"\ntest database: {dbfile}")
try:
dbconn = genomicsqlite.connect(dbfile)
for (table, bed) in (("exons1", _EXONS1), ("exons2", _EXONS2)):
dbconn.execute(
f"CREATE TABLE {table}(chrom TEXT, pos INTEGER, end INTEGER, id TEXT PRIMARY KEY)"
)
for line in bed.strip().split("\n"):
line = line.split("\t")
dbconn.execute(
f"INSERT INTO {table}(chrom,pos,end,id) VALUES(?,?,?,?)",
(line[0], int(line[1]) - 1, int(line[2]), line[3]),
)
dbconn.executescript(
genomicsqlite.create_genomic_range_index_sql(dbconn, table, "chrom", "pos", "end")
)
dbconn.commit()
query = (
"SELECT exons1.id, exons2.id FROM exons1 LEFT JOIN exons2 ON exons2._rowid_ IN\n"
+ textwrap.indent(
genomicsqlite.genomic_range_rowids_sql(
dbconn, "exons2", "exons1.chrom", "exons1.pos", "exons1.end"
),
" ",
)
+ "\nORDER BY exons1.id, exons2.id"
)
print("GRI query:\n" + textwrap.indent(query, " "))
print("GRI query plan:")
gri_constraints = 0
for expl in dbconn.execute("EXPLAIN QUERY PLAN " + query):
print(" " + expl[3])
if (
"((_gri_rid,_gri_lvl,_gri_beg)>(?,?,?) AND (_gri_rid,_gri_lvl,_gri_beg)<(?,?,?))"
in expl[3]
):
gri_constraints += 1
results = list(dbconn.execute(query))
control = "SELECT exons1.id, exons2.id FROM exons1 LEFT JOIN exons2 NOT INDEXED ON NOT (exons2.end < exons1.pos OR exons2.pos > exons1.end) ORDER BY exons1.id, exons2.id"
control_results = list(dbconn.execute(control))
assert len(control_results) == 1139, "unexpected control query results"
assert (
results == control_results
), "discrepancy between genomic_range_rowids_sql() and control results"
if gri_constraints != 3:
print("GRI query opcodes:")
for expl in dbconn.execute("EXPLAIN " + query):
print(" " + str(expl))
print(
"\n** WARNING: GRI yielded correct results, but with a possibly suboptimal query plan."
)
print(
"** Please redirect this log to a file and send to maintainers @ https://github.com/mlin/GenomicSQLite\n"
)
sys.exit(2)
assert next(dbconn.execute("SELECT * FROM genomic_range_index_levels('exons2')")) == (
3,
1,
), "incorrect results from genomic_range_index_levels()"
query2 = """
SELECT exons1.id, exons2.id
FROM genomic_range_index_levels('exons2'), exons1 LEFT JOIN exons2 ON exons2._rowid_ IN
genomic_range_rowids('exons2', exons1.chrom, exons1.pos, exons1.end, _gri_ceiling, _gri_floor)
ORDER BY exons1.id, exons2.id
"""
assert (
list(dbconn.execute(query2)) == control_results
), "discrepancy between genomic_range_rowids() and control results"
dbconn.close()
print("\nGenomicSQLite smoke test OK =)\n")
finally:
os.remove(dbfile)
_EXONS1 = """
chr17 43044294 43045802 ENST00000352993.7_exon_0_0_chr17_43044295_r 0 -
chr17 43047642 43047703 ENST00000352993.7_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000352993.7_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000352993.7_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000352993.7_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000352993.7_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000352993.7_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000352993.7_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000352993.7_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000352993.7_exon_9_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000352993.7_exon_10_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000352993.7_exon_11_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000352993.7_exon_12_0_chr17_43090944_r 0 -
chr17 43095845 43095922 ENST00000352993.7_exon_13_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000352993.7_exon_14_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000352993.7_exon_15_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000352993.7_exon_16_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000352993.7_exon_17_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000352993.7_exon_18_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000352993.7_exon_19_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000352993.7_exon_20_0_chr17_43124017_r 0 -
chr17 43125270 43125370 ENST00000352993.7_exon_21_0_chr17_43125271_r 0 -
chr17 43044294 43045802 ENST00000357654.8_exon_0_0_chr17_43044295_r 0 -
chr17 43047642 43047703 ENST00000357654.8_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000357654.8_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000357654.8_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000357654.8_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000357654.8_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000357654.8_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000357654.8_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000357654.8_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000357654.8_exon_9_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000357654.8_exon_10_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000357654.8_exon_11_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000357654.8_exon_12_0_chr17_43090944_r 0 -
chr17 43091434 43094860 ENST00000357654.8_exon_13_0_chr17_43091435_r 0 -
chr17 43095845 43095922 ENST00000357654.8_exon_14_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000357654.8_exon_15_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000357654.8_exon_16_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000357654.8_exon_17_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000357654.8_exon_18_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000357654.8_exon_19_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000357654.8_exon_20_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000357654.8_exon_21_0_chr17_43124017_r 0 -
chr17 43125270 43125483 ENST00000357654.8_exon_22_0_chr17_43125271_r 0 -
chr17 43044294 43045802 ENST00000471181.7_exon_0_0_chr17_43044295_r 0 -
chr17 43047642 43047703 ENST00000471181.7_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000471181.7_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000471181.7_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000471181.7_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000471181.7_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000471181.7_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000471181.7_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000471181.7_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000471181.7_exon_9_0_chr17_43074331_r 0 -
chr17 43076487 43076611 ENST00000471181.7_exon_10_0_chr17_43076488_r 0 -
chr17 43079333 43079399 ENST00000471181.7_exon_11_0_chr17_43079334_r 0 -
chr17 43082403 43082575 ENST00000471181.7_exon_12_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000471181.7_exon_13_0_chr17_43090944_r 0 -
chr17 43091434 43094860 ENST00000471181.7_exon_14_0_chr17_43091435_r 0 -
chr17 43095845 43095922 ENST00000471181.7_exon_15_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000471181.7_exon_16_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000471181.7_exon_17_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000471181.7_exon_18_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000471181.7_exon_19_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000471181.7_exon_20_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000471181.7_exon_21_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000471181.7_exon_22_0_chr17_43124017_r 0 -
chr17 43125270 43125483 ENST00000471181.7_exon_23_0_chr17_43125271_r 0 -
chr17 43044804 43045802 ENST00000468300.5_exon_0_0_chr17_43044805_r 0 -
chr17 43047642 43047703 ENST00000468300.5_exon_1_0_chr17_43047643_r 0 -
chr17 43051062 43051117 ENST00000468300.5_exon_2_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000468300.5_exon_3_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000468300.5_exon_4_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000468300.5_exon_5_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000468300.5_exon_6_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000468300.5_exon_7_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000468300.5_exon_8_0_chr17_43074331_r 0 -
chr17 43076487 43076611 ENST00000468300.5_exon_9_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000468300.5_exon_10_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000468300.5_exon_11_0_chr17_43090944_r 0 -
chr17 43094743 43094860 ENST00000468300.5_exon_12_0_chr17_43094744_r 0 -
chr17 43095845 43095922 ENST00000468300.5_exon_13_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000468300.5_exon_14_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000468300.5_exon_15_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000468300.5_exon_16_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000468300.5_exon_17_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000468300.5_exon_18_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000468300.5_exon_19_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000468300.5_exon_20_0_chr17_43124017_r 0 -
chr17 43125276 43125451 ENST00000468300.5_exon_21_0_chr17_43125277_r 0 -
chr17 43045085 43045802 ENST00000644379.1_exon_0_0_chr17_43045086_r 0 -
chr17 43047642 43047703 ENST00000644379.1_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000644379.1_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000644379.1_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000644379.1_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000644379.1_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000644379.1_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000644379.1_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000644379.1_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000644379.1_exon_9_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000644379.1_exon_10_0_chr17_43076488_r 0 -
chr17 43079333 43079399 ENST00000644379.1_exon_11_0_chr17_43079334_r 0 -
chr17 43082403 43082575 ENST00000644379.1_exon_12_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000644379.1_exon_13_0_chr17_43090944_r 0 -
chr17 43091434 43091851 ENST00000644379.1_exon_14_0_chr17_43091435_r 0 -
chr17 43045562 43045802 ENST00000586385.5_exon_0_0_chr17_43045563_r 0 -
chr17 43047642 43047703 ENST00000586385.5_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000586385.5_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000586385.5_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000586385.5_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000586385.5_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000586385.5_exon_6_0_chr17_43063874_r 0 -
chr17 43125181 43125329 ENST00000586385.5_exon_7_0_chr17_43125182_r 0 -
chr17 43045562 43045802 ENST00000591534.5_exon_0_0_chr17_43045563_r 0 -
chr17 43047642 43047703 ENST00000591534.5_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000591534.5_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000591534.5_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000591534.5_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000591534.5_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000591534.5_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000591534.5_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000591534.5_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000591534.5_exon_9_0_chr17_43074331_r 0 -
chr17 43125270 43125329 ENST00000591534.5_exon_10_0_chr17_43125271_r 0 -
chr17 43045562 43045802 ENST00000591849.5_exon_0_0_chr17_43045563_r 0 -
chr17 43047642 43047703 ENST00000591849.5_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000591849.5_exon_2_0_chr17_43049121_r 0 -
chr17 43050061 43050190 ENST00000591849.5_exon_3_0_chr17_43050062_r 0 -
chr17 43125270 43125329 ENST00000591849.5_exon_4_0_chr17_43125271_r 0 -
chr17 43045628 43045802 ENST00000493795.5_exon_0_0_chr17_43045629_r 0 -
chr17 43047642 43047703 ENST00000493795.5_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000493795.5_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000493795.5_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000493795.5_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000493795.5_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000493795.5_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000493795.5_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000493795.5_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000493795.5_exon_9_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000493795.5_exon_10_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000493795.5_exon_11_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000493795.5_exon_12_0_chr17_43090944_r 0 -
chr17 43091434 43094860 ENST00000493795.5_exon_13_0_chr17_43091435_r 0 -
chr17 43095845 43095922 ENST00000493795.5_exon_14_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000493795.5_exon_15_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000493795.5_exon_16_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000493795.5_exon_17_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000493795.5_exon_18_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000493795.5_exon_19_0_chr17_43106456_r 0 -
chr17 43124016 43124115 ENST00000493795.5_exon_20_0_chr17_43124017_r 0 -
chr17 43125276 43125402 ENST00000493795.5_exon_21_0_chr17_43125277_r 0 -
chr17 43045677 43045802 ENST00000461221.5_exon_0_0_chr17_43045678_r 0 -
chr17 43047642 43047703 ENST00000461221.5_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000461221.5_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000461221.5_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000461221.5_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000461221.5_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000461221.5_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000461221.5_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000461221.5_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000461221.5_exon_9_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000461221.5_exon_10_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000461221.5_exon_11_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000461221.5_exon_12_0_chr17_43090944_r 0 -
chr17 43091434 43094860 ENST00000461221.5_exon_13_0_chr17_43091435_r 0 -
chr17 43095845 43095922 ENST00000461221.5_exon_14_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000461221.5_exon_15_0_chr17_43097244_r 0 -
chr17 43099774 43099877 ENST00000461221.5_exon_16_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000461221.5_exon_17_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000461221.5_exon_18_0_chr17_43104868_r 0 -
chr17 43106477 43106533 ENST00000461221.5_exon_19_0_chr17_43106478_r 0 -
chr17 43115725 43115779 ENST00000461221.5_exon_20_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000461221.5_exon_21_0_chr17_43124017_r 0 -
chr17 43125181 43125288 ENST00000461221.5_exon_22_0_chr17_43125182_r 0 -
"""
_EXONS2 = """
chr17 43045677 43045802 ENST00000491747.6_exon_0_0_chr17_43045678_r 0 -
chr17 43047642 43047703 ENST00000491747.6_exon_1_0_chr17_43047643_r 0 -
chr17 43049120 43049194 ENST00000491747.6_exon_2_0_chr17_43049121_r 0 -
chr17 43051062 43051117 ENST00000491747.6_exon_3_0_chr17_43051063_r 0 -
chr17 43057051 43057135 ENST00000491747.6_exon_4_0_chr17_43057052_r 0 -
chr17 43063332 43063373 ENST00000491747.6_exon_5_0_chr17_43063333_r 0 -
chr17 43063873 43063951 ENST00000491747.6_exon_6_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000491747.6_exon_7_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000491747.6_exon_8_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000491747.6_exon_9_0_chr17_43074331_r 0 -
chr17 43076487 43076611 ENST00000491747.6_exon_10_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000491747.6_exon_11_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000491747.6_exon_12_0_chr17_43090944_r 0 -
chr17 43094743 43094860 ENST00000491747.6_exon_13_0_chr17_43094744_r 0 -
chr17 43095845 43095922 ENST00000491747.6_exon_14_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000491747.6_exon_15_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000491747.6_exon_16_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000491747.6_exon_17_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000491747.6_exon_18_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000491747.6_exon_19_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000491747.6_exon_20_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000491747.6_exon_21_0_chr17_43124017_r 0 -
chr17 43125276 43125356 ENST00000491747.6_exon_22_0_chr17_43125277_r 0 -
chr17 43063343 43063373 ENST00000484087.5_exon_0_0_chr17_43063344_r 0 -
chr17 43063873 43063951 ENST00000484087.5_exon_1_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000484087.5_exon_2_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000484087.5_exon_3_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000484087.5_exon_4_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000484087.5_exon_5_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000484087.5_exon_6_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000484087.5_exon_7_0_chr17_43090944_r 0 -
chr17 43094743 43094860 ENST00000484087.5_exon_8_0_chr17_43094744_r 0 -
chr17 43099774 43099877 ENST00000484087.5_exon_9_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000484087.5_exon_10_0_chr17_43104122_r 0 -
chr17 43104867 43104916 ENST00000484087.5_exon_11_0_chr17_43104868_r 0 -
chr17 43063343 43063373 ENST00000478531.5_exon_0_0_chr17_43063344_r 0 -
chr17 43063873 43063951 ENST00000478531.5_exon_1_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000478531.5_exon_2_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000478531.5_exon_3_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000478531.5_exon_4_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000478531.5_exon_5_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000478531.5_exon_6_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000478531.5_exon_7_0_chr17_43090944_r 0 -
chr17 43094743 43094860 ENST00000478531.5_exon_8_0_chr17_43094744_r 0 -
chr17 43095845 43095922 ENST00000478531.5_exon_9_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000478531.5_exon_10_0_chr17_43097244_r 0 -
chr17 43099774 43099877 ENST00000478531.5_exon_11_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000478531.5_exon_12_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000478531.5_exon_13_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000478531.5_exon_14_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000478531.5_exon_15_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000478531.5_exon_16_0_chr17_43124017_r 0 -
chr17 43125276 43125359 ENST00000478531.5_exon_17_0_chr17_43125277_r 0 -
chr17 43063359 43063373 ENST00000493919.5_exon_0_0_chr17_43063360_r 0 -
chr17 43063873 43063951 ENST00000493919.5_exon_1_0_chr17_43063874_r 0 -
chr17 43067607 43067695 ENST00000493919.5_exon_2_0_chr17_43067608_r 0 -
chr17 43070927 43071238 ENST00000493919.5_exon_3_0_chr17_43070928_r 0 -
chr17 43074330 43074521 ENST00000493919.5_exon_4_0_chr17_43074331_r 0 -
chr17 43076487 43076614 ENST00000493919.5_exon_5_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000493919.5_exon_6_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000493919.5_exon_7_0_chr17_43090944_r 0 -
chr17 43094743 43094860 ENST00000493919.5_exon_8_0_chr17_43094744_r 0 -
chr17 43095845 43095922 ENST00000493919.5_exon_9_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000493919.5_exon_10_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000493919.5_exon_11_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000493919.5_exon_12_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000493919.5_exon_13_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000493919.5_exon_14_0_chr17_43106456_r 0 -
chr17 43124016 43124115 ENST00000493919.5_exon_15_0_chr17_43124017_r 0 -
chr17 43125276 43125402 ENST00000493919.5_exon_16_0_chr17_43125277_r 0 -
chr17 43076487 43076614 ENST00000487825.5_exon_0_0_chr17_43076488_r 0 -
chr17 43082403 43082575 ENST00000487825.5_exon_1_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000487825.5_exon_2_0_chr17_43090944_r 0 -
chr17 43094743 43094860 ENST00000487825.5_exon_3_0_chr17_43094744_r 0 -
chr17 43099774 43099880 ENST00000487825.5_exon_4_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000487825.5_exon_5_0_chr17_43104122_r 0 -
chr17 43104867 43104916 ENST00000487825.5_exon_6_0_chr17_43104868_r 0 -
chr17 43076536 43076611 ENST00000461574.1_exon_0_0_chr17_43076537_r 0 -
chr17 43082403 43082575 ENST00000461574.1_exon_1_0_chr17_43082404_r 0 -
chr17 43090943 43091032 ENST00000461574.1_exon_2_0_chr17_43090944_r 0 -
chr17 43091434 43091824 ENST00000461574.1_exon_3_0_chr17_43091435_r 0 -
chr17 43091097 43094860 ENST00000354071.7_exon_0_0_chr17_43091098_r 0 -
chr17 43095845 43095922 ENST00000354071.7_exon_1_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000354071.7_exon_2_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000354071.7_exon_3_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000354071.7_exon_4_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000354071.7_exon_5_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000354071.7_exon_6_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000354071.7_exon_7_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000354071.7_exon_8_0_chr17_43124017_r 0 -
chr17 43125270 43125315 ENST00000354071.7_exon_9_0_chr17_43125271_r 0 -
chr17 43093012 43094860 ENST00000634433.1_exon_0_0_chr17_43093013_r 0 -
chr17 43099774 43099880 ENST00000634433.1_exon_1_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000634433.1_exon_2_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000634433.1_exon_3_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000634433.1_exon_4_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000634433.1_exon_5_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000634433.1_exon_6_0_chr17_43124017_r 0 -
chr17 43170125 43170245 ENST00000634433.1_exon_7_0_chr17_43170126_r 0 -
chr17 43093569 43094860 ENST00000412061.3_exon_0_0_chr17_43093570_r 0 -
chr17 43095845 43095866 ENST00000412061.3_exon_1_0_chr17_43095846_r 0 -
chr17 43093583 43094860 ENST00000470026.5_exon_0_0_chr17_43093584_r 0 -
chr17 43095845 43095922 ENST00000470026.5_exon_1_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000470026.5_exon_2_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000470026.5_exon_3_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000470026.5_exon_4_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000470026.5_exon_5_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000470026.5_exon_6_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000470026.5_exon_7_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000470026.5_exon_8_0_chr17_43124017_r 0 -
chr17 43125181 43125323 ENST00000470026.5_exon_9_0_chr17_43125182_r 0 -
chr17 43093584 43094860 ENST00000652672.1_exon_0_0_chr17_43093585_r 0 -
chr17 43095845 43095922 ENST00000652672.1_exon_1_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000652672.1_exon_2_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000652672.1_exon_3_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000652672.1_exon_4_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000652672.1_exon_5_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000652672.1_exon_6_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000652672.1_exon_7_0_chr17_43115726_r 0 -
chr17 43121557 43121676 ENST00000652672.1_exon_8_0_chr17_43121558_r 0 -
chr17 43124016 43124115 ENST00000652672.1_exon_9_0_chr17_43124017_r 0 -
chr17 43125276 43125483 ENST00000652672.1_exon_10_0_chr17_43125277_r 0 -
chr17 43093585 43094860 ENST00000477152.5_exon_0_0_chr17_43093586_r 0 -
chr17 43095845 43095922 ENST00000477152.5_exon_1_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000477152.5_exon_2_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000477152.5_exon_3_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000477152.5_exon_4_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000477152.5_exon_5_0_chr17_43104868_r 0 -
chr17 43115725 43115779 ENST00000477152.5_exon_6_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000477152.5_exon_7_0_chr17_43124017_r 0 -
chr17 43125270 43125364 ENST00000477152.5_exon_8_0_chr17_43125271_r 0 -
chr17 43094111 43094860 ENST00000492859.5_exon_0_0_chr17_43094112_r 0 -
chr17 43095845 43095922 ENST00000492859.5_exon_1_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000492859.5_exon_2_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000492859.5_exon_3_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000492859.5_exon_4_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000492859.5_exon_5_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000492859.5_exon_6_0_chr17_43106456_r 0 -
chr17 43110464 43110580 ENST00000492859.5_exon_7_0_chr17_43110465_r 0 -
chr17 43115725 43115779 ENST00000492859.5_exon_8_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000492859.5_exon_9_0_chr17_43124017_r 0 -
chr17 43125270 43125300 ENST00000492859.5_exon_10_0_chr17_43125271_r 0 -
chr17 43094111 43094860 ENST00000497488.1_exon_0_0_chr17_43094112_r 0 -
chr17 43125270 43125300 ENST00000497488.1_exon_1_0_chr17_43125271_r 0 -
chr17 43094111 43094860 ENST00000494123.5_exon_0_0_chr17_43094112_r 0 -
chr17 43095845 43095922 ENST00000494123.5_exon_1_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000494123.5_exon_2_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000494123.5_exon_3_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000494123.5_exon_4_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000494123.5_exon_5_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000494123.5_exon_6_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000494123.5_exon_7_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000494123.5_exon_8_0_chr17_43124017_r 0 -
chr17 43125276 43125450 ENST00000494123.5_exon_9_0_chr17_43125277_r 0 -
chr17 43094169 43094860 ENST00000473961.5_exon_0_0_chr17_43094170_r 0 -
chr17 43099774 43099877 ENST00000473961.5_exon_1_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000473961.5_exon_2_0_chr17_43104122_r 0 -
chr17 43104867 43104891 ENST00000473961.5_exon_3_0_chr17_43104868_r 0 -
chr17 43094481 43094860 ENST00000642945.1_exon_0_0_chr17_43094482_r 0 -
chr17 43095845 43095922 ENST00000642945.1_exon_1_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000642945.1_exon_2_0_chr17_43097244_r 0 -
chr17 43099774 43099880 ENST00000642945.1_exon_3_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000642945.1_exon_4_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000642945.1_exon_5_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000642945.1_exon_6_0_chr17_43106456_r 0 -
chr17 43112486 43112606 ENST00000642945.1_exon_7_0_chr17_43112487_r 0 -
chr17 43115725 43115779 ENST00000642945.1_exon_8_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000642945.1_exon_9_0_chr17_43124017_r 0 -
chr17 43125276 43125343 ENST00000642945.1_exon_10_0_chr17_43125277_r 0 -
chr17 43095845 43095922 ENST00000476777.5_exon_0_0_chr17_43095846_r 0 -
chr17 43097243 43097289 ENST00000476777.5_exon_1_0_chr17_43097244_r 0 -
chr17 43099774 43099877 ENST00000476777.5_exon_2_0_chr17_43099775_r 0 -
chr17 43104121 43104261 ENST00000476777.5_exon_3_0_chr17_43104122_r 0 -
chr17 43104867 43104956 ENST00000476777.5_exon_4_0_chr17_43104868_r 0 -
chr17 43106455 43106533 ENST00000476777.5_exon_5_0_chr17_43106456_r 0 -
chr17 43115725 43115779 ENST00000476777.5_exon_6_0_chr17_43115726_r 0 -
chr17 43124016 43124115 ENST00000476777.5_exon_7_0_chr17_43124017_r 0 -
chr17 43125270 43125353 ENST00000476777.5_exon_8_0_chr17_43125271_r 0 -
"""
try:
main()
except Exception:
print()
traceback.print_exc(file=sys.stdout)
sys.exit(1)
| 59.705104
| 178
| 0.8245
| 4,891
| 31,584
| 4.876099
| 0.083419
| 0.177114
| 0.103023
| 0.012915
| 0.633444
| 0.581073
| 0.562497
| 0.547067
| 0.455239
| 0.427397
| 0
| 0.557888
| 0.128166
| 31,584
| 528
| 179
| 59.818182
| 0.308215
| 0.005319
| 0
| 0.043738
| 0
| 0.003976
| 0.882291
| 0.501465
| 0
| 0
| 0
| 0
| 0.007952
| 1
| 0.001988
| false
| 0
| 0.021869
| 0
| 0.023857
| 0.055666
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f0e2fbb34e15f9dc48a919ddb37fd46dbb1aea80
| 391
|
py
|
Python
|
project/Player and ball tracking/Court/court.py
|
Kamad11/Sports-Analysis
|
9a600ae686649503c3d17c5291ec1c7925009d8a
|
[
"MIT"
] | null | null | null |
project/Player and ball tracking/Court/court.py
|
Kamad11/Sports-Analysis
|
9a600ae686649503c3d17c5291ec1c7925009d8a
|
[
"MIT"
] | null | null | null |
project/Player and ball tracking/Court/court.py
|
Kamad11/Sports-Analysis
|
9a600ae686649503c3d17c5291ec1c7925009d8a
|
[
"MIT"
] | null | null | null |
import cv2
def draw_court(img):
# coordinates found manually
x_1 = 574
y_1 = 300
x_2 = 1338
y_2 = 300
x_3 = 1570
y_3 = 857
x_4 = 358
y_4 = 857
cv2.line(img, (x_1, y_1), (x_2, y_2), (0, 0, 255), 2)
cv2.line(img, (x_2, y_2), (x_3, y_3), (0, 0, 255), 2)
cv2.line(img, (x_3, y_3), (x_4, y_4), (0, 0, 255), 2)
cv2.line(img, (x_4, y_4), (x_1, y_1), (0, 0, 255), 2)
return img
| 17
| 54
| 0.56266
| 95
| 391
| 2.052632
| 0.263158
| 0.14359
| 0.205128
| 0.225641
| 0.261538
| 0.261538
| 0.261538
| 0.261538
| 0
| 0
| 0
| 0.263333
| 0.232737
| 391
| 23
| 55
| 17
| 0.386667
| 0.066496
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.066667
| false
| 0
| 0.066667
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0b1842f3d1c2004a8771278a104f8a4e171b46aa
| 238
|
py
|
Python
|
splash/admin.py
|
Jawayria/django-splash
|
296daf505a3533be3bd4a93c04419798740a7d27
|
[
"Apache-2.0"
] | 3
|
2018-02-14T01:46:33.000Z
|
2019-11-20T11:44:20.000Z
|
splash/admin.py
|
Jawayria/django-splash
|
296daf505a3533be3bd4a93c04419798740a7d27
|
[
"Apache-2.0"
] | 11
|
2015-10-22T14:13:17.000Z
|
2021-12-15T06:53:53.000Z
|
splash/admin.py
|
openedx/django-splash
|
a5931f960cc0255f455098313715e1c11f68ee9b
|
[
"Apache-2.0"
] | 1
|
2020-11-20T14:01:39.000Z
|
2020-11-20T14:01:39.000Z
|
"""
Admin site bindings for splash screen
"""
from django.contrib import admin
from config_models.admin import ConfigurationModelAdmin
from splash.models import SplashConfig
admin.site.register(SplashConfig, ConfigurationModelAdmin)
| 18.307692
| 58
| 0.827731
| 27
| 238
| 7.259259
| 0.555556
| 0.091837
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113445
| 238
| 12
| 59
| 19.833333
| 0.92891
| 0.155462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
9bce93ae397b7320d731c35c90a865985be02df6
| 145
|
py
|
Python
|
bugtests/test008.py
|
doom38/jython_v2.2.1
|
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
|
[
"CNRI-Jython"
] | null | null | null |
bugtests/test008.py
|
doom38/jython_v2.2.1
|
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
|
[
"CNRI-Jython"
] | null | null | null |
bugtests/test008.py
|
doom38/jython_v2.2.1
|
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
|
[
"CNRI-Jython"
] | null | null | null |
"""
Check subclassing a javaclass with protected constructor.
"""
import support
from java import awt
class A(awt.Component):
pass
a = A()
| 12.083333
| 57
| 0.717241
| 20
| 145
| 5.2
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186207
| 145
| 11
| 58
| 13.181818
| 0.881356
| 0.393103
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.2
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
50029264c7892653df1d44746ede8ae8148cf86c
| 98
|
py
|
Python
|
Task-Week-2/Task-4/swap-case.py
|
Bijay555/innomatics-Apr21-internship
|
69ff447b8303b9dec1242f7244f7b21e96420c1e
|
[
"MIT"
] | null | null | null |
Task-Week-2/Task-4/swap-case.py
|
Bijay555/innomatics-Apr21-internship
|
69ff447b8303b9dec1242f7244f7b21e96420c1e
|
[
"MIT"
] | null | null | null |
Task-Week-2/Task-4/swap-case.py
|
Bijay555/innomatics-Apr21-internship
|
69ff447b8303b9dec1242f7244f7b21e96420c1e
|
[
"MIT"
] | null | null | null |
def swap_case(s):
a=''.join([i.lower() if i.isupper() else i.upper() for i in s])
return a
| 32.666667
| 67
| 0.591837
| 20
| 98
| 2.85
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204082
| 98
| 3
| 68
| 32.666667
| 0.730769
| 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
|
504a3273fa93ada807125847129dd1d28b1f5465
| 146
|
py
|
Python
|
Lists/list-ex-1.py
|
Peabody29/Python_Projects-ST
|
e15eec8ac00a501c09296163c9adaf25ca928f5b
|
[
"MIT"
] | null | null | null |
Lists/list-ex-1.py
|
Peabody29/Python_Projects-ST
|
e15eec8ac00a501c09296163c9adaf25ca928f5b
|
[
"MIT"
] | null | null | null |
Lists/list-ex-1.py
|
Peabody29/Python_Projects-ST
|
e15eec8ac00a501c09296163c9adaf25ca928f5b
|
[
"MIT"
] | null | null | null |
def chop(t):
del t[0], t[-1]
return None
def middle(t):
return t[1:-1]
letters = ['a', 'b', 'c', 'd', 'e']
print(middle(letters))
| 12.166667
| 35
| 0.506849
| 26
| 146
| 2.846154
| 0.615385
| 0.054054
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036036
| 0.239726
| 146
| 11
| 36
| 13.272727
| 0.630631
| 0
| 0
| 0
| 0
| 0
| 0.034247
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0.142857
| 0.571429
| 0.142857
| 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
|
505768b0c4146b11a52f5b1dac0f8d22af2929d2
| 89
|
py
|
Python
|
freeze_run.py
|
scripts-richard/make_blog_with_python
|
305914e2a4297b6f0363208ed0c6b288492e9f68
|
[
"MIT"
] | null | null | null |
freeze_run.py
|
scripts-richard/make_blog_with_python
|
305914e2a4297b6f0363208ed0c6b288492e9f68
|
[
"MIT"
] | null | null | null |
freeze_run.py
|
scripts-richard/make_blog_with_python
|
305914e2a4297b6f0363208ed0c6b288492e9f68
|
[
"MIT"
] | 1
|
2021-06-18T18:40:03.000Z
|
2021-06-18T18:40:03.000Z
|
#!/usr/bin/python3
from app import freezer
if __name__ == '__main__':
freezer.run()
| 14.833333
| 26
| 0.685393
| 12
| 89
| 4.416667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013514
| 0.168539
| 89
| 5
| 27
| 17.8
| 0.702703
| 0.191011
| 0
| 0
| 0
| 0
| 0.112676
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ac93264c29ef201dc1fbaaa8d9a5f0b4d1c9d5d6
| 699
|
py
|
Python
|
bsn_sdk_py/client/entity/__init__.py
|
BSNDA/PCNGateway-PY-SDK
|
422b882d621a244121e2fce99e92a3c34c51538d
|
[
"Apache-2.0"
] | 21
|
2020-06-30T10:27:20.000Z
|
2022-02-24T03:48:17.000Z
|
bsn_sdk_py/client/entity/__init__.py
|
tolin1420/PCNGateway-PY-SDK
|
7d46d68d3d0e7645267719a05072a803512a95e5
|
[
"Apache-2.0"
] | null | null | null |
bsn_sdk_py/client/entity/__init__.py
|
tolin1420/PCNGateway-PY-SDK
|
7d46d68d3d0e7645267719a05072a803512a95e5
|
[
"Apache-2.0"
] | 5
|
2020-08-18T03:05:07.000Z
|
2021-11-15T03:52:59.000Z
|
from bsn_sdk_py.client.entity.enroll_user import EnrollUser
from bsn_sdk_py.client.entity.register_user import RegisterUser
from bsn_sdk_py.client.entity.req_chain_code import ReqChainCode
from bsn_sdk_py.client.entity.bsn_base import BsnBase
from bsn_sdk_py.client.entity.get_transaction import GetTransaction
from bsn_sdk_py.client.entity.get_block_info import GetBlockInfo
from bsn_sdk_py.client.entity.get_ledger_info import GetLedgerInfo
from bsn_sdk_py.client.entity.event_register import EventRegister
from bsn_sdk_py.client.entity.event_query import EventQuery
from bsn_sdk_py.client.entity.event_remove import EventRemove
from bsn_sdk_py.client.entity.no_trust_trans import NoTrustTrans
| 46.6
| 67
| 0.885551
| 114
| 699
| 5.105263
| 0.315789
| 0.132302
| 0.189003
| 0.226804
| 0.494845
| 0.494845
| 0.28866
| 0
| 0
| 0
| 0
| 0
| 0.067239
| 699
| 14
| 68
| 49.928571
| 0.892638
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
acafa97ad2d644d5d1645ba01d90e4ba08de1501
| 778
|
py
|
Python
|
58. Length of Last Word.py
|
VadlamudiNaveen/Mastering_DSA
|
b03f06b7307ab30b17436d788d11863b2f8ff7de
|
[
"Unlicense"
] | null | null | null |
58. Length of Last Word.py
|
VadlamudiNaveen/Mastering_DSA
|
b03f06b7307ab30b17436d788d11863b2f8ff7de
|
[
"Unlicense"
] | null | null | null |
58. Length of Last Word.py
|
VadlamudiNaveen/Mastering_DSA
|
b03f06b7307ab30b17436d788d11863b2f8ff7de
|
[
"Unlicense"
] | null | null | null |
'''
Given a string s consisting of some words separated by some number of spaces, return the length of the last word in the string.
A word is a maximal substring consisting of non-space characters only.
Example 1:
Input: s = "Hello World"
Output: 5
Explanation: The last word is "World" with length 5.
Example 2:
Input: s = " fly me to the moon "
Output: 4
Explanation: The last word is "moon" with length 4.
Example 3:
Input: s = "luffy is still joyboy"
Output: 6
Explanation: The last word is "joyboy" with length 6.
Constraints:
1 <= s.length <= 104
s consists of only English letters and spaces ' '.
There will be at least one word in s.
'''
class Solution:
def lengthOfLastWord(self, s: str) -> int:
return len(list(s.strip().split(' '))[-1])
| 23.575758
| 127
| 0.695373
| 129
| 778
| 4.193798
| 0.527132
| 0.051756
| 0.081331
| 0.121996
| 0.133087
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022801
| 0.210797
| 778
| 33
| 128
| 23.575758
| 0.858306
| 0.843188
| 0
| 0
| 0
| 0
| 0.008696
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
acc35fb57244bfd8e28ef74bb9b6cba09a99c16d
| 423
|
py
|
Python
|
eclcli/dh/dhclient/common/uuidutils.py
|
hanasuke/eclcli
|
a72191799986a02596d0d467253fd9f5ee03c5c8
|
[
"Apache-2.0"
] | 32
|
2016-08-31T04:12:40.000Z
|
2020-12-11T04:49:57.000Z
|
eclcli/dh/dhclient/common/uuidutils.py
|
hanasuke/eclcli
|
a72191799986a02596d0d467253fd9f5ee03c5c8
|
[
"Apache-2.0"
] | 27
|
2016-09-06T07:50:36.000Z
|
2021-09-14T09:46:03.000Z
|
eclcli/dh/dhclient/common/uuidutils.py
|
hanasuke/eclcli
|
a72191799986a02596d0d467253fd9f5ee03c5c8
|
[
"Apache-2.0"
] | 24
|
2016-09-02T01:09:09.000Z
|
2021-01-19T09:14:16.000Z
|
"""
UUID related utilities and helper functions.
"""
import uuid
def generate_uuid():
return str(uuid.uuid4())
def is_uuid_like(val):
"""Returns validation of a value as a UUID.
For our purposes, a UUID is a canonical form string:
aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
"""
try:
return str(uuid.UUID(val)) == val
except (TypeError, ValueError, AttributeError):
return False
| 18.391304
| 56
| 0.664303
| 56
| 423
| 4.964286
| 0.642857
| 0.064748
| 0.093525
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003077
| 0.231678
| 423
| 22
| 57
| 19.227273
| 0.852308
| 0.416076
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
acde81c90b75c73c22a880177927cbedb246d545
| 93
|
py
|
Python
|
measurements/__main__.py
|
cyBerta/api
|
af8e15a800ffc272799a269f4801cbdd174d0c43
|
[
"BSD-3-Clause"
] | null | null | null |
measurements/__main__.py
|
cyBerta/api
|
af8e15a800ffc272799a269f4801cbdd174d0c43
|
[
"BSD-3-Clause"
] | null | null | null |
measurements/__main__.py
|
cyBerta/api
|
af8e15a800ffc272799a269f4801cbdd174d0c43
|
[
"BSD-3-Clause"
] | null | null | null |
import sys
from measurements.cli import cli
if __name__ == "__main__":
sys.exit(cli())
| 13.285714
| 32
| 0.698925
| 13
| 93
| 4.384615
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.182796
| 93
| 6
| 33
| 15.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.086022
| 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
|
4a157f1467ac92ac6ef44cb911cfaf74b9b1f4a7
| 134
|
py
|
Python
|
misc/hello/hello.py
|
HenrikSamuelsson/advent-of-code
|
728907af50728148794b3897f6713504e84b9d9d
|
[
"MIT"
] | null | null | null |
misc/hello/hello.py
|
HenrikSamuelsson/advent-of-code
|
728907af50728148794b3897f6713504e84b9d9d
|
[
"MIT"
] | null | null | null |
misc/hello/hello.py
|
HenrikSamuelsson/advent-of-code
|
728907af50728148794b3897f6713504e84b9d9d
|
[
"MIT"
] | null | null | null |
"""
Hello world application.
Mostly just to test the Python setup on current computer.
"""
MESSSAGE = "Hello World"
print(MESSSAGE)
| 14.888889
| 57
| 0.738806
| 18
| 134
| 5.5
| 0.833333
| 0.20202
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164179
| 134
| 8
| 58
| 16.75
| 0.883929
| 0.619403
| 0
| 0
| 0
| 0
| 0.255814
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c594aa252ef50c804d8ca3520d1e17655e2b2af0
| 23
|
py
|
Python
|
docassemble_webapp/docassemble/webapp/__init__.py
|
tmonczko/docassemble
|
8990bf80210c970c7760af03f2d68c3f5c87e9bc
|
[
"MIT"
] | 1
|
2020-12-11T01:22:59.000Z
|
2020-12-11T01:22:59.000Z
|
docassemble_webapp/docassemble/webapp/__init__.py
|
rvnovaes/docassemble
|
8990bf80210c970c7760af03f2d68c3f5c87e9bc
|
[
"MIT"
] | null | null | null |
docassemble_webapp/docassemble/webapp/__init__.py
|
rvnovaes/docassemble
|
8990bf80210c970c7760af03f2d68c3f5c87e9bc
|
[
"MIT"
] | null | null | null |
__version__ = "0.5.70"
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.130435
| 23
| 1
| 23
| 23
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 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
|
c599ea4576e749dd51f9ec4949be4794e9f48d1f
| 282
|
py
|
Python
|
src/server_3D/API/Rice/collectionsObject/geometricElements.py
|
robertpardillo/Funnel
|
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
|
[
"MIT"
] | 1
|
2021-05-18T16:10:49.000Z
|
2021-05-18T16:10:49.000Z
|
src/server_3D/API/Rice/collectionsObject/geometricElements.py
|
robertpardillo/Funnel
|
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
|
[
"MIT"
] | null | null | null |
src/server_3D/API/Rice/collectionsObject/geometricElements.py
|
robertpardillo/Funnel
|
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
|
[
"MIT"
] | null | null | null |
from ..baseClasses.collection import Collection
class GeometricElements(Collection):
def __init__(self, parent):
super(GeometricElements, self).__init__(parent, 'GeometricElements')
def add(self, obj):
super(GeometricElements, self).add(obj)
| 23.5
| 77
| 0.695035
| 27
| 282
| 6.962963
| 0.481481
| 0.234043
| 0.276596
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.202128
| 282
| 11
| 78
| 25.636364
| 0.835556
| 0
| 0
| 0
| 0
| 0
| 0.062963
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c5ae976ada8fb44a34d0a53cab075dbb9fba472e
| 114
|
py
|
Python
|
signaltest.py
|
samh/sphinx-typehints-bug
|
eae6ae15a46c3a455413c8febbdf51266ac4c086
|
[
"Unlicense"
] | null | null | null |
signaltest.py
|
samh/sphinx-typehints-bug
|
eae6ae15a46c3a455413c8febbdf51266ac4c086
|
[
"Unlicense"
] | null | null | null |
signaltest.py
|
samh/sphinx-typehints-bug
|
eae6ae15a46c3a455413c8febbdf51266ac4c086
|
[
"Unlicense"
] | null | null | null |
from PySide2.QtCore import Signal
class Foo:
#: Signal emitted when something changes
clicked = Signal()
| 19
| 44
| 0.72807
| 14
| 114
| 5.928571
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011111
| 0.210526
| 114
| 5
| 45
| 22.8
| 0.911111
| 0.342105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
c5b35cfe72d17b4dfc0da25e37b45e899c8d5d29
| 704
|
py
|
Python
|
tests/test_140-task_services.py
|
britive/python-api
|
2daa7693f1d4adf03626abd78598e30f62b6e2e6
|
[
"MIT"
] | null | null | null |
tests/test_140-task_services.py
|
britive/python-api
|
2daa7693f1d4adf03626abd78598e30f62b6e2e6
|
[
"MIT"
] | null | null | null |
tests/test_140-task_services.py
|
britive/python-api
|
2daa7693f1d4adf03626abd78598e30f62b6e2e6
|
[
"MIT"
] | null | null | null |
from .cache import * # will also import some globals like `britive`
def test_get(cached_task_service):
assert isinstance(cached_task_service, dict)
assert cached_task_service['name'] == 'environmentScanner'
assert cached_task_service['taskType'] == 'ApplicationScanner'
def test_enable(cached_task_service):
response = britive.task_services.enable(task_service_id=cached_task_service['taskServiceId'])
assert isinstance(response, dict)
assert response['enabled']
def test_disable(cached_task_service):
response = britive.task_services.disable(task_service_id=cached_task_service['taskServiceId'])
assert isinstance(response, dict)
assert not response['enabled']
| 37.052632
| 98
| 0.77983
| 85
| 704
| 6.164706
| 0.352941
| 0.209924
| 0.259542
| 0.087786
| 0.461832
| 0.461832
| 0.461832
| 0.293893
| 0.293893
| 0.293893
| 0
| 0
| 0.125
| 704
| 19
| 99
| 37.052632
| 0.850649
| 0.0625
| 0
| 0.153846
| 0
| 0
| 0.133536
| 0
| 0
| 0
| 0
| 0
| 0.538462
| 1
| 0.230769
| false
| 0
| 0.076923
| 0
| 0.307692
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c5b683c01eba13bceab42e635e99dda3e333f1dd
| 23
|
py
|
Python
|
runscript/__init__.py
|
milosb793/runscript
|
47001fa7b7b51e5055e433b19e9b8998cf58d6f4
|
[
"MIT"
] | 8
|
2015-01-27T07:55:20.000Z
|
2021-06-25T09:55:45.000Z
|
pyboleto/__init__.py
|
laborautonomo/pyboleto
|
f84ee5e1e2fe5cfd93ea20edd785e5fc834e1ceb
|
[
"BSD-3-Clause"
] | 6
|
2017-02-03T04:03:00.000Z
|
2021-08-05T13:08:12.000Z
|
pyboleto/__init__.py
|
laborautonomo/pyboleto
|
f84ee5e1e2fe5cfd93ea20edd785e5fc834e1ceb
|
[
"BSD-3-Clause"
] | 4
|
2015-01-25T12:06:10.000Z
|
2021-12-10T12:20:17.000Z
|
__version__ = '0.2.11'
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.130435
| 23
| 1
| 23
| 23
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 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
|
c5c0697bf132284de8a66f94de222c8a75e7b197
| 557
|
py
|
Python
|
04/01/operate.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
04/01/operate.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | 32
|
2017-09-01T00:52:17.000Z
|
2017-10-01T00:30:02.000Z
|
04/01/operate.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
import datetime
now = datetime.datetime.now()
td = datetime.timedelta(days=1)
print(f'now:{now}')
print(f'timedelta:{td}')
print('----- 加算(timedelta)-----')
print(f'{now} + {td}: = {now + td}')
print('----- 減算(timedelta)-----')
print(f'{now} - {td}: = {now - td}')
print('----- 比較 -----')
print(f'{now} < {now + td}: = {now < (now + td)}')
print(f'{now} > {now + td}: = {now > (now + td)}')
print(f'{now} == {now + td}: = {now == (now + td)}')
print(f'{now} != {now + td}: = {now != (now + td)}')
print('----- 差 -----')
print(datetime.datetime.now() - now)
| 32.764706
| 52
| 0.504488
| 78
| 557
| 3.602564
| 0.166667
| 0.231317
| 0.227758
| 0.213523
| 0.544484
| 0.544484
| 0.544484
| 0.544484
| 0.330961
| 0.330961
| 0
| 0.002101
| 0.145422
| 557
| 16
| 53
| 34.8125
| 0.588235
| 0
| 0
| 0
| 0
| 0
| 0.563734
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.0625
| 0
| 0.0625
| 0.8125
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c5c50408aa4efdbd98965552ad97b964a7279171
| 384
|
py
|
Python
|
backend/permissions/__init__.py
|
jrborbars/Icarus
|
f0195d54f52831449acf822801a5ee8f951450b1
|
[
"Zlib"
] | null | null | null |
backend/permissions/__init__.py
|
jrborbars/Icarus
|
f0195d54f52831449acf822801a5ee8f951450b1
|
[
"Zlib"
] | null | null | null |
backend/permissions/__init__.py
|
jrborbars/Icarus
|
f0195d54f52831449acf822801a5ee8f951450b1
|
[
"Zlib"
] | null | null | null |
from app import app
from permissions.roles import *
from permissions.tables import *
app.permission.add(None, visitor)
app.permission.add('banned_user', banned_user)
app.permission.add('inactive_user', inactive_user)
app.permission.add('user', normal_user)
app.permission.add('wiki_editor', wiki_editor)
app.permission.add('superuser', superuser)
app.permission.add('admin', admin)
| 29.538462
| 50
| 0.794271
| 54
| 384
| 5.518519
| 0.333333
| 0.305369
| 0.375839
| 0.201342
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072917
| 384
| 12
| 51
| 32
| 0.837079
| 0
| 0
| 0
| 0
| 0
| 0.138021
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.3
| 0
| 0.3
| 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
|
c5cbcb5a048f1796c4a0fdbd36785f5b6f51f508
| 145
|
py
|
Python
|
code/data/__init__.py
|
ruc-datalab/dagan
|
fd4fd0fa32a612275e32e6562ac5f33cccfc31ca
|
[
"MIT"
] | 5
|
2021-03-06T05:43:06.000Z
|
2022-03-28T13:54:10.000Z
|
code/data/__init__.py
|
ruclty/dagan-1
|
c8ae3dee18bdf27baa6efdd17f9ee0b8f3c8621c
|
[
"MIT"
] | 1
|
2021-03-06T08:38:37.000Z
|
2021-03-06T08:38:37.000Z
|
code/data/__init__.py
|
ruclty/dagan-1
|
c8ae3dee18bdf27baa6efdd17f9ee0b8f3c8621c
|
[
"MIT"
] | 5
|
2021-03-06T03:52:46.000Z
|
2022-03-02T11:45:42.000Z
|
from .dataset import Dataset
from .iterator import Iterator
from .field import NumericalField, CategoricalField
from .process import get_dataset
| 29
| 51
| 0.848276
| 18
| 145
| 6.777778
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117241
| 145
| 4
| 52
| 36.25
| 0.953125
| 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
|
c5d778d2cf3d13ba66eb3a0d9e5931a5c53d38d3
| 170
|
py
|
Python
|
stubs.min/System/Windows/Media/Animation_parts/RemoveStoryboard.py
|
ricardyn/ironpython-stubs
|
4d2b405eda3ceed186e8adca55dd97c332c6f49d
|
[
"MIT"
] | 1
|
2021-02-02T13:39:16.000Z
|
2021-02-02T13:39:16.000Z
|
stubs.min/System/Windows/Media/Animation_parts/RemoveStoryboard.py
|
hdm-dt-fb/ironpython-stubs
|
4d2b405eda3ceed186e8adca55dd97c332c6f49d
|
[
"MIT"
] | null | null | null |
stubs.min/System/Windows/Media/Animation_parts/RemoveStoryboard.py
|
hdm-dt-fb/ironpython-stubs
|
4d2b405eda3ceed186e8adca55dd97c332c6f49d
|
[
"MIT"
] | null | null | null |
class RemoveStoryboard(ControllableStoryboardAction):
"""
A trigger action that removes a System.Windows.Media.Animation.Storyboard.
RemoveStoryboard()
"""
| 24.285714
| 77
| 0.752941
| 15
| 170
| 8.533333
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152941
| 170
| 6
| 78
| 28.333333
| 0.888889
| 0.564706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
c5ea7ed60a0b8a2ae7f3b015ac41401b8a7e1897
| 2,536
|
py
|
Python
|
tests/integration/test_user_zero_database_access/test_user_zero_database_access.py
|
torilov/ClickHouse
|
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
|
[
"Apache-2.0"
] | 1
|
2020-11-03T01:50:06.000Z
|
2020-11-03T01:50:06.000Z
|
tests/integration/test_user_zero_database_access/test_user_zero_database_access.py
|
torilov/ClickHouse
|
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
|
[
"Apache-2.0"
] | null | null | null |
tests/integration/test_user_zero_database_access/test_user_zero_database_access.py
|
torilov/ClickHouse
|
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
|
[
"Apache-2.0"
] | null | null | null |
import pytest
from helpers.cluster import ClickHouseCluster
cluster = ClickHouseCluster(__file__)
node = cluster.add_instance('node', user_configs=["configs/users.xml"])
@pytest.fixture(scope="module")
def start_cluster():
try:
cluster.start()
node.query("CREATE DATABASE test;")
yield cluster
finally:
cluster.shutdown()
def test_user_zero_database_access(start_cluster):
try:
node.exec_in_container(
["bash", "-c", "/usr/bin/clickhouse client --user 'no_access' --query 'DROP DATABASE test'"], user='root')
assert False, "user with no access rights dropped database test"
except AssertionError:
raise
except Exception as ex:
print ex
try:
node.exec_in_container(
["bash", "-c", "/usr/bin/clickhouse client --user 'has_access' --query 'DROP DATABASE test'"], user='root')
except Exception as ex:
assert False, "user with access rights can't drop database test"
try:
node.exec_in_container(
["bash", "-c", "/usr/bin/clickhouse client --user 'has_access' --query 'CREATE DATABASE test'"],
user='root')
except Exception as ex:
assert False, "user with access rights can't create database test"
try:
node.exec_in_container(
["bash", "-c", "/usr/bin/clickhouse client --user 'no_access' --query 'CREATE DATABASE test2'"],
user='root')
assert False, "user with no access rights created database test2"
except AssertionError:
raise
except Exception as ex:
print ex
try:
node.exec_in_container(
["bash", "-c", "/usr/bin/clickhouse client --user 'has_access' --query 'CREATE DATABASE test2'"],
user='root')
assert False, "user with limited access rights created database test2 which is outside of his scope of rights"
except AssertionError:
raise
except Exception as ex:
print ex
try:
node.exec_in_container(
["bash", "-c", "/usr/bin/clickhouse client --user 'default' --query 'CREATE DATABASE test2'"], user='root')
except Exception as ex:
assert False, "user with full access rights can't create database test2"
try:
node.exec_in_container(
["bash", "-c", "/usr/bin/clickhouse client --user 'default' --query 'DROP DATABASE test2'"], user='root')
except Exception as ex:
assert False, "user with full access rights can't drop database test2"
| 34.739726
| 119
| 0.632886
| 313
| 2,536
| 5.028754
| 0.210863
| 0.066074
| 0.04892
| 0.057814
| 0.770648
| 0.737611
| 0.710928
| 0.698221
| 0.698221
| 0.663278
| 0
| 0.004222
| 0.25276
| 2,536
| 72
| 120
| 35.222222
| 0.826385
| 0
| 0
| 0.566667
| 0
| 0
| 0.412461
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 0
| null | null | 0
| 0.033333
| null | null | 0.05
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c5ed8e8db085cd27f9678f1e53389585084c89a4
| 95
|
py
|
Python
|
jarvis/credential/apps.py
|
rajpro/homeauto
|
c9e2c03fe9b833742d4aa23175f3b50ff965cfb2
|
[
"Apache-2.0"
] | null | null | null |
jarvis/credential/apps.py
|
rajpro/homeauto
|
c9e2c03fe9b833742d4aa23175f3b50ff965cfb2
|
[
"Apache-2.0"
] | null | null | null |
jarvis/credential/apps.py
|
rajpro/homeauto
|
c9e2c03fe9b833742d4aa23175f3b50ff965cfb2
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class CredentialConfig(AppConfig):
name = 'credential'
| 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
|
c5fd14514bbbfc629ce9c6c7413cd9622465bbe9
| 2,336
|
py
|
Python
|
scripts/dotnet_exports.py
|
Conticop/Spadecs
|
5d30308207f3bee16bb9a53a3121d245dc5b440f
|
[
"MIT"
] | 3
|
2020-02-18T12:10:00.000Z
|
2021-02-23T20:46:33.000Z
|
scripts/dotnet_exports.py
|
Conticop/Spadecs
|
5d30308207f3bee16bb9a53a3121d245dc5b440f
|
[
"MIT"
] | 3
|
2020-02-18T15:49:01.000Z
|
2020-02-18T16:59:59.000Z
|
scripts/dotnet_exports.py
|
Conticop/Spadecs
|
5d30308207f3bee16bb9a53a3121d245dc5b440f
|
[
"MIT"
] | null | null | null |
# This source file is part of Spadecs.
# Spadecs is available through the world-wide-web at this URL:
# https://github.com/Conticop/Spadecs
#
# This source file is subject to the MIT license.
#
# Copyright (c) 2020
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""
This file defines all dynamically imported functions (API) from .NET for consumption in Python.
"""
from ctypes import *
from dotnet_const import pyimport
_ASSEMBLY, _CLASS = "Spadecs, Version=1.0.0.0", "Spadecs.EventManager"
@pyimport(_ASSEMBLY, _CLASS, "GetTestString", c_char_p)
def dotnet_get_test_string() -> str:
pass # The body of this function will be automagically replaced at runtime.
@pyimport(_ASSEMBLY, _CLASS, "OnPrePlayerConnect", c_ubyte, c_char_p)
def dotnet_event_pre_player_connect(ip_address: str) -> int:
pass # The body of this function will be automagically replaced at runtime.
@pyimport(_ASSEMBLY, _CLASS, "OnPostPlayerConnect", c_ubyte, c_char_p, c_ubyte)
def dotnet_event_post_player_connect(ip_address: str, pid: int) -> int:
pass # The body of this function will be automagically replaced at runtime.
@pyimport(_ASSEMBLY, _CLASS, "OnGetObjects", None, c_char_p)
def dotnet_event_update_objects(objects_json: str) -> None:
pass # The body of this function will be automagically replaced at runtime.
| 42.472727
| 95
| 0.770548
| 350
| 2,336
| 5.031429
| 0.457143
| 0.049972
| 0.059625
| 0.029529
| 0.247587
| 0.200454
| 0.17774
| 0.17774
| 0.17774
| 0.17774
| 0
| 0.004073
| 0.159247
| 2,336
| 54
| 96
| 43.259259
| 0.892566
| 0.683219
| 0
| 0.266667
| 0
| 0
| 0.150568
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.266667
| false
| 0.266667
| 0.4
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
6806ef44d6ad8b8ae54aa9b745a79e3505680dc6
| 180
|
py
|
Python
|
settings.py
|
lucasgsfelix/storehouse
|
424bb7a0bc9e48fc195d3f583239986b6d7ccbc1
|
[
"MIT"
] | null | null | null |
settings.py
|
lucasgsfelix/storehouse
|
424bb7a0bc9e48fc195d3f583239986b6d7ccbc1
|
[
"MIT"
] | null | null | null |
settings.py
|
lucasgsfelix/storehouse
|
424bb7a0bc9e48fc195d3f583239986b6d7ccbc1
|
[
"MIT"
] | null | null | null |
"""Settings for the kytos/storehouse NApp."""
# Path to serialize the objects, this is relative to a venv, if a venv exists.
CUSTOM_DESTINATION_PATH = "/var/tmp/kytos/storehouse"
| 36
| 78
| 0.755556
| 28
| 180
| 4.785714
| 0.75
| 0.223881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138889
| 180
| 4
| 79
| 45
| 0.864516
| 0.65
| 0
| 0
| 0
| 0
| 0.438596
| 0.438596
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a83c62b67994475f7e3e2179ff56b472273ea79f
| 188
|
py
|
Python
|
test_setup.py
|
steinitzu/playlistcake
|
04607dceb7613c8a90f344996afb08cfa8c74f75
|
[
"MIT"
] | null | null | null |
test_setup.py
|
steinitzu/playlistcake
|
04607dceb7613c8a90f344996afb08cfa8c74f75
|
[
"MIT"
] | null | null | null |
test_setup.py
|
steinitzu/playlistcake
|
04607dceb7613c8a90f344996afb08cfa8c74f75
|
[
"MIT"
] | null | null | null |
import os
from playlistcake import sessionenv
from playlistcake.spotifystuff import get_spotify
token = eval(os.getenv('PLAYLISTCAKE_TEST_TOKEN'))
sessionenv.set('spotify_token', token)
| 23.5
| 50
| 0.829787
| 24
| 188
| 6.333333
| 0.541667
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090426
| 188
| 7
| 51
| 26.857143
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0.191489
| 0.12234
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
a88b84896e73dc4a9e032884910a1cc731b7f6b5
| 538
|
py
|
Python
|
src/homework/c_decisions/decisions.py
|
MSGP117/acc-cosc-1336-spring-2022-MSGP117
|
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
|
[
"MIT"
] | null | null | null |
src/homework/c_decisions/decisions.py
|
MSGP117/acc-cosc-1336-spring-2022-MSGP117
|
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
|
[
"MIT"
] | null | null | null |
src/homework/c_decisions/decisions.py
|
MSGP117/acc-cosc-1336-spring-2022-MSGP117
|
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
|
[
"MIT"
] | 1
|
2022-02-12T03:50:32.000Z
|
2022-02-12T03:50:32.000Z
|
def get_options_ratio(options, total):
return options / total
def get_faculty_rating(get_options_ratio):
if get_options_ratio > .9 and get_options_ratio < 1:
return "Excellent"
if get_options_ratio > .8 and get_options_ratio < .9:
return "Very Good"
if get_options_ratio > .7 and get_options_ratio < .8:
return "Good"
if get_options_ratio > .6 and get_options_ratio < .7:
return "Needs Improvement"
if get_options_ratio > 0 and get_options_ratio < .6:
return "Unacceptable"
| 38.428571
| 57
| 0.69145
| 78
| 538
| 4.435897
| 0.282051
| 0.346821
| 0.520231
| 0.245665
| 0.121387
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024213
| 0.232342
| 538
| 14
| 58
| 38.428571
| 0.813559
| 0
| 0
| 0
| 0
| 0
| 0.09462
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.153846
| false
| 0
| 0
| 0.076923
| 0.615385
| 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
|
a8d7a1b9973d8eae2f30be4c770b428beb901ee1
| 92
|
py
|
Python
|
src/pylendingclub/__init__.py
|
bbarney213/PyLendingClub-Wrapper
|
7f2ef823a56bc87b7f88abf86498805c2c9ce3d3
|
[
"BSD-3-Clause"
] | 2
|
2018-06-06T20:04:04.000Z
|
2018-06-13T12:17:37.000Z
|
src/pylendingclub/__init__.py
|
bbarney213/PyLendingClub
|
7f2ef823a56bc87b7f88abf86498805c2c9ce3d3
|
[
"BSD-3-Clause"
] | 4
|
2018-10-18T13:59:14.000Z
|
2018-10-23T16:08:51.000Z
|
src/pylendingclub/__init__.py
|
bbarney213/PyLendingClub
|
7f2ef823a56bc87b7f88abf86498805c2c9ce3d3
|
[
"BSD-3-Clause"
] | null | null | null |
import pkg_resources
__version__ = pkg_resources.get_distribution("pylendingclub").version
| 23
| 69
| 0.858696
| 10
| 92
| 7.2
| 0.7
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065217
| 92
| 3
| 70
| 30.666667
| 0.837209
| 0
| 0
| 0
| 0
| 0
| 0.141304
| 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
|
764db0123667f3b071f324390cc502484f3c9f6c
| 48
|
py
|
Python
|
python_osnovy_programmirovaniya/week_1/split_apple_2.py
|
assassinen/coursera_mfti_python
|
eee7b3c55256f391c1be32924fa1ad3364b307f2
|
[
"Apache-2.0"
] | null | null | null |
python_osnovy_programmirovaniya/week_1/split_apple_2.py
|
assassinen/coursera_mfti_python
|
eee7b3c55256f391c1be32924fa1ad3364b307f2
|
[
"Apache-2.0"
] | null | null | null |
python_osnovy_programmirovaniya/week_1/split_apple_2.py
|
assassinen/coursera_mfti_python
|
eee7b3c55256f391c1be32924fa1ad3364b307f2
|
[
"Apache-2.0"
] | null | null | null |
x = int(input())
y = int(input())
print(y % x)
| 9.6
| 16
| 0.520833
| 9
| 48
| 2.777778
| 0.555556
| 0.64
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208333
| 48
| 4
| 17
| 12
| 0.657895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
765a27ba9d768029910be2bfaca6adae6282692b
| 197
|
py
|
Python
|
src/aws_environments/models/utils.py
|
chiliseed/hub
|
83f29fbdd12e2260397e18e635f508459fa4990e
|
[
"Apache-2.0"
] | null | null | null |
src/aws_environments/models/utils.py
|
chiliseed/hub
|
83f29fbdd12e2260397e18e635f508459fa4990e
|
[
"Apache-2.0"
] | 4
|
2021-04-08T20:10:15.000Z
|
2021-06-10T20:18:17.000Z
|
src/aws_environments/models/utils.py
|
chiliseed/hub
|
83f29fbdd12e2260397e18e635f508459fa4990e
|
[
"Apache-2.0"
] | null | null | null |
import json
from dataclasses import dataclass, asdict
@dataclass
class BaseConf:
def to_dict(self):
return asdict(self)
def to_str(self):
return json.dumps(asdict(self))
| 16.416667
| 41
| 0.690355
| 26
| 197
| 5.153846
| 0.576923
| 0.074627
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.228426
| 197
| 11
| 42
| 17.909091
| 0.881579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.875
| 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
|
765ec76464f5d1bb268c177e6bb05ade8d91117b
| 267
|
py
|
Python
|
ticketing/admin.py
|
saapenkwah1/ConMan
|
3fa86f52648b68463bc995ae256745c4ca1d6bf2
|
[
"Naumen",
"Condor-1.1",
"MS-PL"
] | 7
|
2015-05-28T19:18:57.000Z
|
2021-04-16T04:13:26.000Z
|
ticketing/admin.py
|
saapenkwah1/ConMan
|
3fa86f52648b68463bc995ae256745c4ca1d6bf2
|
[
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null |
ticketing/admin.py
|
saapenkwah1/ConMan
|
3fa86f52648b68463bc995ae256745c4ca1d6bf2
|
[
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3
|
2018-11-05T09:33:45.000Z
|
2022-02-18T14:27:22.000Z
|
from django.contrib import admin
from django.contrib.sites.models import Site
from ticketing.models import TicketType,Ticket,Discount,Item
#ticketing
admin.site.register(Item)
admin.site.register(Discount)
admin.site.register(Ticket)
admin.site.register(TicketType)
| 26.7
| 60
| 0.838951
| 37
| 267
| 6.054054
| 0.378378
| 0.160714
| 0.303571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067416
| 267
| 9
| 61
| 29.666667
| 0.899598
| 0.033708
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.428571
| 0
| 0.428571
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7666c2e624c499a327747ff1f6b98e651c6c0202
| 376
|
py
|
Python
|
study/python_100quiz/quiz57.py
|
hbyyy/TIL
|
e89ae2913a8a38eb7f480a9ec2324c3ac11e309e
|
[
"MIT"
] | null | null | null |
study/python_100quiz/quiz57.py
|
hbyyy/TIL
|
e89ae2913a8a38eb7f480a9ec2324c3ac11e309e
|
[
"MIT"
] | 1
|
2022-03-26T07:50:54.000Z
|
2022-03-26T07:50:54.000Z
|
study/python_100quiz/quiz57.py
|
hbyyy/TIL
|
e89ae2913a8a38eb7f480a9ec2324c3ac11e309e
|
[
"MIT"
] | null | null | null |
# number_list = [str(x) for x in range(1000 +1)]
# number_list_str = ''.join(number_list)
# print(number_list_str.count('1'))
# print(''.join([str(x) for x in range(1000 +1)]).count('1'))
# format(n, '+')
# format(n, '-')
# format(n, ',') 천단위마다 콤마
# format(n, '_') 천단위마다 언더바
# format(n, 'b') 바이너리로
# format(n, '%') 퍼센트 붙여줌
num1 = 5
print(format(num1, 'b'))
| 18.8
| 61
| 0.566489
| 60
| 376
| 3.433333
| 0.383333
| 0.203884
| 0.18932
| 0.07767
| 0.194175
| 0.194175
| 0.194175
| 0.194175
| 0
| 0
| 0
| 0.04918
| 0.18883
| 376
| 19
| 62
| 19.789474
| 0.62623
| 0.835106
| 0
| 0
| 0
| 0
| 0.020833
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
76698576943009e24ab740249d5f8c5d95f5705c
| 60
|
py
|
Python
|
wsgi.py
|
chenke91/ckPermission
|
42c71684bc0387ecb032b4c4fac0bdb66a22761c
|
[
"MIT"
] | null | null | null |
wsgi.py
|
chenke91/ckPermission
|
42c71684bc0387ecb032b4c4fac0bdb66a22761c
|
[
"MIT"
] | null | null | null |
wsgi.py
|
chenke91/ckPermission
|
42c71684bc0387ecb032b4c4fac0bdb66a22761c
|
[
"MIT"
] | null | null | null |
from app import create_app
app = create_app('development')
| 15
| 31
| 0.783333
| 9
| 60
| 5
| 0.555556
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 60
| 3
| 32
| 20
| 0.865385
| 0
| 0
| 0
| 0
| 0
| 0.183333
| 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
|
7675ca516b164f5976e4e60022652dd8e84ac239
| 86
|
py
|
Python
|
extract_data.py
|
aniruddhasanyal/auto_wrk
|
970156f7cb5205a3595bd757981e267c9879d08e
|
[
"MIT"
] | null | null | null |
extract_data.py
|
aniruddhasanyal/auto_wrk
|
970156f7cb5205a3595bd757981e267c9879d08e
|
[
"MIT"
] | null | null | null |
extract_data.py
|
aniruddhasanyal/auto_wrk
|
970156f7cb5205a3595bd757981e267c9879d08e
|
[
"MIT"
] | null | null | null |
'''
This is to extract data from the database and get it ready for consumption
'''
| 21.5
| 75
| 0.709302
| 14
| 86
| 4.357143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.22093
| 86
| 3
| 76
| 28.666667
| 0.910448
| 0.860465
| 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
|
76808344644ed049362747facb4eacc564ad886d
| 82
|
py
|
Python
|
ecs/components/item.py
|
joehowells/7drl2020
|
ec92c0870fb9ee975530d6a92c1b96634040ebc4
|
[
"MIT"
] | null | null | null |
ecs/components/item.py
|
joehowells/7drl2020
|
ec92c0870fb9ee975530d6a92c1b96634040ebc4
|
[
"MIT"
] | 2
|
2020-03-25T10:30:31.000Z
|
2020-03-25T20:13:43.000Z
|
ecs/components/item.py
|
joehowells/two-button-berserker
|
ec92c0870fb9ee975530d6a92c1b96634040ebc4
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass
@dataclass
class Item:
name: str = "item"
| 11.714286
| 33
| 0.719512
| 10
| 82
| 5.9
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.207317
| 82
| 6
| 34
| 13.666667
| 0.907692
| 0
| 0
| 0
| 0
| 0
| 0.04878
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
76a14230e8f616eb363e903f98a51e3a4988cffd
| 122
|
py
|
Python
|
k40tools/HomeK40.py
|
axlan/K40Tools
|
efbce2b93f92bdeaff04445dc130f1d382966681
|
[
"MIT"
] | 13
|
2019-03-16T07:30:57.000Z
|
2021-05-10T20:52:00.000Z
|
k40tools/HomeK40.py
|
axlan/K40Tools
|
efbce2b93f92bdeaff04445dc130f1d382966681
|
[
"MIT"
] | 6
|
2019-01-08T04:42:15.000Z
|
2021-10-30T23:37:56.000Z
|
k40tools/HomeK40.py
|
axlan/K40Tools
|
efbce2b93f92bdeaff04445dc130f1d382966681
|
[
"MIT"
] | 2
|
2019-03-16T19:39:51.000Z
|
2019-12-09T13:42:50.000Z
|
#!/usr/bin/env python
from k40nano import NanoConnection
with NanoConnection() as stream:
stream.write("IPP")
| 17.428571
| 35
| 0.704918
| 15
| 122
| 5.733333
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020202
| 0.188525
| 122
| 6
| 36
| 20.333333
| 0.848485
| 0.163934
| 0
| 0
| 0
| 0
| 0.031579
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
76bbf1b4229d744dcae43df8c7ad18989cd955fb
| 568
|
py
|
Python
|
app/discovery/tests.py
|
snakrani/discovery
|
99690f186a194cabef6a5d1ad18fca715be1e187
|
[
"CC0-1.0"
] | null | null | null |
app/discovery/tests.py
|
snakrani/discovery
|
99690f186a194cabef6a5d1ad18fca715be1e187
|
[
"CC0-1.0"
] | null | null | null |
app/discovery/tests.py
|
snakrani/discovery
|
99690f186a194cabef6a5d1ad18fca715be1e187
|
[
"CC0-1.0"
] | null | null | null |
from test import cases as case
from test import fixtures as data
class SmokeTest(case.RequestTestCase):
fixtures = data.get_vendor_fixtures()
def test_home_found(self):
self.validated_path('/')
def test_docs_found_1(self):
self.validated_path('/api/')
def test_docs_found_2(self):
self.validated_temp_redirect('/docs/')
def test_docs_found_3(self):
self.validated_temp_redirect('/developer/')
def test_docs_found_4(self):
self.validated_temp_redirect('/developers/')
| 23.666667
| 52
| 0.665493
| 72
| 568
| 4.916667
| 0.402778
| 0.09887
| 0.240113
| 0.180791
| 0.245763
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009195
| 0.234155
| 568
| 23
| 53
| 24.695652
| 0.804598
| 0
| 0
| 0
| 0
| 0
| 0.06162
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.357143
| false
| 0
| 0.142857
| 0
| 0.642857
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
76c42d3fbde9e8fdf2954b0e114f05fef5f334df
| 92
|
py
|
Python
|
3dship/ports/apps.py
|
Gauravwagh/3dship
|
0308eaba2b3df46217130163f34bc9808afa16a0
|
[
"MIT"
] | null | null | null |
3dship/ports/apps.py
|
Gauravwagh/3dship
|
0308eaba2b3df46217130163f34bc9808afa16a0
|
[
"MIT"
] | null | null | null |
3dship/ports/apps.py
|
Gauravwagh/3dship
|
0308eaba2b3df46217130163f34bc9808afa16a0
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class PortsConfig(AppConfig):
name = '3dship.ports'
| 15.333333
| 33
| 0.75
| 11
| 92
| 6.272727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012987
| 0.163043
| 92
| 5
| 34
| 18.4
| 0.883117
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 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
|
76c4d3c26f360b2b42cb645693231919c49e865d
| 3,263
|
py
|
Python
|
myFileManager.py
|
Madapiw/MyFileManager
|
71ad2c8d9b5d1097bbd7a2c39f1bd05fd64d36f5
|
[
"MIT"
] | null | null | null |
myFileManager.py
|
Madapiw/MyFileManager
|
71ad2c8d9b5d1097bbd7a2c39f1bd05fd64d36f5
|
[
"MIT"
] | null | null | null |
myFileManager.py
|
Madapiw/MyFileManager
|
71ad2c8d9b5d1097bbd7a2c39f1bd05fd64d36f5
|
[
"MIT"
] | null | null | null |
import time
import sys
import os
import shutil
import logging
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
from watchdog.events import LoggingEventHandler
#DIR_TO_WATCH = 'C:\\Users\\$USER$\\Downloads'
#DIR FOR TESTS
DIR_TO_WATCH = 'C:\\Users\\madap\\Documents\\myData\\Scripts\\MyFileMenager\\DIR_FOR_TESTS'
FILE_EXT_TO_WATCH = ['.pdf','.exe','.docx','.mp4','.mp3','.flack','.avi','.jpg','.png','.csv','.zip','.rar','.7z','.ova','.iso','ovpn','.ico','.tar.gz','.psd','.xlsx','.torrent','.pem','.json','.odt','.md','.mlx','.bat','.txt','.tif','.raw','.py','.js','.css','.html','.xml','.c','.cpp','.php','.java','.jar']
#TODO[X] write rest of folders to create and arrange
DIRS_TO_MOVE = {'PDF': f'{DIR_TO_WATCH}\\PDF','EXE':f'{DIR_TO_WATCH}\\EXE','DOCX': f'{DIR_TO_WATCH}\\DOCX','MP4':f'{DIR_TO_WATCH}\\MP4','MP3':f'{DIR_TO_WATCH}\\MP3','FLACK': f'{DIR_TO_WATCH}\\FLACK','AVI': f'{DIR_TO_WATCH}\\AVI','JPG': f'{DIR_TO_WATCH}\\JPG','PNG': f'{DIR_TO_WATCH}\\PNG','CSV': f'{DIR_TO_WATCH}\\CSV','ZIP': f'{DIR_TO_WATCH}\\ZIP','RAR': f'{DIR_TO_WATCH}\\RAR','7ZIP': f'{DIR_TO_WATCH}\\7ZIP','OVA': f'{DIR_TO_WATCH}\\OVA','ISO': f'{DIR_TO_WATCH}\\ISO','OVPN': f'{DIR_TO_WATCH}\\OVPN','ICO': f'{DIR_TO_WATCH}\\ICO','TAR_GZ': f'{DIR_TO_WATCH}\\TAR_GZ','PSD': f'{DIR_TO_WATCH}\\PSD','XLSX': f'{DIR_TO_WATCH}\\XLSX','TORRENT': f'{DIR_TO_WATCH}\\TORRENT','PEM': f'{DIR_TO_WATCH}\\PEM','JSON': f'{DIR_TO_WATCH}\\JSON','ODT': f'{DIR_TO_WATCH}\\ODT','MD': f'{DIR_TO_WATCH}\\MD','MLX': f'{DIR_TO_WATCH}\\MLX','BAT': f'{DIR_TO_WATCH}\\BAT','TXT': f'{DIR_TO_WATCH}\\TXT','TIF': f'{DIR_TO_WATCH}\\TIF','RAW': f'{DIR_TO_WATCH}\\RAW','PY': f'{DIR_TO_WATCH}\\PY','JS': f'{DIR_TO_WATCH}\\JS','CSS': f'{DIR_TO_WATCH}\\CSS','HTML': f'{DIR_TO_WATCH}\\HTML','XML': f'{DIR_TO_WATCH}\\XML','C': f'{DIR_TO_WATCH}\\C','C++': f'{DIR_TO_WATCH}\\C++','PHP': f'{DIR_TO_WATCH}\\PHP','JAVA': f'{DIR_TO_WATCH}\\JAVA','JAR': f'{DIR_TO_WATCH}\\JAR'}
#'': f'{DIR_TO_WATCH}\\' for faster coping
def watchMyFiles():
try:
os.path.exists(DIR_TO_WATCH)
except Exception:
assert Exception("Directory does not exist.")
#check if DIRS EXIST if not create folder
for value in DIRS_TO_MOVE.values():
if not (os.path.exists(value)):
print(f"Creating dir: {value}")
os.mkdir(value)
#TODO [ ] moveing folders to DOWNLOADED_FOLDERS with everything in them
filesInDir = os.listdir(DIR_TO_WATCH)
for file in filesInDir:
for fileExt in FILE_EXT_TO_WATCH:
if file.endswith(fileExt) or file.endswith(fileExt.upper()):
#TODO [ ] add exeption if file in folder already exists
if not os.path.exists(f'{DIR_TO_WATCH}\\{fileExt.split(".")[1].upper()}\\{file}'):
shutil.move(f'{DIR_TO_WATCH}\\{file}',f'{DIR_TO_WATCH}\\{fileExt.split(".")[1].upper()}\\{file}')
print(f'{file} moved to {fileExt.split(".")[1].upper()} folder')
#TODO [] create folders only when extension is detected and at least one file exists
if __name__ == '__main__':
try:
watchMyFiles()
except KeyboardInterrupt:
sys.exit("Keyboard interruption, stopping.")
| 66.591837
| 1,235
| 0.625804
| 512
| 3,263
| 3.755859
| 0.267578
| 0.182007
| 0.24961
| 0.25169
| 0.096724
| 0.047842
| 0.034321
| 0.034321
| 0.034321
| 0
| 0
| 0.00426
| 0.136684
| 3,263
| 48
| 1,236
| 67.979167
| 0.678381
| 0.123812
| 0
| 0.0625
| 0
| 0
| 0.499647
| 0.106916
| 0
| 0
| 0
| 0.020833
| 0.03125
| 1
| 0.03125
| false
| 0
| 0.25
| 0
| 0.28125
| 0.0625
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4f1d8f454b962e8520cba950a5b75bd59e334d40
| 732
|
py
|
Python
|
tests/neraccidente/examplemodule/test_hello_world.py
|
johnsmithm/ner-accidente
|
28c47860edd4425152590d023884e0dee532c229
|
[
"MIT"
] | null | null | null |
tests/neraccidente/examplemodule/test_hello_world.py
|
johnsmithm/ner-accidente
|
28c47860edd4425152590d023884e0dee532c229
|
[
"MIT"
] | 5
|
2020-11-18T07:59:06.000Z
|
2020-12-11T07:45:59.000Z
|
tests/neraccidente/examplemodule/test_hello_world.py
|
johnsmithm/ner-accidente
|
28c47860edd4425152590d023884e0dee532c229
|
[
"MIT"
] | null | null | null |
import os
import sys
# Explicitly set path so don't need to run setup.py - if we have multiple copies of the code we would otherwise need
# to setup a separate environment for each to ensure the code pointers are correct.
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'src'))) # noqa
# from pandas.util.testing import assert_frame_equal
from neraccidente import examplemodule
def test_something():
# print(os.getcwd())
assert True, "A comment to show if the test fails"
# def test_that_fails():
# assert False, "We expected this to fail"
def test_hello_world():
assert examplemodule.hello_world() == "Hello World", "The Hello World strings should be the same"
| 31.826087
| 116
| 0.724044
| 114
| 732
| 4.54386
| 0.614035
| 0.07722
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001645
| 0.169399
| 732
| 22
| 117
| 33.272727
| 0.850329
| 0.463115
| 0
| 0
| 0
| 0
| 0.251948
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.375
| 0
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4f458a25212b381e8d680575386a91e763e4742d
| 767
|
py
|
Python
|
django_efilling/managers.py
|
realnoobs/django-efilling
|
c105671d122d2f9b35320f12d9bb616f23ccd735
|
[
"MIT"
] | 1
|
2021-09-15T17:12:13.000Z
|
2021-09-15T17:12:13.000Z
|
django_efilling/managers.py
|
realnoobs/django-efilling
|
c105671d122d2f9b35320f12d9bb616f23ccd735
|
[
"MIT"
] | null | null | null |
django_efilling/managers.py
|
realnoobs/django-efilling
|
c105671d122d2f9b35320f12d9bb616f23ccd735
|
[
"MIT"
] | 1
|
2021-09-12T14:08:05.000Z
|
2021-09-12T14:08:05.000Z
|
from django.db.models import Manager
class SurveyManager(Manager):
def get_queryset(self):
qs = super().get_queryset()
return qs.filter(
active=True,
published=True,
deleted=False
)
def get_public(self):
"""
Return public Survey
"""
qs = self.get_queryset()
return qs.filter(public=True)
class InstrumentQuestionManager(Manager):
def get_scored(self):
qs = self.get_queryset()
return qs.filter(scoring=True)
class InstrumentManager(Manager):
def get_queryset(self):
qs = super().get_queryset()
return qs.filter()
def get_active(self):
qs = self.get_queryset()
return qs.filter(active=True)
| 21.305556
| 41
| 0.595828
| 85
| 767
| 5.258824
| 0.317647
| 0.17226
| 0.190157
| 0.212528
| 0.525727
| 0.525727
| 0.525727
| 0.411633
| 0.255034
| 0.255034
| 0
| 0
| 0.301173
| 767
| 35
| 42
| 21.914286
| 0.833955
| 0.026076
| 0
| 0.304348
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.217391
| false
| 0
| 0.043478
| 0
| 0.608696
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
4f56005280ee938ffa4618f967fdee13f819605c
| 285
|
py
|
Python
|
rununi2.py
|
Fuchai/mayoehr
|
ec79d2157bedf4f4f0fc783d86523df8a758e27c
|
[
"MIT"
] | null | null | null |
rununi2.py
|
Fuchai/mayoehr
|
ec79d2157bedf4f4f0fc783d86523df8a758e27c
|
[
"MIT"
] | null | null | null |
rununi2.py
|
Fuchai/mayoehr
|
ec79d2157bedf4f4f0fc783d86523df8a758e27c
|
[
"MIT"
] | null | null | null |
import pandas as pd
from death.unified.uni import *
if __name__ == '__main__':
# test_all_for_AUROC_1(epoch=40, test_stat_dir="40epoch")
# test_all_for_AUROC_1(epoch=20, test_stat_dir="20epoch")
test_all_for_AUROC_1(epoch=4, test_stat_dir="4epoch")
# transformer201()
| 31.666667
| 61
| 0.74386
| 46
| 285
| 4.043478
| 0.565217
| 0.112903
| 0.16129
| 0.241935
| 0.33871
| 0.33871
| 0
| 0
| 0
| 0
| 0
| 0.065041
| 0.136842
| 285
| 9
| 62
| 31.666667
| 0.691057
| 0.449123
| 0
| 0
| 0
| 0
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
96f3111f87d7627a9dd09b5a985dba1cd94d5439
| 123
|
py
|
Python
|
app/__init__.py
|
lpereira1/Viptela-Device-Status
|
d2de62349292cf0dab8f4a0341e374b49cc878e2
|
[
"MIT"
] | 1
|
2019-08-01T01:56:59.000Z
|
2019-08-01T01:56:59.000Z
|
app/__init__.py
|
lpereira1/Viptela-Device-Status
|
d2de62349292cf0dab8f4a0341e374b49cc878e2
|
[
"MIT"
] | null | null | null |
app/__init__.py
|
lpereira1/Viptela-Device-Status
|
d2de62349292cf0dab8f4a0341e374b49cc878e2
|
[
"MIT"
] | 2
|
2019-07-23T18:10:21.000Z
|
2019-08-08T02:18:40.000Z
|
from flask import Flask
application = Flask(__name__)
application.config.from_object('config')
from app import views
| 20.5
| 41
| 0.780488
| 16
| 123
| 5.6875
| 0.5625
| 0.21978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146341
| 123
| 5
| 42
| 24.6
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0.050847
| 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
|
96fc6ca6fc6e8a5fa063c2ba50d6ebd549344da4
| 111
|
py
|
Python
|
Python/desconto.py
|
jacksontenorio8/python
|
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
|
[
"MIT"
] | null | null | null |
Python/desconto.py
|
jacksontenorio8/python
|
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
|
[
"MIT"
] | null | null | null |
Python/desconto.py
|
jacksontenorio8/python
|
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
|
[
"MIT"
] | null | null | null |
x = float(input('Valor do Produto:'))
y = x - x * (5 / 100)
print('O novo valor do Produto é:{}R$!'.format(y))
| 27.75
| 50
| 0.585586
| 21
| 111
| 3.095238
| 0.714286
| 0.215385
| 0.430769
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043956
| 0.18018
| 111
| 3
| 51
| 37
| 0.67033
| 0
| 0
| 0
| 0
| 0
| 0.432432
| 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
|
8c32021a913938300c0908e445c74a13c3e7002a
| 98
|
py
|
Python
|
project/ac_seguridad/apps.py
|
anabelrl/anabel_estaciones
|
1fd48ad5ced14d97a8d158087932651ddf8b0007
|
[
"Apache-2.0"
] | null | null | null |
project/ac_seguridad/apps.py
|
anabelrl/anabel_estaciones
|
1fd48ad5ced14d97a8d158087932651ddf8b0007
|
[
"Apache-2.0"
] | null | null | null |
project/ac_seguridad/apps.py
|
anabelrl/anabel_estaciones
|
1fd48ad5ced14d97a8d158087932651ddf8b0007
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class AcSeguridadConfig(AppConfig):
name = 'ac_seguridad'
| 16.333333
| 35
| 0.77551
| 11
| 98
| 6.818182
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153061
| 98
| 5
| 36
| 19.6
| 0.903614
| 0
| 0
| 0
| 0
| 0
| 0.122449
| 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
|
8c35c95725c89cf9bb711db1684a0a1b48eaa1cf
| 30
|
py
|
Python
|
django_categories/editor/models.py
|
artemudovyk-konstankino/django-categories
|
ed53496b836edad3ad3a7924b21fd6f1d73f12d1
|
[
"Apache-2.0"
] | 26
|
2021-12-22T07:08:13.000Z
|
2022-03-29T12:24:43.000Z
|
django_categories/editor/models.py
|
artemudovyk-konstankino/django-categories
|
ed53496b836edad3ad3a7924b21fd6f1d73f12d1
|
[
"Apache-2.0"
] | 9
|
2021-11-28T14:24:07.000Z
|
2022-02-25T08:10:46.000Z
|
django_categories/editor/models.py
|
artemudovyk-konstankino/django-categories
|
ed53496b836edad3ad3a7924b21fd6f1d73f12d1
|
[
"Apache-2.0"
] | 2
|
2021-12-27T16:27:53.000Z
|
2022-02-05T17:42:45.000Z
|
"""Placeholder for Django."""
| 15
| 29
| 0.666667
| 3
| 30
| 6.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 30
| 1
| 30
| 30
| 0.740741
| 0.766667
| 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
|
8c5fba286710b7584f8b89fad9d10b455c365f76
| 310
|
py
|
Python
|
python/dgllife/utils/__init__.py
|
seqRep/dgl-lifesci
|
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
|
[
"Apache-2.0"
] | 1
|
2020-06-22T19:19:24.000Z
|
2020-06-22T19:19:24.000Z
|
python/dgllife/utils/__init__.py
|
seqRep/dgl-lifesci
|
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
|
[
"Apache-2.0"
] | null | null | null |
python/dgllife/utils/__init__.py
|
seqRep/dgl-lifesci
|
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from .complex_to_graph import *
from .early_stop import *
from .eval import *
from .featurizers import *
from .mol_to_graph import *
from .io import *
from .splitters import *
| 23.846154
| 68
| 0.729032
| 45
| 310
| 4.911111
| 0.688889
| 0.271493
| 0.117647
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01145
| 0.154839
| 310
| 12
| 69
| 25.833333
| 0.832061
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4fedb2dcd17021f084f513a5197dbc99255e91f2
| 23,787
|
py
|
Python
|
resources_rc.py
|
tmizu23/CustomedFreehandRastereGeoreferencer
|
f19f58ca10da424f4de0424186454b3cfa9cd966
|
[
"MIT"
] | null | null | null |
resources_rc.py
|
tmizu23/CustomedFreehandRastereGeoreferencer
|
f19f58ca10da424f4de0424186454b3cfa9cd966
|
[
"MIT"
] | null | null | null |
resources_rc.py
|
tmizu23/CustomedFreehandRastereGeoreferencer
|
f19f58ca10da424f4de0424186454b3cfa9cd966
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created: 月 6 11 10:45:28 2018
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x01\xff\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x01\x6f\x49\x44\x41\x54\x48\
\x4b\xed\x94\x31\x6b\xc2\x40\x14\xc7\xff\xf1\x2b\xa4\xf1\x03\x48\
\x08\x66\x73\x6c\x0d\x74\x0c\x1a\xa1\xe8\xe2\x10\x9c\x8a\x28\xb8\
\xb4\x83\xe0\xda\xa1\x43\x85\x0e\x3a\x9a\xa1\x63\x07\x97\xda\x82\
\xa9\x64\x2c\xad\xed\xe8\x66\x49\x25\x1f\x40\xf1\x33\xa4\x77\x97\
\xd3\x8a\x46\x0b\x82\x43\x4b\x7e\x70\xe4\xde\x7b\xc7\xff\x1e\xff\
\x77\x44\xb8\x81\xe4\xe3\x40\xc4\xf8\xf7\x20\x44\xe2\xa1\xfc\x13\
\x71\xd5\x9e\xa2\xe1\x4f\x51\xa8\xf0\xc4\x92\x14\x4e\xbf\x82\xda\
\xea\xda\x3c\x07\x48\xad\x0f\x34\x6c\x93\xed\x57\xc4\x4d\x24\xb3\
\x1e\xdc\x67\x0f\x4a\x3e\x28\xae\x33\x6f\xeb\x68\x0a\xf1\x60\x55\
\x1d\x28\x9d\x29\xca\xad\x14\xaf\x6e\xf2\x23\x5e\x31\xa0\x4c\x06\
\x78\xbd\x1e\x60\x9e\x35\xa0\xf2\xf4\x56\xac\x12\xbb\x40\xbc\xa8\
\x6f\x3d\xbb\x14\x57\xf3\x3a\xe6\xfd\x1e\x66\xc3\x1e\xdc\x89\x0e\
\x6d\x47\x47\x4b\x2c\x1b\x2e\x74\x24\x43\xec\xa1\x04\xe2\xe9\x2b\
\x68\xd4\x92\xee\x88\x04\x23\x8c\xfb\x1e\xc4\x5c\x1e\x12\x2b\xee\
\x0f\x13\x97\x8a\x19\x88\xc4\x92\xf1\x90\xe5\x30\xeb\x12\x6b\xe4\
\x0c\xd4\x74\x10\xef\x0b\x11\x4f\x41\xcd\x25\x00\xb9\x86\xf3\xc5\
\x4b\x78\xab\x41\x44\x02\x4a\xf1\x17\x6b\xe8\x9c\xe0\xe0\xd3\xe2\
\xf1\x1a\x31\x54\xea\x38\x91\x3d\xbc\x6b\xfc\x15\xf0\x75\xd7\x26\
\xd6\xec\x18\x16\xb5\xb2\xdc\x21\x73\x6a\xdf\x62\xcc\x53\x94\x23\
\x85\x34\xca\x11\x1e\x6d\xdf\x3f\xc3\x25\x9a\xc6\x3d\x4f\x2d\x30\
\x51\xf0\x5b\x40\x35\x8e\x07\x8b\xbe\x73\x87\x34\xc1\x4b\x0c\xda\
\xd0\x31\x5e\x98\x95\xc1\x59\x85\xe5\x1d\x3c\x09\x25\x76\x61\xf4\
\x3f\x0f\x25\x12\x0f\xe5\xaf\x8a\x03\xdf\xe4\xe7\x77\x44\x80\xfd\
\x34\xbd\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x00\xf6\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x00\x66\x49\x44\x41\x54\x48\
\x4b\x63\xfc\x0f\x04\x0c\x34\x02\x4c\x50\x9a\x26\x60\xd4\x70\xac\
\x60\x18\x19\x1e\xc6\xc8\xc8\xc0\x88\x15\x87\x31\xac\x86\xaa\x21\
\x1a\x80\xd2\x39\x56\x70\xa5\xe1\xbf\x36\x83\xf6\xff\x86\x2b\x50\
\x3e\x19\x60\x34\x42\xb1\x02\x92\x0c\xbf\xda\xa8\x43\x52\x04\x93\
\x64\xb8\x76\xfd\x15\x50\x02\x80\xe2\x55\x0c\xa1\x50\x71\x5c\x60\
\xe8\x86\xf9\x68\x79\x8e\x15\x8c\x1a\x8e\x15\x0c\x55\xc3\x19\x18\
\x00\x3e\x3d\x6e\x38\x55\xb3\x36\x09\x00\x00\x00\x00\x49\x45\x4e\
\x44\xae\x42\x60\x82\
\x00\x00\x01\x69\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x00\xd9\x49\x44\x41\x54\x48\
\x4b\x63\xfc\x7f\xff\xd5\x7f\x06\x1a\x01\x26\x28\x4d\x13\x30\x6a\
\x38\x56\x30\xec\x0c\xdf\x0f\xa5\x29\x03\x34\x75\x39\x4d\x33\x11\
\x9a\xe1\xc0\xe0\x58\x50\x07\x65\xc3\x80\x22\x03\x43\xc0\x22\x06\
\x06\x01\x10\xfb\x3e\x03\xc3\x86\x38\x06\x86\x0f\x60\x09\x04\x50\
\x68\x62\x60\x70\x70\x84\x72\x10\x00\x7b\xb0\x80\x14\x27\x1c\x06\
\x62\x20\x0d\x36\x10\xcd\x42\x81\x24\xa8\x3c\x10\x1b\x00\x2d\x7f\
\x00\x94\xbf\x00\x54\x87\x06\x08\x84\x39\xd0\x35\x0a\x50\x26\x2e\
\xa0\x00\x75\xf1\x87\x07\x10\x1a\x09\x10\x30\x1c\x18\x4c\x20\x3d\
\x02\x40\xd7\xe1\x02\x17\xe6\x41\x68\x98\x25\x48\x80\x70\x98\x83\
\x82\x20\x20\x11\xca\xc1\x11\xe6\x0e\xc0\xe0\xc1\xe2\x43\x3c\x61\
\x0e\x8d\xc4\x0f\x40\x0b\xd1\x0d\x43\x0e\x73\x10\xc6\x11\x74\x78\
\x82\x05\x94\x4a\x60\x11\x8a\xc5\xb5\x44\x00\xc2\x11\x1a\x00\x74\
\x25\xd8\x02\x5b\x48\xf8\x93\x00\x46\x6b\x22\xac\x60\xd4\x70\x2c\
\x80\x81\x01\x00\x7b\x83\x42\x86\xbc\x68\x67\x9b\x00\x00\x00\x00\
\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x01\x7f\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x00\xef\x49\x44\x41\x54\x48\
\x4b\x63\xfc\xbf\xee\xe4\x7f\x06\x1a\x01\x26\x28\x4d\x13\x30\x6a\
\x38\x56\x30\x74\x0d\x07\x27\xc5\x5f\x4b\xa3\x19\xbe\x9c\x84\x8a\
\x40\x01\x5b\xea\x52\x06\x1e\xdd\x17\x0c\x3f\xba\x8b\x19\xbe\x3d\
\x86\x0a\x82\x81\x2d\x03\xcf\xa4\x0c\x06\x36\x30\x1b\x9b\x3c\x03\
\x03\x8b\x7f\x2f\x03\x9f\xb3\x04\x03\x0b\x94\x0f\x17\xc0\x06\x90\
\xe5\xc0\x0e\x59\x6a\xc6\x20\x14\x6d\x04\xe6\x83\x00\xc4\x21\x50\
\x0e\x12\x20\x39\x58\xd8\xf4\x6c\x19\x18\x9e\x3d\x63\xf8\x0b\xe5\
\xe3\x03\x24\x1a\x0e\x0c\x86\x1d\x87\x19\x18\xa4\xa4\x18\x98\xa1\
\x22\xf8\x00\x8e\x30\x87\x85\x2b\x66\x98\xa2\x06\x1f\xfe\x38\x21\
\x2d\xcc\x2f\xcf\x60\x78\x37\x7b\x03\xc3\x2f\x67\x58\x84\x42\x00\
\x75\xc2\x5c\x37\x80\x81\x4b\xf6\x30\xc3\x8f\xbd\x2f\xa0\x02\xf8\
\x01\x89\x61\x2e\xc1\xc0\xe1\x61\xcb\xf0\x67\x23\xd0\xf5\x50\x11\
\x7c\x80\xf4\x4c\xa4\x6b\x06\x0c\x92\xc3\x0c\xbf\x2e\x43\xf9\x40\
\xf0\x6b\x76\x34\xc3\xbb\x3c\x04\xfe\x04\xf5\xd9\x68\x79\x8e\x15\
\x8c\x1a\x8e\x15\x0c\x55\xc3\x19\x18\x00\x1d\xd7\x5c\xe3\xc2\x95\
\x63\x5e\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x01\xb2\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x01\x22\x49\x44\x41\x54\x48\
\x4b\xed\x95\xb1\x8a\xc2\x40\x10\x86\x7f\xaf\xb2\x33\x5d\xd2\x69\
\x67\x79\x20\x1c\x5c\xe1\x33\x08\xbe\x80\xa5\x8f\xe0\x43\xf8\x18\
\x56\x56\x57\x58\xf8\x04\x16\x8a\xa0\x58\xda\x69\x17\xbb\x4d\x97\
\x4e\xff\xc9\x6c\x0c\x9b\xac\x88\x07\xe9\xf2\xc1\x24\xb3\x93\xcd\
\xbf\x9b\x7f\x16\xd2\xba\xff\xed\xee\xa8\x89\x2f\x7b\xaf\x85\x46\
\xdc\x4b\x23\xee\xa5\x7a\xce\xaf\x13\xc0\xf0\xde\x5d\x00\x81\x96\
\x94\x18\x38\xcf\x80\xd4\x0e\x73\x2a\xf3\x0a\x4a\x3b\x3f\x52\xb8\
\xc7\xc9\x8c\x84\xb9\x8f\x68\x0e\x7c\x53\x50\xa2\x3b\xd4\xcd\xdc\
\xb8\xb0\x07\x57\xdc\xec\x81\xf6\x2f\x10\x32\x24\x7f\x47\x30\xd5\
\x05\xe2\x95\x2d\xb8\xb8\xe2\xc9\x86\x2f\x0c\xb8\x80\x04\xf3\x17\
\x3b\x72\x08\x7e\x78\xe1\x5c\xb1\xb2\x44\x21\x9e\xae\xd5\x92\x4e\
\xc4\x01\x43\xac\x31\x07\x7d\xf6\x4f\x0a\xf1\x64\xab\x96\xb4\xed\
\xb8\xc3\x3c\x65\xad\xdc\xc0\x0f\xb0\xe2\xfc\x7c\x73\xa1\xd0\x12\
\x38\xb1\x41\x12\x67\xe6\x60\x2d\x79\x63\x4d\xd6\x1b\xfa\xee\x39\
\x31\x2a\x6e\xd8\x90\x94\x36\xf4\xed\x29\xc8\x23\x62\xed\x45\xb3\
\x32\xc4\xca\x2b\xfd\x8e\x46\xb6\xe0\xa2\xe2\x59\x23\xc7\x85\x25\
\x39\x21\x6b\xe5\x66\xc5\x3c\xeb\xcf\xaf\xa3\x6d\xb2\xa1\x50\xfa\
\x54\xa5\xf9\x59\x78\x69\xc4\xbd\xd4\x28\x0e\x3c\x00\x80\x17\x55\
\x34\xab\xcb\xa9\xab\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\
\x82\
\x00\x00\x00\xf0\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x00\x60\x49\x44\x41\x54\x48\
\x4b\x63\xdc\xfa\x4c\xf6\x3f\x03\x8d\x00\x13\x94\xa6\x09\x18\x35\
\x1c\x2b\x18\x28\xc3\x99\x18\x54\xcd\xd8\x19\x54\xf7\x42\xb9\x60\
\x80\x4d\x0c\x37\x18\x28\x97\xff\x67\xf8\xae\x04\x65\xc2\x01\x36\
\x31\xdc\x60\x58\x46\x28\xe5\x80\xa6\x86\x0f\x54\xc1\x05\x49\xd3\
\xfa\xb3\x19\xa1\x7c\x10\xc0\x26\x86\x1b\x0c\xcb\x60\xa1\x1c\x8c\
\x1a\x8e\x15\x8c\x1a\x8e\x05\x30\x30\x00\x00\x54\x2d\x11\x6d\x12\
\x3d\xca\xd3\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x01\x17\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x00\x87\x49\x44\x41\x54\x48\
\x4b\xed\x94\x5b\x0a\xc5\x20\x0c\x44\x27\xdd\x4e\xdc\x8e\x6e\xa7\
\xe9\x76\xec\x76\x74\x3d\xa9\x82\xd0\x07\x29\xf7\xf6\xa3\x1f\x6d\
\x3d\x32\x28\x24\x8c\x30\x11\x09\x80\x16\xdd\xc2\xd0\xf6\x5b\xe8\
\xe6\x26\x2f\x31\x8f\xaa\x50\x53\x11\xbe\xf5\x5c\xa5\xbe\xf3\xbd\
\x58\x34\x95\x25\x6c\xd4\xc0\x2a\xa9\x5c\xe7\xad\xda\x5e\x1f\x18\
\x28\x4b\x6a\xf9\x27\x8c\x0c\xf8\xf8\x7b\x1e\x7f\x9b\x67\x71\x20\
\xa2\x22\x87\x29\x03\x73\xa8\xe7\xaa\x80\xb9\xf5\x1c\xf9\x40\xe6\
\x2b\x19\xe2\x08\xe1\x2c\x8b\x0d\xfd\x3f\x37\xe9\xe6\x26\x4f\x35\
\x07\x16\x2a\x83\x4c\xa7\x18\x29\x8c\x00\x00\x00\x00\x00\x49\x45\
\x4e\x44\xae\x42\x60\x82\
\x00\x00\x01\xf6\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x01\x66\x49\x44\x41\x54\x48\
\x4b\xed\x94\x31\x4b\xc3\x40\x14\xc7\xff\x8a\x53\xe3\x22\x18\x62\
\x85\xd2\x41\xb2\x14\x21\x83\x05\xb7\x0e\x5d\x6a\xed\x57\x48\x07\
\xfd\x0a\xe9\x5c\xb1\xab\xfa\x15\x5c\x9a\x2f\xe0\x20\xda\x25\x83\
\x93\x85\xaa\x08\xd2\x25\x74\x10\x41\x2d\x19\xba\x18\x57\x7d\x77\
\x79\xca\x85\x5e\xc6\x0e\x85\xfc\xe0\xc8\xbd\xbb\xe3\x7f\xef\xfd\
\xef\x91\x95\x7e\xd3\xff\xc1\x82\x58\xe5\xef\x42\xc8\xc5\xb5\x2c\
\xaf\x38\xb7\xe2\x14\x83\x7b\x0f\xfe\x8c\x57\x25\x75\x74\x9a\xc7\
\x70\x38\x92\xc4\xb7\xe8\xdd\xf9\x08\x39\x14\xd8\x95\x0b\x74\xcb\
\x16\x47\x69\x52\x99\x8b\x83\x74\x99\x1c\x9d\x52\x80\xf3\x97\x67\
\xde\x21\xa2\x4b\xb4\x49\xb8\x54\x4d\xf6\xe5\xa8\xb9\xc0\xd8\x43\
\xef\x75\xca\x87\xd2\x64\xda\xe2\x58\x75\xe0\xeb\x83\x6a\x12\x50\
\x65\x93\x40\x5e\x7e\x64\xca\x85\x04\xe3\x00\xdd\x6a\x1d\xe1\xf8\
\x1a\x4a\x1a\xff\x64\x88\x27\x62\x58\x2f\x42\x16\x1c\x3f\x61\x38\
\xb3\xb1\xbf\xa9\x29\xdf\xdc\x23\x03\xdf\xf0\x19\x73\xac\x90\x12\
\x0f\xa9\xc4\xf6\x8d\x4b\xc3\xc3\xb0\x48\x16\xed\xaa\x8e\x97\xb0\
\x65\xf0\x74\x8e\x10\xef\xdf\x3c\x55\xd0\x7b\xae\x2d\x55\x9f\x5d\
\x82\x8d\xed\x02\x4f\x15\xf4\xb6\x98\x2d\xb8\x1b\x01\xae\xfe\x1e\
\xca\x28\x52\xde\xfa\xec\x10\x3d\x20\xc8\xa8\x2a\xc3\x73\x0b\x8d\
\x1d\x35\x7b\x07\x87\x15\x1b\xc1\xe8\x14\x03\x35\x7b\xd1\x9a\x23\
\xf1\xd0\xad\x74\xcb\x32\x6b\xfc\x9d\x47\x3e\xd4\x19\x1e\x23\xea\
\x75\xea\x10\xab\x7c\x82\x7e\x41\xb4\xa3\x0b\x9f\x8f\x08\x3b\xdc\
\x9a\x8f\x46\xc6\x5b\xe4\xff\x73\x2d\xb9\xb8\x96\x65\x15\x07\x7e\
\x01\xda\x55\x72\xe8\x00\x2d\xce\x24\x00\x00\x00\x00\x49\x45\x4e\
\x44\xae\x42\x60\x82\
\x00\x00\x03\x90\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x03\x25\x49\x44\x41\x54\x48\x4b\xb5\x55\xdd\x4b\
\x14\x51\x14\xff\xcd\xce\xec\xee\x4c\xab\xeb\x6e\xae\x92\x29\x94\
\x66\x7e\x20\x51\x6c\x20\x25\x06\x16\x3e\x28\x54\x04\x12\xf6\x16\
\x15\x3d\x44\x54\x2f\xbd\xf4\x94\x6f\xfd\x01\xf5\x12\xf5\xe0\x43\
\x41\x50\x50\xcf\xea\x43\x96\x14\xf5\x10\x25\x25\x3d\x88\xe2\x57\
\xb6\x1f\xa9\x3b\xb3\xb3\x5f\xb3\x3b\xd3\x39\xbb\x23\xd8\xb6\x6b\
\x0a\xf9\x83\x33\x77\xee\x9c\x7b\x7f\xe7\xdc\xdf\x3d\x77\xae\x00\
\x0c\x59\xd8\x14\x86\xdd\x3a\xed\x76\xeb\x70\xd8\x6d\x09\x70\xcc\
\x38\x5a\x8f\xb4\xa1\xbd\xf3\x30\xbd\xaf\x07\xd9\x3a\xca\x90\x9b\
\x64\x1a\x4e\x0e\xf4\xa3\xa9\xef\x0c\x5a\xbb\x82\xd4\xff\x2f\xe4\
\x59\xb2\x0c\xce\x5e\xbf\x02\xa1\xbe\x03\x49\x55\x43\x3a\x95\x29\
\xb8\xb6\x89\x22\xf2\x34\xbc\x95\x32\xce\xdf\xb9\x01\x15\x3e\x58\
\x46\x1a\xb4\x29\x30\xff\xb1\x2b\xe5\x60\x93\xf3\xec\x04\x9a\xdb\
\xf6\xa1\xf7\xd6\x35\x84\xd7\x72\x10\x4c\x5e\x41\x01\x66\x96\x65\
\x4a\x92\x25\xec\x36\x4d\xc6\xab\xc9\x91\x95\x8f\x4c\x89\xdd\x25\
\xaf\x86\x63\xbd\x27\x50\xd3\xd9\x03\x75\x45\x85\x83\xd3\xb5\x61\
\x91\x57\x71\x0b\x48\x44\x42\x90\x65\x09\x29\x3d\x81\x4c\x3c\x0e\
\x35\xf2\x0b\xd1\xb9\x25\x84\x42\x21\x1a\x25\x91\xb9\xc8\xfe\x14\
\x82\x68\x6e\x5b\x7d\x17\x07\x90\xdd\xdd\x8c\x6c\x52\x87\x20\x6c\
\x60\xb6\xc1\x01\x04\x51\x2c\x74\xc8\x2d\x08\x0e\x08\x0e\x07\x44\
\x49\x42\x95\x2b\x8d\xc5\xc9\xaf\xf8\x3c\xfa\x0e\xc9\x0c\xaf\xc8\
\x5d\x18\xc4\xcf\xfe\xab\x93\x56\x4a\xae\x29\xe8\x5b\x82\x78\x33\
\x58\xf9\xa8\x14\x88\x82\xf8\x7d\x32\x96\xde\x8f\xe3\xc3\xd8\x5b\
\xf2\x54\x92\x09\xb4\x0e\x8b\xf5\xdc\x1e\xe9\x3a\x38\x19\x81\x35\
\xcf\x1a\x58\x89\x68\xa8\x38\xd4\x8d\xd3\x97\x07\xc9\x13\x27\xb3\
\x20\x4e\x7f\xf2\x0c\xb5\xb4\xd4\x41\xf0\xed\x81\x69\x64\x4a\xcb\
\xc2\x0f\xce\x90\x5c\x9c\x6c\x3e\x63\xa2\xdd\x38\x94\xdf\x79\x7e\
\xce\x53\x8b\x7a\xbf\x0b\xf3\xd3\xb3\xbc\x03\x15\x18\x79\xf2\x02\
\xfa\xe4\x04\xbc\xd5\x55\x7f\x95\x1d\x77\x9d\x0e\x0b\x8a\xa9\xc1\
\x65\xa5\xe0\xf7\x8a\xd8\xdb\xe0\x83\xa4\x28\x10\x5d\x6e\xda\x0b\
\x29\x1f\x90\xc1\x89\xe5\x52\x49\x04\x82\x5d\x90\x9d\x2e\xd6\x83\
\xff\x2d\xec\x4d\xa2\xf1\xe0\x7e\x04\x2f\x0c\x22\x1a\xd5\x59\x2f\
\x7b\x06\xbd\x25\xd6\xf0\x7a\xf8\x21\x75\x14\xb2\xc2\xf7\xda\x40\
\x00\xfe\x86\x3a\x04\x9a\x1a\x51\xd3\xd6\x8e\x98\x6a\xc0\x22\x79\
\x78\x05\x0e\x22\x5e\xfe\x38\xb1\x4e\xbe\x8e\x0c\xbc\x1e\x05\x7d\
\x37\x2f\x21\xac\xd2\xb2\xb9\xd6\x89\x5c\x32\x34\x8c\x3e\x1a\x26\
\xff\xae\xc2\xb0\x7c\x00\xde\x2b\xb6\x2c\x44\x4a\xa5\xfb\xdc\x29\
\x78\xdb\x8f\x42\x5b\xd5\xf2\x95\x94\x5b\xfd\x59\x54\x98\x54\xab\
\xaa\x9e\xc6\xf3\x7b\x0f\xe0\x77\xac\x91\x1e\xee\x3c\x0d\x8d\x2d\
\x02\x8b\xcd\xa5\xc9\x7f\x4a\x85\x8e\x92\x13\xe3\xaf\x46\xf0\xe5\
\xd9\x53\x54\x54\x79\x60\x9a\x26\x2a\x6a\xaa\x8b\xc9\x19\xa4\x21\
\x05\x79\x79\xff\x31\xa4\xe5\x6f\x50\xbc\x95\x90\x15\x3e\x20\x9b\
\x81\x69\x3c\x98\x9f\x5d\xc0\xc2\x9b\x31\x88\x6e\x39\xbf\x17\x14\
\xbe\x67\xa8\x30\x60\x23\x38\x33\x37\x66\xa6\xa6\x20\xa7\x63\x58\
\x5b\x8e\x20\xbc\x18\xa1\x6f\xf6\x41\x2a\x0b\x09\xa1\xc5\x59\x74\
\x1c\x0f\xc2\x12\xc4\x72\xe4\x0c\x0e\xe0\x42\xf8\x47\x98\x88\xf9\
\x88\x6f\xe5\xb2\xe0\x39\x34\x4b\x12\x51\x7b\xa0\xb1\x94\x2c\xc5\
\x60\xd2\xed\xdc\x42\x12\x96\xa7\xe7\xa0\x6b\x89\xad\x90\x6f\x17\
\x02\x92\x31\x0d\xd9\x44\x7c\x67\xc8\x8d\xb4\x81\x78\x24\xba\x13\
\xe4\x74\x21\xd2\x31\x4f\x44\x23\x3b\x43\xee\xf1\xc8\x58\xf8\x3e\
\xb3\x33\xb2\xe8\x7a\x06\xb1\x55\x1d\xbf\x01\x6d\x6d\x16\x55\xbf\
\xff\x60\x38\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x01\xcf\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x01\x3f\x49\x44\x41\x54\x48\
\x4b\x63\xfc\x7f\x92\xef\x3f\x03\x8d\x00\x13\x94\xa6\x09\x18\x35\
\x1c\x2b\x18\xba\x86\x23\x92\xe2\x0f\x1d\x06\xe5\x0f\x42\x60\x26\
\x08\x04\x0b\x1c\x62\xe8\xe2\x80\x72\x40\xe0\x8f\x12\x83\xff\x1b\
\x19\x86\x2b\x50\x2e\x03\xeb\x13\x86\x3d\xc2\xf7\x18\x14\xa1\x5c\
\x6c\x00\xe2\x72\x90\x46\xa0\xc1\x20\x03\xef\x4a\x80\xf0\x4d\x06\
\x86\xaf\x4a\x0c\xf7\xc1\x92\x40\x00\xb2\xf8\x8d\x30\x83\x8f\x08\
\x4c\xfe\x10\xc3\x1e\x0e\x61\x86\x82\xaf\xbc\x50\x05\xd8\x01\xc4\
\xe5\x60\x57\x81\x34\x9f\x66\x48\x65\x81\xca\xc0\x81\x38\x43\xd9\
\x0b\x75\x06\x06\x74\x9f\x10\x01\x20\x2e\x67\x79\xcd\xe0\xc3\xca\
\xc9\xd0\xf1\xc6\x94\x61\xf6\x1f\xb0\x08\x02\xfc\xe1\x66\xb8\xc9\
\xf0\x8e\xc1\x83\x44\x83\x41\x00\x1a\xa1\x9f\x19\x52\x85\x0f\x31\
\xcc\xe6\x00\x59\x60\xc7\xa0\xfc\x02\xc9\x92\x3f\x5c\x88\x70\x26\
\x11\xa0\xa4\x16\x27\x68\x98\xef\x01\x06\x25\x56\x5f\x90\x08\xb0\
\x26\x45\x45\xee\x1b\x0c\x15\xc0\x60\xba\x0d\x32\x9c\xe3\x35\x43\
\x30\x83\x10\xc3\x8e\x1f\x10\x39\x52\x00\xd8\xf0\xfb\x5f\x4d\x19\
\xfc\x91\x63\xfe\x87\x3c\x43\xc7\xef\xef\x0c\xaa\xe0\xc8\x7d\xc9\
\x90\xc9\xfb\x9d\x61\xed\x07\x54\x9f\x60\xe8\xc1\x02\xa0\xe9\x9c\
\x97\x61\xf6\x5b\x43\xa0\x81\x50\x51\x86\xef\x0c\x15\x68\x29\x07\
\x64\x98\xcb\x67\x4e\x28\x0f\x08\x88\x48\xe7\xa3\xe5\x39\x56\x30\
\x6a\x38\x56\x30\x54\x0d\x67\x60\x00\x00\x23\x92\x6b\xd0\x26\xac\
\x10\xcc\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x02\x29\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95\x2b\
\x0e\x1b\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\
\xa0\xbd\xa7\x93\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\
\x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x01\x99\x49\x44\x41\x54\x48\
\x4b\xed\x94\xb1\x6a\xc2\x50\x14\x86\xff\x16\x0d\x69\x2a\x69\x05\
\x31\xc4\x52\x82\x96\x82\xe0\x26\x1d\x84\x76\x72\x71\xd1\xa1\x53\
\x5f\xc0\xa1\x6f\xd0\x51\x1c\xfb\x06\x0e\xbe\x40\xc7\xd2\x2e\x2e\
\x6e\x05\x29\xe2\x52\x0a\x2e\xad\x64\x89\x55\x04\xdb\x20\xa9\xd4\
\x82\xbd\x49\x8e\xcd\x8d\x66\x75\xcb\x07\xe1\xde\x73\x73\xf3\x9f\
\xff\xde\x73\xc8\x4e\xe6\xbe\xbc\xc4\x96\xd8\xa5\x71\x2b\x84\xe2\
\x81\x6c\x55\x9c\x75\x4b\x71\x69\xde\xb4\x31\xe9\x03\x72\xad\x8c\
\x44\x9e\xde\xac\xe8\xbd\xe0\xbd\xae\x03\xd9\x1c\x8e\x6f\xd3\x88\
\xd2\x32\x86\x03\x18\xd7\xaf\x98\x53\x68\x23\x56\x8b\x48\x55\x24\
\x8a\x38\xe7\x62\x36\x0e\xf3\x6e\x80\x05\xc5\x2b\xac\x8e\x0e\xb9\
\xa4\x51\x44\xd8\x09\x99\xb0\xc0\xcc\xb0\x56\x76\x9f\x46\x0e\x68\
\xb6\x61\x3c\x58\xb4\x89\x13\x17\xae\x4e\x21\xf7\x0d\x7c\x0f\x69\
\xc1\x86\xb9\xfb\x6c\x69\x90\x0a\x14\x3b\x58\xcc\x84\xee\xb8\xf4\
\x9d\x52\x4d\x23\x55\xd3\x30\x6f\xbe\xb1\x1d\x2e\xdc\x9d\x27\x21\
\x95\xa6\x98\x75\xbd\xcc\x8b\xae\x81\x79\x49\x81\x77\x50\xc6\x70\
\x84\x59\x3f\x8e\xd8\x99\x6f\xd5\x25\xaf\x40\x86\x89\x5f\x32\xe8\
\x2b\xa8\x54\xe0\x33\x8f\xf1\xd5\x04\x12\x97\x49\x27\xf2\x23\x23\
\xa2\xd2\x74\x83\x29\x7e\x82\xc4\xdd\xcc\x3a\xac\x1e\x9b\xf7\x46\
\x30\xb3\x29\xec\x05\x8a\x78\xee\x36\x89\x43\xa0\x6f\xfc\xe2\xec\
\x6a\x0e\xaa\xac\xb0\x9d\xb1\x53\x48\xf1\x42\xf1\xba\x63\x85\xba\
\x0f\x81\x73\xe7\xc3\x36\xc4\x9d\x6a\x4d\x1c\x88\x9e\xa5\x20\xb6\
\x9e\xf1\xc1\x0a\x79\xc8\xb5\x95\x07\x19\xa8\x3f\xc1\x5c\x2b\xbe\
\xc1\x5a\x56\xac\x9e\xfc\xd7\x28\x42\xa3\x87\xaa\x20\x96\x65\xfd\
\xab\xad\x15\x92\x23\x5a\x39\x47\xe6\xc8\x6e\xc7\x47\x4c\x68\xcd\
\xbe\x8e\x44\xa3\x0c\x99\xbb\xc6\xf0\x97\x1b\x48\x28\x1e\x48\x28\
\x1e\x00\xf0\x07\xbf\x98\x7d\x2c\x95\xf9\xe9\xda\x00\x00\x00\x00\
\x49\x45\x4e\x44\xae\x42\x60\x82\
"
qt_resource_name = "\
\x00\x07\
\x07\x3b\xe0\xb3\
\x00\x70\
\x00\x6c\x00\x75\x00\x67\x00\x69\x00\x6e\x00\x73\
\x00\x1b\
\x08\x5d\x11\x02\
\x00\x66\
\x00\x72\x00\x65\x00\x65\x00\x68\x00\x61\x00\x6e\x00\x64\x00\x72\x00\x61\x00\x73\x00\x74\x00\x65\x00\x72\x00\x67\x00\x65\x00\x6f\
\x00\x72\x00\x65\x00\x66\x00\x65\x00\x72\x00\x65\x00\x6e\x00\x63\x00\x65\x00\x72\
\x00\x0e\
\x08\x63\xba\x87\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x41\x00\x64\x00\x6a\x00\x75\x00\x73\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x1c\
\x04\x50\x9f\x87\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x54\x00\x72\x00\x61\x00\x6e\x00\x73\x00\x70\x00\x61\x00\x72\x00\x65\x00\x6e\x00\x63\x00\x79\x00\x44\
\x00\x65\x00\x63\x00\x72\x00\x65\x00\x61\x00\x73\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0f\
\x0b\xe8\x67\x87\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x52\x00\x65\x00\x70\x00\x6c\x00\x61\x00\x63\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x0a\x61\x5a\xa7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0b\
\x07\x78\x1b\x07\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x41\x00\x64\x00\x64\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0e\
\x02\x52\xd2\x47\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x45\x00\x78\x00\x70\x00\x6f\x00\x72\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x1c\
\x04\x12\x9f\x87\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x54\x00\x72\x00\x61\x00\x6e\x00\x73\x00\x70\x00\x61\x00\x72\x00\x65\x00\x6e\x00\x63\x00\x79\x00\x49\
\x00\x6e\x00\x63\x00\x72\x00\x65\x00\x61\x00\x73\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0e\
\x0c\x63\x61\xe7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x52\x00\x6f\x00\x74\x00\x61\x00\x74\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0c\
\x09\x46\x90\xc7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x55\x00\x6e\x00\x64\x00\x6f\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0d\
\x0b\x6c\x25\xc7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x53\x00\x63\x00\x61\x00\x6c\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0c\
\x0b\x34\x91\xc7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x4d\x00\x6f\x00\x76\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
"
qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x0b\x00\x00\x00\x03\
\x00\x00\x01\x06\x00\x00\x00\x00\x00\x01\x00\x00\x07\xa3\
\x00\x00\x01\x28\x00\x00\x00\x00\x00\x01\x00\x00\x08\x97\
\x00\x00\x00\x72\x00\x00\x00\x00\x00\x01\x00\x00\x02\x03\
\x00\x00\x00\xea\x00\x00\x00\x00\x00\x01\x00\x00\x05\xed\
\x00\x00\x00\x50\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x88\x00\x00\x00\x00\x00\x01\x00\x00\x0b\xac\
\x00\x00\x00\xd4\x00\x00\x00\x00\x00\x01\x00\x00\x04\x6a\
\x00\x00\x01\xc6\x00\x00\x00\x00\x00\x01\x00\x00\x11\x13\
\x00\x00\x01\xa6\x00\x00\x00\x00\x00\x01\x00\x00\x0f\x40\
\x00\x00\x00\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x02\xfd\
\x00\x00\x01\x66\x00\x00\x00\x00\x00\x01\x00\x00\x09\xb2\
"
def qInitResources():
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 55.577103
| 129
| 0.724513
| 5,684
| 23,787
| 3.028853
| 0.052956
| 0.135223
| 0.095144
| 0.028578
| 0.384758
| 0.369947
| 0.368553
| 0.365067
| 0.34799
| 0.329171
| 0
| 0.357998
| 0.020515
| 23,787
| 427
| 130
| 55.70726
| 0.380918
| 0.007441
| 0
| 0.262136
| 0
| 0.808252
| 0
| 0
| 0
| 1
| 0.000339
| 0
| 0
| 1
| 0.004854
| false
| 0
| 0.002427
| 0
| 0.007282
| 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
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4ffb7d1c5eada5328f0be1d080ae031b88bc90e3
| 4,238
|
py
|
Python
|
pyspedas/mms/tests/feeps.py
|
MAVENSDC/pyspedas
|
05ede2603acb514bc7803be054016142c0851685
|
[
"MIT"
] | 1
|
2020-07-07T19:52:40.000Z
|
2020-07-07T19:52:40.000Z
|
pyspedas/mms/tests/feeps.py
|
MAVENSDC/pyspedas
|
05ede2603acb514bc7803be054016142c0851685
|
[
"MIT"
] | null | null | null |
pyspedas/mms/tests/feeps.py
|
MAVENSDC/pyspedas
|
05ede2603acb514bc7803be054016142c0851685
|
[
"MIT"
] | null | null | null |
import unittest
import numpy as np
from ..feeps.mms_read_feeps_sector_masks_csv import mms_read_feeps_sector_masks_csv
from pyspedas import mms_load_feeps, mms_feeps_pad
from ...utilities.data_exists import data_exists
class FEEPSTestCases(unittest.TestCase):
def test_pad_ions_srvy(self):
mms_load_feeps(probe=4, data_rate='brst', datatype='ion', trange=['2015-10-01/10:48:16', '2015-10-01/10:49:16'])
mms_feeps_pad(probe=4, data_rate='brst', datatype='ion', angles_from_bfield=True)
self.assertTrue(data_exists('mms4_epd_feeps_brst_l2_ion_intensity_70-600keV_pad'))
self.assertTrue(data_exists('mms4_epd_feeps_brst_l2_ion_intensity_70-600keV_pad_spin'))
def test_pad_electrons_srvy(self):
mms_load_feeps()
mms_feeps_pad()
self.assertTrue(data_exists('mms1_epd_feeps_srvy_l2_electron_intensity_70-600keV_pad_spin'))
self.assertTrue(data_exists('mms1_epd_feeps_srvy_l2_electron_intensity_70-600keV_pad'))
def test_pad_electrons_srvy_probe(self):
mms_load_feeps(probe=4)
mms_feeps_pad(probe=4)
self.assertTrue(data_exists('mms4_epd_feeps_srvy_l2_electron_intensity_70-600keV_pad_spin'))
self.assertTrue(data_exists('mms4_epd_feeps_srvy_l2_electron_intensity_70-600keV_pad'))
def test_sector_masks(self):
d = mms_read_feeps_sector_masks_csv(['2015-08-01', '2015-08-02'])
self.assertTrue(d['mms4imaskt2'] == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 58, 59, 60, 61, 62, 63])
self.assertTrue(d['mms3imaskb3'] == [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48])
self.assertTrue(d['mms4imaskt8'] == [0, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 57, 58, 59, 61])
self.assertTrue(d['mms4imaskb4'] == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63])
self.assertTrue(d['mms4imaskt1'] == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63])
self.assertTrue(d['mms1imaskt2'] == [11, 12])
self.assertTrue(d['mms3imaskb1'] == [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43])
self.assertTrue(d['mms3imaskb5'] == [36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61])
self.assertTrue(d['mms1imaskt3'] == [22, 23, 24, 25, 26, 27, 28, 31, 32])
d = mms_read_feeps_sector_masks_csv(['2016-08-01', '2016-08-02'])
self.assertTrue(d['mms1imaskb4'] == [20, 21, 22, 23, 24, 25, 26, 27, 28, 37, 38, 47])
self.assertTrue(d['mms4imaskb9'] == [31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 54, 55, 56])
self.assertTrue(d['mms3imaskb9'] == [53, 54, 55, 56, 57])
self.assertTrue(d['mms4imaskb7'] == [30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43])
self.assertTrue(d['mms3imaskb1'] == [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43])
self.assertTrue(d['mms4imaskt9'] == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 25, 26, 27, 28, 29, 30, 31, 32, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63])
self.assertTrue(d['mms3imaskb8'] == [31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45])
d = mms_read_feeps_sector_masks_csv(['2017-08-01', '2017-08-02'])
self.assertTrue(d['mms3imaskb9'] == [53, 54, 55, 56, 57, 58])
self.assertTrue(d['mms2imaskt9'] == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 53, 54, 60, 61, 62, 63])
self.assertTrue(d['mms1imaskb6'] == [40, 41, 42, 49, 50, 51, 52, 53, 54, 57, 58])
if __name__ == '__main__':
unittest.main()
| 83.098039
| 291
| 0.604059
| 782
| 4,238
| 3.11509
| 0.175192
| 0.143678
| 0.116995
| 0.029557
| 0.761084
| 0.711412
| 0.649836
| 0.577586
| 0.571018
| 0.522989
| 0
| 0.302188
| 0.201982
| 4,238
| 51
| 292
| 83.098039
| 0.418096
| 0
| 0
| 0.043478
| 0
| 0
| 0.156641
| 0.079028
| 0
| 0
| 0
| 0
| 0.543478
| 1
| 0.086957
| false
| 0
| 0.108696
| 0
| 0.217391
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4ffbefb6bedb9bf57ad17bb269b1f806d8100754
| 307
|
py
|
Python
|
cascada/smt/tests/test_wrappedchmodel.py
|
ranea/CASSCA
|
d00770206fc91170d020c8224f81421ad220bce7
|
[
"MIT"
] | null | null | null |
cascada/smt/tests/test_wrappedchmodel.py
|
ranea/CASSCA
|
d00770206fc91170d020c8224f81421ad220bce7
|
[
"MIT"
] | null | null | null |
cascada/smt/tests/test_wrappedchmodel.py
|
ranea/CASSCA
|
d00770206fc91170d020c8224f81421ad220bce7
|
[
"MIT"
] | null | null | null |
"""Tests for the wrappedchmodel module."""
import doctest
import unittest
import cascada.smt.wrappedchmodel
class EmptyTest(unittest.TestCase):
pass
def load_tests(loader, tests, ignore):
"""Add doctests."""
tests.addTests(doctest.DocTestSuite(cascada.smt.wrappedchmodel))
return tests
| 19.1875
| 68
| 0.749186
| 35
| 307
| 6.542857
| 0.657143
| 0.087336
| 0.209607
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143322
| 307
| 15
| 69
| 20.466667
| 0.870722
| 0.162866
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0.125
| 0.375
| 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
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
8b07a108b4ccc4d03ae782c41345b6113bd15a92
| 60,320
|
py
|
Python
|
L2J_DataPack/data/scripts/quests/333_BlackLionHunt/__init__.py
|
Vladislav-Zolotaryov/L2J_Levelless_Custom
|
fb9fd3d22209679258cddc60cec104d740f13b8c
|
[
"MIT"
] | null | null | null |
L2J_DataPack/data/scripts/quests/333_BlackLionHunt/__init__.py
|
Vladislav-Zolotaryov/L2J_Levelless_Custom
|
fb9fd3d22209679258cddc60cec104d740f13b8c
|
[
"MIT"
] | null | null | null |
L2J_DataPack/data/scripts/quests/333_BlackLionHunt/__init__.py
|
Vladislav-Zolotaryov/L2J_Levelless_Custom
|
fb9fd3d22209679258cddc60cec104d740f13b8c
|
[
"MIT"
] | null | null | null |
#written by Rolarga
##################################FEEL FREE TO CHANGE IDs, REWARDS, PRICES, NPCs AND DROPDATAS THEY ARE JUST CUSTOM BY ME##################################
qn = "333_BlackLionHunt"
#Technical relatet Items
BLACK_LION_MARK = 1369
ADENA_ID = 57
#Drops & Rewards
CARGO_BOX1,CARGO_BOX2,CARGO_BOX3,CARGO_BOX4 = range(3440,3444)
UNDEAD_ASH,BLOODY_AXE_INSIGNIAS,DELU_FANG,STAKATO_TALONS = range(3848,3852)
SOPHIAS_LETTER1,SOPHIAS_LETTER2,SOPHIAS_LETTER3,SOPHIAS_LETTER4,LIONS_CLAW,LIONS_EYE,GUILD_COIN = range(3671,3678)
ALACRITY_POTION = 735
SCROLL_ESCAPE = 736
SOULSHOT_D = 1463
SPIRITSHOT_D = 2510
HEALING_POTION=1061
#Box rewards
GLUDIO_APPLE,CORN_MEAL,WOLF_PELTS,MONNSTONE,GLUDIO_WEETS_FLOWER,SPIDERSILK_ROPE,ALEXANDRIT, \
SILVER_TEA,GOLEM_PART,FIRE_EMERALD,SILK_FROCK,PORCELAN_URN,IMPERIAL_DIAMOND,STATUE_SHILIEN_HEAD, \
STATUE_SHILIEN_TORSO,STATUE_SHILIEN_ARM,STATUE_SHILIEN_LEG,COMPLETE_STATUE,FRAGMENT_ANCIENT_TABLE1, \
FRAGMENT_ANCIENT_TABLE2,FRAGMENT_ANCIENT_TABLE3,FRAGMENT_ANCIENT_TABLE4,COMPLETE_TABLET = range(3444,3467)
#Price to Open a Box
OPEN_BOX_PRICE=650
#Lists
#List of all NPCs this Quest: Sophya,Redfoot,Rupio,Undinas(Shilien Temple),Lockirin(Dwarfen Village)
NPC=[30735,30736,30471,30130,30531,30737]
#List for some Item Groups
statue_list=[STATUE_SHILIEN_HEAD,STATUE_SHILIEN_TORSO,STATUE_SHILIEN_ARM,STATUE_SHILIEN_LEG]
tablet_list=[FRAGMENT_ANCIENT_TABLE1,FRAGMENT_ANCIENT_TABLE2,FRAGMENT_ANCIENT_TABLE3,FRAGMENT_ANCIENT_TABLE4]
#This Handels the Drop Datas npcId:[part,allowToDrop,ChanceForPartItem,ChanceForBox,PartItem]
#--Part, the Quest has 4 Parts 1=Execution Ground, 2=Partisan Hideaway 3=Near Giran Town, Delu Lizzards 4=Cruma Tower Area.
#--AllowToDrop --> if you will that the mob can drop, set allowToDrop==1. This is because not all mobs are really like official.
#--ChanceForPartItem --> set the dropchance for Ash in % for the mob with the npcId in same Line.
#--ChanceForBox --> set the dropchance for Boxes in % to the mob with the npcId in same Line.
#--PartItem --> this defines wich Item should this Mob drop, because 4 Parts.. 4 Different Items.
DROPLIST={
#Execturion Ground - Part 1
20160:[1,1,67,29,UNDEAD_ASH], #Neer Crawler
20171:[1,1,76,31,UNDEAD_ASH], #Specter
20197:[1,1,89,25,UNDEAD_ASH], #Sorrow Maiden
20200:[1,1,60,28,UNDEAD_ASH], #Strain
20201:[1,1,70,29,UNDEAD_ASH], #Ghoul
20202:[1,0,60,24,UNDEAD_ASH], #Dead Seeker (not official Monster for this Quest)
20198:[1,1,60,35,UNDEAD_ASH], #Neer Ghoul Berserker
#Partisan Hideaway - Part 2
20207:[2,1,69,29,BLOODY_AXE_INSIGNIAS], #Ol Mahum Guerilla
20208:[2,1,67,32,BLOODY_AXE_INSIGNIAS], #Ol Mahum Raider
20209:[2,1,62,33,BLOODY_AXE_INSIGNIAS], #Ol Mahum Marksman
20210:[2,1,78,23,BLOODY_AXE_INSIGNIAS], #Ol Mahum Sergeant
20211:[2,1,71,22,BLOODY_AXE_INSIGNIAS], #Ol Mahum Captain
#Delu Lizzardmans near Giran - Part 3
20251:[3,1,70,30,DELU_FANG], #Delu Lizardman
20252:[3,1,67,28,DELU_FANG], #Delu Lizardman Scout
20253:[3,1,65,26,DELU_FANG], #Delu Lizardman Warrior
20781:[3,0,69,31,DELU_FANG], #Delu Lizardman Shaman (not official Monster for this Quest)
#Cruma Area - Part 4
20157:[4,1,66,32,STAKATO_TALONS], #Marsh Stakato
20230:[4,1,68,26,STAKATO_TALONS], #Marsh Stakato Worker
20232:[4,1,67,28,STAKATO_TALONS], #Marsh Stakato Soldier
20234:[4,1,69,32,STAKATO_TALONS] #Marsh Stakato Drone
}
######################################## DO NOT MODIFY BELOW THIS LINE ####################################################################################
#Messages
#technical relatet messages
html = "<html><body>"
htmlend = "</body></html>"
back = "<a action=\"bypass -h Quest 333_BlackLionHunt f_more_help\">Return</a>"
#Sophya
sophia = "Mercenary Sophia:<br>"
#-Item information
p_redfoot = html+sophia+"Red foot you may not like him much personally. But he is the type of person who is missed when he is not around. Although he is in charge of delivery of military supplies, he also works on the side as a broker of stolen war trophies and loot. He is also a great source of information for our mercenary troops. Since he brings with him quite a lot of useful information, stop by often to ask him questions.<br><a action=\"bypass -h Quest 333_BlackLionHunt p_trader_info\">Ask about the traders union.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt continue\">Continue with your mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt leave\">Stop the mission you have been engaged in.</a>"+htmlend
p_no_items = html+sophia+"Dear brother of the Black Lion. Dont you think that the place where you should be is not in this village but in the battlefield where the evil spirits are running wild!<br><a action=\"bypass -h Quest 333_BlackLionHunt continue\">Continue with your mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt leave\">Stop the mission you have been engaged in.</a>"+htmlend
p_trader_info = html+sophia+"This cargo box definitely belongs to the Aden Traders Union. I can tell from the seal that is stamped on the box. If you want to return the cargo to them, go see Trader Union Member Morgan at the magic grocery store. He works for the Aden Traders Union. <br><a action=\"bypass -h Quest 333_BlackLionHunt p_redfoot\">Ask about Red Foot. </a><br><a action=\"bypass -h Quest 333_BlackLionHunt continue\">Continue with your mission. </a><br><a action=\"bypass -h Quest 333_BlackLionHunt leave\">Stop the mission you have been engaged in.</a>"+htmlend
p_both_info = html+sophia+"Dear brother. I appreciate your hard work in carrying out the mission. Ill give you your reward according to the number of proofs you have brought back.<br>What is that box? It seems like you have brought back a cargo box that belongs to a traders union. Since there is no clause regarding the returning of a cargo box written in our contract, I guess we dont have the duty to return the cargo to the traders. But, if we return it to the traders union, perhaps they will give us some sort of reward? If you dont feel like helping traders, you can go see Red Foot. He is an expert in dealing with spoils that are hard to get rid of. <br><a action=\"bypass -h Quest 333_BlackLionHunt p_redfoot\">Ask about Red Foot. </a><br><a action=\"bypass -h Quest 333_BlackLionHunt p_trader_info\">Ask about the traders union.</a><br> <a action=\"bypass -h Quest 333_BlackLionHunt continue\">Continue with your mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt leave\">Stop the mission you have been engaged in.</a>"+htmlend
p_only_item_info = html+sophia+"Dear brother. I appreciate your hard work in carrying out the mission. Ill give you your reward according to the number of proofs you have brought back.<br><a action=\"bypass -h Quest 333_BlackLionHunt continue\">Continue to carry out the mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt leave\">Stop the mission you have been engaged in.</a>"+htmlend
p_leave_mission = html+sophia+"I appreciate your hard work so far. Even a lion needs a break. Retire to the village and replenish your energy while resting there. Maintaining ones own physical strength is one of the basic skills of being a mercenary.<br><a action=\"bypass -h Quest 333_BlackLionHunt start_chose_parts\">Tell him that you would like to take on a new mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt r_exit\">Leave the mercenary troop.</a>"+htmlend
p_only_box_info = html+sophia+"Dear brother. I appreciate your hard work in carrying out the mission. Ill give you your reward according to the number of proofs you have brought back.<br><a action=\"bypass -h Quest 333_BlackLionHunt continue\">Continue to carry out the mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt leave\">Stop the mission you have been engaged in.</a>"+htmlend
p_first_eye = html+sophia+"Wait a moment. I present to you the <font color=\"LEVEL\">mark of the lions eye</font>. This is an award to recognize your distinguished services that you have demonstrated on the battlefield. And new supplies have been issued for you. Since they are expendable goods that will be useful in combat, store and guard them well! Now, I expect you to continue to make great achievements."+htmlend
p_eye = html+sophia+"Wait a moment. I present to you the <font color=\"LEVEL\">mark of the lions eye</font>. This is an award to recognize your distinguished services that you have demonstrated on the battlefield. And new supplies have been issued for you. Since they are expendable goods that will be useful in combat, store and guard them well! Now, I expect you to continue to make great achievements."+htmlend
#-exit messages
r_exit = html+sophia+"What?! You want to leave the Black Lion troop? Well, I guess you must have your own reasons. I wont ask about that However, Ill tell you one thing The only place for someone like yourself who was born with the blood of a fighter is in a mercenary troop. No matter where you go, you are destined to end up on the battlefield.<br>Anyhow, if you really want to withdraw from the mercenary troop, bear this in mind. Upon your departure, you will have to return the Black Lion Mark. Also, according to your contributions of service you have achieved so far, you will receive the proper discharge pay.<br><a action=\"bypass -h Quest 333_BlackLionHunt continue\">Continue to work for the mercenary troop.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt exit\">Leave the mercenary troop.</a>"+htmlend
exit = html+sophia+"If you really have already made up your mind, I will not hold you back any more. Please return the Black Lion Mark. I regret that our relationship as comrades will end from here on. Oh, take this before you go. This is the reward for your services you have earned until now for the mercenary troop. Wherever you go, you can use it as seed money to establish yourself in a new place. Well, until the day when we draw our swords together again. Good luck brother!"+htmlend
#-Start
start_error1 = html+sophia+"As I said before, our current mission is to drive out the evil spirits in this area. However, since the main force of the mercenary troop has been dispatched to Gludio, our military force is suffering a shortage. The only thing we are managing to do right now is to contain the evil spirits from attacking the village. Even now, if I can find some tough skinned fighters, I am willing to hire them right away to supplement our force!<br>(This is a quest that can be carried out by a character of level 25 or above and in possession of the Black Lion Mark.)"+htmlend
start_error2 = html+sophia+"As I said before, our current mission is to drive out the evil spirits in this area. However, since the main force of the mercenary troop has been dispatched to Gludio, our military force is suffering a shortage. The only thing we are managing to do right now is to contain the evil spirits from attacking the village. Even now, if I can find some tough skinned fighters, I am willing to hire them right away to supplement our force!<br>You seem like you have a lot of experience fighting evil spirits. Someone of your caliber and experience would be easily qualified to join our mercenary troop However, according to our policy, in order to be a member of our mercenary troop, you will still have to pass our test. If you are interested, go see <font color=\"LEVEL\">Captain Leopold in Gludin</font>. If you are approved by him and can bring back the Black Lion Mark, I will take you in as one of our brothers and give you the opportunity to join us in the fight.<br>(This is a quest that can be carried out by a character of level 25 or above and in possession of the Black Lion Mark.)"+htmlend
start_start = html+sophia+"Dear brother of the Black Lion. Our current situation is as follows. As I said before, our current mission is to drive out the evil spirits in this area. However, since the main force of the mercenary troop has been dispatched to Gludio, our military force is suffering a shortage. The only thing we are managing to do right now is to contain the evil spirits from attacking the village. <br>Fortunately, Captain Leopold of Gludin has sent many newly selected mercenary brothers. So we can launch our attack on the stronghold of the evil spirits in earnest. Brother, I would like you to join us in this fight.<br><a action=\"bypass -h Quest 333_BlackLionHunt start\">Tell him that you will join them in the fight.</a>"+htmlend
start_explain = html+sophia+"All right! The time has come for the black lions that have been crouching until now, to bare their claws and start hunting!<br>Now, I will explain our combat situation. We currently have four targets of attack. They are the Execution Ground, the Partisan Hideaway, southern shoreline area, and the Cruma Marshlands. Since we do not have enough combat power to hold a drawn-out war, we will dispatch a small group of soldiers as a strike force to carry out the strategy of hit and run to drive out the evil spirits.<br><a action=\"bypass -h Quest 333_BlackLionHunt start_parts\">Listen to the mission of each area.</a>"+htmlend
start_parts = html+sophia+"About which mission would you like to hear about?<br><br><a action=\"bypass -h Quest 333_BlackLionHunt p1_explanation\">Clean out the undead in the Execution Ground.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt p2_explanation\">Drive out the ol mahum in the Partisan Hideaway.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt p3_explanation\">Drive out the delu lizardman in the southern shore area.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt p4_explanation\">Smash the marsh stakato in the Cruma Marshlands.</a>"+htmlend
start_ask_again = html+sophia+"Dear Black Lion brother, the war with the evil spirits has already State.STARTED! Dont you think you should be active in this fight with us?<br><a action=\"bypass -h Quest 333_BlackLionHunt start_parts\">Listen to the explanation about the mission.</a>"+htmlend
start_continue = html+sophia+"Hurry! Rush to the battlefield, destroy your enemies and taste the sweetness of victory!"+htmlend
#-Part 1
p1_explanation = html+sophia+"The Execution Ground is located in the eastern part of the village. It is an eerie place where people can hear the never ending cries of dead souls. Your mission is to clean out the undead that are infesting the place. According to a rumor, in order to pay for the spilled blood of innocent people who were killed during the farmers uprising, the undead came back to this world Well, all I know is that we need to carry out the given assignment. Still, I dont feel good about this for some reason. <br><a action=\"bypass -h Quest 333_BlackLionHunt p1_t\">Take on the mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt start_chose_parts\">Listen to the explanation about another mission.</a>"+htmlend
p1_take = html+sophia+"The undead that we need to drive out are <font color=\"LEVEL\">specters, sorrow maiden, neer crawlers, neer ghoul berserker, strains and ghouls</font>. I dont know whether you know about this or not. But when an undead is destroyed, it leaves behind a handful of ashes. Bring me back that as proof of victory. The more <font color=\"LEVEL\">ashes of undead </font> you bring, the more rewards you will receive. Since you once worked under Captain Leopold, you already know the rule about proofs and rewards, dont you? <br> Now then, hurry up. Prepare yourself for combat and leave for the Execution Ground immediately. Prove to everybody the fact that even the undead who have been resurrected from the dungeon of purgatory will not be a match for us the Black Lion troop!"+htmlend
#-Part 2
p2_explanation = html+sophia+"This mission is to drive out the remnants of the Grecian military force that is currently encamped in the northwestern part of the Horseshoe Valley. Dont take them too lightly by thinking that they are mere rabble of defeated soldiers. Your opponents are ol mahums of the Bloody Axe army led by the Blood Lord Nurka. They are a formidable enemy that you shouldnt take too lightly.<br><a action=\"bypass -h Quest 333_BlackLionHunt p2_t\">Take on the mission.<\a> <br> <a action=\"bypass -h Quest 333_BlackLionHunt start_chose_parts\">Listen to the explanation about another mission.</a>"+htmlend
p2_take = html+sophia+"The enemies that you will have to defeat are <font color=\"LEVEL\">ol mahum guerillas, ol mahum raiders, ol mahum marksman, ol mahum sergeants and ol mahum captains</font>.<br>As a proof that you have defeated the enemy, bring me back the <font color=\"LEVEL\">bloodyaxe insignia</font> the symbol of the partisan army. The more proofs you bring, the greater your reward will be. Well, since you once worked under Captain Leopold, you already know the rule about proofs and rewards, dont you?<br>Now then, hurry up and leave for the Partisan Hideaway. Show them the wrath of the Black Lion troop to those rampaging ol mahums!"+htmlend
#-Part 3
p3_explanation = html+sophia+"The headquarters of delu lizardmen was originally located at the shore area in the southern part of Giran. However, lately, many of them are infiltrating into Dion territory. We dont know yet whether they are entering Dion just to find food or to prepare some large scale invasion. But what is clear is that they are making their movements with some clear goal. Our mission is to smash their units one by one and instill fear in them thereby discouraging them from settling down in this area.<br><a action=\"bypass -h Quest 333_BlackLionHunt p3_t\">Take on the mission.</a> <br> <a action=\"bypass -h Quest 333_BlackLionHunt start_chose_parts\">Listen to the explanation about another mission.</a>"+htmlend
p3_take = html+sophia+"The enemies that you will deal with are <font color=\"LEVEL\">Delu Lizardmen, Delu Lizardman Scouts and Delu Lizardman Warriors</font>. As a proof that you slayed them, bring back the <font color=\"LEVEL\">Delu Lizardmens' Teeth</font>. But be careful. Comparing with the felim tribe in Gludio or langk lizardman, they are much more violent and hostile.<br>The more proofs of victory you bring, the greater your reward will be. Well, since you once worked under Captain Leopold, you should already know the rule about proofs and rewards, dont you? <br>Well then, leave for the battleground. Trample down and destroy those lizards that are running amok without knowing their proper place!"+htmlend
#-Part 4
p4_explanation = html+sophia+"This mission has to deal with weird evil creatures called stacato that are infesting the Cruma Marshlands. Have you ever seen a stacato? It looks like an insect. Its a sinister race that gives you a creepy feeling. Their body is covered by a tight stakato chitin and they have sharp claws instead of hands. They also have surprisingly fast movements. You should never underestimate them. <br>To make matters worse, the Marshlands are inhabited by giant leeches, spiders and strange evil spirits hovering around the Tower of Giants. This makes the place very treacherous when one has to carry out military operations.<br><a action=\"bypass -h Quest 333_BlackLionHunt p4_t\">Take on the mission.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt start_chose_parts\">Listen to the explanation about another mission.</a>"+htmlend
p4_take = html+sophia+"The enemies you will have to destroy are <font color=\"LEVEL\">marsh stakatos, marsh stakato workers, marsh stakato soldiers and marsh stakato drones</font>. As a proof of your victory, bring me the claws of the stakatos you kill. As always, The more proofs of victory you bring, the greater your reward will be. <br>Now, get ready for combat and leave for the Cruma Marshlands immediately. This time, make sure to teach those stakatos the fearful lesson of the Black Lion troop!"+htmlend
#Redfoot
redfoot = "Mercenary Red Foot:<br>"
f_no_box = html+redfoot+"Hey brother! Did you tell me that youre currently on active duty? I know that must be hard work! Is there anything I can help you with?<br><a action=\"bypass -h Quest 333_BlackLionHunt f_info\">Ask whether he has any useful information.</a>"+htmlend
f_give_box = html+redfoot+"Hey brother! Did you tell me that youre currently on active duty? I know that must be hard work! Is there anything I can help you with?<br>What kind of box is that? Oh, I know. Thats a cargo box used by traders. Since you brought it to me I can assume that you dont have any intention of returning it to the merchant, am I right? All right. Ill open the box for you. Of course, you can have the contents of the box. Instead, Ill charge you a small fee. I think <font color=\"LEVEL\">650 adena</font> will be appropriate. Think of it as the price for opening the box and for keeping my mouth shut.<br><a action=\"bypass -h Quest 333_BlackLionHunt f_give\">Ask him to open the box for you.</a><br>"+back+htmlend
f_rnd_list = ["Some time ago, I overheard some dwarves talking among themselves in a blacksmiths shop The head of the dwarves perhaps he is called the first elder? Anyway, he was desperately looking for a scroll that had hieroglyphic characters of giants on it. Although I didnt get to hear the details, it seemed like some very critical secret regarding the giants scientific technology was written on it. I always thought that dwarves were just busying themselves with their work in blacksmith shops and being warehouse keepers. But what do you know I think they have been working on secret things while avoiding the scrutiny of humans.<br>",
"Some time ago, while I was talking with the members of the Dark Elf Guild, I found out that Dark Elves worship the Goddess Shilen!! Are you saying that everybody already knows about that? Well, I heard about it for the first time <br>Why would you want to worship a goddess of death It doesnt make any sense to me. But according to those who have been to the Dark Forest, the Temple of Shilen built by the Dark Elves is truly magnificent. They told me that the Abyssal Celebrants at the temple are gathering fragments of the statue of Goddess Shilen from everywhere!<br>",
"Have you ever heard of a hatchling? It is a cute baby dragon that has been hatched from the egg of a wyrm or a drake. Among pet handlers, I heard that there is someone who knows how to raise a hatchling as ones own pet I think his name is Cooper or something like that. If you are interested in keeping a hatchling as a pet, why dont you go see him!<br>",
"I will give you the information that a clan leader, who wants to grow the power of his clan would be interested in obtaining. In each area, there are aristocrats who give support to small clans. These aristocrats would include Sir Kristof Rodemai in Giran Castle Town and Sir Gustaf Athebaldt of Oren Castle Town. Of course they are not just philanthropists. I would say they would want something in return for their support of a clan, wouldnt you agree?<br>",
"Some time ago, I heard a rumor that there is a society of ancient coin collectors. At first, I thought that they must be collectors of some anniversary coins that are not very valuable. But later, I found out that the value of the coins they collect is extremely high. And members of this society are very enthusiastic about their collection activities that whoever brings some rare coins to them, they will trade them for some high priced items! I heard that in order to join the coin collection society, you have to go see a dwarf called Sorint at the Hunters Village.<br>",
"I heard that if you go near the Ivory Tower in Oren, you will find a fake alchemist. It is said that he goes around telling people that he can make some magic potion that will make peoples wishes come true Many people have fallen victim to his fake potion. But what is surprising is that once in a blue moon, after using the potion peoples wishes actually did come true. The problem is that this only happens very very rarely<br>",
"Hush! Come closer to me. Ill give you some information of great worth. I overheard traders talking among themselves. Some time ago, the cargo wagon of the Aden Business Association that was traveling from Giran to Dion had been robbed and an item of great value was stolen. It is a gem called the Imperial Diamond and it is a priceless gem. Well, since it was a gemstone that used to decorate a kings crown, it wouldnt be an ordinary item now would it? I wish I could have the opportunity to look at it even once in my life time<br>",
"Have you heard about the rumor? Antharas, the earthdragon who had been sleeping in Dragon Valley has awoken. This is terrible news If it comes out of the Lair of Antharas and runs amok, all of Giran region will fall into a state of pandemonium in no time <br>However, there is someone who is recruiting people to form a militia force to catch Antharas. It is a woman named Gabrielle in Giran Castle Town. However, does she really think that they will have any chance against the dragon Unfortunately, I think it is way beyond their power!<br>",
"In this village, there is a young man who is dreaming of becoming the best chef in the kingdom. His name is Jonas. Lately he has been working hard to prepare himself to compete in a culinary competition. He is looking for an adventurer who can find ingredients to make exotic dishes<br>",
"In Giran Castle Town, there is a young man whose only aim in life is to take revenge. Everybody has been telling him that its useless but he is determined to kill the earthdragon Antharas with his own hands. Every day, he makes special arrows. Furthermore, if anybody brings him the raw materials he needs to make the arrows, he will pay the person with an ample reward. If you are interested, why dont you go see him? His name is Belton and he works as a guard in Giran Castle Town.<br>",
"I will give you some information that will be useful to someone who travels a lot like yourself. According to the law of the land, the traders of this kingdom are not allowed to deal with criminals. But there are some traders who ignore this rule and sell their items to outlaws. These people include, Grocer Pano of Floran Village and Twyla who has set up her trade in the western section of the Dark Forest. Although they are business people, I think its shameless of them to deal with criminals just to make money.<br>",
"Would you like me to introduce you to a job opportunity? If you go to the northwestern area of Gludio, there is a farmer whose name is Peter. He is currently hiring mercenaries to chase out turek orcs that have settled down near his farm With your ability, you could deal with turek orcs with no problem, right? <br>By the way, did you know that relics of ancient kingdoms are often found in that area? While dealing with turek orcs, I heard that some people have discovered precious ancient relics by accident.<br>",
"Have you heard of the Aden Business Guild? It is an association of human traders. Since they saw that dwarven traders and warehouse keepers were generating a lot of profit while engaging in their organizational activities, humans decided to imitate them by forming a guild of their own. However, it seems to me that the business savvy of a dwarf is inborn No matter how hard humans try, I dont think they can keep up with dwarves.<br>On top of that, adding insult to injury, evil spirits frequently attack the guilds cargo wagons and steal their valuable goods making the humans suffer great losses.<br>",
"Some time ago, while I was talking with the members of the Dark Elf Guild, I found out that Dark Elves worship the Goddess Shilen!! Are you saying that everybody already knows about that? Well, I heard about it for the first time <br>Why would you want to worship a goddess of death It doesnt make any sense to me. But according to those who have been to the Dark Forest, the Temple of Shilen built by the Dark Elves is truly magnificent. They told me that the Abyssal Celebrants at the temple are gathering fragments of the statue of Goddess Shilen from everywhere!<br>",
"Have you ever heard of a hatchling? It is a cute baby dragon that has been hatched from the egg of a wyrm or a drake. Among pet handlers, I heard that there is someone who knows how to raise a hatchling as ones own pet I think his name is Cooper or something like that. If you are interested in keeping a hatchling as a pet, why dont you go see him!<br>",
"I will give you the information that a clan leader, who wants to grow the power of his clan would be interested in obtaining. In each area, there are aristocrats who give support to small clans. These aristocrats would include Sir Kristof Rodemai in Giran Castle Town and Sir Gustaf Athebaldt of Oren Castle Town. Of course they are not just philanthropists. I would say they would want something in return for their support of a clan, wouldnt you agree?<br>",
"Some time ago, I heard a rumor that there is a society of ancient coin collectors. At first, I thought that they must be collectors of some anniversary coins that are not very valuable. But later, I found out that the value of the coins they collect is extremely high. And members of this society are very enthusiastic about their collection activities that whoever brings some rare coins to them, they will trade them for some high priced items! I heard that in order to join the coin collection society, you have to go see a dwarf called Sorint at the Hunters Village.<br>",
"I heard that if you go near the Ivory Tower in Oren, you will find a fake alchemist. It is said that he goes around telling people that he can make some magic potion that will make peoples wishes come true Many people have fallen victim to his fake potion. But what is surprising is that once in a blue moon, after using the potion peoples wishes actually did come true. The problem is that this only happens very very rarely<br>",
"Mercenary Red Foot<br>",
"Have you heard about the rumor? Antharas, the earthdragon who had been sleeping in Dragon Valley has awoken. This is terrible news If it comes out of the Lair of Antharas and runs amok, all of Giran region will fall into a state of pandemonium in no time <br>However, there is someone who is recruiting people to form a militia force to catch Antharas. It is a woman named Gabrielle in Giran Castle Town. However, does she really think that they will have any chance against the dragon Unfortunately, I think it is way beyond their power!<br>",
]
f_no_news = html+redfoot+"Sorry. I dont have any new information for you. Why dont you stop by again later.<br>"+back+htmlend
f_more_help = html+redfoot+"Is there anything else I can help you with?<br><a action=\"bypass -h Quest 333_BlackLionHunt f_give\">Ask him to open the box for you.</a>"+htmlend
f_no_more_box = html+redfoot+"I dont know what to say to you! You dont even have a Cargo Box with you. But are you still asking me to open one?<br><br><a action=\"bypass -h Quest 333_BlackLionHunt f_info\">Ask whether he has any useful information.</a>"+htmlend
f_more_help2 = html+redfoot+"Is there anything else you would like me to help you with?<br><a action=\"bypass -h Quest 333_BlackLionHunt f_give\">Ask him to open the cargo box for you.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt f_info\">Ask him whether he has any useful information for you.</a>"+htmlend
f_not_adena = html+redfoot+"Listen here brother! This is not enough money!!! You didnt think by any chance that I would give out the information to you for free, did you? This is business for me too, understand!<br>"+back+htmlend
#Rupio
rupio = "Blacksmith Rupio:<br>"
r_no_items = html+rupio+"Are you a Black Lion mercenary? What's the reason for visiting our blacksmith shop...? Have you come to have a weapon made?"+htmlend
r_items = html+rupio+"What can I help with?<br><a action=\"bypass -h Quest 333_BlackLionHunt r_give_statue\">Ask to put together pieces of statue.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt r_give_tablet\">Ask to put together stone tablet."+htmlend
r_statue_pieces = html+rupio+"How did you know that my hobby was relic restoration? But to restore a stone item to its original condition, you can't be missing even one piece. If you want me to put the statue of the goddess back together, you'll need all the pieces, which are <font color=\"LEVEL\">head, torso, arms and legs</font>), right?"+htmlend
r_statue_brockes = html+rupio+"OK, shall I demonstrate my talents now? First... Attach the legs to the base... Then the torso above that... And if we match the joints of the arms and head properly... Huh? The statue just crumbled... I knew that it was really old and the material weak but.. When I just applied some pressure to connect... Oh, I'm really sorry."+htmlend
r_statue_complete = html+rupio+"OK, shall I demonstrate my talents now? First... Attach the legs to the base... Then the torso above that... And if we match the joints of the arms and head properly... OK! It's finished! The joints of the connecting parts are still visible but overall, it looks perfect, don't you think? Hmm... Is it the image of the goddess of Shilen? Looking at it carefully, it's really a beautiful statue."+htmlend
r_tablet_pieces = html+rupio+"How did you know that my hobby was relic restoration? But with relics like tablets on which words are written, we can't read them if there is even one piece missing and so there's really no point in just putting the other pieces together. In my experience, square-shaped relics like stone tablets often break into <font color=\"LEVEL\">four pieces</font>."+htmlend
r_tablet_brockes = html+rupio+"OK, shall I demonstrate my talents now? Well, this fragment looks like it goes to the very bottom section of the stone tablet... And this piece is above that... Oh! The tablet just crumbled... I should have expected that the material would be really weak from having been exposed to the rain and wind for such a long time... Darn...! I'm really sorry for making such a big mistake."+htmlend
r_tablet_complete = html+rupio+"OK, shall I demonstrate my talents now? Well, this fragment looks like it goes to the very bottom section of the stone tablet... And this piece is above that... It's like putting together a puzzle... OK... It's finished! It's an ancient stone tablet... I'm really curious whether some secrets of history are recorded on it! Hmm... But these letters look like writing of the titans... I've seen this somewhere before...! Where in the world could...?!"+htmlend
#Lockirin
lockirin = "First Elder Lockirin:<br>"
l_no_tablet = html+lockirin+"I'm extremely interested in the civilization of the titans. In particular, I'd pay any amount to hold in my hands a clay tablet on which the titan writing is written. If I was some high-class person such as yourself, I might have seen such a thing as that. They say that ancient clay tablets are often found in the Dion region..."+htmlend
l_just_pieces = html+lockirin+"This clay tablet... Where in the world could...?! It's just one part, but... Maphr...!<br> Look at this, young fellow! Where in the world did you find this? If you can gather the other pieces too and assemble them into a single item, I'll give you something great in gratitude! I promise in the name of the first elder of the guild federation!"+htmlend
l_tablet = html+lockirin+"This clay tablet... Where in the world could...?! It's just one part, but... Maphr...! Where did such a precious thing...? Look at this, young fellow! I'll present to you a big gift of gratitude so please give this tablet to me!<br><a action=\"bypass -h Quest 333_BlackLionHunt l_give\">Hand over clay tablet.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt l_info\">Don't hand over."+htmlend
l_give = html+lockirin+"I'm really thankful! Finally the deep-rooted work of our guild federation...! Here, take this gift of gratitude! And if you find more of these clay tablets in the future, please bring those to me also! I'll express my thanks adequately!"+htmlend
l_info = html+lockirin+"Huh...?! I said I'd express my thanks abundantly but you still refuse... Look here, young fellow. Do you really think you can sell that tablet somewhere else at a higher price? I guarantee that no matter how hard you look, you won't find anyone that will give you as much as I will. If your opinion changes, please come to me again. Turn over that tablet to me anytime and I'll give you a big gift of gratitude as I promised!"+htmlend
#Undiras
undiras = "Abyssal Celebrant Undrias:<br>"
u_no_statue = html+undiras+"Throughout the continent this temple is the only place where the goddess Shilen is enshrined. Due to the humans distorted religious reformation, our goddess that we worship has been misunderstood to be a sinister being that brings death and destruction. But we dark elves still worship Shilen as our creator and as a goddess who is in charge of life and death.<br>Unfortunately, when this place was invaded by the allied forces of humans and elves, many sacred objects which were decorating the temple were lost. Especially, many statues of the goddess Shilen which were exquisitely crafted were stolen. We the Abyssal Celebrants are willing to give a great reward to those who can recover the statues for us."+htmlend
u_just_pieces = html+undiras+"Oh this piece must be? Although its only part of it still this piece came from one of the statues of Shilen that were lost! Where in the world did you find it? Can you find the rest of the parts and bring us a completely restored statue? If you do, we will pay you a large sum of reward money!"+htmlend
u_statue = html+undiras+"Oh this piece must be? Although its only part of it still this piece came from one of the statues of Shilen that were lost! Where in the world did you find it? Where did you find this sacred object? This statue is a sacred object for us dark elves. I will pay you a great sum of money if you will hand it over to me. After all, it is not of much use to you any way, right?<br><a action=\"bypass -h Quest 333_BlackLionHunt u_give\">Give him the statue of Shilen.</a><br><a action=\"bypass -h Quest 333_BlackLionHunt u_info\">Refuse to give him the statue of Shilen.</a>"+htmlend
u_give = html+undiras+"Due to the humans distorted religious reformation, our goddess that we worship has been misunderstood to be a sinister being that brings death and destruction. But we dark elves still worship Shilen as our creator and as a goddess who is in charge of life and death. Unfortunately, when this place was invaded by the allied forces of humans and elves, many sacred objects which were decorating the temple were lost. Especially, many statues of the goddess Shilen which were exquisitely crafted were stolen. The statue you brought here is one of the statues that were lost at that time. Thank you so much. Here is the reward money I promised you. If you find any more statues like this, please bring them to me. Well, then may the divine protection of abyss be with you!"+htmlend
u_info = html+undiras+"That statue is a sacred object for us dark elves. Anyway, if you keep it for yourself, you wont have much use for it. Furthermore, if you carry a statue of Shilen with you and walk around among humans, people will accuse you of being a pagan. You would be lucky if you are not burnt to death at the stake. Anyway, if you change your mind, please come back and see me. If you hand over the statue to me, I am willing to pay you a generous sum of reward money. Well, then may the divine protection of abyss be with you."+htmlend
#Morgan
morgan = "Guilde Member Morgan:<br>"
m_no_box = html+morgan+"You're a member of the Black Lion Mercenaries, aren't you? I heard that you are working hard to get rid of the evil creatures in this area recently. Please keep up the good work in the future too!"+htmlend
m_box = html+morgan+"You're a member of the Black Lion Mercenaries, aren't you? I heard that you are working hard to get rid of the evil creatures in this area recently. Please keep up the good work in the future too! But do you have some business with me...?<br><a action=\"bypass -h Quest 333_BlackLionHunt m_give\">Give freight box.</a>"+htmlend
m_rnd_1 = html+morgan+"It's a freight box of our commercial guild!? It is freight that was stolen from our carts having been attacked by evil creatures recently. But there is a lot of freight that was looted and so our losses are really big. Still, it is really fortunate that you could recover this part.<br>As a representative of the commercial guild, I thank you for your efforts. Here, take this gift of gratitude, even though it's not much. And I present you with these (<font color=\"LEVEL\">coins from our guild</font>). It's like a plaque of appreciation that we give to people that have contributed to the commercial guild.<br><a action=\"bypass -h Quest 333_BlackLionHunt m_reward\">Go back.</a>"+htmlend
m_rnd_2 = html+morgan+"You've gotten another freight box. I'm thankful again. The freight that is being looted by the evil creatures is increasing by the day but without the help of mercenaries like yourself, the losses of our commercial guild would be so much more. Here, take this gift of gratitude!. And, as always, I present you with these <font color=\"LEVEL\">coins from our guild</font>). Please keep up the good work in the future too!<br><a action=\"bypass -h Quest 333_BlackLionHunt m_reward\">Go back.</a>"+htmlend
m_rnd_3 = html+morgan+"I really thank you for recovering so many freight boxes like this for us. If the financial situation of our commercial guild were a bit better, we would hire competent mercenaries such as yourself as bodyguards... In that case, the evil creatures would never be able to loot our stuff, no?<br>OK! Here, take the gift of gratitude! The amount of the gratitude money increased greatly after I spoke to my superiors about the hard work you have been doing for our guild. As this is appropriate acknowledgment for your hard work, please take it without refusing. And, as always, I present you with these <font color=\"LEVEL\">coins from our guild.</font><br><a action=\"bypass -h Quest 333_BlackLionHunt m_reward\">Go back.</a>"+htmlend
m_no_more_box = html+morgan+"Freight box...? What box are you talking about? It doesn't look to me as if you have one of those..."+htmlend
m_reward = html+morgan+"Is there anything I can do for you...?<br><a action=\"bypass -h Quest 333_BlackLionHunt m_give\">Give freight box.</a>"+htmlend
import sys
from com.l2jserver import Config
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
#This Put all Mob Ids from dictionari in a list. So its possible to add new mobs, to one of this 4 Areas, without modification on the addKill Part.
MOBS=DROPLIST.keys()
def giveRewards(st,item,count):
st.giveItems(ADENA_ID,35*count)
st.takeItems(item,count)
if count < 20:
return
if count<50:
st.giveItems(LIONS_CLAW,1)
elif count<100:
st.giveItems(LIONS_CLAW,2)
else:
st.giveItems(LIONS_CLAW,3)
return
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
part = st.getInt("part")
if event == "start" :
st.set("cond","1")
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
#just to go with the official, until we have the option to make the take part invisible, like on officials.
st.takeItems(BLACK_LION_MARK,1)
st.giveItems(BLACK_LION_MARK,1)
return start_explain
elif event == "p1_t":
st.set("part","1")
st.giveItems(SOPHIAS_LETTER1,1)
return p1_take
elif event == "p2_t":
st.set("part","2")
st.giveItems(SOPHIAS_LETTER2,1)
return p2_take
elif event == "p3_t":
st.set("part","3")
st.giveItems(SOPHIAS_LETTER3,1)
return p3_take
elif event == "p4_t":
st.set("part","4")
st.giveItems(SOPHIAS_LETTER4,1)
return p4_take
elif event == "exit":
st.takeItems(BLACK_LION_MARK,1)
st.exitQuest(1)
return exit
elif event == "continue":
claw=int(st.getQuestItemsCount(LIONS_CLAW)/10)
check_eye=st.getQuestItemsCount(LIONS_EYE)
if claw :
st.giveItems(LIONS_EYE,claw)
eye=st.getQuestItemsCount(LIONS_EYE)
st.takeItems(LIONS_CLAW,claw*10)
ala_count=3
soul_count=100
soe_count=20
heal_count=20
spir_count=50
if eye > 9:
ala_count=4
soul_count=400
soe_count=30
heal_count=50
spir_count=200
elif eye > 4:
spir_count=100
soul_count=200
heal_count=25
while claw > 0:
n = st.getRandom(5)
if n < 1 :
st.rewardItems(ALACRITY_POTION,ala_count)
elif n < 2 :
st.rewardItems(SOULSHOT_D,soul_count)
elif n < 3:
st.rewardItems(SCROLL_ESCAPE,soe_count)
elif n < 4:
st.rewardItems(SPIRITSHOT_D,spir_count)
elif n == 4:
st.rewardItems(HEALING_POTION,heal_count)
claw-=1
if check_eye:
return p_eye
else:
return p_first_eye
else:
return start_continue
elif event == "leave":
if part == 1:
order = SOPHIAS_LETTER1
elif part == 2:
order = SOPHIAS_LETTER2
elif part == 3:
order = SOPHIAS_LETTER3
elif part == 4:
order = SOPHIAS_LETTER4
else:
order = 0
st.set("part","0")
if order:
st.takeItems(order,1)
return p_leave_mission
elif event == "f_info":
text = st.getInt("text")
if text<4:
rnd=int(st.getRandom(20))
st.set("text",str(text+1))
text_rnd = html+redfoot+f_rnd_list[rnd]+back+htmlend
return text_rnd
else:
return f_no_news
elif event == "f_give":
if st.getQuestItemsCount(CARGO_BOX1) :
if st.getQuestItemsCount(ADENA_ID)>=OPEN_BOX_PRICE:
st.takeItems(CARGO_BOX1,1)
st.takeItems(ADENA_ID,650)
random = st.getRandom(162)
standart = "All right, lets go ahead and open this box Opening a padlock like this one is a piece of cake Here we go! There that was too easy. Now, lets see whats in the box.<br>"
statue = "Whats this? A fragment of a stone statue? Hmm it looks like a Statue of Shilen, the goddess Isnt she the goddess of death? For some reason, I dont have a good feeling about this. But, if this was not a fragment but the complete statue, it could have fetched a large amount of money There is someone who can put together a broken relic like this Hes Blacksmith Rupio. If you collect all the fragments of the statue and take them to him, he will put them together to restore it and make it complete.<br>"
tablet = "A broken tablet fragment? Hmm It has some incomprehensible symbols on it. Is this a relic from ancient times? If it was not a fragment but a complete tablet, this might have been a very valuable historical object. If you can find all the fragments of the tablet, you can get them to be restored to its complete form If you are interested, go see <font color=\"LEVEL\">Rupio</font> the blacksmith. He is an expert of relic restoration.<br>"
if random < 21 :
st.rewardItems(GLUDIO_APPLE,1)
return html+redfoot+standart+"<br>Fruit? Oh, they must be apples grown in Gludio! Mmm they look delicious. If you take them to the market before they go bad, I guess you will be able to make some money.<br>"+back+htmlend
elif random < 41:
st.rewardItems(CORN_MEAL,1)
return html+redfoot+standart+"Isnt this corn meal? Isnt this used to feed pigs? Well, anyhow, since its not anything you can use for yourself, you should take it to the market to sell it.<br>"+back+htmlend
elif random < 61:
st.rewardItems(WOLF_PELTS,1)
return html+redfoot+standart+"<br>Whats this pelts? Dire Wolf Pelts? They seem to have been tanned by a leather craftman. But they are not of high quality. Maybe they can be used to make leather hats? Well, anyhow, if you take them to the market, you will get some money for them.<br>"+back+htmlend
elif random < 74:
st.rewardItems(MONNSTONE,1)
return html+redfoot+standart+"<br>A gem? Oh wow, a Moonstone! You should be able to sell it at a fairly good price.<br>"+back+htmlend
elif random < 86:
st.rewardItems(GLUDIO_WEETS_FLOWER,1)
return html+redfoot+standart+"<br>Hmm? Whats this powder? Should I taste it? Yes, this must be Gludio Wheat Flour! It can be used for baking bread I guess. Well, anyhow, you should be able to sell it for a decent price at the market.<br>"+back+htmlend
elif random < 98:
st.rewardItems(SPIDERSILK_ROPE,1)
return html+redfoot+standart+"Whats this? Its Spidersilk Rope! Its a very strong and light rope that is made from the spidersilk that is collected from the Tarantula Spiders webs in the Spine Mountain Range. If you take it to a store, Im sure you should be able to get a really good price for it.<br>"+back+htmlend
elif random < 99:
st.rewardItems(ALEXANDRIT,1)
return html+redfoot+standart+back+htmlend
elif random < 109:
st.rewardItems(SILVER_TEA,1)
return html+redfoot+standart+"Hmm? A silver bowl? And a teacup? They seem to be of pretty high quality! It seems like they were made by elven artisans. I am not interested in such exquisite items but, anyway, if you take them to a store, you should be able to sell them for a fairly good price.<br>"+back+htmlend
elif random < 119:
st.rewardItems(GOLEM_PART,1)
return html+redfoot+standart+"Hmm? Machine parts? This Guild Mark seems to be that of the Black Anvil Guild what do you think? Although I dont know for sure, these seem to be parts that are used by dwarves to do repair work on golems. If you take them to a store, I think you will be able to sell them at a pretty reasonable price.<br>"+back+htmlend
elif random < 123:
st.rewardItems(FIRE_EMERALD,1)
return html+redfoot+standart+"Whats this gem? Ah! Its a Fire Emerald! Dont you know about it? its a rare and precious gemstone that gives out a strong red light when its exposed to sun light. You are so lucky! You can take it to a store and sell it at a very high price.<br>"+back+htmlend
elif random < 127:
st.rewardItems(SILK_FROCK,1)
return html+redfoot+standart+"Isnt this a dress?! This is a silk dress for a woman. It looks pretty expensive, dont you think? Take a look at this design. This is an item that has been imported from Avella of the East. At a time like this, who would use such a luxurious item? This must be ordered by a noblewoman who has a liking for foreign products dont you think? You should take this to a store and sell it off! Im sure you will get a very high price for it.<br>"+back+htmlend
elif random < 131:
st.rewardItems(PORCELAN_URN,1)
return html+redfoot+standart+back+htmlend
elif random < 132:
st.rewardItems(IMPERIAL_DIAMOND,1)
return html+redfoot+standart+"Hmm? Dont tell me! I dont believe it!!! Wow, an Imperial Diamond? Isnt this the one that was used to decorate the crown of the king of Elmo-Aden? Its truly beautiful! You are extremely lucky! You got yourself a priceless item. If you take it to the market, Im sure you will be able to get a huge amount of money for it.<br>"+back+htmlend
elif random < 147:
random_stat=st.getRandom(4)
if random_stat == 3 :
st.giveItems(STATUE_SHILIEN_HEAD,1)
return html+redfoot+standart+statue+back+htmlend
elif random_stat == 0 :
st.giveItems(STATUE_SHILIEN_TORSO,1)
return html+redfoot+standart+statue+back+htmlend
elif random_stat == 1 :
st.giveItems(STATUE_SHILIEN_ARM,1)
return html+redfoot+standart+statue+back+htmlend
elif random_stat == 2 :
st.giveItems(STATUE_SHILIEN_LEG,1)
return html+redfoot+standart+statue+back+htmlend
elif random < 162:
random_tab=st.getRandom(4)
if random_tab == 0 :
st.giveItems(FRAGMENT_ANCIENT_TABLE1,1)
return html+redfoot+standart+tablet+back+htmlend
elif random_tab == 1:
st.giveItems(FRAGMENT_ANCIENT_TABLE2,1)
return html+redfoot+standart+tablet+back+htmlend
elif random_tab == 2 :
st.giveItems(FRAGMENT_ANCIENT_TABLE3,1)
return html+redfoot+standart+tablet+back+htmlend
elif random_tab == 3 :
st.giveItems(FRAGMENT_ANCIENT_TABLE4,1)
return html+redfoot+standart+tablet+back+htmlend
else:
return f_not_adena
else:
return f_no_more_box
elif event in ["r_give_statue","r_give_tablet"]:
if event == "r_give_statue":
items = statue_list
item = COMPLETE_STATUE
pieces = r_statue_pieces
brockes = r_statue_brockes
complete = r_statue_complete
elif event == "r_give_tablet":
items = tablet_list
item = COMPLETE_TABLET
pieces = r_tablet_pieces
brockes = r_tablet_brockes
complete = r_tablet_complete
count=0
for id in items:
if st.getQuestItemsCount(id):
count+=1
if count>3:
for id in items:
st.takeItems(id,1)
if st.getRandom(2)==1 :
st.giveItems(item,1)
return complete
else:
return brockes
elif count<4 and count!=0:
return pieces
else:
return r_no_items
elif event == "l_give" :
if st.getQuestItemsCount(COMPLETE_TABLET):
st.takeItems(COMPLETE_TABLET,1)
st.giveItems(ADENA_ID,30000)
return l_give
else:
return no_tablet
elif event == "u_give" :
if st.getQuestItemsCount(COMPLETE_STATUE) :
st.takeItems(COMPLETE_STATUE,1)
st.giveItems(ADENA_ID,30000)
return u_give
else:
return no_statue
elif event == "m_give":
if st.getQuestItemsCount(CARGO_BOX1):
coins = st.getQuestItemsCount(GUILD_COIN)
count = int(coins/40)
if count > 2 : count = 2
st.giveItems(GUILD_COIN,1)
st.giveItems(ADENA_ID,(1+count)*100)
st.takeItems(CARGO_BOX1,1)
random = st.getRandom(3)
if random == 0:
return m_rnd_1
elif random == 1:
return m_rnd_2
else:
return m_rnd_3
else:
return m_no_box
elif event == "start_parts":
return start_parts
elif event == "m_reward":
return m_reward
elif event == "u_info":
return u_info
elif event == "l_info":
return l_info
elif event == "p_redfoot":
return p_redfoot
elif event == "p_trader_info":
return p_trader_info
elif event == "start_chose_parts":
return start_parts
elif event == "p1_explanation":
return p1_explanation
elif event == "p2_explanation":
return p2_explanation
elif event == "p3_explanation":
return p3_explanation
elif event == "p4_explanation":
return p4_explanation
elif event == "f_more_help":
return f_more_help
elif event == "r_exit":
return r_exit
def onTalk (self,npc,player):
htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
id = st.getState()
if npcId != NPC[0] and id != State.STARTED : return htmltext
if id == State.CREATED :
if npcId == NPC[0]:
if st.getQuestItemsCount(BLACK_LION_MARK) :
if player.getLevel() >24 :
return start_start
else:
st.exitQuest(1)
return start_error1
else:
st.exitQuest(1)
return start_error2
else:
part=st.getInt("part")
if npcId==NPC[0]:
if part == 1:
item = UNDEAD_ASH
elif part == 2:
item = BLOODY_AXE_INSIGNIAS
elif part == 3:
item = DELU_FANG
elif part == 4:
item = STAKATO_TALONS
else:
return start_ask_again
count=st.getQuestItemsCount(item)
box=st.getQuestItemsCount(CARGO_BOX1)
if box and count:
giveRewards(st,item,count)
return p_both_info
elif box:
return p_only_box_info
elif count:
giveRewards(st,item,count)
return p_only_item_info
else:
return p_no_items
elif npcId==NPC[1]:
if st.getQuestItemsCount(CARGO_BOX1):
return f_give_box
else:
return f_no_box
elif npcId==NPC[2]:
count=0
for items in statue_list:
if st.getQuestItemsCount(items):
count+=1
for items in tablet_list:
if st.getQuestItemsCount(items):
count+=1
if count:
return r_items
else:
return r_no_items
elif npcId==NPC[3]:
if st.getQuestItemsCount(COMPLETE_STATUE):
return u_statue
else:
count=0
for items in statue_list:
if st.getQuestItemsCount(items):
count+=1
if count:
return u_just_pieces
else:
return u_no_statue
elif npcId==NPC[4]:
if st.getQuestItemsCount(COMPLETE_TABLET):
return l_tablet
else:
count=0
for items in tablet_list:
if st.getQuestItemsCount(items):
count+=1
if count:
return l_just_pieces
else:
return l_no_tablet
elif npcId==NPC[5]:
if st.getQuestItemsCount(CARGO_BOX1):
return m_box
else:
return m_no_box
def onKill(self,npc,player,isPet):
st = player.getQuestState(qn)
if not st : return
if st.getState() != State.STARTED : return
npcId = npc.getNpcId()
part,allowDrop,chancePartItem,chanceBox,partItem=DROPLIST[npcId]
random1 = st.getRandom(101)
random2 = st.getRandom(101)
mobLevel = npc.getLevel()
playerLevel = player.getLevel()
if playerLevel - mobLevel > 8:
chancePartItem/=3
chanceBox/=3
if allowDrop and st.getInt("part")==part :
if random1<chancePartItem :
st.giveItems(partItem,1)
st.playSound("ItemSound.quest_itemget")
if random2<chanceBox :
st.giveItems(CARGO_BOX1,1)
if not random1<chancePartItem:
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(333,qn,"BlackLionHunt")
QUEST.addStartNpc(NPC[0])
for npcId in NPC:
QUEST.addTalkId(npcId)
for mobId in MOBS:
QUEST.addKillId(mobId)
| 102.410866
| 1,132
| 0.721784
| 9,941
| 60,320
| 4.323207
| 0.147269
| 0.007097
| 0.016032
| 0.017265
| 0.434116
| 0.396538
| 0.371315
| 0.353468
| 0.343858
| 0.323429
| 0
| 0.016975
| 0.208919
| 60,320
| 589
| 1,133
| 102.410866
| 0.883671
| 0.030504
| 0
| 0.218631
| 0
| 0.178707
| 0.660181
| 0.002816
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009506
| false
| 0.058935
| 0.011407
| 0
| 0.180608
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
8b0fd27f6d8d265278e3e12b23034e8e723b55bf
| 43
|
py
|
Python
|
lantz/drivers/amplifier_research/__init__.py
|
mtsolmn/lantz-drivers
|
f48caf9000ddd08f2abb837d832e341410af4788
|
[
"BSD-3-Clause"
] | 6
|
2016-04-13T12:59:18.000Z
|
2020-06-24T17:43:04.000Z
|
lantz/drivers/amplifier_research/__init__.py
|
mtsolmn/lantz-drivers
|
f48caf9000ddd08f2abb837d832e341410af4788
|
[
"BSD-3-Clause"
] | 3
|
2019-07-12T13:44:17.000Z
|
2020-10-22T19:32:08.000Z
|
lantz/drivers/amplifier_research/__init__.py
|
mtsolmn/lantz-drivers
|
f48caf9000ddd08f2abb837d832e341410af4788
|
[
"BSD-3-Clause"
] | 9
|
2019-04-03T17:07:03.000Z
|
2021-02-15T21:53:55.000Z
|
from .arxx import ARxx
__all__ = ['ARxx']
| 10.75
| 22
| 0.674419
| 6
| 43
| 4.166667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186047
| 43
| 3
| 23
| 14.333333
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0.093023
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
8b13a647ce2af837a47d689692e6dc04973fae52
| 135
|
py
|
Python
|
helloworld/helloworld.py
|
jtap159/helloworld
|
b0cae97df867a23ad0c64c521b18bf8a37676319
|
[
"MIT"
] | null | null | null |
helloworld/helloworld.py
|
jtap159/helloworld
|
b0cae97df867a23ad0c64c521b18bf8a37676319
|
[
"MIT"
] | null | null | null |
helloworld/helloworld.py
|
jtap159/helloworld
|
b0cae97df867a23ad0c64c521b18bf8a37676319
|
[
"MIT"
] | null | null | null |
def sayhello(name=None):
if name is None:
return "Hello World, Everyone!"
else:
return f"Hello World, {name}"
| 19.285714
| 39
| 0.592593
| 18
| 135
| 4.444444
| 0.666667
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.296296
| 135
| 6
| 40
| 22.5
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0.30597
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 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
|
8b40754b65f90fb492452586f8446d926f226618
| 114
|
py
|
Python
|
src/logic/tape.py
|
leonardo-delfino/Turing-machine-simulator
|
b4269ab8ae8000f23b6adb4b6f08d1ed0c9e9899
|
[
"MIT"
] | 1
|
2021-12-04T20:33:11.000Z
|
2021-12-04T20:33:11.000Z
|
src/logic/tape.py
|
leonardodelfinodev/Turing-machine-simulator
|
b4269ab8ae8000f23b6adb4b6f08d1ed0c9e9899
|
[
"MIT"
] | null | null | null |
src/logic/tape.py
|
leonardodelfinodev/Turing-machine-simulator
|
b4269ab8ae8000f23b6adb4b6f08d1ed0c9e9899
|
[
"MIT"
] | null | null | null |
class Tape(object):
blank = " "
def __init__(self, tape):
self.tape = tape
self.head = 0
| 16.285714
| 29
| 0.526316
| 14
| 114
| 4
| 0.642857
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013514
| 0.350877
| 114
| 6
| 30
| 19
| 0.743243
| 0
| 0
| 0
| 0
| 0
| 0.008772
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 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
|
8c6cd6d39efb17cae941cb8baf36c0366f6b4d61
| 2,148
|
py
|
Python
|
watchmen/database/topic/topic_storage_template.py
|
Indexical-Metrics-Measure-Advisory/watchmen-data-processor
|
d50b93e92868500552416997707d71720487bd77
|
[
"MIT"
] | null | null | null |
watchmen/database/topic/topic_storage_template.py
|
Indexical-Metrics-Measure-Advisory/watchmen-data-processor
|
d50b93e92868500552416997707d71720487bd77
|
[
"MIT"
] | null | null | null |
watchmen/database/topic/topic_storage_template.py
|
Indexical-Metrics-Measure-Advisory/watchmen-data-processor
|
d50b93e92868500552416997707d71720487bd77
|
[
"MIT"
] | null | null | null |
from pydantic import BaseModel
from watchmen.database.singleton import singleton
from watchmen.database.storage.storage_interface import Pageable, DataPage
@singleton
class TopicStorageEngine(object):
template = None
def __init__(self, template):
self.template = template
def topic_data_insert_one(self, one: any, topic_name: str) -> tuple:
return self.template.topic_data_insert_one(one, topic_name)
def topic_data_insert_(self, data: list, topic_name: str):
return self.template.topic_data_insert_(data, topic_name)
def topic_data_delete_(self, where, name):
return self.template.topic_data_delete_(where, name)
def drop_topic_data_table(self, name):
return self.template.drop_topic_data_table(name)
def topic_data_update_one(self, id_: int, one: any, topic_name: str):
return self.template.topic_data_update_one(id_, one, topic_name)
def topic_data_update_one_with_version(self, id_: int, version_: int, one: any, topic_name: str):
return self.template.topic_data_update_one_with_version(id_, version_, one, topic_name)
def topic_data_update_(self, where: dict, updates: dict, name: str):
return self.template.topic_data_update_(where, updates, name)
def topic_data_find_by_id(self, id_: int, topic_name: str) -> any:
return self.template.topic_data_find_by_id(id_, topic_name)
def topic_data_find_one(self, where: dict, topic_name: str) -> any:
return self.template.topic_data_find_one(where, topic_name)
def topic_data_find_(self, where, topic_name):
return self.template.topic_data_find_(where, topic_name)
def topic_data_find_with_aggregate(self, where, topic_name, aggregate):
return self.template.topic_data_find_with_aggregate(where, topic_name, aggregate)
def topic_data_list_all(self, topic_name) -> list:
return self.template.topic_data_list_all(topic_name)
def topic_data_page_(self, where: dict, sort: list, pageable: Pageable, model: BaseModel, name: str) -> DataPage:
return self.template.topic_data_page_(where, sort, pageable, model, name)
| 41.307692
| 117
| 0.747672
| 309
| 2,148
| 4.81877
| 0.152104
| 0.157152
| 0.157152
| 0.185359
| 0.542646
| 0.429819
| 0.271995
| 0.191404
| 0.138348
| 0.138348
| 0
| 0
| 0.162942
| 2,148
| 51
| 118
| 42.117647
| 0.828142
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.411765
| false
| 0
| 0.088235
| 0.382353
| 0.941176
| 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
|
8c7758090c42e5b6cfbd522c5853ce842614b2ee
| 185
|
py
|
Python
|
text_studio/__init__.py
|
tevnpowers/thesis
|
af55bb47db34d90fcef1de073d16a6a0dff43161
|
[
"MIT"
] | 2
|
2020-03-13T22:57:23.000Z
|
2020-03-13T22:57:46.000Z
|
text_studio/__init__.py
|
tevnpowers/thesis
|
af55bb47db34d90fcef1de073d16a6a0dff43161
|
[
"MIT"
] | null | null | null |
text_studio/__init__.py
|
tevnpowers/thesis
|
af55bb47db34d90fcef1de073d16a6a0dff43161
|
[
"MIT"
] | null | null | null |
from .action import Action
from .annotator import Annotator
from .data_loader import DataLoader
from .dataset import Dataset
from .pipeline import Pipeline
__version__ = "0.0.1-alpha"
| 23.125
| 35
| 0.810811
| 26
| 185
| 5.576923
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018634
| 0.12973
| 185
| 7
| 36
| 26.428571
| 0.881988
| 0
| 0
| 0
| 0
| 0
| 0.059459
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.833333
| 0
| 0.833333
| 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
|
8c7c8ad7555f23940d61e6d43f0d1a53a644c6ad
| 12
|
py
|
Python
|
corpus4_construction/snopes_ml/settings.py
|
UKPLab/conll2019-snopes-crawling
|
3c744f5a1bad1bcd6c38819ea03f7f41d89d9d76
|
[
"Apache-2.0"
] | 3
|
2019-09-01T08:43:37.000Z
|
2022-03-02T12:35:33.000Z
|
corpus4_construction/snopes_ml/settings.py
|
Barry-Menglong-Yao/conll2019-snopes-crawling
|
f803a99e27866036b92175c7d9786611ad1f389b
|
[
"Apache-2.0"
] | 1
|
2020-10-23T20:31:41.000Z
|
2020-10-23T20:31:41.000Z
|
corpus4_construction/snopes_ml/settings.py
|
Barry-Menglong-Yao/conll2019-snopes-crawling
|
f803a99e27866036b92175c7d9786611ad1f389b
|
[
"Apache-2.0"
] | 2
|
2021-01-13T13:55:17.000Z
|
2021-07-26T15:37:40.000Z
|
HOME = "~/"
| 6
| 11
| 0.333333
| 1
| 12
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 12
| 1
| 12
| 12
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 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
|
8c92301b3207b73f5e7fbcfd509ee9fb9f7fec53
| 171
|
py
|
Python
|
textflow/utils/text.py
|
ysenarath/textflow
|
ebb86cbedaf6ba7ed62a9f811a7d7d1818d938ac
|
[
"MIT"
] | 4
|
2020-12-10T19:38:15.000Z
|
2021-08-02T02:00:46.000Z
|
textflow/utils/text.py
|
ysenarath/textflow
|
ebb86cbedaf6ba7ed62a9f811a7d7d1818d938ac
|
[
"MIT"
] | 2
|
2021-01-08T18:35:04.000Z
|
2021-02-07T04:25:56.000Z
|
textflow/utils/text.py
|
ysenarath/textflow
|
ebb86cbedaf6ba7ed62a9f811a7d7d1818d938ac
|
[
"MIT"
] | 1
|
2021-04-04T19:21:40.000Z
|
2021-04-04T19:21:40.000Z
|
import re
class Tokenizer:
@staticmethod
def tokenize(text):
return [(m.start(0), m.end(0), m.group()) for m in re.finditer(r'\w+|\$[\d\.]+|\S+', text)]
| 21.375
| 99
| 0.567251
| 27
| 171
| 3.592593
| 0.777778
| 0.041237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014599
| 0.19883
| 171
| 7
| 100
| 24.428571
| 0.693431
| 0
| 0
| 0
| 0
| 0
| 0.099415
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8cc0868d63e94742262d8154b0db4c8a17d0bb3f
| 106
|
py
|
Python
|
privacy_settings/apps.py
|
reeshabhkumarranjan/SocPay
|
ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd
|
[
"MIT"
] | null | null | null |
privacy_settings/apps.py
|
reeshabhkumarranjan/SocPay
|
ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd
|
[
"MIT"
] | null | null | null |
privacy_settings/apps.py
|
reeshabhkumarranjan/SocPay
|
ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class PrivacySettingsConfig(AppConfig):
name = 'privacy_settings'
| 17.666667
| 39
| 0.792453
| 11
| 106
| 7.545455
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141509
| 106
| 5
| 40
| 21.2
| 0.912088
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 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
|
8cf55b10ed286f628dfa3ddb4f5efd12f1aa1832
| 303
|
py
|
Python
|
arachne/__init__.py
|
shrine-maiden-heavy-industries/arachne
|
1d0320bf6e77653656f8ce1874900743452dbac4
|
[
"BSD-3-Clause"
] | 3
|
2021-09-13T20:23:42.000Z
|
2022-01-19T13:12:32.000Z
|
arachne/__init__.py
|
shrine-maiden-heavy-industries/arachne
|
1d0320bf6e77653656f8ce1874900743452dbac4
|
[
"BSD-3-Clause"
] | null | null | null |
arachne/__init__.py
|
shrine-maiden-heavy-industries/arachne
|
1d0320bf6e77653656f8ce1874900743452dbac4
|
[
"BSD-3-Clause"
] | null | null | null |
# SPDX-License-Identifier: BSD-3-Clause
try:
try:
from importlib import metadata as importlib_metadata # py3.8
except ImportError:
import importlib_metadata # py3.7
__version__ = importlib_metadata.version(__package__)
except ImportError:
__version__ = ':nya_confused:' # :nocov:
__all__ = ()
| 23.307692
| 62
| 0.765677
| 36
| 303
| 5.888889
| 0.638889
| 0.240566
| 0.188679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019157
| 0.138614
| 303
| 12
| 63
| 25.25
| 0.793103
| 0.188119
| 0
| 0.444444
| 0
| 0
| 0.058091
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.555556
| 0
| 0.555556
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
508d987e0899fb36133c479269871f3e5ca99931
| 50
|
py
|
Python
|
apps/course/test.py
|
dawang-youy/Django-blog
|
529e7ef16d65170dc56cd628c34c5c9806138eed
|
[
"Apache-2.0"
] | null | null | null |
apps/course/test.py
|
dawang-youy/Django-blog
|
529e7ef16d65170dc56cd628c34c5c9806138eed
|
[
"Apache-2.0"
] | null | null | null |
apps/course/test.py
|
dawang-youy/Django-blog
|
529e7ef16d65170dc56cd628c34c5c9806138eed
|
[
"Apache-2.0"
] | null | null | null |
from .tests import Person
p = Person()
p.getAge()
| 12.5
| 25
| 0.7
| 8
| 50
| 4.375
| 0.75
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 50
| 4
| 26
| 12.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
50977c1f023181f2b0e3f52151913c8d1ab2d76d
| 82
|
py
|
Python
|
config.py
|
ponyatov/LAF
|
eb093d4b820cb40a15ab2179428d2ce4dd145b43
|
[
"MIT"
] | null | null | null |
config.py
|
ponyatov/LAF
|
eb093d4b820cb40a15ab2179428d2ce4dd145b43
|
[
"MIT"
] | null | null | null |
config.py
|
ponyatov/LAF
|
eb093d4b820cb40a15ab2179428d2ce4dd145b43
|
[
"MIT"
] | null | null | null |
SECRET = "uRBcFJWoxUR5RCwbpbPj7FxiDaac3DNdrh"
HOST = "127.0.0.1"
PORT = 50772
| 20.5
| 45
| 0.719512
| 9
| 82
| 6.555556
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.202899
| 0.158537
| 82
| 3
| 46
| 27.333333
| 0.652174
| 0
| 0
| 0
| 0
| 0
| 0.52439
| 0.414634
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
509c1ab2a7151c665507818426d1ae66c4f830ef
| 100
|
py
|
Python
|
Programmers/[cutz]sum in two nums.py
|
cutz-j/AlgorithmStudy
|
de0f81220e29bd5e109d174800f507b12a3bee36
|
[
"MIT"
] | 3
|
2019-11-26T14:31:01.000Z
|
2020-01-10T18:19:46.000Z
|
Programmers/[cutz]sum in two nums.py
|
cutz-j/AlgorithmStudy
|
de0f81220e29bd5e109d174800f507b12a3bee36
|
[
"MIT"
] | null | null | null |
Programmers/[cutz]sum in two nums.py
|
cutz-j/AlgorithmStudy
|
de0f81220e29bd5e109d174800f507b12a3bee36
|
[
"MIT"
] | null | null | null |
def solution(a, b):
answer = sum(range(a,b+1)) if a < b else sum(range(b,a+1))
return answer
| 33.333333
| 62
| 0.61
| 21
| 100
| 2.904762
| 0.52381
| 0.098361
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025316
| 0.21
| 100
| 3
| 63
| 33.333333
| 0.746835
| 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
|
50d29089e12acea49e96d01ed3969f3ae85ff2d1
| 118
|
py
|
Python
|
workSpace/led.py
|
harunlakodla/Micropyton
|
20874f573bd1fd6fd1f5e6a64a5de181f6ef5bba
|
[
"Apache-2.0"
] | 2
|
2020-05-24T12:32:52.000Z
|
2021-02-12T12:52:04.000Z
|
workSpace/led.py
|
harunlakodla/Micropyton
|
20874f573bd1fd6fd1f5e6a64a5de181f6ef5bba
|
[
"Apache-2.0"
] | null | null | null |
workSpace/led.py
|
harunlakodla/Micropyton
|
20874f573bd1fd6fd1f5e6a64a5de181f6ef5bba
|
[
"Apache-2.0"
] | null | null | null |
from machine import Pin
import time
led=Pin(2,Pin.OUT)
#while True:
pin.on()
time.sleep(1)
pin.off()
#time.sleep(1)
| 10.727273
| 23
| 0.70339
| 23
| 118
| 3.608696
| 0.608696
| 0.216867
| 0.240964
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029126
| 0.127119
| 118
| 10
| 24
| 11.8
| 0.776699
| 0.20339
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
50ef6e185357a911e3d77a7898de7ee0dac877f4
| 87
|
py
|
Python
|
authentication/config.py
|
piyushjain-pj/pneumonia_and_covid_prediction_tool
|
b5f503b1672b1093c4bd6f9e053d6024e4f73f9d
|
[
"MIT"
] | 1
|
2022-03-30T15:28:33.000Z
|
2022-03-30T15:28:33.000Z
|
authentication/config.py
|
piyushjain-pj/pneumonia_and_covid_prediction_tool
|
b5f503b1672b1093c4bd6f9e053d6024e4f73f9d
|
[
"MIT"
] | null | null | null |
authentication/config.py
|
piyushjain-pj/pneumonia_and_covid_prediction_tool
|
b5f503b1672b1093c4bd6f9e053d6024e4f73f9d
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class AuthConfig(AppConfig):
name = 'authcfg'
| 12.428571
| 33
| 0.735632
| 10
| 87
| 6.4
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183908
| 87
| 6
| 34
| 14.5
| 0.901408
| 0
| 0
| 0
| 0
| 0
| 0.082353
| 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
|
0f95ba73cd1e51dcdc4069995344dcbeb3dee28f
| 3,121
|
py
|
Python
|
PyObfuscator/pyobfuscator_dec.py
|
Alpha-Demon404/RE-14
|
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
|
[
"MIT"
] | 39
|
2020-02-26T09:44:36.000Z
|
2022-03-23T00:18:25.000Z
|
PyObfuscator/pyobfuscator_dec.py
|
B4BY-DG/reverse-enginnering
|
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
|
[
"MIT"
] | 15
|
2020-05-14T10:07:26.000Z
|
2022-01-06T02:55:32.000Z
|
PyObfuscator/pyobfuscator_dec.py
|
B4BY-DG/reverse-enginnering
|
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
|
[
"MIT"
] | 41
|
2020-03-16T22:36:38.000Z
|
2022-03-17T14:47:19.000Z
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
import random, sys
def Obfuscate(body):
obfuscated = ""
for i in range(0, len(body)):
if obfuscated == "":
obfuscated += expr(ord(body[i]))
else:
obfuscated += "+" + expr(ord(body[i]))
return obfuscated
def expr(char):
range = random.randrange(1,10001)
exp = random.randrange(0,3)
if exp == 0:
print "\x1b[0;37mConverting char %s =>\x1b[32;1m %s" % (str(char), str((range+char)) + "-" + str(range))
return "chr(" + str((range+char)) + "-" + str(range) + ")"
elif exp == 1:
print "\x1b[0;37mConverting char %s =>\x1b[32;1m %s" % (str(char), str((char-range)) + "+" + str(range))
return "chr(" + str((char-range)) + "+" + str(range) + ")"
elif exp == 2:
print "\x1b[0;37mConverting char %s =>\x1b[32;1m %s" % (str(char), str((char*range)) + "/" + str(range))
return "chr(" + str((char*range)) + "/" + str(range) + ")"
try:
print ("""\x1b[30;1m╔═══════════════════════════════════════════════════════════════╗
║\x1b[31;1m ____ ___ _ __ _ \x1b[30;1m║
║\x1b[31;1m| _ \ _ _ / _ \| |__ / _|_ _ ___ ___ __ _| |_ ___ _ __ \x1b[30;1m║
║\x1b[31;1m| |_) | | | | | | | '_ \| |_| | | / __|/ __/ _` | __/ _ \| '__|\x1b[30;1m║
║\x1b[0;37m| __/| |_| | |_| | |_) | _| |_| \__ \ (_| (_| | || (_) | | \x1b[30;1m║
║\x1b[0;37m|_| \__, |\___/|_.__/|_| \__,_|___/\___\__,_|\__\___/|_| \x1b[30;1m║
║\x1b[0;37m |___/ \x1b[30;1m║
╠═══════════════════════════════════════════════════════════════╣\033[30;1m
║\x1b[0;37m➢ \x1b[34;1mAuthor : \x1b[0;37mFebry [ xNot_Found ] \x1b[30;1m║
║\x1b[0;37m➣ \x1b[34;1mContact: \x1b[0;37m+62823-8637-2115 \x1b[30;1m║
║\x1b[0;37m➢ \x1b[34;1mEmail : \x1b[0;37mfebryafriansyah@programmer.net \x1b[30;1m║
║\x1b[0;37m➣ \x1b[34;1mWebsite: \x1b[0;37mhttp://hatakecnk.ueuo.com \x1b[30;1m║
║\x1b[0;37m➢ \x1b[34;1mGithub : \x1b[0;37mhttps://github.com/hatakecnk \x1b[30;1m║
╚═══════════════════════════════════════════════════════════════╝\x1b[0;37m""")
a = raw_input('\033[0;37m┌─[\033[31;1m Input Your File Path (\x1b[32;1mex: /sdcard/ex.py\x1b[31;1m) \033[0;37m]\n\033[0;37m└─[\033[31;1m$\033[0;37m]> \033[33;1m')
print ('')
b = open(a).read()
z = a.replace('.py', '-obfuscated.py')
m = open(z, 'w')
m.write("x=("+Obfuscate(b)+");exec(x)")
print '\n\x1b[31;1m[\x1b[0;37m+\x1b[31;1m]\x1b[0;37m File saved as\x1b[32;1m %s' % z
except KeyboardInterrupt:
print ('\n\x1b[31m[\x1b[0m!\x1b[31m]\x1b[0m ctrl+c detected')
print ('\x1b[31m[\x1b[0m!\x1b[31m]\x1b[0m exit from program')
sys.exit()
except EOFError:
print ('\n\n\x1b[31m[\x1b[0m!\x1b[31m]\x1b[0m ctrl+d detected')
print ('\x1b[31m[\x1b[0m!\x1b[31m]\x1b[0m exit from program')
sys.exit()
except IOError:
print ('\n\x1b[31m[\x1b[0m!\x1b[31m]\x1b[0m file not found')
print ('\x1b[31m[\x1b[0m!\x1b[31m]\x1b[0m exit from program')
sys.exit()
except:
print ('\n\x1b[31;1m[\x1b[0;37m!\x1b[31;1m]\x1b[0;37m Exit')
sys.exit()
| 49.539683
| 163
| 0.506248
| 469
| 3,121
| 3.65032
| 0.238806
| 0.049065
| 0.057243
| 0.077103
| 0.50993
| 0.444509
| 0.444509
| 0.436332
| 0.436332
| 0.436332
| 0
| 0.13493
| 0.197373
| 3,121
| 62
| 164
| 50.33871
| 0.458283
| 0.012176
| 0
| 0.12069
| 0
| 0.258621
| 0.659202
| 0.231743
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.017241
| null | null | 0.224138
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0fa419260b33fc882adf484297b8c3fdbb804d93
| 386
|
py
|
Python
|
devitoboundary/__init__.py
|
devitocodes/Devitoboundary
|
6e4b0b02848b06336a13c6e20a6acd36df006150
|
[
"MIT"
] | 2
|
2021-02-15T21:33:50.000Z
|
2022-02-15T17:04:05.000Z
|
devitoboundary/__init__.py
|
devitocodes/Devitoboundary
|
6e4b0b02848b06336a13c6e20a6acd36df006150
|
[
"MIT"
] | 24
|
2020-09-02T15:34:58.000Z
|
2021-11-17T16:21:53.000Z
|
devitoboundary/__init__.py
|
devitocodes/Devitoboundary
|
6e4b0b02848b06336a13c6e20a6acd36df006150
|
[
"MIT"
] | 1
|
2021-10-18T13:12:22.000Z
|
2021-10-18T13:12:22.000Z
|
from .symbolics import * # noqa: F401
from .geometry import * # noqa: F401
from .distance import * # noqa: F401
from .stencils import * # noqa: F401
from .topography import * # noqa: F401
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
| 29.692308
| 64
| 0.746114
| 45
| 386
| 6.155556
| 0.511111
| 0.180505
| 0.252708
| 0.32491
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047468
| 0.181347
| 386
| 12
| 65
| 32.166667
| 0.829114
| 0.204663
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.1
| 0.6
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
0fac076f90559cdd8dda244bfdb0030dadaebcd6
| 121,113
|
py
|
Python
|
GUI/PyQt/configGUI/canvas.py
|
thomaskuestner/CNNArt
|
c2fc639dd2ce035f6ca90113290682a0ccd26fb8
|
[
"Apache-2.0"
] | 22
|
2018-04-27T21:28:46.000Z
|
2021-12-24T06:44:55.000Z
|
GUI/PyQt/configGUI/canvas.py
|
thomaskuestner/CNNArt
|
c2fc639dd2ce035f6ca90113290682a0ccd26fb8
|
[
"Apache-2.0"
] | 81
|
2017-11-09T17:23:15.000Z
|
2020-01-28T22:54:13.000Z
|
GUI/PyQt/configGUI/canvas.py
|
thomaskuestner/CNNArt
|
c2fc639dd2ce035f6ca90113290682a0ccd26fb8
|
[
"Apache-2.0"
] | 18
|
2017-11-13T16:12:17.000Z
|
2020-08-27T10:17:34.000Z
|
# define all classes for image and result showing and labeling
import copy
import json
from numbers import Integral
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas
from PyQt5.QtCore import pyqtSignal, Qt
from PyQt5.QtWidgets import QApplication
from matplotlib import path, patches, colors
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.image import AxesImage
from matplotlib.lines import Line2D
from matplotlib.patches import Ellipse, Rectangle, PathPatch, Patch
from matplotlib.widgets import ToolHandles, AxesWidget
from skimage import color
CURSOR_DEFAULT = Qt.ArrowCursor
CURSOR_DRAW = Qt.CrossCursor
CURSOR_SELECT = Qt.ClosedHandCursor
class Canvas(FigureCanvas):
update_data = pyqtSignal(list)
gray_data = pyqtSignal(list)
new_page = pyqtSignal()
slice_link = pyqtSignal(int)
grey_link = pyqtSignal(list)
zoomRequest = pyqtSignal(int)
scrollRequest = pyqtSignal(int, int)
newShape = pyqtSignal()
selectionChanged = pyqtSignal(bool)
deleteEvent = pyqtSignal()
MARK, SELECT = list(range(2))
def __init__(self, param, parent=None):
self.figure = plt.figure()
FigureCanvas.__init__(self, self.figure)
self.setParent(parent)
self.figure.set_facecolor("black") # white region outsides the (ax)dicom image
self.voxel = param.get('image')
self.shape = param.get('shape')
self.Y = param.get('color')
self.Z = param.get('hatch')
self.mode = param.get('mode')
self.cmap = param.get('cmap')
self.hmap = param.get('hmap')
self.trans = param.get('trans')
self.param = param
with open('configGUI/lastWorkspace.json', 'r') as json_data:
lastState = json.load(json_data)
self.dim = lastState["Dim"][0]
if self.mode == 1 or self.mode == 4 or self.mode == 7:
self.slices = self.voxel.shape[-1]
self.ind = self.slices // 2
elif self.mode == 2 or self.mode == 5 or self.mode == 8:
self.slices = self.voxel.shape[-3]
self.ind = self.slices // 2
elif self.mode == 3 or self.mode == 6 or self.mode == 9:
self.slices = self.voxel.shape[-2]
self.ind = self.slices // 2
self.time = 0
try:
self.timemax = self.voxel.shape[-5]
except:
self.timemax = 1
self.depth = 0
try:
self.depthmax = self.voxel.shape[-4]
except:
self.depthmax = 1
self.x_clicked = None
self.y_clicked = None
self.wheel_clicked = False
self.wheel_roll = False
self.ax1 = self.figure.add_subplot(111)
self.artist_list = []
self.mask_class = None
# for marking labels
# 1 = left mouse button
# 2 = center mouse button(scroll wheel)
# 3 = right mouse button
self.cursor2D = Cursor(self.ax1, useblit=True, color='blue', linestyle='dashed')
self.cursor2D.set_active(True)
self.toggle_selector_RS = RectangleSelector(self.ax1, self.rec_onselect, button=[1], drawtype='box',
useblit=True,
minspanx=5, minspany=5, spancoords='pixels')
self.toggle_selector_ES = EllipseSelector(self.ax1, self.ell_onselect, drawtype='box', button=[1], minspanx=5,
useblit=True, minspany=5, spancoords='pixels')
self.toggle_selector_LS = LassoSelector(self.ax1, self.lasso_onselect, useblit=True, button=[1])
self.toggle_selector_ES.set_active(False)
self.toggle_selector_RS.set_active(False)
self.toggle_selector_LS.set_active(False)
self.toggle_selector()
self.figure.canvas.mpl_connect('key_press_event', self.press_event)
self.figure.canvas.mpl_connect('button_press_event', self.mouse_clicked)
self.figure.canvas.mpl_connect('motion_notify_event', self.mouse_move)
self.figure.canvas.mpl_connect('button_release_event', self.mouse_release)
self.figure.canvas.mpl_connect('scroll_event', self.on_scroll)
self.figure.canvas.mpl_connect('pick_event', self.selectShape)
self.emitlist = []
self.emitlist.append(self.ind)
self.emitlist.append(self.slices)
self.emitlist.append(self.time)
self.emitlist.append(self.timemax)
self.emitlist.append(self.depth)
self.emitlist.append(self.depthmax)
self.gchange = []
self.gchange.append(0)
self.gchange.append(0)
# 2 elements
self.labelmode = self.SELECT
self.current = None
self.selectedShape = None # save the selected shape here
self._cursor = CURSOR_DEFAULT
self.is_open_dialog = False
self.shapeList = []
self.background = None
self.to_draw = None
self.picked = False
self.moveEvent = None
self.pressEvent = None
self._corner_order = ['NW', 'NE', 'SE', 'SW']
self._edge_order = ['W', 'N', 'E', 'S']
self.active_handle = None
self._extents_on_press = None
self.maxdist = 10
self.labelon = False
self.legendon = True
self.selectedshape_name = None
self.aspect = 'equal' # auto or equal
self.image_array = None
self.flipimage = 0
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def set_open_dialog(self, value):
self.is_open_dialog = value
def get_open_dialog(self):
return self.is_open_dialog
def on_scroll(self, event):
self.wheel_roll = True
if event.button == 'up':
self.ind = (self.ind + 1)
self.slice_link.emit(0)
else:
self.ind = (self.ind - 1)
self.slice_link.emit(1)
self.after_scroll()
def after_scroll(self):
if self.ind >= self.slices:
self.ind = 0
if self.ind <= -1:
self.ind = self.slices - 1
self.ax1.clear()
self.shapeList.clear()
self.emitlist[0] = self.ind
self.update_data.emit(self.emitlist)
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def timechange(self):
if self.time >= self.timemax:
self.time = 0
if self.time <= -1:
self.time = self.timemax - 1
self.emitlist[2] = self.time
self.update_data.emit(self.emitlist)
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def depthchange(self):
if self.depth >= self.depthmax:
self.depth = 0
if self.depth <= -1:
self.depth = self.depthmax - 1
self.emitlist[4] = self.depth
self.update_data.emit(self.emitlist)
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def press_event(self, event):
self.v_min, self.v_max = self.pltc.get_clim()
if event.key == 'w':
self.wheel_roll = True
self.ind = (self.ind + 1)
self.slice_link.emit(0)
self.after_scroll()
elif event.key == 'q':
self.wheel_roll = True
self.ind = (self.ind - 1)
self.slice_link.emit(1)
self.after_scroll()
elif event.key == 'left':
self.wheel_clicked = True
self.factor1 = -20
self.factor2 = -20
self.after_adjust()
elif event.key == 'right':
self.wheel_clicked = True
self.factor1 = 20
self.factor2 = 20
self.after_adjust()
elif event.key == 'down':
self.wheel_clicked = True
self.factor1 = 20
self.factor2 = -20
self.after_adjust()
elif event.key == 'up':
self.wheel_clicked = True
self.factor1 = -20
self.factor2 = 20
self.after_adjust()
elif event.key == '1':
# keyboard 1
self.time = self.time - 1
self.timechange()
elif event.key == '2':
# keyboard 2
self.time = self.time + 1
self.timechange()
elif event.key == '3':
# keyboard 3
self.depth = self.depth - 1
self.depthchange()
elif event.key == '4':
# keyboard 4
self.depth = self.depth + 1
self.depthchange()
elif event.key == 'enter':
self.is_open_dialog = True
shapelist = []
if self.label_shape() == 1:
shapelist.append(self.toggle_selector_RS.get_select())
elif self.label_shape == 2:
shapelist.append(self.toggle_selector_ES.get_select())
elif self.label_shape == 3:
shapelist.append(self.toggle_selector_LS.get_select())
for j in shapelist:
for i in j:
if i not in shapelist:
self.shapeList.append(i)
for i in self.ax1.patches:
if type(i) is Rectangle or Ellipse:
i.set_picker(True)
else:
i.set_picker(False)
self.newShape.emit()
elif event.key == 'delete':
self.to_draw.set_visible(False)
self._center_handle = None
self._edge_handles = None
self._corner_handles = None
try:
canvas = self.selectedShape.get_figure().canvas
canvas.draw_idle()
except:
pass
self.df = pandas.read_csv('Markings/marking_records.csv')
self.df = self.df.drop(self.df.index[self.selectind])
self.df.to_csv('Markings/marking_records.csv', index=False)
self.deSelectShape()
self.deleteEvent.emit()
def after_adjust(self):
if (float(self.factor1 - self.factor2)) / (self.v_max - self.factor1 + 0.001) > 1:
nmb = (float(self.factor1 - self.factor2)) / (self.v_max - self.factor1 + 0.001) + 1
self.factor1 = (float(self.factor1 - self.factor2)) / nmb * (self.factor1 / (self.factor1 - self.factor2))
self.factor2 = (float(self.factor1 - self.factor2)) / nmb * (self.factor2 / (self.factor1 - self.factor2))
self.v_min += self.factor1
self.v_max += self.factor2
self.gchange[0] = self.factor1
self.gchange[1] = self.factor2
self.grey_link.emit(self.gchange) ###
self.pltc.set_clim(vmin=self.v_min, vmax=self.v_max)
self.graylist[0] = self.v_min
self.graylist[1] = self.v_max
self.gray_data.emit(self.graylist)
self.figure.canvas.draw()
self.wheel_clicked = False
def set_aspect(self, aspect):
self.aspect = aspect
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def get_aspect(self):
return self.aspect
def view_image(self):
if self.mode == 1:
self.ax1.axis('off')
try:
img = np.swapaxes(self.voxel[self.time, self.depth, :, :, self.ind], 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
self.image_array = self.voxel[self.time, self.depth, :, :, self.ind]
except:
img = np.swapaxes(self.voxel[:, :, self.ind], 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
self.image_array = self.voxel[:, :, self.ind]
self.draw_idle()
elif self.mode == 2:
self.ax1.axis('off')
try:
img = np.swapaxes(self.voxel[self.time, self.depth, self.ind, :, :], 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.time, self.depth, self.ind, :, :]
except:
img = np.swapaxes(self.voxel[self.ind, :, :], 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.ind, :, :]
self.draw_idle()
elif self.mode == 3:
self.ax1.axis('off')
try:
img = np.swapaxes(self.voxel[self.time, self.depth, :, self.ind, :], 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.time, self.depth, :, self.ind, :]
except:
img = np.swapaxes(self.voxel[:, self.ind, :], 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[:, self.ind, :]
self.draw_idle()
elif self.mode == 4:
self.ax1.axis('off')
try:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.voxel[self.time, self.depth, :, :, self.ind]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
self.image_array = self.voxel[self.time, self.depth, :, :, self.ind]
if not self.Y == []:
mask_shape = list(self.voxel[self.time, self.depth, :, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.time, self.depth, :, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
mask_shape = list(self.voxel[self.time, self.depth, :, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.time, self.depth, :, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.voxel[self.time, self.depth, :, :, self.ind]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, :, :, self.ind]
self.im2 = self.ax1.imshow(img, aspect=self.aspect,
cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.time, self.depth, :, :, self.ind]
self.im3 = self.ax1.contourf(img,
cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
except:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.voxel[:, :, self.ind]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0])
self.image_array = self.voxel[:, :, self.ind]
if not self.Y == []:
mask_shape = list(self.voxel[:, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][:, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0])
mask_shape = list(self.voxel[:, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][:, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.voxel[:, :, self.ind]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][:, :, self.ind]
self.im2 = self.ax1.imshow(img, cmap=local_cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][:, :, self.ind]
self.im3 = self.ax1.contourf(img, cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
self.draw_idle()
elif self.mode == 5:
self.ax1.axis('off')
try:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.voxel[self.time, self.depth, self.ind, :, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.time, self.depth, self.ind, :, :]
if not self.Y == []:
mask_shape = list(self.voxel[self.time, self.depth, self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.time, self.depth, self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, extent=[0, img.shape[1], img.shape[0], 0], aspect=self.aspect, alpha=self.trans)
mask_shape = list(self.voxel[self.time, self.depth, self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.time, self.depth, self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.voxel[self.time, self.depth, self.ind, :, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.time, self.depth, self.ind, :, :]
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, self.ind, :, :]
self.im2 = self.ax1.imshow(img, cmap=local_cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.time, self.depth, self.ind, :, :]
self.im3 = self.ax1.contourf(img, cmap=local_cmap,
alpha=self.trans, extent=[0, img.shape[1], 0, img.shape[0]])
except:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.voxel[self.ind, :, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.ind, :, :]
if not self.Y == []:
mask_shape = list(self.voxel[self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, extent=[0, img.shape[1], img.shape[0], 0], aspect=self.aspect, alpha=self.trans)
mask_shape = list(self.voxel[self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, aspect=self.aspect, alpha=self.trans, extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.voxel[self.ind, :, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.ind, :, :]
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][self.ind, :, :]
self.im2 = self.ax1.imshow(img, cmap=local_cmap,
alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.ind, :, :]
self.im3 = self.ax1.contourf(img, cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
self.draw_idle()
elif self.mode == 6:
self.ax1.axis('off')
try:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.voxel[self.time, self.depth, :, self.ind, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.time, self.depth, :, self.ind, :]
if not self.Y == []:
mask_shape = list(self.voxel[self.time, self.depth, :, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.time, self.depth, :, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, extent=[0, img.shape[1], img.shape[0], 0], aspect=self.aspect, alpha=self.trans)
mask_shape = list(self.voxel[self.time, self.depth, :, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.time, self.depth, :, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.voxel[self.time, self.depth, :, self.ind, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[self.time, self.depth, :, self.ind, :]
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, :, self.ind, :]
self.im2 = self.ax1.imshow(img, cmap=local_cmap, aspect=self.aspect,
alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.time, self.depth, :, self.ind, :]
self.im3 = self.ax1.contourf(img, cmap=local_cmap,
alpha=self.trans, extent=[0, img.shape[1], 0, img.shape[0]])
except:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.voxel[:, self.ind, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[:, self.ind, :]
if not self.Y == []:
mask_shape = list(self.voxel[:, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][:, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, extent=[0, img.shape[1], img.shape[0], 0], aspect=self.aspect, alpha=self.trans)
mask_shape = list(self.voxel[:, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][:, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.voxel[:, self.ind, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.image_array = self.voxel[:, self.ind, :]
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][:, self.ind, :]
self.im2 = self.ax1.imshow(img, cmap=local_cmap, aspect=self.aspect,
alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][:, self.ind, :]
self.im3 = self.ax1.contourf(img, cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
self.draw_idle()
elif self.mode == 7:
self.ax1.axis('off')
try:
img = self.voxel[self.time, self.depth, :, :, self.ind]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, self.ind, :, :]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, aspect=self.aspect, alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
except:
img = self.voxel[:, :, self.ind]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if not self.Y == []:
img = self.Y[-1][:, :, self.ind]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
self.draw_idle()
elif self.mode == 8:
self.ax1.axis('off')
try:
img = self.voxel[self.time, self.depth, self.ind, :, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, self.ind, :, :]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
except:
img = self.voxel[self.ind, :, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][self.ind, :, :]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
self.draw_idle()
elif self.mode == 9:
self.ax1.axis('off')
try:
img = self.voxel[self.time, self.depth, :, self.ind, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, :, self.ind, :]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
except:
img = self.voxel[:, self.ind, :]
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][:, self.ind, :, 0, 0]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
self.draw_idle()
self.wheel_roll = False
v_min, v_max = self.pltc.get_clim()
self.graylist = []
self.graylist.append(v_min)
self.graylist.append(v_max)
self.new_page.emit()
def view_flip_image(self):
if self.mode == 1:
self.ax1.axis('off')
try:
img = np.swapaxes(self.image_array, 0, 1)
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
except:
img = np.swapaxes(self.image_array, 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
self.draw_idle()
elif self.mode == 2:
self.ax1.axis('off')
try:
img = np.swapaxes(self.image_array, 0, 1)
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
except:
img = np.swapaxes(self.image_array, 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.draw_idle()
elif self.mode == 3:
self.ax1.axis('off')
try:
img = np.swapaxes(self.image_array, 0, 1)
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
except:
img = np.swapaxes(self.image_array, 0, 1)
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
self.draw_idle()
elif self.mode == 4:
self.ax1.axis('off')
try:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.image_array
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if not self.Y == []:
mask_shape = list(self.voxel[self.time, self.depth, :, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.time, self.depth, :, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
mask_shape = list(self.voxel[self.time, self.depth, :, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.time, self.depth, :, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.image_array
self.pltc = self.ax1.imshow(img, aspect=self.aspect,
cmap='gray',
extent=[0, img.shape[1], img.shape[0], 0])
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, :, :, self.ind]
self.im2 = self.ax1.imshow(img, aspect=self.aspect,
cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.time, self.depth, :, :, self.ind]
self.im3 = self.ax1.contourf(img,
cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
except:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if not self.Y == []:
mask_shape = list(self.voxel[:, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][:, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
mask_shape = list(self.voxel[:, :, self.ind].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][:, :, self.ind])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, self.shape[-2], 0, self.shape[-3]])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][:, :, self.ind]
self.im2 = self.ax1.imshow(img, cmap=local_cmap, aspect=self.aspect,
alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
self.im3 = self.ax1.contourf(self.Z[-1][:, :, self.ind], cmap=local_cmap,
alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
self.draw_idle()
elif self.mode == 5:
self.ax1.axis('off')
try:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.image_array
self.pltc = self.ax1.imshow(img, aspect=self.aspect,
cmap='gray',
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
mask_shape = list(self.voxel[self.time, self.depth, self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.time, self.depth, self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0], alpha=self.trans)
mask_shape = list(self.voxel[self.time, self.depth, self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.time, self.depth, self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, self.shape[-2], 0, self.shape[-1]])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.image_array
self.pltc = self.ax1.imshow(img, aspect=self.aspect,
cmap='gray',
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, self.ind, :, :]
self.im2 = self.ax1.imshow(img, aspect=self.aspect,
cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.time, self.depth, self.ind, :, :]
self.im3 = self.ax1.contourf(img,
cmap=local_cmap,
alpha=self.trans, extent=[0, img.shape[1], 0, img.shape[0]])
except:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
mask_shape = list(self.voxel[self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0], alpha=self.trans)
mask_shape = list(self.voxel[self.ind, :, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.ind, :, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][self.ind, :, :]
self.im2 = self.ax1.imshow(img, cmap=local_cmap,
alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.ind, :, :]
self.im3 = self.ax1.contourf(img, cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
self.draw_idle()
elif self.mode == 6:
self.ax1.axis('off')
try:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.image_array
self.pltc = self.ax1.imshow(img, aspect=self.aspect,
cmap='gray',
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
mask_shape = list(self.voxel[self.time, self.depth, :, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][self.time, self.depth, :, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, extent=[0, img.shape[1], img.shape[0], 0], aspect=self.aspect, alpha=self.trans)
mask_shape = list(self.voxel[self.time, self.depth, :, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][self.time, self.depth, :, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.image_array
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.image_array
self.im2 = self.ax1.imshow(img,
cmap=local_cmap,
alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][self.time, self.depth, :, self.ind, :]
self.im3 = self.ax1.contourf(img,
cmap=local_cmap,
alpha=self.trans, extent=[0, img.shape[1], 0, img.shape[0]])
except:
if len(self.cmap) > 1:
artists = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
num_classes = patch_color_df['class'].count()
labels = list(patch_color_df.iloc[0:num_classes]['class'])
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
mask_shape = list(self.voxel[:, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Y[i][:, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
img = self.total_mask
self.im2 = self.ax1.imshow(img, aspect=self.aspect, extent=[0, img.shape[1], img.shape[0], 0], alpha=self.trans)
mask_shape = list(self.voxel[:, self.ind, :].shape)
mask_shape.append(3)
self.total_mask = np.zeros(mask_shape)
for i in range(len(self.cmap)):
mask = color.gray2rgb(self.Z[i][:, self.ind, :])
self.cmap[i] = matplotlib.colors.to_rgb(self.cmap[i])
self.total_mask += mask * self.cmap[i]
artists.append(Patch(facecolor=self.cmap[i], label=labels[i]))
img = self.total_mask
self.im3 = self.ax1.imshow(img, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if self.legendon:
self.ax1.legend(handles=artists, fontsize='x-small')
else:
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
local_cmap = matplotlib.colors.ListedColormap(self.cmap[0])
if not self.Y == []:
img = self.Y[-1][:, self.ind, :]
self.im2 = self.ax1.imshow(img, cmap=local_cmap,
alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
img = self.Z[-1][:, self.ind, :]
self.im3 = self.ax1.contourf(img, cmap=local_cmap, alpha=self.trans,
extent=[0, img.shape[1], 0, img.shape[0]])
self.draw_idle()
elif self.mode == 7:
self.ax1.axis('off')
try:
img = self.image_array
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, self.ind, :, :]
self.im2 = self.ax1.imshow(img,
cmap=self.cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
except:
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
if not self.Y == []:
img = self.Y[-1][:, :, self.ind]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, aspect=self.aspect,
alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
self.draw_idle()
elif self.mode == 8:
self.ax1.axis('off')
try:
img = self.image_array
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, self.ind, :, :]
self.im2 = self.ax1.imshow(img,
cmap=self.cmap, alpha=self.trans, aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0])
except:
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][self.ind, :, :]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, aspect=self.aspect,
alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
self.draw_idle()
elif self.mode == 9:
self.ax1.axis('off')
try:
img = self.image_array
self.pltc = self.ax1.imshow(img,
cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][self.time, self.depth, :, self.ind, :]
self.im2 = self.ax1.imshow(img,
cmap=self.cmap, alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
except:
img = self.image_array
self.pltc = self.ax1.imshow(img, cmap='gray', aspect=self.aspect,
extent=[0, img.shape[1], img.shape[0], 0], interpolation='sinc')
if not self.Y == []:
img = self.Y[-1][:, self.ind, :, 0, 0]
self.im2 = self.ax1.imshow(img, cmap=self.cmap, aspect=self.aspect,
alpha=self.trans,
extent=[0, img.shape[1], img.shape[0], 0])
self.draw_idle()
self.wheel_roll = False
def get_image_array(self):
if self.image_array is not None:
return self.image_array
def set_image_array(self, array):
self.flipimage += 1
self.image_array = array
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def set_selected(self, shape):
self.deSelectShape()
self.picked = True
self.toggle_selector_ES.set_active(False)
self.toggle_selector_RS.set_active(False)
self.toggle_selector_LS.set_active(False)
self.selectedShape = shape
if type(self.selectedShape) is Rectangle or Ellipse:
self.selectedShape.set_edgecolor('black')
self.draw_idle()
self.set_state(2)
self.edit_selectedShape(self.selectedShape)
elif type(self.selectedShape) is PathPatch:
self.selectedShape.set_edgecolor('black')
self.draw_idle()
self.set_state(2)
self.selectionChanged.emit(True)
def get_selected(self):
return self.selectedShape
def selectShape(self, event):
self.deSelectShape()
self.picked = True
self.toggle_selector_ES.set_active(False)
self.toggle_selector_RS.set_active(False)
self.toggle_selector_LS.set_active(False)
self.selectedShape = event.artist
if type(self.selectedShape) is Rectangle or Ellipse:
self.selectedShape.set_edgecolor('black')
self.draw_idle()
self.set_state(2)
self.edit_selectedShape(self.selectedShape)
elif type(self.selectedShape) is PathPatch:
self.selectedShape.set_edgecolor('black')
self.draw_idle()
self.set_state(2)
self.selectionChanged.emit(True)
def update_selectedShape(self):
self.selectedShape = self.to_draw
plist = np.ndarray.tolist(self.selectedShape.get_path().vertices)
plist = ', '.join(str(x) for x in plist)
self.df = pandas.read_csv('Markings/marking_records.csv')
if not self.df[self.df['artist'] == str(self.selectedShape)].index.values.astype(int) == []:
try:
self.selectind = self.df[self.df['artist'] == str(self.selectedShape)].index.values.astype(int)[0]
except:
self.selectind = 0
else:
pass
color = self.df.iloc[self.selectind]['labelcolor']
if self.labelon:
self.setToolTip(self.selectedshape_name)
if color is np.nan:
color = colors.to_hex('b', keep_alpha=True)
self.df.loc[self.selectind, 'path'] = plist
self.df.to_csv('Markings/marking_records.csv', index=False)
self.selectedShape.set_facecolor(color)
self.selectedShape.set_alpha(0.5)
self.selectionChanged.emit(True)
try:
canvas = self.selectedShape.get_figure().canvas
axes = self.selectedShape.axes
self.background = canvas.copy_from_bbox(self.selectedShape.axes.bbox)
canvas.restore_region(self.background)
axes.draw_artist(self.selectedShape)
axes.draw_artist(self._corner_handles.artist)
axes.draw_artist(self._edge_handles.artist)
axes.draw_artist(self._center_handle.artist)
# blit just the redrawn area
canvas.blit(axes.bbox)
except:
pass
def deSelectShape(self):
self.picked = False
if self.selectedShape is not None:
self.selectedShape.set_edgecolor(None)
self.selectedShape = None
self.toggle_selector_ES.set_active(True)
self.toggle_selector_RS.set_active(True)
self.toggle_selector_LS.set_active(True)
self.draw_idle()
self.selectionChanged.emit(False)
def edit_selectedShape(self, artist):
self.to_draw = artist
xc, yc = self.get_corners()
self._corner_handles = ToolHandles(self.ax1, xc, yc, marker='o',
marker_props=self.toggle_selector_RS.get_props(), useblit=True)
self._corner_handles.set_visible(True)
xe, ye = self.get_edge_centers()
self._edge_handles = ToolHandles(self.ax1, xe, ye, marker='o', marker_props=self.toggle_selector_RS.get_props(),
useblit=True)
self._edge_handles.set_visible(True)
xc, yc = self.get_center()
self._center_handle = ToolHandles(self.ax1, [xc], [yc], marker='o',
marker_props=self.toggle_selector_RS.get_props(), useblit=True)
self._center_handle.set_visible(True)
if self.pressEvent is not None:
c_idx, c_dist = self._corner_handles.closest(self.pressEvent.x, self.pressEvent.y)
e_idx, e_dist = self._edge_handles.closest(self.pressEvent.x, self.pressEvent.y)
m_idx, m_dist = self._center_handle.closest(self.pressEvent.x, self.pressEvent.y)
if m_dist < self.maxdist * 2:
self.active_handle = 'C'
self._extents_on_press = self.extents
elif c_dist > self.maxdist and e_dist > self.maxdist:
self.active_handle = None
return
elif c_dist < e_dist:
self.active_handle = self._corner_order[c_idx]
else:
self.active_handle = self._edge_order[e_idx]
# Save coordinates of rectangle at the start of handle movement.
x1, x2, y1, y2 = self.extents
# Switch variables so that only x2 and/or y2 are updated on move.
if self.active_handle in ['W', 'SW', 'NW']:
x1, x2 = x2, self.pressEvent.xdata
if self.active_handle in ['N', 'NW', 'NE']:
y1, y2 = y2, self.pressEvent.ydata
self._extents_on_press = x1, x2, y1, y2
if self.selectedShape is not None:
self.update_selectedShape()
@property
def _rect_bbox(self):
if type(self.selectedShape) is Rectangle:
x0 = self.to_draw.get_x()
y0 = self.to_draw.get_y()
width = self.to_draw.get_width()
height = self.to_draw.get_height()
return x0, y0, width, height
elif type(self.selectedShape) is Ellipse:
x, y = self.to_draw.center
width = self.to_draw.width
height = self.to_draw.height
return x - width / 2., y - height / 2., width, height
def get_corners(self):
"""Corners of rectangle from lower left, moving clockwise."""
x0, y0, width, height = self._rect_bbox
xc = x0, x0 + width, x0 + width, x0
yc = y0, y0, y0 + height, y0 + height
return xc, yc
def get_edge_centers(self):
"""Midpoint of rectangle edges from left, moving clockwise."""
x0, y0, width, height = self._rect_bbox
w = width / 2.
h = height / 2.
xe = x0, x0 + w, x0 + width, x0 + w
ye = y0 + h, y0, y0 + h, y0 + height
return xe, ye
def get_center(self):
"""Center of rectangle"""
x0, y0, width, height = self._rect_bbox
return x0 + width / 2., y0 + height / 2.
@property
def extents(self):
"""Return (xmin, xmax, ymin, ymax)."""
x0, y0, width, height = self._rect_bbox
xmin, xmax = sorted([x0, x0 + width])
ymin, ymax = sorted([y0, y0 + height])
return xmin, xmax, ymin, ymax
def set_extents(self, extents):
# Update displayed shape
self.draw_shape(extents)
# Update displayed handles
self._corner_handles.set_data(self.get_corners())
self._edge_handles.set_data(self.get_edge_centers())
self._center_handle.set_data(self.get_center())
try:
canvas = self.to_draw.get_figure().canvas
axes = self.to_draw.axes
canvas.restore_region(self.background)
axes.draw_artist(self.to_draw)
axes.draw_artist(self._corner_handles.artist)
axes.draw_artist(self._edge_handles.artist)
axes.draw_artist(self._center_handle.artist)
# blit just the redrawn area
canvas.blit(axes.bbox)
except:
pass
self.df = pandas.read_csv('Markings/marking_records.csv')
if type(self.to_draw) is Rectangle or Ellipse:
self.df.loc[self.selectind, 'artist'] = self.to_draw
self.df.to_csv('Markings/marking_records.csv', index=False)
def draw_shape(self, extents):
if type(self.selectedShape) is Rectangle:
x0, x1, y0, y1 = extents
xmin, xmax = sorted([x0, x1])
ymin, ymax = sorted([y0, y1])
xlim = sorted(self.ax1.get_xlim())
ylim = sorted(self.ax1.get_ylim())
xmin = max(xlim[0], xmin)
ymin = max(ylim[0], ymin)
xmax = min(xmax, xlim[1])
ymax = min(ymax, ylim[1])
self.to_draw.set_x(xmin)
self.to_draw.set_y(ymin)
self.to_draw.set_width(xmax - xmin)
self.to_draw.set_height(ymax - ymin)
elif type(self.selectedShape) is Ellipse:
x1, x2, y1, y2 = extents
xmin, xmax = sorted([x1, x2])
ymin, ymax = sorted([y1, y2])
center = [x1 + (x2 - x1) / 2., y1 + (y2 - y1) / 2.]
a = (xmax - xmin) / 2.
b = (ymax - ymin) / 2.
self.to_draw.center = center
self.to_draw.width = 2 * a
self.to_draw.height = 2 * b
@property
def geometry(self):
"""
Returns numpy.ndarray of shape (2,5) containing
x (``RectangleSelector.geometry[1,:]``) and
y (``RectangleSelector.geometry[0,:]``)
coordinates of the four corners of the rectangle starting
and ending in the top left corner.
"""
if hasattr(self.to_draw, 'get_verts'):
xfm = self.ax1.transData.inverted()
y, x = xfm.transform(self.to_draw.get_verts()).T
return np.array([x, y])
else:
return np.array(self.to_draw.get_data())
##
def mouse_clicked(self, event):
if event.button == 2:
self.x_clicked = event.x
self.y_clicked = event.y
self.wheel_clicked = True
elif event.button == 3:
if self.editing():
self.set_state(1)
elif self.drawing():
self.set_state(2)
elif event.button == 1:
if self.picked:
try:
self._edit_on_press(event)
except:
pass
def _edit_on_press(self, event):
self.pressEvent = event
contains, attrd = self.selectedShape.contains(event)
if not contains: return
# draw everything but the selected rectangle and store the pixel buffer
try:
canvas = self.selectedShape.get_figure().canvas
axes = self.selectedShape.axes
self.to_draw.set_animated(True)
canvas.draw()
self.background = canvas.copy_from_bbox(self.selectedShape.axes.bbox)
# canvas.restore_region(self.background)
axes.draw_artist(self.to_draw)
axes.draw_artist(self._corner_handles.artist)
axes.draw_artist(self._edge_handles.artist)
axes.draw_artist(self._center_handle.artist)
# blit just the redrawn area
canvas.blit(axes.bbox)
except:
pass
self.df = pandas.read_csv('Markings/marking_records.csv')
if type(self.to_draw) is Rectangle or Ellipse:
self.df.loc[self.selectind, 'artist'] = self.to_draw
self.df.to_csv('Markings/marking_records.csv', index=False)
def mouse_move(self, event):
# if self.wheel_clicked:
self.moveEvent = event
if event.button == 2:
factor = 1
__x = event.x - self.x_clicked
__y = event.y - self.y_clicked
v_min, v_max = self.pltc.get_clim()
if __x >= 0 and __y >= 0:
__vmin = np.abs(__x) * factor - np.abs(__y) * factor
__vmax = np.abs(__x) * factor + np.abs(__y) * factor
elif __x < 0 and __y >= 0:
__vmin = -np.abs(__x) * factor - np.abs(__y) * factor
__vmax = -np.abs(__x) * factor + np.abs(__y) * factor
elif __x < 0 and __y < 0:
__vmin = -np.abs(__x) * factor + np.abs(__y) * factor
__vmax = -np.abs(__x) * factor - np.abs(__y) * factor
else:
__vmin = np.abs(__x) * factor + np.abs(__y) * factor
__vmax = np.abs(__x) * factor - np.abs(__y) * factor
if (float(__vmin - __vmax)) / (v_max - v_min + 0.001) > 1:
nmb = (float(__vmin - __vmax)) / (v_max - v_min + 0.001) + 1
__vmin = (float(__vmin - __vmax)) / nmb * (__vmin / (__vmin - __vmax))
__vmax = (float(__vmin - __vmax)) / nmb * (__vmax / (__vmin - __vmax))
v_min += __vmin
v_max += __vmax
if v_min < v_max:
self.gchange[0] = __vmin
self.gchange[1] = __vmax
self.grey_link.emit(self.gchange) ###
self.pltc.set_clim(vmin=v_min, vmax=v_max)
self.graylist[0] = v_min.round(2)
self.graylist[1] = v_max.round(2)
self.gray_data.emit(self.graylist)
self.figure.canvas.draw()
else:
v_min -= __vmin
v_max -= __vmax
elif event.button == 1:
if self.drawing():
self.override_cursor(CURSOR_DRAW)
return
elif self.editing():
self.override_cursor(CURSOR_SELECT)
else:
self.override_cursor(CURSOR_DEFAULT)
if self.picked:
try:
self._edit_on_move(event)
except:
pass
def _edit_on_move(self, event):
# resize an existing shape
if self.active_handle and not self.active_handle == 'C':
x1, x2, y1, y2 = self._extents_on_press
if self.active_handle in ['E', 'W'] + self._corner_order:
x2 = event.xdata
if self.active_handle in ['N', 'S'] + self._corner_order:
y2 = event.ydata
# move existing shape
elif (self.active_handle == 'C' and self._extents_on_press is not None):
x1, x2, y1, y2 = self._extents_on_press
dx = event.xdata - self.pressEvent.xdata
dy = event.ydata - self.pressEvent.ydata
x1 += dx
x2 += dx
y1 += dy
y2 += dy
# new shape
else:
center = [self.pressEvent.xdata, self.pressEvent.ydata]
center_pix = [self.pressEvent.x, self.pressEvent.y]
dx = (event.xdata - center[0]) / 2.
dy = (event.ydata - center[1]) / 2.
center[0] += dx
center[1] += dy
x1, x2, y1, y2 = (center[0] - dx, center[0] + dx,
center[1] - dy, center[1] + dy)
self.set_extents(extents=[x1, x2, y1, y2])
def current_cursor(self):
cursor = QApplication.overrideCursor()
if cursor is not None:
cursor = cursor.shape()
return cursor
def override_cursor(self, cursor):
self._cursor = cursor
if self.current_cursor() is None:
QApplication.setOverrideCursor(cursor)
else:
QApplication.changeOverrideCursor(cursor)
def mouse_release(self, event):
if event.button == 1:
if event.xdata is not None and event.ydata is not None:
x = int(event.xdata)
y = int(event.ydata)
if self.mode > 3 and self.mode <= 6:
try:
pixel = self.total_mask[x, y, :]
except:
pixel = [0, 0, 0]
pixel_color = matplotlib.colors.to_hex(pixel)
color_hex = []
patch_color_df = pandas.read_csv('configGUI/patch_color.csv')
count = patch_color_df['color'].count()
for i in range(count):
color_hex.append(matplotlib.colors.to_hex(patch_color_df.iloc[i]['color']))
try:
ind = color_hex.index(str(pixel_color))
self.mask_class = patch_color_df.iloc[ind]['class']
except:
pass
if self.mask_class is not None and self.labelon:
self.setToolTip(self.mask_class)
if not self.labelon:
self.setToolTip(
'Press Enter to choose label\nClick Rectangle or Ellipse to edit\nPress Delete to remove mark')
else:
if self.new_shape():
self.setToolTip(self.selectedshape_name)
elif event.button == 2:
self.wheel_clicked = False
elif self.picked and event.button == 1:
self._edit_on_release(event)
def _edit_on_release(self, event):
self.picked = False
self.set_state(1)
# turn off the rect animation property and reset the background
self.to_draw.set_animated(False)
try:
canvas = self.to_draw.get_figure().canvas
axes = self.to_draw.axes
self.background = canvas.copy_from_bbox(self.selectedShape.axes.bbox)
canvas.restore_region(self.background)
axes.draw_artist(self.to_draw)
axes.draw_artist(self._corner_handles.artist)
axes.draw_artist(self._edge_handles.artist)
axes.draw_artist(self._center_handle.artist)
# blit just the redrawn area
canvas.blit(axes.bbox)
except:
pass
self.df = pandas.read_csv('Markings/marking_records.csv')
if type(self.to_draw) is Rectangle or Ellipse:
self.df.loc[self.selectind, 'artist'] = self.to_draw
self.df.to_csv('Markings/marking_records.csv', index=False)
def set_labelon(self, labelon):
self.labelon = labelon
def set_legendon(self, legendon):
self.legendon = legendon
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def set_toolTip(self, name):
if self.labelon:
self.setToolTip(name)
def set_cursor2D(self, cursoron):
self.cursor2D.set_visible(cursoron)
def set_cursor_position(self, x, y):
self.cursor2D.set_position(x, y)
def set_facecolor(self, color):
if self.label_shape() == 1:
self.toggle_selector_RS.set_facecolor(color)
elif self.label_shape() == 2:
self.toggle_selector_ES.set_facecolor(color)
elif self.label_shape() == 3:
self.toggle_selector_LS.set_facecolor(color)
def drawing(self):
return self.labelmode == self.MARK
def editing(self):
return self.labelmode == self.SELECT
def set_state(self, value):
if value == 1:
self.labelmode = self.MARK
elif value == 2:
self.labelmode = self.SELECT
else:
self.labelmode = None
def set_greyscale(self, glist):
v_min = glist[0]
v_max = glist[1]
self.pltc.set_clim(vmin=v_min, vmax=v_max)
glist[0] = v_min
glist[1] = v_max
self.gray_data.emit(glist)
self.figure.canvas.draw()
def set_color(self):
self.voxel = self.param.get('image')
self.shape = self.param.get('shape')
self.Y = self.param.get('color')
self.Z = self.param.get('hatch')
self.mode = self.param.get('mode')
self.cmap = self.param.get('cmap')
self.hmap = self.param.get('hmap')
self.trans = self.param.get('trans')
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
def set_transparency(self, value):
if self.mode > 3:
self.trans = value
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
else:
for item in self.ax1.get_children():
if not type(item) == AxesImage:
self.artist_list.append(item)
for artist in self.artist_list:
artist.set_alpha(value)
self.figure.canvas.draw()
def linked_slice(self, data):
if self.wheel_roll == False:
if data == 0:
self.ind = self.ind + 1
else:
self.ind = self.ind - 1
if self.ind >= self.slices:
self.ind = 0
if self.ind <= -1:
self.ind = self.slices - 1
self.ax1.clear()
self.emitlist[0] = self.ind
self.update_data.emit(self.emitlist)
if bool(self.flipimage % 4):
self.view_flip_image()
else:
self.view_image()
else:
pass
def linked_grey(self, glist):
if self.wheel_clicked == False:
v_min, v_max = self.pltc.get_clim()
__vmin = glist[0]
__vmax = glist[1]
v_min += __vmin
v_max += __vmax
self.pltc.set_clim(vmin=v_min, vmax=v_max)
# if type(v_min)=='int':
try:
self.graylist[0] = v_min.round(2)
self.graylist[1] = v_max.round(2)
except:
self.graylist[0] = v_min
self.graylist[1] = v_max
self.gray_data.emit(self.graylist)
self.figure.canvas.draw()
else:
pass
def set_cursor(self, crosson):
if crosson:
if self.toggle_selector_RS.active:
self.toggle_selector_RS.set_cursor(True)
self.toggle_selector_ES.set_cursor(False)
self.toggle_selector_LS.set_cursor(False)
elif self.toggle_selector_ES.active:
self.toggle_selector_RS.set_cursor(False)
self.toggle_selector_ES.set_cursor(True)
self.toggle_selector_LS.set_cursor(False)
elif self.toggle_selector_LS.active:
self.toggle_selector_RS.set_cursor(False)
self.toggle_selector_ES.set_cursor(False)
self.toggle_selector_LS.set_cursor(True)
else:
self.toggle_selector_RS.set_cursor(False)
self.toggle_selector_ES.set_cursor(False)
self.toggle_selector_LS.set_cursor(False)
def rec_onselect(self, eclick, erelease):
x1, y1 = eclick.xdata, eclick.ydata
x2, y2 = erelease.xdata, erelease.ydata
rect = Rectangle((min(x1, x2), min(y1, y2)), np.abs(x1 - x2), np.abs(y1 - y2), fill=True,
alpha=.2, edgecolor=None)
plist = np.ndarray.tolist(rect.get_path().vertices)
plist = ', '.join(str(x) for x in plist)
self.ax1.add_patch(rect)
self.figure.canvas.draw()
if self.mode == 1 or self.mode == 4 or self.mode == 7:
onslice = 'Z %s' % (self.ind + 1)
elif self.mode == 2 or self.mode == 5 or self.mode == 8:
onslice = 'X %s' % (self.ind + 1)
elif self.mode == 3 or self.mode == 6 or self.mode == 9:
onslice = 'Y %s' % (self.ind + 1)
self.df = pandas.read_csv('Markings/marking_records.csv')
df_size = pandas.DataFrame.count(self.df)
df_rows = df_size['artist']
self.df.loc[df_rows, 'artist'] = rect
self.df.loc[df_rows, 'labelshape'] = 'rec'
self.df.loc[df_rows, 'slice'] = onslice
self.df.loc[df_rows, 'path'] = plist
self.df.loc[df_rows, 'status'] = 0
self.df.to_csv('Markings/marking_records.csv', index=False)
def ell_onselect(self, eclick, erelease):
x1, y1 = eclick.xdata, eclick.ydata
x2, y2 = erelease.xdata, erelease.ydata
ell = Ellipse(xy=(min(x1, x2) + np.abs(x1 - x2) / 2, min(y1, y2) + np.abs(y1 - y2) / 2),
width=np.abs(x1 - x2), height=np.abs(y1 - y2), alpha=.2, edgecolor=None)
plist = np.ndarray.tolist(ell.get_path().vertices)
plist = ', '.join(str(x) for x in plist)
self.ax1.add_patch(ell)
self.figure.canvas.draw()
if self.mode == 1 or self.mode == 4 or self.mode == 7:
onslice = 'Z %s' % (self.ind + 1)
elif self.mode == 2 or self.mode == 5 or self.mode == 8:
onslice = 'X %s' % (self.ind + 1)
elif self.mode == 3 or self.mode == 6 or self.mode == 9:
onslice = 'Y %s' % (self.ind + 1)
self.df = pandas.read_csv('Markings/marking_records.csv')
df_size = pandas.DataFrame.count(self.df)
df_rows = df_size['artist']
self.df.loc[df_rows, 'artist'] = ell
self.df.loc[df_rows, 'labelshape'] = 'ell'
self.df.loc[df_rows, 'slice'] = onslice
self.df.loc[df_rows, 'path'] = plist
self.df.loc[df_rows, 'status'] = 0
self.df.to_csv('Markings/marking_records.csv', index=False)
def lasso_onselect(self, verts):
self.pathlasso = path.Path(verts)
patch = patches.PathPatch(self.pathlasso, fill=True, alpha=.2, edgecolor=None)
self.ax1.add_patch(patch)
self.figure.canvas.draw()
if self.mode == 1 or self.mode == 4 or self.mode == 7:
onslice = 'Z %s' % (self.ind + 1)
elif self.mode == 2 or self.mode == 5 or self.mode == 8:
onslice = 'X %s' % (self.ind + 1)
elif self.mode == 3 or self.mode == 6 or self.mode == 9:
onslice = 'Y %s' % (self.ind + 1)
self.df = pandas.read_csv('Markings/marking_records.csv')
df_size = pandas.DataFrame.count(self.df)
df_rows = df_size['artist']
self.df.loc[df_rows, 'artist'] = patch
plist = np.ndarray.tolist(self.pathlasso.vertices)
plist = ', '.join(str(x) for x in plist)
self.df.loc[df_rows, 'labelshape'] = 'lasso'
self.df.loc[df_rows, 'slice'] = onslice
self.df.loc[df_rows, 'path'] = plist
self.df.loc[df_rows, 'status'] = 0
self.df.to_csv('Markings/marking_records.csv', index=False)
def rec_toggle_selector_on(self):
self.toggle_selector_RS.set_active(True)
self.figure.canvas.draw()
def rec_toggle_selector_off(self):
self.toggle_selector_RS.set_active(False)
def ell_toggle_selector_on(self):
self.toggle_selector_ES.set_active(True)
self.figure.canvas.draw()
def ell_toggle_selector_off(self):
self.toggle_selector_ES.set_active(False)
def lasso_toggle_selector_on(self):
self.toggle_selector_LS.set_active(True)
self.figure.canvas.draw()
def lasso_toggle_selector_off(self):
self.toggle_selector_LS.set_active(False)
def toggle_selector(self):
if self.toggle_selector_RS.active:
self.toggle_selector_ES.set_active(False)
self.toggle_selector_RS.set_active(True)
self.toggle_selector_LS.set_active(False)
elif self.toggle_selector_ES.active:
self.toggle_selector_ES.set_active(True)
self.toggle_selector_RS.set_active(False)
self.toggle_selector_LS.set_active(False)
elif self.toggle_selector_LS.active:
self.toggle_selector_ES.set_active(False)
self.toggle_selector_RS.set_active(False)
self.toggle_selector_LS.set_active(True)
else:
self.toggle_selector_ES.set_active(False)
self.toggle_selector_RS.set_active(False)
self.toggle_selector_LS.set_active(False)
def label_shape(self):
if self.toggle_selector_RS.is_new_shape():
return 1
elif self.toggle_selector_ES.is_new_shape():
return 2
elif self.toggle_selector_LS.is_new_shape():
return 3
else:
return 0
def new_shape(self):
if self.toggle_selector_RS.active:
return self.toggle_selector_RS.is_new_shape()
elif self.toggle_selector_ES.active:
return self.toggle_selector_ES.is_new_shape()
elif self.toggle_selector_LS.active:
return self.toggle_selector_LS.is_new_shape()
else:
return False
class Cursor(AxesWidget):
def __init__(self, ax, horizOn=True, vertOn=True, useblit=False,
**lineprops):
AxesWidget.__init__(self, ax)
self.connect_event('button_press_event', self.press)
self.connect_event('draw_event', self.clear)
self.visible = False
self.horizOn = horizOn
self.vertOn = vertOn
self.useblit = useblit and self.canvas.supports_blit
if self.useblit:
lineprops['animated'] = True
self.lineh = ax.axhline(ax.get_ybound()[0], visible=True, **lineprops)
self.linev = ax.axvline(ax.get_xbound()[0], visible=True, **lineprops)
self.background = None
self.needclear = False
def set_active(self, active):
self._active = self.active
AxesWidget.set_active(self, active)
if active:
self.update_background(None)
def set_visible(self, visible):
self.visible = visible
self.linev.set_visible(self.visible)
self.lineh.set_visible(self.visible)
self._update()
def set_position(self, x, y):
self.linev.set_xdata((x, x))
self.lineh.set_ydata((y, y))
self.linev.set_visible(self.visible and self.vertOn)
self.lineh.set_visible(self.visible and self.horizOn)
self._update()
def update_background(self, event):
"""force an update of the background"""
# If you add a call to `ignore` here, you'll want to check edge case:
# `release` can call a draw event even when `ignore` is True.
if self.useblit:
self.background = self.canvas.copy_from_bbox(self.ax.bbox)
def clear(self, event):
"""clear the cursor"""
if self.ignore(event):
return
if self.useblit:
self.background = self.canvas.copy_from_bbox(self.ax.bbox)
self.linev.set_visible(False)
self.lineh.set_visible(False)
def press(self, event):
if event.inaxes != self.ax:
self.linev.set_visible(False)
self.lineh.set_visible(False)
if self.needclear:
self.canvas.draw()
self.needclear = False
return
self.needclear = True
self.linev.set_xdata((event.xdata, event.xdata))
self.lineh.set_ydata((event.ydata, event.ydata))
self.linev.set_visible(self.visible and self.vertOn)
self.lineh.set_visible(self.visible and self.horizOn)
self._update()
def _update(self):
if self.useblit:
if self.background is not None:
self.canvas.restore_region(self.background)
self.ax.draw_artist(self.linev)
self.ax.draw_artist(self.lineh)
self.canvas.blit(self.ax.bbox)
else:
self.canvas.draw_idle()
return False
class _SelectorWidget(AxesWidget):
def __init__(self, ax, onselect, useblit=False, button=None,
state_modifier_keys=None):
AxesWidget.__init__(self, ax)
self.visible = True
self.onselect = onselect
self.useblit = useblit and self.canvas.supports_blit
self.connect_default_events()
self.state_modifier_keys = dict(move=' ', clear='escape',
square='shift', center='control')
self.state_modifier_keys.update(state_modifier_keys or {})
self.background = None
self.artists = []
if isinstance(button, Integral):
self.validButtons = [button]
else:
self.validButtons = button
# will save the data (position at mouseclick)
self.eventpress = None
# will save the data (pos. at mouserelease)
self.eventrelease = None
self._prev_event = None
self.state = set()
self._active = True
def get_active(self):
return self._active
self.active = property(get_active, lambda self, active: self.set_active(active),
doc="Is the widget active?")
def set_active(self, active):
self._active = self.active
AxesWidget.set_active(self, active)
if active:
self.update_background(None)
def update_background(self, event):
"""force an update of the background"""
# If you add a call to `ignore` here, you'll want to check edge case:
# `release` can call a draw event even when `ignore` is True.
if self.useblit:
self.background = self.canvas.copy_from_bbox(self.ax.bbox)
def connect_default_events(self):
"""Connect the major canvas events to methods."""
self.connect_event('motion_notify_event', self.onmove)
self.connect_event('button_press_event', self.press)
self.connect_event('button_release_event', self.release)
self.connect_event('draw_event', self.update_background)
self.connect_event('key_press_event', self.on_key_press)
self.connect_event('key_release_event', self.on_key_release)
self.connect_event('scroll_event', self.on_scroll)
def ignore(self, event):
"""return *True* if *event* should be ignored"""
if not self.active or not self.ax.get_visible():
return True
# If canvas was locked
if not self.canvas.widgetlock.available(self):
return True
if not hasattr(event, 'button'):
event.button = None
# Only do rectangle selection if event was triggered
# with a desired button
if self.validButtons is not None:
if event.button not in self.validButtons:
return True
# If no button was pressed yet ignore the event if it was out
# of the axes
if self.eventpress is None:
return event.inaxes != self.ax
# If a button was pressed, check if the release-button is the
# same.
if event.button == self.eventpress.button:
return False
# If a button was pressed, check if the release-button is the
# same.
return (event.inaxes != self.ax or
event.button != self.eventpress.button)
def update(self):
"""draw using newfangled blit or oldfangled draw depending on
useblit
"""
if not self.ax.get_visible():
return False
if self.useblit:
if self.background is not None:
self.canvas.restore_region(self.background)
for artist in self.artists:
self.ax.draw_artist(artist)
self.canvas.blit(self.ax.bbox)
else:
self.canvas.draw_idle()
return False
def _get_data(self, event):
"""Get the xdata and ydata for event, with limits"""
if event.xdata is None:
return None, None
x0, x1 = self.ax.get_xbound()
y0, y1 = self.ax.get_ybound()
xdata = max(x0, event.xdata)
xdata = min(x1, xdata)
ydata = max(y0, event.ydata)
ydata = min(y1, ydata)
return xdata, ydata
def _clean_event(self, event):
"""Clean up an event
Use prev event if there is no xdata
Limit the xdata and ydata to the axes limits
Set the prev event
"""
if event.xdata is None:
event = self._prev_event
else:
event = copy.copy(event)
event.xdata, event.ydata = self._get_data(event)
self._prev_event = event
return event
def press(self, event):
"""Button press handler and validator"""
if not self.ignore(event):
event = self._clean_event(event)
self.eventpress = event
self._prev_event = event
key = event.key or ''
key = key.replace('ctrl', 'control')
# move state is locked in on a button press
if key == self.state_modifier_keys['move']:
self.state.add('move')
self._press(event)
return True
return False
def _press(self, event):
"""Button press handler"""
pass
def release(self, event):
"""Button release event handler and validator"""
if not self.ignore(event) and self.eventpress:
event = self._clean_event(event)
self.eventrelease = event
self._release(event)
self.eventpress = None
self.eventrelease = None
self.state.discard('move')
return True
return False
def _release(self, event):
"""Button release event handler"""
pass
def onmove(self, event):
"""Cursor move event handler and validator"""
if not self.ignore(event) and self.eventpress:
event = self._clean_event(event)
self._onmove(event)
return True
return False
def _onmove(self, event):
"""Cursor move event handler"""
pass
def on_scroll(self, event):
"""Mouse scroll event handler and validator"""
if not self.ignore(event):
self._on_scroll(event)
def _on_scroll(self, event):
"""Mouse scroll event handler"""
pass
def on_key_press(self, event):
"""Key press event handler and validator for all selection widgets"""
if self.active:
key = event.key or ''
key = key.replace('ctrl', 'control')
if key == self.state_modifier_keys['clear']:
for artist in self.artists:
artist.set_visible(False)
self.update()
return
for (state, modifier) in self.state_modifier_keys.items():
if modifier in key:
self.state.add(state)
self._on_key_press(event)
def _on_key_press(self, event):
"""Key press event handler - use for widget-specific key press actions.
"""
pass
def on_key_release(self, event):
"""Key release event handler and validator"""
if self.active:
key = event.key or ''
for (state, modifier) in self.state_modifier_keys.items():
if modifier in key:
self.state.discard(state)
self._on_key_release(event)
def _on_key_release(self, event):
"""Key release event handler"""
pass
def set_visible(self, visible):
""" Set the visibility of our artists """
self.visible = visible
for artist in self.artists:
artist.set_visible(visible)
def get_select(self):
for artist in self.artists:
select = []
if artist not in select:
select.append(artist)
return select
class RectangleSelector(_SelectorWidget):
_shape_klass = Rectangle
new_shape = False
def __init__(self, ax, onselect, drawtype='box',
minspanx=None, minspany=None, useblit=False,
lineprops=None, rectprops=None, spancoords='data',
button=None, maxdist=10, marker_props=None,
state_modifier_keys=None):
_SelectorWidget.__init__(self, ax, onselect, useblit=useblit,
button=button,
state_modifier_keys=state_modifier_keys)
self.to_draw = None
self.visible = True
self.cursor_on = False
self.lineh = ax.axhline(ax.get_ybound()[0], visible=False, color='blue', linestyle='dashed')
self.linev = ax.axvline(ax.get_xbound()[0], visible=False, color='blue', linestyle='dashed')
if drawtype == 'none':
drawtype = 'line' # draw a line but make it
self.visible = False # invisible
if drawtype == 'box':
if rectprops is None:
rectprops = dict(edgecolor=None, alpha=0.2, fill=True)
rectprops['animated'] = self.useblit
self.rectprops = rectprops
self.to_draw = self._shape_klass((0, 0), 0, 1, visible=False,
**self.rectprops)
self.ax.add_patch(self.to_draw)
if drawtype == 'line':
if lineprops is None:
lineprops = dict(color='black', linestyle='-',
linewidth=2, alpha=0.5)
lineprops['animated'] = self.useblit
self.lineprops = lineprops
self.to_draw = Line2D([0, 0], [0, 0], visible=False,
**self.lineprops)
self.ax.add_line(self.to_draw)
self.minspanx = minspanx
self.minspany = minspany
if spancoords not in ('data', 'pixels'):
raise ValueError("'spancoords' must be 'data' or 'pixels'")
self.spancoords = spancoords
self.drawtype = drawtype
self.maxdist = maxdist
if rectprops is None:
self.props = dict(mec='r')
else:
self.props = dict(mec=rectprops.get('edgecolor', 'r'))
self._corner_order = ['NW', 'NE', 'SE', 'SW']
xc, yc = self.corners
self._corner_handles = ToolHandles(self.ax, xc, yc, marker_props=self.props,
useblit=self.useblit)
self._edge_order = ['W', 'N', 'E', 'S']
xe, ye = self.edge_centers
self._edge_handles = ToolHandles(self.ax, xe, ye, marker='s',
marker_props=self.props,
useblit=self.useblit)
xc, yc = self.center
self._center_handle = ToolHandles(self.ax, [xc], [yc], marker='s',
marker_props=self.props,
useblit=self.useblit)
self.active_handle = None
if self.active_handle is not None:
self.artists = [self.to_draw, self._center_handle.artist,
self._corner_handles.artist,
self._edge_handles.artist]
else:
self.artists = [self.to_draw]
self._extents_on_press = None
def _press(self, event):
self.new_shape = False
"""on button press event"""
# make the drawed box/line visible get the click_event-coordinates,
# button, ...
self.active_handle = None
if self.active_handle is None:
# Clear previous rectangle before drawing new rectangle.
self.update()
x = event.xdata
y = event.ydata
self.extents = x, x, y, y
self.press_pos_x = event.x
self.press_pos_y = event.y
self.set_visible(self.visible)
def _release(self, event):
self.new_shape = True
# cursor
self.linev.set_visible(False)
self.lineh.set_visible(False)
# update the eventpress and eventrelease with the resulting extents
x1, x2, y1, y2 = self.extents
self.eventpress.xdata = x1
self.eventpress.ydata = y1
xy1 = self.ax.transData.transform_point([x1, y1])
self.eventpress.x, self.eventpress.y = xy1
self.eventrelease.xdata = x2
self.eventrelease.ydata = y2
xy2 = self.ax.transData.transform_point([x2, y2])
self.eventrelease.x, self.eventrelease.y = xy2
if self.spancoords == 'data':
xmin, ymin = self.eventpress.xdata, self.eventpress.ydata
xmax, ymax = self.eventrelease.xdata, self.eventrelease.ydata
# calculate dimensions of box or line get values in the right
# order
elif self.spancoords == 'pixels':
xmin, ymin = self.eventpress.x, self.eventpress.y
xmax, ymax = self.eventrelease.x, self.eventrelease.y
else:
raise ValueError('spancoords must be "data" or "pixels"')
if xmin > xmax:
xmin, xmax = xmax, xmin
if ymin > ymax:
ymin, ymax = ymax, ymin
spanx = xmax - xmin
spany = ymax - ymin
xproblems = self.minspanx is not None and spanx < self.minspanx
yproblems = self.minspany is not None and spany < self.minspany
# check if drawn distance (if it exists) is not too small in
# either x or y-direction
if self.drawtype != 'none' and (xproblems or yproblems):
for artist in self.artists:
artist.set_visible(False)
self.update()
return
# call desired function
self.onselect(self.eventpress, self.eventrelease)
self.update()
return False
def _onmove(self, event):
# handle cursor
self.linev.set_xdata((event.xdata, event.xdata))
self.lineh.set_ydata((event.ydata, event.ydata))
self.linev.set_visible(self.cursor_on)
self.lineh.set_visible(self.cursor_on)
# resize an existing shape
if self.active_handle and not self.active_handle == 'C':
x1, x2, y1, y2 = self._extents_on_press
if self.active_handle in ['E', 'W'] + self._corner_order:
x2 = event.xdata
if self.active_handle in ['N', 'S'] + self._corner_order:
y2 = event.ydata
# move existing shape
elif (self.active_handle == 'C' and self._extents_on_press is not None):
x1, x2, y1, y2 = self._extents_on_press
dx = event.xdata - self.eventpress.xdata
dy = event.ydata - self.eventpress.ydata
x1 += dx
x2 += dx
y1 += dy
y2 += dy
# new shape
else:
center = [self.eventpress.xdata, self.eventpress.ydata]
center_pix = [self.eventpress.x, self.eventpress.y]
dx = (event.xdata - center[0]) / 2.
dy = (event.ydata - center[1]) / 2.
center[0] += dx
center[1] += dy
x1, x2, y1, y2 = (center[0] - dx, center[0] + dx,
center[1] - dy, center[1] + dy)
self.extents = x1, x2, y1, y2
def update(self):
"""draw using newfangled blit or oldfangled draw depending on
useblit
"""
if not self.ax.get_visible():
return False
if self.useblit:
if self.background is not None:
self.canvas.restore_region(self.background)
for artist in self.artists:
self.ax.draw_artist(artist)
self.ax.draw_artist(self.linev)
self.ax.draw_artist(self.lineh)
self.canvas.blit(self.ax.bbox)
else:
self.canvas.draw_idle()
return False
def set_cursor(self, cursor_on):
self.cursor_on = cursor_on
self.linev.set_visible(self.cursor_on)
self.lineh.set_visible(self.cursor_on)
def is_new_shape(self):
return self.new_shape
def get_shape(self):
rect = []
for i in self.ax.patches:
if i not in rect:
rect.append(i)
return rect
def get_props(self):
return self.props
def set_facecolor(self, color):
self.to_draw.set_facecolor(color)
self.update()
@property
def _rect_bbox(self):
if self.drawtype == 'box':
x0 = self.to_draw.get_x()
y0 = self.to_draw.get_y()
width = self.to_draw.get_width()
height = self.to_draw.get_height()
return x0, y0, width, height
else:
x, y = self.to_draw.get_data()
x0, x1 = min(x), max(x)
y0, y1 = min(y), max(y)
return x0, y0, x1 - x0, y1 - y0
@property
def corners(self):
"""Corners of rectangle from lower left, moving clockwise."""
x0, y0, width, height = self._rect_bbox
xc = x0, x0 + width, x0 + width, x0
yc = y0, y0, y0 + height, y0 + height
return xc, yc
@property
def edge_centers(self):
"""Midpoint of rectangle edges from left, moving clockwise."""
x0, y0, width, height = self._rect_bbox
w = width / 2.
h = height / 2.
xe = x0, x0 + w, x0 + width, x0 + w
ye = y0 + h, y0, y0 + h, y0 + height
return xe, ye
@property
def center(self):
"""Center of rectangle"""
x0, y0, width, height = self._rect_bbox
return x0 + width / 2., y0 + height / 2.
@property
def extents(self):
"""Return (xmin, xmax, ymin, ymax)."""
x0, y0, width, height = self._rect_bbox
xmin, xmax = sorted([x0, x0 + width])
ymin, ymax = sorted([y0, y0 + height])
return xmin, xmax, ymin, ymax
@extents.setter
def extents(self, extents):
# Update displayed shape
self.draw_shape(extents)
# Update displayed handles
self._corner_handles.set_data(*self.corners)
self._edge_handles.set_data(*self.edge_centers)
self._center_handle.set_data(*self.center)
self.set_visible(self.visible)
self.update()
def draw_shape(self, extents):
x0, x1, y0, y1 = extents
xmin, xmax = sorted([x0, x1])
ymin, ymax = sorted([y0, y1])
xlim = sorted(self.ax.get_xlim())
ylim = sorted(self.ax.get_ylim())
xmin = max(xlim[0], xmin)
ymin = max(ylim[0], ymin)
xmax = min(xmax, xlim[1])
ymax = min(ymax, ylim[1])
if self.drawtype == 'box':
self.to_draw.set_x(xmin)
self.to_draw.set_y(ymin)
self.to_draw.set_width(xmax - xmin)
self.to_draw.set_height(ymax - ymin)
elif self.drawtype == 'line':
self.to_draw.set_data([xmin, xmax], [ymin, ymax])
@property
def geometry(self):
"""
Returns numpy.ndarray of shape (2,5) containing
x (``RectangleSelector.geometry[1,:]``) and
y (``RectangleSelector.geometry[0,:]``)
coordinates of the four corners of the rectangle starting
and ending in the top left corner.
"""
if hasattr(self.to_draw, 'get_verts'):
xfm = self.ax.transData.inverted()
y, x = xfm.transform(self.to_draw.get_verts()).T
return np.array([x, y])
else:
return np.array(self.to_draw.get_data())
class EllipseSelector(RectangleSelector):
_shape_klass = Ellipse
new_shape = False
def draw_shape(self, extents):
x1, x2, y1, y2 = extents
xmin, xmax = sorted([x1, x2])
ymin, ymax = sorted([y1, y2])
center = [x1 + (x2 - x1) / 2., y1 + (y2 - y1) / 2.]
a = (xmax - xmin) / 2.
b = (ymax - ymin) / 2.
if self.drawtype == 'box':
self.to_draw.center = center
self.to_draw.width = 2 * a
self.to_draw.height = 2 * b
else:
rad = np.deg2rad(np.arange(31) * 12)
x = a * np.cos(rad) + center[0]
y = b * np.sin(rad) + center[1]
self.to_draw.set_data(x, y)
@property
def _rect_bbox(self):
if self.drawtype == 'box':
x, y = self.to_draw.center
width = self.to_draw.width
height = self.to_draw.height
return x - width / 2., y - height / 2., width, height
else:
x, y = self.to_draw.get_data()
x0, x1 = min(x), max(x)
y0, y1 = min(y), max(y)
return x0, y0, x1 - x0, y1 - y0
class LassoSelector(_SelectorWidget):
new_shape = False
def __init__(self, ax, onselect=None, useblit=True, lineprops=None,
button=None):
_SelectorWidget.__init__(self, ax, onselect, useblit=useblit,
button=button)
self.verts = None
self.patch = None
self.cursor_on = False
self.lineh = ax.axhline(ax.get_ybound()[0], visible=False, color='blue', linestyle='dashed')
self.linev = ax.axvline(ax.get_xbound()[0], visible=False, color='blue', linestyle='dashed')
if lineprops is None:
lineprops = dict()
if useblit:
lineprops['animated'] = True
self.line = Line2D([], [], **lineprops)
self.line.set_visible(False)
self.ax.add_line(self.line)
self.artists = [self.line]
def _press(self, event):
self.verts = [self._get_data(event)]
self.line.set_visible(True)
self.new_shape = False
self.update()
def _release(self, event):
# cursor
self.linev.set_visible(False)
self.lineh.set_visible(False)
if self.verts is not None:
self.verts.append(self._get_data(event))
self.onselect(self.verts)
self.line.set_data([[], []])
self.line.set_visible(False)
self.verts = None
self.update()
# open labeldialog
self.new_shape = True
def _onmove(self, event):
# handle cursor
self.linev.set_xdata((event.xdata, event.xdata))
self.lineh.set_ydata((event.ydata, event.ydata))
self.linev.set_visible(self.cursor_on)
self.lineh.set_visible(self.cursor_on)
if self.verts is None:
return
self.verts.append(self._get_data(event))
self.line.set_data(list(zip(*self.verts)))
self.update()
def update(self):
"""draw using newfangled blit or oldfangled draw depending on
useblit
"""
if not self.verts is None:
pathlasso = path.Path(np.asarray(self.verts))
self.patch = patches.PathPatch(pathlasso, fill=True, alpha=.2, edgecolor=None)
else:
self.patch = None
if not self.ax.get_visible():
return False
if self.useblit:
if self.background is not None:
self.canvas.restore_region(self.background)
for artist in self.artists:
self.ax.draw_artist(artist)
self.ax.draw_artist(self.linev)
self.ax.draw_artist(self.lineh)
self.canvas.blit(self.ax.bbox)
else:
self.canvas.draw_idle()
return False
def set_cursor(self, cursor_on):
self.cursor_on = cursor_on
self.linev.set_visible(self.cursor_on)
self.lineh.set_visible(self.cursor_on)
def is_new_shape(self):
return self.new_shape
def get_select(self):
if not self.patch is None:
return self.patch
else:
return False
def set_facecolor(self, color):
if not self.patch is None:
self.patch.set_facecolor(color)
self.update()
| 44.625276
| 137
| 0.501408
| 13,977
| 121,113
| 4.218716
| 0.040996
| 0.028763
| 0.018011
| 0.026965
| 0.782736
| 0.73876
| 0.712083
| 0.684915
| 0.666429
| 0.65566
| 0
| 0.019081
| 0.38294
| 121,113
| 2,713
| 138
| 44.641725
| 0.769917
| 0.032466
| 0
| 0.703606
| 0
| 0
| 0.021769
| 0.007025
| 0
| 0
| 0
| 0
| 0
| 1
| 0.054529
| false
| 0.007476
| 0.007036
| 0.003958
| 0.102023
| 0
| 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
|
0fc9c4f97d582c019553d5b361a92950dacb886b
| 59
|
py
|
Python
|
Semester IV/Numerical Methods/get_distance_air.py
|
RianWardanaPutra/School
|
fc5f3c7a38aac20ee6afc3f509db0c6b5bb452d4
|
[
"MIT"
] | null | null | null |
Semester IV/Numerical Methods/get_distance_air.py
|
RianWardanaPutra/School
|
fc5f3c7a38aac20ee6afc3f509db0c6b5bb452d4
|
[
"MIT"
] | null | null | null |
Semester IV/Numerical Methods/get_distance_air.py
|
RianWardanaPutra/School
|
fc5f3c7a38aac20ee6afc3f509db0c6b5bb452d4
|
[
"MIT"
] | null | null | null |
from splinter import Browser
browser = Browser('chrome')
| 11.8
| 28
| 0.762712
| 7
| 59
| 6.428571
| 0.714286
| 0.622222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152542
| 59
| 4
| 29
| 14.75
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0.103448
| 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
|
0fd6224204b78a713e22fe4051688759ea07e856
| 40
|
py
|
Python
|
Python/Topics/Iterators/Vector sum/main.py
|
drtierney/hyperskill-problems
|
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
|
[
"MIT"
] | 5
|
2020-08-29T15:15:31.000Z
|
2022-03-01T18:22:34.000Z
|
Python/Topics/Iterators/Vector sum/main.py
|
drtierney/hyperskill-problems
|
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
|
[
"MIT"
] | null | null | null |
Python/Topics/Iterators/Vector sum/main.py
|
drtierney/hyperskill-problems
|
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
|
[
"MIT"
] | 1
|
2020-12-02T11:13:14.000Z
|
2020-12-02T11:13:14.000Z
|
for n in zip(v1, v2):
print(sum(n))
| 13.333333
| 21
| 0.55
| 9
| 40
| 2.444444
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 0.25
| 40
| 2
| 22
| 20
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
0fdae077a8508ff1043a239ef0b5a3b1b8e3889a
| 231
|
py
|
Python
|
test/tests/strop_test.py
|
aisk/pyston
|
ac69cfef0621dbc8901175e84fa2b5cb5781a646
|
[
"BSD-2-Clause",
"Apache-2.0"
] | 1
|
2020-02-06T14:28:45.000Z
|
2020-02-06T14:28:45.000Z
|
test/tests/strop_test.py
|
aisk/pyston
|
ac69cfef0621dbc8901175e84fa2b5cb5781a646
|
[
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null |
test/tests/strop_test.py
|
aisk/pyston
|
ac69cfef0621dbc8901175e84fa2b5cb5781a646
|
[
"BSD-2-Clause",
"Apache-2.0"
] | 1
|
2020-02-06T14:29:00.000Z
|
2020-02-06T14:29:00.000Z
|
import strop
print repr(strop.whitespace)
import string
print repr(string.whitespace)
print repr(string.lowercase)
print repr(string.uppercase)
all_chars = ''.join(chr(i) for i in xrange(256))
print repr(strop.lower(all_chars))
| 19.25
| 48
| 0.779221
| 36
| 231
| 4.944444
| 0.5
| 0.252809
| 0.252809
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014493
| 0.103896
| 231
| 11
| 49
| 21
| 0.845411
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.25
| null | null | 0.625
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
0fdfdfae2e360bea66b6a6c7575e303d9b9dfafd
| 139
|
py
|
Python
|
src/django/pfb_analysis/apps.py
|
PeopleForBikes/pfb-network-connectivity
|
fe2140ee0e491312aae15f547fee0d7ac4036167
|
[
"Apache-2.0"
] | 35
|
2017-01-17T15:14:59.000Z
|
2021-07-26T18:59:33.000Z
|
src/django/pfb_analysis/apps.py
|
PeopleForBikes/pfb-network-connectivity
|
fe2140ee0e491312aae15f547fee0d7ac4036167
|
[
"Apache-2.0"
] | 675
|
2017-01-16T13:46:39.000Z
|
2022-03-31T15:59:11.000Z
|
src/django/pfb_analysis/apps.py
|
PeopleForBikes/pfb-network-connectivity
|
fe2140ee0e491312aae15f547fee0d7ac4036167
|
[
"Apache-2.0"
] | 10
|
2017-01-17T15:15:02.000Z
|
2021-08-18T21:59:19.000Z
|
from __future__ import unicode_literals
from django.apps import AppConfig
class PfbAnalysisConfig(AppConfig):
name = 'pfb_analysis'
| 17.375
| 39
| 0.805755
| 16
| 139
| 6.625
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143885
| 139
| 7
| 40
| 19.857143
| 0.890756
| 0
| 0
| 0
| 0
| 0
| 0.086331
| 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
|
ba0f98dc125ebb0b86ae16c7a2247114324adf1f
| 18
|
py
|
Python
|
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Statistical Functions (see also scipy.stats)/pdtri Inverse to pdtr vs m.py
|
kuanpern/jupyterlab-snippets-multimenus
|
477f51cfdbad7409eab45abe53cf774cd70f380c
|
[
"BSD-3-Clause"
] | null | null | null |
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Statistical Functions (see also scipy.stats)/pdtri Inverse to pdtr vs m.py
|
kuanpern/jupyterlab-snippets-multimenus
|
477f51cfdbad7409eab45abe53cf774cd70f380c
|
[
"BSD-3-Clause"
] | null | null | null |
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Statistical Functions (see also scipy.stats)/pdtri Inverse to pdtr vs m.py
|
kuanpern/jupyterlab-snippets-multimenus
|
477f51cfdbad7409eab45abe53cf774cd70f380c
|
[
"BSD-3-Clause"
] | 1
|
2021-02-04T04:51:48.000Z
|
2021-02-04T04:51:48.000Z
|
special.pdtri(k,y)
| 18
| 18
| 0.777778
| 4
| 18
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 18
| 1
| 18
| 18
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e8655586b04f408b5930b20f6b2231278d1135fa
| 800
|
py
|
Python
|
Lista-05/exercicio-03.py
|
ricvilar/SER-347
|
016cde78b8f1fbf9eb222f3509da592caa737f96
|
[
"MIT"
] | null | null | null |
Lista-05/exercicio-03.py
|
ricvilar/SER-347
|
016cde78b8f1fbf9eb222f3509da592caa737f96
|
[
"MIT"
] | null | null | null |
Lista-05/exercicio-03.py
|
ricvilar/SER-347
|
016cde78b8f1fbf9eb222f3509da592caa737f96
|
[
"MIT"
] | null | null | null |
entrada = 'Gilberto'
saida = '{:+^12}'.format(entrada)
print(saida)
entrada = 'sensoriamento remoto'
saida = entrada.capitalize()
print(saida)
entrada = 'sensoriamento remoto'
saida = entrada.title()
print(saida)
entrada = 'GilberTo'
saida = entrada.lower()
print(saida)
entrada = 'Gilberto'
saida = '{:*<10}'.format(entrada)
print(saida)
entrada = 'Gilberto'
saida = '{:*>10}'.format(entrada)
print(saida)
entrada = ' Gilberto'
saida = entrada.strip()
print(saida)
entrada = 'ser347@dpi.inpe.br'
saida = entrada.partition('@')
print(saida)
entrada = 'CBERS_4_PAN5M_20180308'
saida = entrada.split('_')
print(saida)
entrada = 'Gilberto@@@'
saida = entrada.strip('@')
print(saida)
entrada = '@@Gilberto@@@'
saida = entrada.strip('@')
print = saida
| 18.181818
| 35
| 0.655
| 88
| 800
| 5.909091
| 0.261364
| 0.415385
| 0.326923
| 0.288462
| 0.748077
| 0.723077
| 0.651923
| 0.467308
| 0.467308
| 0.4
| 0
| 0.028571
| 0.16875
| 800
| 43
| 36
| 18.604651
| 0.753383
| 0
| 0
| 0.545455
| 0
| 0
| 0.224571
| 0.029062
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e8935b734337867d0462c2852d833e328daf25b2
| 1,737
|
py
|
Python
|
module1-introduction-to-sql/mod1_unit3.py
|
mattdmeans/DS-Unit-3-Sprint-2-SQL-and-Databases
|
9d8bb739ac6e9c8dc944c356e3c07e7b81453601
|
[
"MIT"
] | null | null | null |
module1-introduction-to-sql/mod1_unit3.py
|
mattdmeans/DS-Unit-3-Sprint-2-SQL-and-Databases
|
9d8bb739ac6e9c8dc944c356e3c07e7b81453601
|
[
"MIT"
] | null | null | null |
module1-introduction-to-sql/mod1_unit3.py
|
mattdmeans/DS-Unit-3-Sprint-2-SQL-and-Databases
|
9d8bb739ac6e9c8dc944c356e3c07e7b81453601
|
[
"MIT"
] | null | null | null |
import sqlite3
conn = sqlite3.connect('/Users/user/Documents/GitHub/Lambda/DS-Unit-3-Sprint-2-SQL-and-Databases/module1-introduction-to-sql/rpg_db.sqlite3')
c = conn.cursor()
# How many characters
print(c.execute('SELECT COUNT(*) FROM charactercreator_character;').fetchall())
# How many of each specific subclass
print(len(c.execute('SELECT * FROM charactercreator_character;').fetchall()[0][2:]))
# How many items
print(c.execute('SELECT COUNT(*) FROM armory_item;').fetchall())
#How many of the Items are weapons?
print(c.execute('SELECT COUNT(*) FROM armory_weapon;').fetchall())
# How many are not?
print(len(c.execute('SELECT * FROM armory_item;').fetchall()) - len(c.execute('SELECT * FROM armory_weapon;').fetchall()))
# How many Items does each character have? (Return first 20 rows)
print(c.execute('SELECT character_id, count(*) FROM charactercreator_character_inventory GROUP BY item_id LIMIT 20;').fetchall())
# How many Weapons does each character have? (Return first 20 rows)
print(c.execute('SELECT cci.character_id,count(*) FROM armory_weapon as aw, charactercreator_character_inventory as cci WHERE cci.item_id = aw.item_ptr_id GROUP BY cci.character_id LIMIT 20;').fetchall())
# On average, how many Items does each Character have?
table = c.execute('SELECT character_id, count(*) FROM charactercreator_character_inventory GROUP BY item_id;').fetchall()[:]
print(sum([x[1] for x in table]) / len(table))
# On average, how many Weapons does each character have?
table = c.execute('SELECT cci.character_id,count(*) FROM armory_weapon as aw, charactercreator_character_inventory as cci WHERE cci.item_id = aw.item_ptr_id GROUP BY cci.character_id;').fetchall()
print(sum([x[1] for x in table]) / len(table))
| 49.628571
| 204
| 0.758204
| 266
| 1,737
| 4.834586
| 0.274436
| 0.062208
| 0.108865
| 0.073872
| 0.713841
| 0.713841
| 0.598756
| 0.505443
| 0.465008
| 0.465008
| 0
| 0.011613
| 0.107657
| 1,737
| 35
| 205
| 49.628571
| 0.818065
| 0.207254
| 0
| 0.142857
| 0
| 0.214286
| 0.621345
| 0.265351
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.071429
| 0
| 0.071429
| 0.714286
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
e89be4df832e68c0127e91770e74ef453bcfaf58
| 32
|
py
|
Python
|
venv/lib/python3.6/types.py
|
bradjballard/personal_search_engine
|
530c5224721a7d700ca0c7c78a513bbc81f05c38
|
[
"NCSA"
] | null | null | null |
venv/lib/python3.6/types.py
|
bradjballard/personal_search_engine
|
530c5224721a7d700ca0c7c78a513bbc81f05c38
|
[
"NCSA"
] | null | null | null |
venv/lib/python3.6/types.py
|
bradjballard/personal_search_engine
|
530c5224721a7d700ca0c7c78a513bbc81f05c38
|
[
"NCSA"
] | null | null | null |
/anaconda/lib/python3.6/types.py
| 32
| 32
| 0.8125
| 6
| 32
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0
| 32
| 1
| 32
| 32
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e8b3365a34434f168289bf7e7eebeba2e830dbb4
| 280
|
py
|
Python
|
app/api/services/team_member_permissions.py
|
ArenaNetworks/dto-digitalmarketplace-api
|
d0d58924719d889503ed112b0d5801b528b0398c
|
[
"MIT"
] | 6
|
2017-06-09T03:38:53.000Z
|
2021-12-22T02:42:15.000Z
|
app/api/services/team_member_permissions.py
|
ArenaNetworks/dto-digitalmarketplace-api
|
d0d58924719d889503ed112b0d5801b528b0398c
|
[
"MIT"
] | 47
|
2016-08-02T05:21:31.000Z
|
2022-03-28T01:14:17.000Z
|
app/api/services/team_member_permissions.py
|
AusDTO/dto-digitalmarketplace-api
|
937843c9c01a71518cf4688b4daa55bbe7df1965
|
[
"MIT"
] | 7
|
2016-09-13T13:07:18.000Z
|
2021-02-17T10:16:21.000Z
|
from app.api.helpers import Service
from app.models import TeamMemberPermission
class TeamMemberPermissionService(Service):
__model__ = TeamMemberPermission
def __init__(self, *args, **kwargs):
super(TeamMemberPermissionService, self).__init__(*args, **kwargs)
| 28
| 74
| 0.771429
| 27
| 280
| 7.555556
| 0.62963
| 0.068627
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139286
| 280
| 9
| 75
| 31.111111
| 0.846473
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.833333
| 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
|
2cdb2bb2b54c2e3ee41c1ad3a17ae5ad55d28762
| 74
|
py
|
Python
|
example.py
|
kukharev/Watermarkd
|
d53151f0ed42f57282308abeb228374039ac0400
|
[
"Apache-2.0"
] | null | null | null |
example.py
|
kukharev/Watermarkd
|
d53151f0ed42f57282308abeb228374039ac0400
|
[
"Apache-2.0"
] | null | null | null |
example.py
|
kukharev/Watermarkd
|
d53151f0ed42f57282308abeb228374039ac0400
|
[
"Apache-2.0"
] | null | null | null |
import Watermarkd as wmd
#Enable GUI & Enjoy
wmd.Spread.single(gui=True)
| 14.8
| 27
| 0.77027
| 12
| 74
| 4.75
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135135
| 74
| 5
| 27
| 14.8
| 0.890625
| 0.243243
| 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
|
2cee492f1130b9e13b1aaf5de52f462ebe1cf50a
| 7,385
|
py
|
Python
|
__manifest__.py
|
IDRISSOUM/hospital_management
|
56a768f29269a77bc890d40479a8aacb90867189
|
[
"Unlicense"
] | null | null | null |
__manifest__.py
|
IDRISSOUM/hospital_management
|
56a768f29269a77bc890d40479a8aacb90867189
|
[
"Unlicense"
] | null | null | null |
__manifest__.py
|
IDRISSOUM/hospital_management
|
56a768f29269a77bc890d40479a8aacb90867189
|
[
"Unlicense"
] | null | null | null |
# -*- coding: utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.
{
"name" : "Hospital Management in Odoo/OpenERP",
"version" : "12.0.0.3",
"summary": "Hospital Management",
"category": "Industries",
"description": """
BrowseInfo developed a new odoo/OpenERP module apps.
This module is used to manage Hospital Mangement.
Also use for manage the healthcare management, Clinic management, Medical Management.Doctor's Clinic. Clinic software, oehealth. hospital system
Health Center Management
Hospital Buildings Management
Apothecary
clinic
dispensary management
Domiciliary Units
Patient - OutPatient Admissions
Patient - InPatient Admissions
Vaccines
Call Logs
Physicians & Appointments
Physicians Management
Appointments
Prescriptions
Evaluations
Pediatrics
Newborns
Surgeries
Insurances
Laboratory
Lab Tests
Imaging
Imaging Tests
Configuration
Physicians
Specialties
Degrees
Laboratory
Pathology
Diseases
Disease Categories
Health & Products
Medicines
Hospital Management System
Healthcare Management System
Clinic Management System
Appointment Management System
health care
This module is used to manage Hospital and Healthcare Management and Clinic Management apps.
manage clinic manage Patient hospital in odoo manage Healthcare system Patient Management,
Odoo Hospital Management odoo Healthcare Management Odoo Clinic Management
Odoo hospital Patients
Odoo Healthcare Patients Card Report
Odoo Healthcare Patients Medication History Report
Odoo Healthcare Appointments
Odoo hospital Appointments Invoice
Odoo Healthcare Families Prescriptions Healthcare Prescriptions
Odoo Healthcare Create Invoice from Prescriptions odoo hospital Prescription Report
Odoo Healthcare Patient Hospitalization
odoo Hospital Management System
Odoo Healthcare Management System
Odoo Clinic Management System
Odoo Appointment Management System
health care management system
Generate Report for patient details, appointment, prescriptions, lab-test
Odoo Lab Test Request and Result
Odoo Patient Hospitalization details
Generate Patient's Prescriptions
""" ,
"depends" : ["base", "sale", "stock", "account"],
"data": [
'security/hospital_groups.xml',
'data/ir_sequence_data.xml',
'views/assets.xml',
'views/login_page.xml',
'views/main_menu_file.xml',
'wizard/medical_appointments_invoice_wizard.xml',
'views/medical_appointment.xml',
'views/medical_appointment_request.xml',
'wizard/appointment_start_end_wizard.xml',
'wizard/create_prescription_invoice_wizard.xml',
'wizard/create_prescription_shipment_wizard.xml',
'wizard/medical_bed_transfer_wizard.xml',
'wizard/medical_health_services_invoice_wizard.xml',
'wizard/multiple_test_request_wizard.xml',
'views/medical_ambulatory_care_procedure.xml',
'views/medical_directions.xml',
'views/medical_family_code.xml',
'wizard/medical_lab_test_create_wizard.xml',
'views/medical_speciality.xml',
'views/medical_dose_unit.xml',
'views/medical_medicament.xml',
'views/medical_drug_form.xml',
'views/medical_drug_route.xml',
'views/medical_drugs_recreational.xml',
'views/medical_ethnicity.xml',
'views/medical_family_disease.xml',
'views/medical_genetic_risk.xml',
'views/medical_health_service_line.xml',
'views/medical_health_service.xml',
'views/medical_hospital_bed.xml',
'views/medical_hospital_building.xml',
'views/medical_hospital_oprating_room.xml',
'views/medical_hospital_unit.xml',
'views/medical_hospital_ward.xml',
'views/medical_inpatient_registration.xml',
'views/medical_inpatient_icu.xml',
'views/medical_icu_apache2_.xml',
'views/medical_icu_ecg.xml',
'views/medical_icu_glasgow.xml',
'views/medical_inpatient_medication.xml',
'views/medical_insurance_plan.xml',
'views/medical_insurance.xml',
'wizard/medical_lab_test_invoice_wizard.xml',
'views/medical_lab_test_units.xml',
'views/medical_patient_lab_test.xml',
'views/medical_lab.xml',
'views/medical_neomatal_apgar.xml',
'views/medical_newborn.xml',
'views/medical_occupation.xml',
'views/medical_operational_area.xml',
'views/medical_operational_sector.xml',
'views/medical_pathology_category.xml',
'views/medical_pathology_group.xml',
'views/medical_pathology.xml',
'views/medical_patient_ambulatory_care.xml',
'views/medical_patient_disease.xml',
'views/medical_patient_evaluation.xml',
'views/medical_patient_medication.xml',
'views/medical_patient_medication1.xml',
'views/medical_patient_pregnancy.xml',
'views/medical_patient_prental_evolution.xml',
'views/medical_patient_psc.xml',
'views/medical_patient.xml',
'views/medical_physician.xml',
'views/medical_preinatal.xml',
'views/medical_prescription_line.xml',
'views/medical_prescription_order.xml',
'views/medical_procedure.xml',
'views/medical_puerperium_monitor.xml',
'views/medical_rcri.xml',
'views/medical_rounding_procedure.xml',
'views/medical_surgey.xml',
'views/medical_test_critearea.xml',
'views/medical_test_type.xml',
'views/medical_vaccination.xml',
'views/medicament_category.xml',
'views/res_partner.xml',
'wizard/medical_imaging_test_request_wizard.xml',
'views/medical_imaging_test_request.xml',
'views/medical_imaging_test_result.xml',
'views/medical_imaging_test_type.xml',
'views/medical_imaging_test.xml',
'report/report_view.xml',
'report/appointment_recipts_report_template.xml',
'report/medical_view_report_document_lab.xml',
'report/medical_view_report_lab_result_demo_report.xml',
'report/newborn_card_report.xml',
'report/patient_card_report.xml',
'report/patient_diseases_document_report.xml',
'report/patient_medications_document_report.xml',
'report/patient_vaccinations_document_report.xml',
'report/prescription_demo_report.xml',
'security/ir.model.access.csv',
],
"author": "BrowseInfo",
"website": "http://www.browseinfo.in",
'live_test_url':'https://www.youtube.com/watch?v=Hm3N81kdp_c&t=2s',
"price": 89,
"currency": "EUR",
"installable": True,
"application": True,
"auto_install": False,
"images":["static/description/Banner.png"],
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| 40.13587
| 149
| 0.667434
| 776
| 7,385
| 6.095361
| 0.29768
| 0.118393
| 0.206131
| 0.046512
| 0.14926
| 0.027061
| 0.013531
| 0
| 0
| 0
| 0
| 0.003053
| 0.246039
| 7,385
| 183
| 150
| 40.355191
| 0.846444
| 0.022207
| 0
| 0.011494
| 0
| 0.005747
| 0.760565
| 0.426493
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fa01b9212d1768f473ab18cf02711174f8883b59
| 18
|
py
|
Python
|
solutions/103.py
|
AmbraTosi/python-ml-course
|
538f3e0e50c2b53dd17bf3a8d1bdcca0b4bd6230
|
[
"MIT"
] | null | null | null |
solutions/103.py
|
AmbraTosi/python-ml-course
|
538f3e0e50c2b53dd17bf3a8d1bdcca0b4bd6230
|
[
"MIT"
] | null | null | null |
solutions/103.py
|
AmbraTosi/python-ml-course
|
538f3e0e50c2b53dd17bf3a8d1bdcca0b4bd6230
|
[
"MIT"
] | null | null | null |
sales_data.info()
| 9
| 17
| 0.777778
| 3
| 18
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 18
| 1
| 18
| 18
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fa08a6ba8d5548599186a5620158aad8e7a70bbd
| 6,407
|
py
|
Python
|
grid_operations.py
|
writerix/Sixteen-Puzzle-Solver
|
fbb166f8ad9cc9ce29ad4a307928ce0cdf7fb287
|
[
"MIT"
] | null | null | null |
grid_operations.py
|
writerix/Sixteen-Puzzle-Solver
|
fbb166f8ad9cc9ce29ad4a307928ce0cdf7fb287
|
[
"MIT"
] | null | null | null |
grid_operations.py
|
writerix/Sixteen-Puzzle-Solver
|
fbb166f8ad9cc9ce29ad4a307928ce0cdf7fb287
|
[
"MIT"
] | null | null | null |
import math
def extract_bits(store, r_position, spread):
extract = store >> r_position
spread_mask = -1 << spread
spread_mask = ~spread_mask
return extract & spread_mask
def set_bits(store, bit_val, r_position, spread):
"""
:param store: integer pre-manipulation
:param bit_val: value of the bits to be set
:param r_position: zero-based indexing position of the right-most bit impacted by the manipulation
:param spread: how many bits are to be changed. Note: a spread of zero will result in return equal to input.
:return: integer with bits set
"""
spread_store_mask = (-1 << spread + r_position) | (1 << r_position) - 1
store = store & spread_store_mask
bit_val = bit_val & ((2**spread) - 1)# resize bit_val to fit in spread
bit_val = bit_val << r_position
store = store | bit_val
return store
def row_left(store, rows, cols, row_num):
"""
:param store: integer representing the state of the puzzle grid. Values are stored as one less than puzzle value.
To extract the puzzle grid in list of list of integer form, see extract_store.
:param rows: number of rows in the puzzle. One-based indexing.
:param cols: number of columns in the puzzle. One-based indexing.
:param row_num: the row number that is being rotated left. One-based indexing.
:return: integer representing the puzzle grid after the row left rotation is completed.
"""
bit_chunk_size = math.ceil(math.log2(rows * cols))
row_value = extract_bits(store, (rows - row_num) * cols * bit_chunk_size, cols * bit_chunk_size)
rotated_chunk = extract_bits(row_value, (cols - 1) * bit_chunk_size, bit_chunk_size)
row_value = row_value << bit_chunk_size
row_value = row_value | rotated_chunk
return set_bits(store, row_value, (rows - row_num) * cols * bit_chunk_size, cols * bit_chunk_size)
def row_right(store, rows, cols, row_num):
"""
:param store: integer representing the state of the puzzle grid. Values are stored as one less than puzzle value.
To extract the puzzle grid in list of list of integer form, see extract_store.
:param rows: number of rows in the puzzle. One-based indexing.
:param cols: number of columns in the puzzle. One-based indexing.
:param row_num: the row number that is being rotated left. One-based indexing.
:return: integer representing the puzzle grid after the row right rotation is completed.
"""
bit_chunk_size = math.ceil(math.log2(rows * cols))
row_value = extract_bits(store, (rows - row_num) * cols * bit_chunk_size, cols * bit_chunk_size)
rotated_chunk = extract_bits(row_value, 0, bit_chunk_size)
row_value = row_value >> bit_chunk_size
row_value = row_value | (rotated_chunk << (bit_chunk_size * (cols - 1)))
return set_bits(store, row_value, (rows - row_num) * cols * bit_chunk_size, cols * bit_chunk_size)
def col_up(store, rows, cols, col_num):
"""
:param store: integer representing the state of the puzzle grid. Values are stored as one less than puzzle value.
To extract the puzzle grid in list of list of integer form, see extract_store.
:param rows: number of rows in the puzzle. One-based indexing.
:param cols: number of columns in the puzzle. One-based indexing.
:param col_num: the column number that is being rotated up. One-based indexing.
:return: integer representing the puzzle grid after the column up rotation is completed.
"""
bit_chunk_size = math.ceil(math.log2(rows * cols))
# extract and save column's top value that will become the bottom value
future_bottom_chunk = extract_bits(store, ((rows * cols) - col_num) * bit_chunk_size, bit_chunk_size)
for i in range(rows - 1):
chunk = extract_bits(store, (((rows - i - 1) * cols) - col_num) * bit_chunk_size, bit_chunk_size)
store = set_bits(store, chunk, (((rows - i) * cols) - col_num) * bit_chunk_size, bit_chunk_size)
store = set_bits(store, future_bottom_chunk, (cols - col_num) * bit_chunk_size, bit_chunk_size)
return store
def col_down(store, rows, cols, col_num):
"""
:param store: integer representing the state of the puzzle grid. Values are stored as one less than puzzle value.
To extract the puzzle grid in list of list of integer form, see extract_store.
:param rows: number of rows in the puzzle. One-based indexing.
:param cols: number of columns in the puzzle. One-based indexing.
:param col_num: the column number that is being rotated down. One-based indexing.
:return: integer representing the puzzle grid after the column down rotation is completed.
"""
bit_chunk_size = math.ceil(math.log2(rows * cols))
# extract and save column's bottom value that will become the top value
future_top_chunk = extract_bits(store, (cols - col_num) * bit_chunk_size, bit_chunk_size)
for i in range(rows - 1):
chunk = extract_bits(store, (((i + 1) * cols) + cols - col_num) * bit_chunk_size, bit_chunk_size)
store = set_bits(store, chunk, ((i * cols) + cols - col_num) * bit_chunk_size, bit_chunk_size)
store = set_bits(store, future_top_chunk, ((rows * cols) - col_num) * bit_chunk_size, bit_chunk_size)
return store
def extract_store(store, rows, cols):
"""
:param store: integer representing the state of the puzzle grid. Values are stored as one less than puzzle value.
:param rows: number of rows in the puzzle. One-based indexing.
:param cols: cols: number of columns in the puzzle. One-based indexing.
:return: list of list of integers representing the state of the puzzle grid.
"""
max_val = rows * cols
bit_chunk_size = math.ceil(math.log2(max_val))
extract = []
r_offset = ((rows * cols) - 1) * bit_chunk_size
for i in range(rows):
extract.append([])
for j in range(cols):
extract[i].append(extract_bits(store, r_offset, bit_chunk_size) + 1)
r_offset -= bit_chunk_size
return extract
def compact_store(values):
"""
:param values: list of list of integers
:return: integer compactly representing the input values
"""
store = 0
max_val = len(values) * len(values[0])
bit_chunk_size = math.ceil(math.log2(max_val))
for value in values:
for num in value:
store = store << bit_chunk_size
store = store | (num - 1)
return store
| 46.766423
| 117
| 0.699391
| 993
| 6,407
| 4.328298
| 0.100705
| 0.074453
| 0.11168
| 0.032573
| 0.752676
| 0.716147
| 0.713355
| 0.705212
| 0.69893
| 0.683108
| 0
| 0.004765
| 0.213829
| 6,407
| 136
| 118
| 47.110294
| 0.848521
| 0.449821
| 0
| 0.253968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.126984
| false
| 0
| 0.015873
| 0
| 0.269841
| 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
|
fa0ae0775560f371d20827c8705c589d3bf94035
| 237
|
py
|
Python
|
tests/PROJECT_tests.py
|
WiserHare/python-project-template
|
2ab2ea7f2ca7d64cefa8985813ff11e118cfdc43
|
[
"MIT"
] | null | null | null |
tests/PROJECT_tests.py
|
WiserHare/python-project-template
|
2ab2ea7f2ca7d64cefa8985813ff11e118cfdc43
|
[
"MIT"
] | null | null | null |
tests/PROJECT_tests.py
|
WiserHare/python-project-template
|
2ab2ea7f2ca7d64cefa8985813ff11e118cfdc43
|
[
"MIT"
] | null | null | null |
from nose import *
import PROJECT.MODULE
def setup(): print("Set up your tests")
def teardown(): print("Clean up after the tests")
@with_setup(setup, teardown)
def test_something_fancy(): assert PROJECT.MODULE.do_something_fancy()
| 18.230769
| 70
| 0.755274
| 35
| 237
| 4.971429
| 0.628571
| 0.149425
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130802
| 237
| 12
| 71
| 19.75
| 0.84466
| 0
| 0
| 0
| 0
| 0
| 0.172996
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.5
| true
| 0
| 0.333333
| 0
| 0.833333
| 0.333333
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fa21083e8874d1fa66d856d80d81c613d4c69cb1
| 211
|
py
|
Python
|
recipes/Python/576833_A_simple_login_with_dictionary/recipe-576833.py
|
tdiprima/code
|
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
|
[
"MIT"
] | 2,023
|
2017-07-29T09:34:46.000Z
|
2022-03-24T08:00:45.000Z
|
recipes/Python/576833_A_simple_login_with_dictionary/recipe-576833.py
|
unhacker/code
|
73b09edc1b9850c557a79296655f140ce5e853db
|
[
"MIT"
] | 32
|
2017-09-02T17:20:08.000Z
|
2022-02-11T17:49:37.000Z
|
recipes/Python/576833_A_simple_login_with_dictionary/recipe-576833.py
|
unhacker/code
|
73b09edc1b9850c557a79296655f140ce5e853db
|
[
"MIT"
] | 780
|
2017-07-28T19:23:28.000Z
|
2022-03-25T20:39:41.000Z
|
database={'name': '1234', 'name2': '5678', 'name3': '9012'}
name = raw_input('Enter username: ')
ask = raw_input('Enter pin: ')
if ask in database[name]:
print 'Welcome', name
else:
print 'Invalid code'
| 26.375
| 59
| 0.63981
| 29
| 211
| 4.586207
| 0.689655
| 0.180451
| 0.195489
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079545
| 0.165877
| 211
| 7
| 60
| 30.142857
| 0.676136
| 0
| 0
| 0
| 0
| 0
| 0.341232
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.285714
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fa59216b43420265be571df007720c966f75e454
| 153
|
py
|
Python
|
AmEl_Tourism/application/data/__init__.py
|
Amirelkanov/AmEl_Tourism
|
136445335bd8de4007ff2c7106fd97dd3a6c7bc1
|
[
"Apache-2.0"
] | null | null | null |
AmEl_Tourism/application/data/__init__.py
|
Amirelkanov/AmEl_Tourism
|
136445335bd8de4007ff2c7106fd97dd3a6c7bc1
|
[
"Apache-2.0"
] | null | null | null |
AmEl_Tourism/application/data/__init__.py
|
Amirelkanov/AmEl_Tourism
|
136445335bd8de4007ff2c7106fd97dd3a6c7bc1
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from .articles import Article, Category
from .user_info import TGUserInfo, VKUserInfo
from .users import User
| 21.857143
| 45
| 0.738562
| 21
| 153
| 5.333333
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007576
| 0.137255
| 153
| 6
| 46
| 25.5
| 0.840909
| 0.248366
| 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
|
fa5db4f2bf85301e85f085590f817639ffbb577c
| 147
|
py
|
Python
|
application.py
|
vaseline5/test2019061002
|
b2d60132bbe3e4511924e930c54d9bb2db7a3f26
|
[
"MIT"
] | null | null | null |
application.py
|
vaseline5/test2019061002
|
b2d60132bbe3e4511924e930c54d9bb2db7a3f26
|
[
"MIT"
] | null | null | null |
application.py
|
vaseline5/test2019061002
|
b2d60132bbe3e4511924e930c54d9bb2db7a3f26
|
[
"MIT"
] | null | null | null |
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World! <br>Future home of RedRope Technologies, LLC"
| 21
| 70
| 0.707483
| 21
| 147
| 4.761905
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.163265
| 147
| 6
| 71
| 24.5
| 0.813008
| 0
| 0
| 0
| 0
| 0
| 0.394558
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
3afb43377a0f49d392c0fc85f46544714b361464
| 66
|
py
|
Python
|
ndnoise/__init__.py
|
mjirik/ndnoise
|
688f58c48c7a3432ba320d0d09d2d712dd445bab
|
[
"MIT"
] | null | null | null |
ndnoise/__init__.py
|
mjirik/ndnoise
|
688f58c48c7a3432ba320d0d09d2d712dd445bab
|
[
"MIT"
] | null | null | null |
ndnoise/__init__.py
|
mjirik/ndnoise
|
688f58c48c7a3432ba320d0d09d2d712dd445bab
|
[
"MIT"
] | null | null | null |
from .generator import noisef, noises
from .filtration import show
| 33
| 37
| 0.833333
| 9
| 66
| 6.111111
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 66
| 2
| 38
| 33
| 0.948276
| 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
|
d709ea2520b0de28ff24b0f60889a95c50304fbc
| 80
|
py
|
Python
|
__init__.py
|
tsuyukimakoto/cutcorners
|
50e66673b5afdeac269342b4199c66577354d754
|
[
"BSD-3-Clause"
] | 1
|
2021-01-24T22:47:16.000Z
|
2021-01-24T22:47:16.000Z
|
__init__.py
|
tsuyukimakoto/cutcorners
|
50e66673b5afdeac269342b4199c66577354d754
|
[
"BSD-3-Clause"
] | null | null | null |
__init__.py
|
tsuyukimakoto/cutcorners
|
50e66673b5afdeac269342b4199c66577354d754
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding:utf-8 -*-
from easy_mail import send_mail
__all__ = ['send_mail',]
| 20
| 31
| 0.675
| 12
| 80
| 3.916667
| 0.75
| 0.340426
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014493
| 0.1375
| 80
| 4
| 32
| 20
| 0.666667
| 0.25
| 0
| 0
| 0
| 0
| 0.152542
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.