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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce439deca301e727dba3066bd1ccd82d86fcd829
| 4,885
|
py
|
Python
|
tests/dates/test_dates.py
|
a-maliarov/simplegraphs
|
bba3fb9420ce136da4f3d5096a9caff970eba87e
|
[
"MIT"
] | 2
|
2022-02-09T03:33:00.000Z
|
2022-02-14T11:14:21.000Z
|
tests/dates/test_dates.py
|
a-maliarov/simplegraphs
|
bba3fb9420ce136da4f3d5096a9caff970eba87e
|
[
"MIT"
] | 2
|
2022-02-06T17:39:39.000Z
|
2022-03-31T19:00:13.000Z
|
tests/dates/test_dates.py
|
a-maliarov/simpleplots
|
bba3fb9420ce136da4f3d5096a9caff970eba87e
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from simpleplots.dates import (AutoDateLocator, YearLocator, MonthLocator,
WeekdayLocator, DayLocator, HourLocator,
MinuteLocator, SecondLocator, DateFormatter,
AutoDateFormatter)
import unittest
import numpy as np
import datetime
#-----------------------------------------------------------------------------
class TestDates(unittest.TestCase):
def test_autodatelocator_seconds(self):
loc = AutoDateLocator()
dmin = np.datetime64('2022-01-01 01:01:01')
dmax = np.datetime64('2022-01-01 01:01:59')
delta = np.timedelta64(1, 's')
times = np.arange(dmin, dmax, delta)
to_test = loc.tick_values(np.min(times), np.max(times))
expected = [
datetime.datetime(2022, 1, 1, 1, 1, 10),
datetime.datetime(2022, 1, 1, 1, 1, 20),
datetime.datetime(2022, 1, 1, 1, 1, 30),
datetime.datetime(2022, 1, 1, 1, 1, 40),
datetime.datetime(2022, 1, 1, 1, 1, 50)
]
self.assertListEqual(expected, to_test)
def test_autodatelocator_minutes(self):
loc = AutoDateLocator()
dmin = np.datetime64('2022-01-01 01:01:01')
dmax = np.datetime64('2022-01-01 01:12:34')
delta = np.timedelta64(1, 'm')
times = np.arange(dmin, dmax, delta)
to_test = loc.tick_values(np.min(times), np.max(times))
expected = [
datetime.datetime(2022, 1, 1, 1, 5),
datetime.datetime(2022, 1, 1, 1, 10)
]
self.assertListEqual(expected, to_test)
def test_autodatelocator_hours(self):
loc = AutoDateLocator()
dmin = np.datetime64('2022-01-01 01:01:01')
dmax = np.datetime64('2022-01-01 13:12:34')
delta = np.timedelta64(1, 'h')
times = np.arange(dmin, dmax, delta)
to_test = loc.tick_values(np.min(times), np.max(times))
expected = [
datetime.datetime(2022, 1, 1, 2, 0),
datetime.datetime(2022, 1, 1, 4, 0),
datetime.datetime(2022, 1, 1, 6, 0),
datetime.datetime(2022, 1, 1, 8, 0),
datetime.datetime(2022, 1, 1, 10, 0),
datetime.datetime(2022, 1, 1, 12, 0)
]
self.assertListEqual(expected, to_test)
def test_autodatelocator_days(self):
loc = AutoDateLocator()
dmin = np.datetime64('2022-01-01 01:01:01')
dmax = np.datetime64('2022-01-17 13:12:34')
delta = np.timedelta64(1, 'D')
times = np.arange(dmin, dmax, delta)
to_test = loc.tick_values(np.min(times), np.max(times))
expected = [
datetime.datetime(2022, 1, 3, 0, 0),
datetime.datetime(2022, 1, 5, 0, 0),
datetime.datetime(2022, 1, 7, 0, 0),
datetime.datetime(2022, 1, 9, 0, 0),
datetime.datetime(2022, 1, 11, 0, 0),
datetime.datetime(2022, 1, 13, 0, 0),
datetime.datetime(2022, 1, 15, 0, 0),
datetime.datetime(2022, 1, 17, 0, 0)
]
self.assertListEqual(expected, to_test)
def test_autodatelocator_months(self):
loc = AutoDateLocator()
dmin = np.datetime64('2022-01')
dmax = np.datetime64('2022-06')
delta = np.timedelta64(1, 'M')
times = np.arange(dmin, dmax, delta).astype('datetime64[s]')
to_test = loc.tick_values(np.min(times), np.max(times))
expected = [
datetime.datetime(2022, 1, 1, 0, 0),
datetime.datetime(2022, 1, 15, 0, 0),
datetime.datetime(2022, 2, 1, 0, 0),
datetime.datetime(2022, 2, 15, 0, 0),
datetime.datetime(2022, 3, 1, 0, 0),
datetime.datetime(2022, 3, 15, 0, 0),
datetime.datetime(2022, 4, 1, 0, 0),
datetime.datetime(2022, 4, 15, 0, 0),
datetime.datetime(2022, 5, 1, 0, 0)
]
self.assertListEqual(expected, to_test)
def test_autodatelocator_years(self):
loc = AutoDateLocator()
dmin = np.datetime64('2022-01')
dmax = np.datetime64('2035-06')
delta = np.timedelta64(1, 'Y')
times = np.arange(dmin, dmax, delta).astype('datetime64[s]')
to_test = loc.tick_values(np.min(times), np.max(times))
expected = [
datetime.datetime(2022, 1, 1, 0, 0),
datetime.datetime(2024, 1, 1, 0, 0),
datetime.datetime(2026, 1, 1, 0, 0),
datetime.datetime(2028, 1, 1, 0, 0),
datetime.datetime(2030, 1, 1, 0, 0),
datetime.datetime(2032, 1, 1, 0, 0),
datetime.datetime(2034, 1, 1, 0, 0),
datetime.datetime(2036, 1, 1, 0, 0)
]
self.assertListEqual(expected, to_test)
#-----------------------------------------------------------------------------
| 37.007576
| 78
| 0.535722
| 608
| 4,885
| 4.254934
| 0.143092
| 0.235021
| 0.23966
| 0.19482
| 0.850792
| 0.840356
| 0.637418
| 0.579822
| 0.523
| 0.501353
| 0
| 0.14746
| 0.29478
| 4,885
| 131
| 79
| 37.290076
| 0.603483
| 0.035824
| 0
| 0.377358
| 0
| 0
| 0.045049
| 0
| 0
| 0
| 0
| 0
| 0.056604
| 1
| 0.056604
| false
| 0
| 0.037736
| 0
| 0.103774
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 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
| 5
|
cbf9e07b190fbb14654d43fdd8bd9d4bb7467000
| 108
|
py
|
Python
|
plugin_manager/hosts/admin.py
|
ahharu/plugin-manager
|
43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb
|
[
"MIT"
] | null | null | null |
plugin_manager/hosts/admin.py
|
ahharu/plugin-manager
|
43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb
|
[
"MIT"
] | null | null | null |
plugin_manager/hosts/admin.py
|
ahharu/plugin-manager
|
43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from plugin_manager.hosts import models
admin.site.register(models.Host)
| 18
| 39
| 0.833333
| 16
| 108
| 5.5625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101852
| 108
| 6
| 40
| 18
| 0.917526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
023fc367be9eb5d6fe9574dfdb55057af0e172a2
| 160
|
py
|
Python
|
lsml/initializer/__init__.py
|
sandeepdas05/lsm-crack-width
|
38460e514d48f3424bb8d3bd58cb3eb330153e64
|
[
"BSD-3-Clause"
] | 24
|
2020-01-30T15:53:33.000Z
|
2022-01-15T09:46:24.000Z
|
lsml/initializer/__init__.py
|
sandeepdas05/lsm-crack-width
|
38460e514d48f3424bb8d3bd58cb3eb330153e64
|
[
"BSD-3-Clause"
] | null | null | null |
lsml/initializer/__init__.py
|
sandeepdas05/lsm-crack-width
|
38460e514d48f3424bb8d3bd58cb3eb330153e64
|
[
"BSD-3-Clause"
] | 13
|
2019-12-05T08:32:11.000Z
|
2022-03-20T03:12:03.000Z
|
# flake8: noqa
from .provided.ball import BallInitializer, RandomBallInitializer, ThresholdBallInitializer
from .provided.threshold import ThresholdInitializer
| 40
| 91
| 0.86875
| 14
| 160
| 9.928571
| 0.785714
| 0.172662
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006803
| 0.08125
| 160
| 3
| 92
| 53.333333
| 0.938776
| 0.075
| 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
| 1
| 0
|
0
| 5
|
025d7ddbcbd2305c518bc27b4d8aa66ddfe9fdc3
| 32
|
py
|
Python
|
skm_tea/utils/__init__.py
|
StanfordMIMI/skm-tea
|
5678bfcebad4fdc30de62b319d96ec1775e1671c
|
[
"MIT"
] | 26
|
2021-08-28T06:57:50.000Z
|
2022-02-17T06:33:41.000Z
|
skm_tea/utils/__init__.py
|
StanfordMIMI/skm-tea
|
5678bfcebad4fdc30de62b319d96ec1775e1671c
|
[
"MIT"
] | 6
|
2021-10-20T16:04:12.000Z
|
2022-03-15T20:16:52.000Z
|
skm_tea/utils/__init__.py
|
StanfordMIMI/skm-tea
|
5678bfcebad4fdc30de62b319d96ec1775e1671c
|
[
"MIT"
] | 4
|
2021-11-15T08:32:41.000Z
|
2022-02-23T18:54:30.000Z
|
from . import path # noqa: 401
| 16
| 31
| 0.65625
| 5
| 32
| 4.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 0.25
| 32
| 1
| 32
| 32
| 0.75
| 0.28125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
02727f9827504ddb21f433e29f9ce09ac48ff4fa
| 180
|
py
|
Python
|
0x03-python-data_structures/2-replace_in_list.py
|
darkares23/holbertonschool-higher_level_programming
|
931b1b701d8a1d990b7cd931486496c0b5502e21
|
[
"MIT"
] | null | null | null |
0x03-python-data_structures/2-replace_in_list.py
|
darkares23/holbertonschool-higher_level_programming
|
931b1b701d8a1d990b7cd931486496c0b5502e21
|
[
"MIT"
] | null | null | null |
0x03-python-data_structures/2-replace_in_list.py
|
darkares23/holbertonschool-higher_level_programming
|
931b1b701d8a1d990b7cd931486496c0b5502e21
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3
def replace_in_list(my_list, idx, element):
if idx < 0 or (len(my_list) - 1) < idx:
return (my_list)
my_list[idx] = element
return (my_list)
| 25.714286
| 43
| 0.627778
| 30
| 180
| 3.533333
| 0.533333
| 0.283019
| 0.188679
| 0.245283
| 0.377358
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021739
| 0.233333
| 180
| 6
| 44
| 30
| 0.746377
| 0.094444
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
027fa522747a6549891c1f86ef8bbc516cc35c7c
| 152
|
py
|
Python
|
sparkdq/analytics/runners/OutputOptions.py
|
PasaLab/SparkDQ
|
16d50210747ef7de03cf36d689ce26ff7445f63a
|
[
"Apache-2.0"
] | 1
|
2021-02-08T07:49:54.000Z
|
2021-02-08T07:49:54.000Z
|
sparkdq/analytics/runners/OutputOptions.py
|
PasaLab/SparkDQ
|
16d50210747ef7de03cf36d689ce26ff7445f63a
|
[
"Apache-2.0"
] | null | null | null |
sparkdq/analytics/runners/OutputOptions.py
|
PasaLab/SparkDQ
|
16d50210747ef7de03cf36d689ce26ff7445f63a
|
[
"Apache-2.0"
] | null | null | null |
class OutputOptions:
def __init__(self, file_name=None, over_write=False):
self.file_name = file_name
self.over_write = over_write
| 25.333333
| 57
| 0.703947
| 21
| 152
| 4.619048
| 0.52381
| 0.247423
| 0.247423
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217105
| 152
| 5
| 58
| 30.4
| 0.815126
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
028719ef3e870779cc4fa525746a4af1a30e8bc7
| 842
|
py
|
Python
|
test/process_assignment/test_assignment_type.py
|
babatana/stograde
|
c1c447e99c44c23cef9dd857e669861f3708ae77
|
[
"MIT"
] | 7
|
2016-08-05T00:41:11.000Z
|
2019-08-22T11:12:10.000Z
|
test/process_assignment/test_assignment_type.py
|
babatana/stograde
|
c1c447e99c44c23cef9dd857e669861f3708ae77
|
[
"MIT"
] | 145
|
2016-08-04T01:07:11.000Z
|
2019-09-09T22:07:13.000Z
|
test/process_assignment/test_assignment_type.py
|
babatana/stograde
|
c1c447e99c44c23cef9dd857e669861f3708ae77
|
[
"MIT"
] | 3
|
2017-02-06T21:52:46.000Z
|
2019-02-18T10:35:01.000Z
|
from stograde.process_assignment.assignment_type import AssignmentType, get_assignment_type, get_assignment_number, \
parse_assignment_name
def test_get_assignment_type():
assert get_assignment_type('hw1') is AssignmentType.HOMEWORK
assert get_assignment_type('lab23') is AssignmentType.LAB
assert get_assignment_type('ws4') is AssignmentType.WORKSHEET
def test_get_assignment_number():
assert get_assignment_number('hw132') == 132
assert get_assignment_number('lab1') == 1
assert get_assignment_number('ws32') == 32
def test_parse_assignment_name():
assert parse_assignment_name('hw21') == ('hw', '21')
assert parse_assignment_name('lab2') == ('lab', '2')
assert parse_assignment_name('ws212') == ('ws', '212')
try:
parse_assignment_name('bad32')
except ValueError:
pass
| 33.68
| 117
| 0.73753
| 103
| 842
| 5.669903
| 0.38835
| 0.222603
| 0.195205
| 0.118151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042017
| 0.152019
| 842
| 24
| 118
| 35.083333
| 0.77591
| 0
| 0
| 0
| 0
| 0
| 0.065321
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.166667
| true
| 0.055556
| 0.055556
| 0
| 0.222222
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
5a348164248fa4701984894e125c7cb6212920be
| 187
|
py
|
Python
|
tests/native/conftest.py
|
gskoljarev/transifex-python
|
84e50a8339841418388e810e6eb693481f4c3532
|
[
"Apache-2.0"
] | 14
|
2020-04-10T20:54:59.000Z
|
2022-03-07T16:13:22.000Z
|
tests/native/conftest.py
|
gskoljarev/transifex-python
|
84e50a8339841418388e810e6eb693481f4c3532
|
[
"Apache-2.0"
] | 60
|
2020-04-14T12:41:06.000Z
|
2022-03-29T06:38:09.000Z
|
tests/native/conftest.py
|
gskoljarev/transifex-python
|
84e50a8339841418388e810e6eb693481f4c3532
|
[
"Apache-2.0"
] | 6
|
2021-01-01T10:28:11.000Z
|
2021-06-10T09:50:26.000Z
|
import pytest
@pytest.fixture
def reset_tx():
"""Reset "global" TxNative instance so that it can be reinitialized."""
from transifex.native import tx
tx.initialized = False
| 20.777778
| 75
| 0.716578
| 25
| 187
| 5.32
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192513
| 187
| 8
| 76
| 23.375
| 0.880795
| 0.347594
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5a5c5233bd58aa5cec5221df71d054c53217d799
| 63
|
py
|
Python
|
python/leftpad.py
|
melonmanchan/left-pad-services
|
19df1aa40422d9793949a23545285558de068d20
|
[
"MIT"
] | null | null | null |
python/leftpad.py
|
melonmanchan/left-pad-services
|
19df1aa40422d9793949a23545285558de068d20
|
[
"MIT"
] | null | null | null |
python/leftpad.py
|
melonmanchan/left-pad-services
|
19df1aa40422d9793949a23545285558de068d20
|
[
"MIT"
] | null | null | null |
def left_pad(str, ch, len):
return str.rjust(int(len), ch)
| 21
| 34
| 0.650794
| 12
| 63
| 3.333333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174603
| 63
| 2
| 35
| 31.5
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
5a6afaeccbd6bebec68dc91dfaa44d323450b87f
| 59
|
py
|
Python
|
stable_baselines3/minatar/__init__.py
|
Darklanx/stable-baselines3
|
084f5ebfc724543de485249b7a872637b29b472a
|
[
"MIT"
] | null | null | null |
stable_baselines3/minatar/__init__.py
|
Darklanx/stable-baselines3
|
084f5ebfc724543de485249b7a872637b29b472a
|
[
"MIT"
] | null | null | null |
stable_baselines3/minatar/__init__.py
|
Darklanx/stable-baselines3
|
084f5ebfc724543de485249b7a872637b29b472a
|
[
"MIT"
] | null | null | null |
from .environment import Environment
# from .gui import GUI
| 29.5
| 36
| 0.813559
| 8
| 59
| 6
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135593
| 59
| 2
| 37
| 29.5
| 0.941176
| 0.338983
| 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
| 1
| 0
|
0
| 5
|
5a75f826786315b9c2e95042af503110f0af2380
| 747
|
py
|
Python
|
jupyter_ascending/json_requests.py
|
nikvdp/jupyter_ascending
|
b6116d3f93fbb85583c234ab91c2085ec17c414d
|
[
"MIT"
] | 178
|
2020-07-13T18:11:19.000Z
|
2022-03-25T14:30:42.000Z
|
jupyter_ascending/json_requests.py
|
nikvdp/jupyter_ascending
|
b6116d3f93fbb85583c234ab91c2085ec17c414d
|
[
"MIT"
] | 29
|
2020-10-07T19:56:12.000Z
|
2022-03-15T05:30:47.000Z
|
jupyter_ascending/json_requests.py
|
nikvdp/jupyter_ascending
|
b6116d3f93fbb85583c234ab91c2085ec17c414d
|
[
"MIT"
] | 15
|
2020-11-08T15:36:05.000Z
|
2022-03-20T19:04:42.000Z
|
"""Defines messages and data payloads for the JSON-RPC client-server protocol
+used to send our custom messages to the Jupyter notebook.
TODO: dataclass looks to be depreciated. Replace with attr.define"""
from typing import Optional
from attr import dataclass
@dataclass
class JsonBaseRequest:
file_name: str
@dataclass
class ExecuteRequest(JsonBaseRequest):
cell_index: int
contents: Optional[str]
@dataclass
class ExecuteAllRequest(JsonBaseRequest):
pass
@dataclass
class RestartRequest(JsonBaseRequest):
pass
@dataclass
class SyncRequest(JsonBaseRequest):
contents: str
@dataclass
class GetStatusRequest(JsonBaseRequest):
pass
@dataclass
class FocusCellRequest(JsonBaseRequest):
cell_index: int
| 16.977273
| 77
| 0.779116
| 84
| 747
| 6.892857
| 0.571429
| 0.169257
| 0.088083
| 0.170984
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159304
| 747
| 43
| 78
| 17.372093
| 0.921975
| 0.267738
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023256
| 0
| 1
| 0
| true
| 0.125
| 0.083333
| 0
| 0.583333
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
ce81129634e87b3ff1a203718e53efa8a4c16ac5
| 23
|
py
|
Python
|
__init__.py
|
denebolar/sphinxcontrib-drawio-html
|
857f6ac0b5418646a90ee85cf69c48b45b46b965
|
[
"MIT"
] | 4
|
2020-01-01T14:46:00.000Z
|
2021-11-11T15:00:40.000Z
|
__init__.py
|
denebolar/sphinxcontrib-drawio-html
|
857f6ac0b5418646a90ee85cf69c48b45b46b965
|
[
"MIT"
] | 3
|
2020-03-31T10:43:01.000Z
|
2020-04-27T03:12:08.000Z
|
__init__.py
|
denebolar/sphinxcontrib-drawio-html
|
857f6ac0b5418646a90ee85cf69c48b45b46b965
|
[
"MIT"
] | 1
|
2021-03-19T12:04:48.000Z
|
2021-03-19T12:04:48.000Z
|
# Now that's a package
| 11.5
| 22
| 0.695652
| 5
| 23
| 3.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217391
| 23
| 1
| 23
| 23
| 0.888889
| 0.869565
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ce93167c1cfcabd62e32c919016b69f8c4702db2
| 30
|
py
|
Python
|
recipe/run_test.py
|
regro-cf-autotick-bot/pyprism-feedstock
|
8192ce47000c5fa05950a4838517bba73fc1e37a
|
[
"BSD-3-Clause"
] | null | null | null |
recipe/run_test.py
|
regro-cf-autotick-bot/pyprism-feedstock
|
8192ce47000c5fa05950a4838517bba73fc1e37a
|
[
"BSD-3-Clause"
] | null | null | null |
recipe/run_test.py
|
regro-cf-autotick-bot/pyprism-feedstock
|
8192ce47000c5fa05950a4838517bba73fc1e37a
|
[
"BSD-3-Clause"
] | null | null | null |
import pyPRISM
pyPRISM.test()
| 10
| 14
| 0.8
| 4
| 30
| 6
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 30
| 2
| 15
| 15
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0c82ed60a056f200d7ce73abc88e38b1dc9bd1bf
| 288
|
py
|
Python
|
NFCow/users/admin.py
|
jojoriveraa/titulacion-NFCOW
|
643f7f2cbe9c68d9343f38d12629720b12e9ce1e
|
[
"Apache-2.0"
] | null | null | null |
NFCow/users/admin.py
|
jojoriveraa/titulacion-NFCOW
|
643f7f2cbe9c68d9343f38d12629720b12e9ce1e
|
[
"Apache-2.0"
] | 11
|
2016-01-09T06:27:02.000Z
|
2016-01-10T05:21:05.000Z
|
NFCow/users/admin.py
|
jojoriveraa/titulacion-NFCOW
|
643f7f2cbe9c68d9343f38d12629720b12e9ce1e
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
# Register your models here.
# from .models import User
#
# class UserAdmin(admin.ModelAdmin):
# list_display = ('last_name', 'first_name', 'img', )
# search_fields = ('last_name', 'first_name', 'email', )
#
# admin.site.register(User, UserAdmin, )
| 28.8
| 58
| 0.694444
| 36
| 288
| 5.388889
| 0.638889
| 0.082474
| 0.134021
| 0.175258
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149306
| 288
| 10
| 59
| 28.8
| 0.791837
| 0.826389
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0c839092673f8d78f01fc8448f6184807e67d5e1
| 137
|
py
|
Python
|
Python/Flask_Blog/00-Practices-G-Email/run.py
|
ridd12/code_snippets
|
5e646eb6fd967aff1a7d2009b94c80129e74e6e5
|
[
"MIT"
] | null | null | null |
Python/Flask_Blog/00-Practices-G-Email/run.py
|
ridd12/code_snippets
|
5e646eb6fd967aff1a7d2009b94c80129e74e6e5
|
[
"MIT"
] | null | null | null |
Python/Flask_Blog/00-Practices-G-Email/run.py
|
ridd12/code_snippets
|
5e646eb6fd967aff1a7d2009b94c80129e74e6e5
|
[
"MIT"
] | 1
|
2021-03-12T10:56:43.000Z
|
2021-03-12T10:56:43.000Z
|
from flaskblog import app
# flaskblog is package
# import app from flaskblog package
if __name__ == '__main__':
app.run(debug=True)
| 19.571429
| 35
| 0.744526
| 19
| 137
| 4.947368
| 0.631579
| 0.276596
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175182
| 137
| 7
| 36
| 19.571429
| 0.831858
| 0.394161
| 0
| 0
| 0
| 0
| 0.098765
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0c8786b4b8f7223f7327655df559764afb1a87a0
| 129
|
py
|
Python
|
ex003.py
|
gabrielecristina/Python
|
b7aa3060a2d9279591f84ed5775b58f12d156fdc
|
[
"Apache-2.0"
] | null | null | null |
ex003.py
|
gabrielecristina/Python
|
b7aa3060a2d9279591f84ed5775b58f12d156fdc
|
[
"Apache-2.0"
] | null | null | null |
ex003.py
|
gabrielecristina/Python
|
b7aa3060a2d9279591f84ed5775b58f12d156fdc
|
[
"Apache-2.0"
] | null | null | null |
n1 = int(input('Digite um numero 1 :'))
n2 = int(input('Digite um numero 2 :'))
soma = n1 + n2
print('A soma é {}'.format(soma))
| 25.8
| 39
| 0.612403
| 23
| 129
| 3.434783
| 0.608696
| 0.202532
| 0.35443
| 0.405063
| 0.556962
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056604
| 0.178295
| 129
| 4
| 40
| 32.25
| 0.688679
| 0
| 0
| 0
| 0
| 0
| 0.395349
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
0c92bdf0ec5d7acc0c4a541deb3851d960a84de6
| 124
|
py
|
Python
|
setup.py
|
paoga87/AppSec_flask_db
|
d7315c88230646f26f750243e79ff74b412b29d1
|
[
"MIT"
] | null | null | null |
setup.py
|
paoga87/AppSec_flask_db
|
d7315c88230646f26f750243e79ff74b412b29d1
|
[
"MIT"
] | null | null | null |
setup.py
|
paoga87/AppSec_flask_db
|
d7315c88230646f26f750243e79ff74b412b29d1
|
[
"MIT"
] | 1
|
2019-11-24T04:38:25.000Z
|
2019-11-24T04:38:25.000Z
|
import io
from setuptools import find_packages
from setuptools import setup
setup(
name="app",
version="1.0.0"
)
| 11.272727
| 36
| 0.709677
| 18
| 124
| 4.833333
| 0.666667
| 0.321839
| 0.45977
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030303
| 0.201613
| 124
| 10
| 37
| 12.4
| 0.848485
| 0
| 0
| 0
| 0
| 0
| 0.064516
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.428571
| 0
| 0.428571
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0cb190683ab86d83d82bd0bb6c0ca420713e120c
| 60
|
py
|
Python
|
scripts/portal/gotoAran.py
|
Snewmy/swordie
|
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
|
[
"MIT"
] | 2
|
2020-04-15T03:16:07.000Z
|
2020-08-12T23:28:32.000Z
|
scripts/portal/gotoAran.py
|
Snewmy/swordie
|
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
|
[
"MIT"
] | null | null | null |
scripts/portal/gotoAran.py
|
Snewmy/swordie
|
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
|
[
"MIT"
] | 3
|
2020-08-25T06:55:25.000Z
|
2020-12-01T13:07:43.000Z
|
# 927020010
sm.giveSkill(20041226, 0)
sm.warp(927020050, 0)
| 15
| 25
| 0.75
| 9
| 60
| 5
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.518519
| 0.1
| 60
| 3
| 26
| 20
| 0.314815
| 0.15
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
0cfc362b198465126f085cf983c8fa0c87c5c251
| 1,547
|
py
|
Python
|
cms/utils/compat/dj.py
|
Python-Marketing/django-content-server
|
16794265c44152a86f99b8548c8e1cb8c890f51a
|
[
"CC0-1.0"
] | 1
|
2021-04-01T22:04:29.000Z
|
2021-04-01T22:04:29.000Z
|
cms/utils/compat/dj.py
|
Python-Marketing/django-content-server
|
16794265c44152a86f99b8548c8e1cb8c890f51a
|
[
"CC0-1.0"
] | 102
|
2020-08-11T23:57:18.000Z
|
2022-03-12T00:46:00.000Z
|
cms/utils/compat/dj.py
|
Python-Marketing/django-content-server
|
16794265c44152a86f99b8548c8e1cb8c890f51a
|
[
"CC0-1.0"
] | null | null | null |
import six
from functools import WRAPPER_ASSIGNMENTS
from django.apps import apps
from django.conf import settings
__all__ = ['is_installed', 'installed_apps', 'get_apps', 'get_app_paths']
# import these directly from Django!
from django.utils.encoding import ( # nopyflakes
force_text as force_unicode,
)
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError:
class MiddlewareMixin(object): pass
try:
from django.urls import URLResolver # nopyflakes
from django.urls.resolvers import RegexPattern, URLPattern # nopyflakes
except ImportError:
# django 1.11 support
from django.core.urlresolvers import RegexURLResolver as URLResolver, RegexURLPattern as URLPattern # nopyflakes
class RegexPattern: pass
try:
from django.urls import LocalePrefixPattern # nopyflakes
except ImportError:
# Only for django 1.11
from django.core.urlresolvers import LocaleRegexURLResolver as LocalePrefixPattern # nopyflakes
# TODO: move these helpers out of compat?
def is_installed(app_name):
return apps.is_installed(app_name)
def installed_apps():
return [app.name for app in apps.get_app_configs()]
def get_app_paths():
return [app.path for app in apps.get_app_configs()]
def get_apps():
return [app.models_module for app in apps.get_app_configs()]
def available_attrs(fn):
if six.PY3:
return WRAPPER_ASSIGNMENTS
else:
return tuple(a for a in WRAPPER_ASSIGNMENTS if hasattr(fn, a))
def get_middleware():
return settings.MIDDLEWARE
| 27.140351
| 117
| 0.758888
| 203
| 1,547
| 5.630542
| 0.359606
| 0.087489
| 0.034996
| 0.031496
| 0.181977
| 0.125984
| 0.07874
| 0.07874
| 0.054243
| 0
| 0
| 0.005469
| 0.172592
| 1,547
| 56
| 118
| 27.625
| 0.8875
| 0.117001
| 0
| 0.162162
| 0
| 0
| 0.034686
| 0
| 0
| 0
| 0
| 0.017857
| 0
| 1
| 0.162162
| false
| 0.054054
| 0.378378
| 0.135135
| 0.783784
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
|
0
| 5
|
0b493e151c1f63d8f7fa7debd5b04d0ecf2d6be0
| 785
|
py
|
Python
|
src/controller/atributes.py
|
geraldofada/jorge_cauboi_espacial
|
82bdf39549f325b13803b7d102a411db5685c17c
|
[
"MIT"
] | 1
|
2020-07-29T16:08:24.000Z
|
2020-07-29T16:08:24.000Z
|
src/controller/atributes.py
|
geraldofada/jorge_cauboi_espacial
|
82bdf39549f325b13803b7d102a411db5685c17c
|
[
"MIT"
] | null | null | null |
src/controller/atributes.py
|
geraldofada/jorge_cauboi_espacial
|
82bdf39549f325b13803b7d102a411db5685c17c
|
[
"MIT"
] | 1
|
2020-03-05T20:53:06.000Z
|
2020-03-05T20:53:06.000Z
|
from math import exp
from environment.instances import store
def reset():
store.dispatch("owned_strength", value=0)
store.dispatch("owned_life", value=0)
store.dispatch("owned_heal", value=0)
# STRENGHT
def cost_strength():
return int(100 * (1.3) ** store.get("owned_strength"))
def update_strength():
store.dispatch("owned_strength", lambda strength: strength + 1)
return int(50 * exp(0.1255 * store.get("owned_strength")))
# LIFE
def cost_life():
return int(100 * (1.4) ** store.get("owned_life"))
def update_life():
store.dispatch("owned_life", lambda life: life + 1)
return 10
# HEAL
def cost_heal():
return int(100 * (1.5) ** store.get("owned_heal"))
def update_heal():
store.dispatch("owned_heal", lambda heal: heal + 1)
| 20.657895
| 67
| 0.672611
| 113
| 785
| 4.530973
| 0.274336
| 0.152344
| 0.210938
| 0.076172
| 0.09375
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046225
| 0.173248
| 785
| 37
| 68
| 21.216216
| 0.742681
| 0.02293
| 0
| 0
| 0
| 0
| 0.152031
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.35
| true
| 0
| 0.1
| 0.15
| 0.7
| 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
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
0b680ca5e9d1f65f049a1e42d2c8a639e289e8e4
| 10,378
|
py
|
Python
|
src/app/aggregation/parser/gen/AggregationLexer.py
|
odinlabs-io/odinlabsio-analytics-app-server
|
8073edd13a5ac81ba6c3f189859073b2dfd9b6db
|
[
"MIT"
] | null | null | null |
src/app/aggregation/parser/gen/AggregationLexer.py
|
odinlabs-io/odinlabsio-analytics-app-server
|
8073edd13a5ac81ba6c3f189859073b2dfd9b6db
|
[
"MIT"
] | null | null | null |
src/app/aggregation/parser/gen/AggregationLexer.py
|
odinlabs-io/odinlabsio-analytics-app-server
|
8073edd13a5ac81ba6c3f189859073b2dfd9b6db
|
[
"MIT"
] | null | null | null |
# MIT License
#
# Copyright (c) 2020 OdinLabs IO
#
# 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.
# Generated from Aggregation.g4 by ANTLR 4.9
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\26")
buf.write("\u00ea\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7")
buf.write("\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r")
buf.write("\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23")
buf.write("\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\3\2\3\2")
buf.write("\3\3\6\3\63\n\3\r\3\16\3\64\3\4\6\48\n\4\r\4\16\49\3\4")
buf.write("\3\4\6\4>\n\4\r\4\16\4?\5\4B\n\4\3\5\3\5\3\6\3\6\3\6\3")
buf.write("\6\3\6\3\6\3\6\5\6M\n\6\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3")
buf.write("\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7")
buf.write("\3\7\5\7e\n\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b")
buf.write("\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3")
buf.write("\b\3\b\5\b\u0080\n\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3")
buf.write("\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t")
buf.write("\3\t\3\t\3\t\5\t\u009b\n\t\3\n\3\n\3\n\3\n\3\n\3\n\3\n")
buf.write("\3\n\3\n\3\n\3\n\5\n\u00a8\n\n\3\13\3\13\3\13\3\13\3\13")
buf.write("\3\13\3\13\3\13\3\13\3\13\3\13\3\13\5\13\u00b6\n\13\3")
buf.write("\f\3\f\3\f\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\16\3\16\5")
buf.write("\16\u00c4\n\16\3\17\3\17\3\20\3\20\3\21\3\21\3\22\3\22")
buf.write("\3\23\3\23\3\24\3\24\3\25\3\25\3\25\7\25\u00d5\n\25\f")
buf.write("\25\16\25\u00d8\13\25\3\25\3\25\3\26\3\26\3\26\3\26\7")
buf.write("\26\u00e0\n\26\f\26\16\26\u00e3\13\26\3\26\3\26\3\27\3")
buf.write("\27\3\27\3\27\2\2\30\3\2\5\3\7\4\t\2\13\5\r\6\17\7\21")
buf.write("\b\23\t\25\n\27\13\31\f\33\r\35\16\37\17!\20#\21%\22\'")
buf.write("\23)\24+\25-\26\3\2\13\3\2\62;\3\2\60\60\4\2C\\c|\5\2")
buf.write(",-//\61\61\7\2/\60\62;C\\aac|\b\2\"\"/\60\62;C\\aac|\6")
buf.write("\2\f\f\17\17$$^^\4\2$$^^\5\2\13\f\17\17\"\"\2\u0101\2")
buf.write("\5\3\2\2\2\2\7\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3")
buf.write("\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2")
buf.write("\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2")
buf.write("\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2")
buf.write("\2\2\2+\3\2\2\2\2-\3\2\2\2\3/\3\2\2\2\5\62\3\2\2\2\7\67")
buf.write("\3\2\2\2\tC\3\2\2\2\13L\3\2\2\2\rd\3\2\2\2\17\177\3\2")
buf.write("\2\2\21\u009a\3\2\2\2\23\u00a7\3\2\2\2\25\u00b5\3\2\2")
buf.write("\2\27\u00b7\3\2\2\2\31\u00ba\3\2\2\2\33\u00c3\3\2\2\2")
buf.write("\35\u00c5\3\2\2\2\37\u00c7\3\2\2\2!\u00c9\3\2\2\2#\u00cb")
buf.write("\3\2\2\2%\u00cd\3\2\2\2\'\u00cf\3\2\2\2)\u00d1\3\2\2\2")
buf.write("+\u00db\3\2\2\2-\u00e6\3\2\2\2/\60\t\2\2\2\60\4\3\2\2")
buf.write("\2\61\63\5\3\2\2\62\61\3\2\2\2\63\64\3\2\2\2\64\62\3\2")
buf.write("\2\2\64\65\3\2\2\2\65\6\3\2\2\2\668\5\3\2\2\67\66\3\2")
buf.write("\2\289\3\2\2\29\67\3\2\2\29:\3\2\2\2:A\3\2\2\2;=\t\3\2")
buf.write("\2<>\5\3\2\2=<\3\2\2\2>?\3\2\2\2?=\3\2\2\2?@\3\2\2\2@")
buf.write("B\3\2\2\2A;\3\2\2\2AB\3\2\2\2B\b\3\2\2\2CD\t\4\2\2D\n")
buf.write("\3\2\2\2EF\7C\2\2FG\7U\2\2GM\7E\2\2HI\7F\2\2IJ\7G\2\2")
buf.write("JK\7U\2\2KM\7E\2\2LE\3\2\2\2LH\3\2\2\2M\f\3\2\2\2NO\7")
buf.write("U\2\2OP\7W\2\2Pe\7O\2\2QR\7R\2\2RS\7T\2\2ST\7Q\2\2Te\7")
buf.write("F\2\2UV\7O\2\2VW\7C\2\2We\7Z\2\2XY\7O\2\2YZ\7K\2\2Ze\7")
buf.write("P\2\2[\\\7C\2\2\\]\7X\2\2]e\7I\2\2^_\7X\2\2_`\7C\2\2`")
buf.write("e\7T\2\2ab\7U\2\2bc\7V\2\2ce\7F\2\2dN\3\2\2\2dQ\3\2\2")
buf.write("\2dU\3\2\2\2dX\3\2\2\2d[\3\2\2\2d^\3\2\2\2da\3\2\2\2e")
buf.write("\16\3\2\2\2fg\7E\2\2gh\7W\2\2hi\7O\2\2ij\7U\2\2jk\7W\2")
buf.write("\2k\u0080\7O\2\2lm\7E\2\2mn\7W\2\2no\7O\2\2op\7R\2\2p")
buf.write("q\7T\2\2qr\7Q\2\2r\u0080\7F\2\2st\7E\2\2tu\7W\2\2uv\7")
buf.write("O\2\2vw\7O\2\2wx\7C\2\2x\u0080\7Z\2\2yz\7E\2\2z{\7W\2")
buf.write("\2{|\7O\2\2|}\7O\2\2}~\7K\2\2~\u0080\7P\2\2\177f\3\2\2")
buf.write("\2\177l\3\2\2\2\177s\3\2\2\2\177y\3\2\2\2\u0080\20\3\2")
buf.write("\2\2\u0081\u0082\7T\2\2\u0082\u0083\7Q\2\2\u0083\u0084")
buf.write("\7N\2\2\u0084\u0085\7U\2\2\u0085\u0086\7W\2\2\u0086\u009b")
buf.write("\7O\2\2\u0087\u0088\7T\2\2\u0088\u0089\7Q\2\2\u0089\u008a")
buf.write("\7N\2\2\u008a\u008b\7R\2\2\u008b\u008c\7T\2\2\u008c\u008d")
buf.write("\7Q\2\2\u008d\u009b\7F\2\2\u008e\u008f\7T\2\2\u008f\u0090")
buf.write("\7Q\2\2\u0090\u0091\7N\2\2\u0091\u0092\7O\2\2\u0092\u0093")
buf.write("\7C\2\2\u0093\u009b\7Z\2\2\u0094\u0095\7T\2\2\u0095\u0096")
buf.write("\7Q\2\2\u0096\u0097\7N\2\2\u0097\u0098\7O\2\2\u0098\u0099")
buf.write("\7K\2\2\u0099\u009b\7P\2\2\u009a\u0081\3\2\2\2\u009a\u0087")
buf.write("\3\2\2\2\u009a\u008e\3\2\2\2\u009a\u0094\3\2\2\2\u009b")
buf.write("\22\3\2\2\2\u009c\u009d\7E\2\2\u009d\u009e\7Q\2\2\u009e")
buf.write("\u009f\7W\2\2\u009f\u00a0\7P\2\2\u00a0\u00a8\7V\2\2\u00a1")
buf.write("\u00a2\7W\2\2\u00a2\u00a3\7E\2\2\u00a3\u00a4\7Q\2\2\u00a4")
buf.write("\u00a5\7W\2\2\u00a5\u00a6\7P\2\2\u00a6\u00a8\7V\2\2\u00a7")
buf.write("\u009c\3\2\2\2\u00a7\u00a1\3\2\2\2\u00a8\24\3\2\2\2\u00a9")
buf.write("\u00aa\7G\2\2\u00aa\u00b6\7S\2\2\u00ab\u00ac\7I\2\2\u00ac")
buf.write("\u00ad\7V\2\2\u00ad\u00b6\7G\2\2\u00ae\u00af\7I\2\2\u00af")
buf.write("\u00b6\7V\2\2\u00b0\u00b1\7N\2\2\u00b1\u00b6\7V\2\2\u00b2")
buf.write("\u00b3\7N\2\2\u00b3\u00b4\7V\2\2\u00b4\u00b6\7G\2\2\u00b5")
buf.write("\u00a9\3\2\2\2\u00b5\u00ab\3\2\2\2\u00b5\u00ae\3\2\2\2")
buf.write("\u00b5\u00b0\3\2\2\2\u00b5\u00b2\3\2\2\2\u00b6\26\3\2")
buf.write("\2\2\u00b7\u00b8\7K\2\2\u00b8\u00b9\7P\2\2\u00b9\30\3")
buf.write("\2\2\2\u00ba\u00bb\7P\2\2\u00bb\u00bc\7Q\2\2\u00bc\u00bd")
buf.write("\7V\2\2\u00bd\32\3\2\2\2\u00be\u00bf\7C\2\2\u00bf\u00c0")
buf.write("\7P\2\2\u00c0\u00c4\7F\2\2\u00c1\u00c2\7Q\2\2\u00c2\u00c4")
buf.write("\7T\2\2\u00c3\u00be\3\2\2\2\u00c3\u00c1\3\2\2\2\u00c4")
buf.write("\34\3\2\2\2\u00c5\u00c6\t\5\2\2\u00c6\36\3\2\2\2\u00c7")
buf.write("\u00c8\7*\2\2\u00c8 \3\2\2\2\u00c9\u00ca\7+\2\2\u00ca")
buf.write("\"\3\2\2\2\u00cb\u00cc\7]\2\2\u00cc$\3\2\2\2\u00cd\u00ce")
buf.write("\7_\2\2\u00ce&\3\2\2\2\u00cf\u00d0\7.\2\2\u00d0(\3\2\2")
buf.write("\2\u00d1\u00d2\7)\2\2\u00d2\u00d6\t\6\2\2\u00d3\u00d5")
buf.write("\t\7\2\2\u00d4\u00d3\3\2\2\2\u00d5\u00d8\3\2\2\2\u00d6")
buf.write("\u00d4\3\2\2\2\u00d6\u00d7\3\2\2\2\u00d7\u00d9\3\2\2\2")
buf.write("\u00d8\u00d6\3\2\2\2\u00d9\u00da\7)\2\2\u00da*\3\2\2\2")
buf.write("\u00db\u00e1\7$\2\2\u00dc\u00e0\n\b\2\2\u00dd\u00de\7")
buf.write("^\2\2\u00de\u00e0\t\t\2\2\u00df\u00dc\3\2\2\2\u00df\u00dd")
buf.write("\3\2\2\2\u00e0\u00e3\3\2\2\2\u00e1\u00df\3\2\2\2\u00e1")
buf.write("\u00e2\3\2\2\2\u00e2\u00e4\3\2\2\2\u00e3\u00e1\3\2\2\2")
buf.write("\u00e4\u00e5\7$\2\2\u00e5,\3\2\2\2\u00e6\u00e7\t\n\2\2")
buf.write("\u00e7\u00e8\3\2\2\2\u00e8\u00e9\b\27\2\2\u00e9.\3\2\2")
buf.write("\2\22\2\649?ALd\177\u009a\u00a7\u00b5\u00c3\u00d4\u00d6")
buf.write("\u00df\u00e1\3\b\2\2")
return buf.getvalue()
class AggregationLexer(Lexer):
atn = ATNDeserializer().deserialize(serializedATN())
decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
NUMBER = 1
FLOAT = 2
SORT = 3
AGGR = 4
CUMAGGR = 5
ROLAGGR = 6
COUNT = 7
ORDEROPERATOR = 8
IN = 9
NOT = 10
SETOPERATOR = 11
ARITHMOPERATOR = 12
LPAREN = 13
RPAREN = 14
LBRACK = 15
RBRACK = 16
COMMA = 17
ID_LITERAL = 18
STR_LITERAL = 19
WS = 20
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]
modeNames = [ "DEFAULT_MODE" ]
literalNames = [ "<INVALID>",
"'IN'", "'NOT'", "'('", "')'", "'['", "']'", "','" ]
symbolicNames = [ "<INVALID>",
"NUMBER", "FLOAT", "SORT", "AGGR", "CUMAGGR", "ROLAGGR", "COUNT",
"ORDEROPERATOR", "IN", "NOT", "SETOPERATOR", "ARITHMOPERATOR",
"LPAREN", "RPAREN", "LBRACK", "RBRACK", "COMMA", "ID_LITERAL",
"STR_LITERAL", "WS" ]
ruleNames = [ "DIGIT", "NUMBER", "FLOAT", "LETTER", "SORT", "AGGR",
"CUMAGGR", "ROLAGGR", "COUNT", "ORDEROPERATOR", "IN",
"NOT", "SETOPERATOR", "ARITHMOPERATOR", "LPAREN", "RPAREN",
"LBRACK", "RBRACK", "COMMA", "ID_LITERAL", "STR_LITERAL",
"WS" ]
grammarFileName = "Aggregation.g4"
def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.9")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
| 54.910053
| 103
| 0.579688
| 2,375
| 10,378
| 2.523368
| 0.178947
| 0.106791
| 0.057067
| 0.058068
| 0.214083
| 0.146337
| 0.096279
| 0.083598
| 0.079593
| 0.079593
| 0
| 0.275288
| 0.15504
| 10,378
| 188
| 104
| 55.202128
| 0.408142
| 0.108113
| 0
| 0
| 0
| 0.567568
| 0.601842
| 0.556121
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013514
| false
| 0
| 0.027027
| 0
| 0.243243
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
0ba2cda2881e2c2bd688c5ff65f0c94499c7ad3e
| 207
|
py
|
Python
|
shellish/__init__.py
|
personnelink/shellish
|
f130599aabe1ed44323b2374c9e6c3b789f06517
|
[
"MIT"
] | 4
|
2015-10-06T23:50:20.000Z
|
2021-06-11T19:20:43.000Z
|
shellish/__init__.py
|
personnelink/shellish
|
f130599aabe1ed44323b2374c9e6c3b789f06517
|
[
"MIT"
] | null | null | null |
shellish/__init__.py
|
personnelink/shellish
|
f130599aabe1ed44323b2374c9e6c3b789f06517
|
[
"MIT"
] | null | null | null |
from .completer import *
from .command import *
from .layout import *
from .data import *
from .eventing import *
from .session import *
from .paging import *
from .rendering import *
from . import logging
| 18.818182
| 24
| 0.73913
| 27
| 207
| 5.666667
| 0.407407
| 0.522876
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178744
| 207
| 10
| 25
| 20.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f00ffeba42ae6f1422824ab0df6145a99202b18e
| 88
|
py
|
Python
|
lbfgs.py
|
suquark/neural-style-visualizer
|
ce3eabaff64a625169831169dc097015fc91c756
|
[
"MIT"
] | 14
|
2016-08-03T19:37:14.000Z
|
2021-05-02T02:38:36.000Z
|
lbfgs.py
|
suquark/neural-style-visualizer
|
ce3eabaff64a625169831169dc097015fc91c756
|
[
"MIT"
] | 3
|
2016-08-01T12:43:22.000Z
|
2016-08-01T13:25:39.000Z
|
lbfgs.py
|
suquark/neural-style-visualizer
|
ce3eabaff64a625169831169dc097015fc91c756
|
[
"MIT"
] | 2
|
2016-08-01T09:05:40.000Z
|
2017-11-15T12:50:25.000Z
|
# TODO: implement the l-bfgs algorithm
# local x, losses = optim.lbfgs(feval, img, {})
| 22
| 47
| 0.681818
| 13
| 88
| 4.615385
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170455
| 88
| 3
| 48
| 29.333333
| 0.821918
| 0.931818
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.333333
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f01535b49b9c0214da76f60c1e452e9fe6387bf3
| 126
|
py
|
Python
|
tests/test_textfile.py
|
ratt-ru/radiopadre
|
3bf934eba69144d9707777a57da0e827625517a3
|
[
"MIT"
] | 9
|
2019-08-08T12:32:20.000Z
|
2021-07-06T17:50:35.000Z
|
tests/test_textfile.py
|
ratt-ru/radiopadre
|
3bf934eba69144d9707777a57da0e827625517a3
|
[
"MIT"
] | 70
|
2019-03-26T12:42:23.000Z
|
2022-02-14T13:45:03.000Z
|
tests/test_textfile.py
|
ratt-ru/radiopadre
|
3bf934eba69144d9707777a57da0e827625517a3
|
[
"MIT"
] | null | null | null |
import unittest
import radiopadre.textfile
class TestTextFile(unittest.TestCase):
def test_text_file(self):
pass
| 18
| 38
| 0.761905
| 15
| 126
| 6.266667
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174603
| 126
| 7
| 39
| 18
| 0.903846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
f0839050316ba9bcd8665f43da80860885623a3b
| 31
|
py
|
Python
|
kamalsql/__init__.py
|
KamalDGRT/KamalSQL
|
a255185307e8e48f36ac6cdb153f741d8078801a
|
[
"MIT"
] | 4
|
2021-08-20T03:18:30.000Z
|
2021-09-01T06:23:41.000Z
|
kamalsql/__init__.py
|
KamalDGRT/kamalsql
|
a255185307e8e48f36ac6cdb153f741d8078801a
|
[
"MIT"
] | null | null | null |
kamalsql/__init__.py
|
KamalDGRT/kamalsql
|
a255185307e8e48f36ac6cdb153f741d8078801a
|
[
"MIT"
] | null | null | null |
from .kamalsql import KamalSQL
| 15.5
| 30
| 0.83871
| 4
| 31
| 6.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 31
| 1
| 31
| 31
| 0.962963
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
651aa23d49eed64277d063237b9ee3ebc2eb4533
| 226
|
py
|
Python
|
dislib/regression/__init__.py
|
alexbarcelo/dislib
|
989f81f235ae30b17410a8d805df258c7d931b38
|
[
"Apache-2.0"
] | 36
|
2018-10-22T19:21:14.000Z
|
2022-03-22T12:10:01.000Z
|
dislib/regression/__init__.py
|
alexbarcelo/dislib
|
989f81f235ae30b17410a8d805df258c7d931b38
|
[
"Apache-2.0"
] | 329
|
2018-11-22T18:04:57.000Z
|
2022-03-18T01:26:55.000Z
|
dislib/regression/__init__.py
|
alexbarcelo/dislib
|
989f81f235ae30b17410a8d805df258c7d931b38
|
[
"Apache-2.0"
] | 21
|
2019-01-10T11:46:39.000Z
|
2022-03-17T12:59:45.000Z
|
from dislib.regression.linear.base import LinearRegression
from dislib.regression.lasso.base import Lasso
from dislib.trees.forest import RandomForestRegressor
__all__ = ["LinearRegression", "Lasso", "RandomForestRegressor"]
| 37.666667
| 64
| 0.836283
| 24
| 226
| 7.708333
| 0.5
| 0.162162
| 0.216216
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079646
| 226
| 5
| 65
| 45.2
| 0.889423
| 0
| 0
| 0
| 0
| 0
| 0.185841
| 0.09292
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e8e2993497ea6841ebfc0c25afcccfb47951cfcf
| 8,585
|
py
|
Python
|
modules/OLEDDisplay.py
|
LonnyGomes/smart-keyrack-build
|
4c4d87538530674944ca4b0c1b424075c754da09
|
[
"MIT"
] | null | null | null |
modules/OLEDDisplay.py
|
LonnyGomes/smart-keyrack-build
|
4c4d87538530674944ca4b0c1b424075c754da09
|
[
"MIT"
] | 2
|
2021-02-16T04:40:52.000Z
|
2021-02-19T05:17:09.000Z
|
modules/OLEDDisplay.py
|
LonnyGomes/smart-keyrack-build
|
4c4d87538530674944ca4b0c1b424075c754da09
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
#-----------------------------------------------------------------------------
# qwiic_micro_oled_hello.py
#
# Simple Example for the Qwiic MicroOLED Device
#------------------------------------------------------------------------
#
# Written by SparkFun Electronics, May 2019
#
# This python library supports the SparkFun Electroncis qwiic
# qwiic sensor/board ecosystem on a Raspberry Pi (and compatable) single
# board computers.
#
# More information on qwiic is at https:# www.sparkfun.com/qwiic
#
# Do you like this library? Help support SparkFun. Buy a board!
#
#==================================================================================
# Copyright (c) 2019 SparkFun Electronics
#
# 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.
#==================================================================================
# Example - simple command to display a bitmap on the OLED.
#
from __future__ import print_function
import qwiic_micro_oled
import sys
import time
umbrella = [ \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0,\
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x80, 0xe0, 0xf0, 0xf0, 0xf8, 0xfc, 0xfc, 0xfc, 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff,\
0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0xfc, 0xf8, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0,\
0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,\
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe,\
0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01,\
0x01, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0xff, 0xff,\
0xff, 0x07, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,\
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,\
0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x07, 0x0f, 0x0e, 0x0e, 0x0f, 0x0f, 0x07,\
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
]
snowflake = [ \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x78, 0x70, 0xf0, 0xe0, 0xc0, 0xc0, 0xfe, 0xfe,\
0xfe, 0xc0, 0xe0, 0xe0, 0xf0, 0x70, 0x38, 0x38, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x70, 0xf0, 0xe0, 0xe0, 0xc0,\
0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0xf8, 0xf8, 0xf8, 0xf0, 0xe1, 0xe1, 0xe3, 0xff, 0xff,\
0xff, 0xe3, 0xe1, 0xf0, 0xf0, 0xf8, 0xfc, 0xfc, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xf8, 0xe0,\
0xe0, 0x70, 0x78, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x38, 0x38, 0x3c, 0x1e, 0x0f, 0x0f,\
0x87, 0x87, 0xc7, 0xc7, 0xef, 0xfe, 0xfe, 0x7f, 0x7f, 0x7f, 0x78, 0xf0, 0xe1, 0xe3, 0xff, 0xff,\
0xff, 0xe1, 0xe1, 0xf0, 0x79, 0x7f, 0x3f, 0x7f, 0x7e, 0xfe, 0xe7, 0xe7, 0xc3, 0xc3, 0x87, 0x87,\
0x0f, 0x0e, 0x1e, 0x3c, 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x38, 0x70, 0xf0, 0xe0, 0xe1,\
0xc3, 0xc3, 0xc7, 0xe7, 0xef, 0xff, 0x7e, 0xfc, 0xfc, 0xfc, 0x1e, 0x0f, 0x0f, 0x87, 0xff, 0xff,\
0xff, 0xcf, 0x0f, 0x0f, 0x1e, 0xfc, 0xfc, 0xfe, 0x7e, 0x7f, 0xe7, 0xe7, 0xc3, 0xc3, 0xe1, 0xf1,\
0xf0, 0x78, 0x38, 0x3c, 0x1c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x1c, 0x0e, 0x0f, 0x07,\
0x0f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x1f, 0x1f, 0x0f, 0x87, 0x87, 0xff, 0xff,\
0xff, 0xcf, 0x87, 0x0f, 0x0f, 0x1f, 0x3f, 0x3f, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0x07,\
0x07, 0x0f, 0x0e, 0x0e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x18, 0x1c, 0x1e, 0x0e, 0x0f, 0x07, 0x07, 0x7f, 0x7f,\
0x7f, 0x07, 0x07, 0x07, 0x0f, 0x1e, 0x1e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
]
class OLEDDisplay:
def __init__(self):
self.myOLED = qwiic_micro_oled.QwiicMicroOled()
if not self.myOLED.connected:
errStr = "The Qwiic Micro OLED device isn't connected to the system. Please check your connection"
raise Exception(errStr)
self.myOLED.begin()
def drawBitmap(self, bitmap):
# Before you can start using the OLED, call begin() to init
# all of the pins and configure the OLED.
# clear(ALL) will clear out the OLED's graphic memory.
# clear(PAGE) will clear the Arduino's display buffer.
self.myOLED.clear(self.myOLED.PAGE) # Clear the display's memory (gets rid of artifacts)
self.myOLED.draw_bitmap(bitmap)
# To actually draw anything on the display, you must call the
# display() function.
self.myOLED.display()
def drawSnowflake(self):
self.drawBitmap(snowflake)
def drawUmbrella(self):
self.drawBitmap(umbrella)
def clearScreen(self):
self.myOLED.clear(self.myOLED.PAGE) # Clear the display's memory (gets rid of artifacts)
self.myOLED.display()
def showTemperature(self, tempVal):
DEG_ASCII_VAL = 248
self.myOLED.clear(self.myOLED.PAGE)
self.myOLED.set_font_type(3)
self.myOLED.set_cursor(0, 0)
self.myOLED.print(tempVal)
self.myOLED.set_font_type(0)
self.myOLED.write(DEG_ASCII_VAL)
self.myOLED.set_font_type(4)
self.myOLED.set_cursor(32, 0)
self.myOLED.print("F")
self.myOLED.display()
if __name__ == '__main__':
try:
oled = OLEDDisplay()
oled.drawUmbrella()
time.sleep(5)
oled.clearScreen()
except (KeyboardInterrupt, SystemExit) as exErr:
print("\nEnding OLED bitmap Example")
sys.exit(0)
| 53.993711
| 104
| 0.650437
| 1,262
| 8,585
| 4.395404
| 0.202853
| 0.628808
| 0.884803
| 1.101857
| 0.456824
| 0.406526
| 0.372454
| 0.362358
| 0.362358
| 0.362358
| 0
| 0.286164
| 0.185906
| 8,585
| 158
| 105
| 54.335443
| 0.507512
| 0.260105
| 0
| 0.189474
| 0
| 0
| 0.019673
| 0
| 0
| 0
| 0.487387
| 0
| 0
| 1
| 0.063158
| false
| 0
| 0.042105
| 0
| 0.115789
| 0.042105
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e8f74af7d79d50c0297f12423b8f109c429a9d5e
| 99
|
py
|
Python
|
Domains/Python/01 - Introduction/Python - Division/solution.py
|
abhinavgunwant/hackerrank-solutions
|
e016366cb6a9fac562a754d2b230fef907080733
|
[
"MIT"
] | 1
|
2019-06-09T00:04:56.000Z
|
2019-06-09T00:04:56.000Z
|
Domains/Python/01 - Introduction/Python - Division/solution.py
|
abhinavgunwant/hackerrank-solutions
|
e016366cb6a9fac562a754d2b230fef907080733
|
[
"MIT"
] | 19
|
2019-06-09T14:45:52.000Z
|
2019-06-17T18:52:53.000Z
|
Domains/Python/01 - Introduction/Python - Division/solution.py
|
abhinavgunwant/hackerrank-solutions
|
e016366cb6a9fac562a754d2b230fef907080733
|
[
"MIT"
] | null | null | null |
# Get inputs
a = int(input())
b = int(input())
# Calculate and print result
print(a//b)
print(a/b)
| 14.142857
| 28
| 0.646465
| 18
| 99
| 3.555556
| 0.555556
| 0.25
| 0.21875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161616
| 99
| 7
| 29
| 14.142857
| 0.771084
| 0.373737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 1
|
0
| 5
|
33256e6c96b79854674b56412d76f25d56361119
| 75
|
py
|
Python
|
tests/test_train.py
|
conor-horgan/spectrai
|
121dc677f161dbe85f62febc295909d1fb1825af
|
[
"Apache-2.0"
] | 10
|
2021-08-19T02:58:13.000Z
|
2022-03-31T07:27:48.000Z
|
tests/test_train.py
|
conor-horgan/spectrai
|
121dc677f161dbe85f62febc295909d1fb1825af
|
[
"Apache-2.0"
] | null | null | null |
tests/test_train.py
|
conor-horgan/spectrai
|
121dc677f161dbe85f62febc295909d1fb1825af
|
[
"Apache-2.0"
] | 5
|
2021-08-19T03:43:55.000Z
|
2022-03-29T02:35:01.000Z
|
import spectrai.train as train
def test_train():
output = train.main()
| 18.75
| 30
| 0.72
| 11
| 75
| 4.818182
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173333
| 75
| 4
| 31
| 18.75
| 0.854839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
3332b99d3d4943c6e17ecdd8c4a42552c45b6db9
| 5,943
|
py
|
Python
|
app/_test/suite/ext.db.provider.postgres/test.py
|
ewie/gbd-websuite
|
6f2814c7bb64d11cb5a0deec712df751718fb3e1
|
[
"Apache-2.0"
] | null | null | null |
app/_test/suite/ext.db.provider.postgres/test.py
|
ewie/gbd-websuite
|
6f2814c7bb64d11cb5a0deec712df751718fb3e1
|
[
"Apache-2.0"
] | null | null | null |
app/_test/suite/ext.db.provider.postgres/test.py
|
ewie/gbd-websuite
|
6f2814c7bb64d11cb5a0deec712df751718fb3e1
|
[
"Apache-2.0"
] | null | null | null |
import gws.gis.extent
import gws.gis.proj
import gws.gis.shape
import gws.tools.json2
import _test.util as u
import _test.common.const as cc
_REPROJECTION_ERROR_TOLERANCE = 10
def test_find_points_in_extent():
x, y = cc.POINTS.paris
bbox = x, y, x + 101, y + 101
sh = gws.gis.shape.from_extent(bbox, 'EPSG:3857')
r = u.cmd('searchFindFeatures', {
'projectUid': 'a',
'layerUids': ['a.map.paris_3857'],
'resolution': 1,
'shapes': [sh.props]
})
r = r.json()
exp = [
{
"attributes": "id=<1> p_str=<paris_3857/1> p_int=<100> p_date=<2019-01-01>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.paris_3857___1"
},
{
"attributes": "id=<2> p_str=<paris_3857/2> p_int=<200> p_date=<2019-01-02>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.paris_3857___2"
},
{
"attributes": "id=<6> p_str=<paris_3857/6> p_int=<600> p_date=<2019-01-06>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.paris_3857___6"
},
{
"attributes": "id=<7> p_str=<paris_3857/7> p_int=<700> p_date=<2019-01-07>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.paris_3857___7"
}
]
assert u.short_features(r['features']) == exp
def test_find_points_from_point():
x, y = cc.POINTS.paris
sh = gws.gis.shape.from_geometry({'type': 'Point', 'coordinates': [x, y]}, 'EPSG:3857')
r = u.cmd('searchFindFeatures', {
'projectUid': 'a',
'layerUids': ['a.map.paris_3857'],
'resolution': 1,
'shapes': [sh.props]
})
r = r.json()
exp = [
{
"attributes": "id=<1> p_str=<paris_3857/1> p_int=<100> p_date=<2019-01-01>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.paris_3857___1"
},
]
assert u.short_features(r['features']) == exp
def test_find_points_from_point_with_tolerance():
# search a point 5 meters off with
# 1) no tolerance (empty)
# 2) tolerance=3 (empty)
# 3) tolerance=8 (which os >5*sqrt(2)) (should be ok)
x, y = cc.POINTS.paris
sh = gws.gis.shape.from_geometry({'type': 'Point', 'coordinates': [x - 5, y + 5]}, cc.CRS_3857)
params = {
'projectUid': 'a',
'layerUids': ['a.map.paris_3857'],
'resolution': 1,
'shapes': [sh.props]
}
exp = [
{
"attributes": "id=<1> p_str=<paris_3857/1> p_int=<100> p_date=<2019-01-01>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.paris_3857___1"
},
]
r = u.cmd('searchFindFeatures', gws.merge(params, {'tolerance': '0'}))
r = r.json()
assert u.short_features(r['features']) == []
r = u.cmd('searchFindFeatures', gws.merge(params, {'tolerance': '3m'}))
r = r.json()
assert u.short_features(r['features']) == []
r = u.cmd('searchFindFeatures', gws.merge(params, {'tolerance': '8m'}))
r = r.json()
assert u.short_features(r['features']) == exp
def test_find_points_with_reprojection():
x, y = cc.POINTS.dus
x, y = gws.gis.proj.transform_xy(x, y, cc.CRS_3857, cc.CRS_25832)
bbox = x, y, x + 101, y + 101
bbox = gws.gis.extent.transform(bbox, cc.CRS_25832, cc.CRS_3857)
bbox = gws.gis.extent.buffer(bbox, _REPROJECTION_ERROR_TOLERANCE)
sh = gws.gis.shape.from_extent(bbox, cc.CRS_3857)
r = u.cmd('searchFindFeatures', {
'projectUid': 'a',
'layerUids': ['a.map.dus_25832'],
'resolution': 1,
'shapes': [sh.props]
})
r = r.json()
exp = [
{
"attributes": "id=<1> p_str=<dus_25832/1> p_int=<100> p_date=<2019-01-01>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.dus_25832___1"
},
{
"attributes": "id=<2> p_str=<dus_25832/2> p_int=<200> p_date=<2019-01-02>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.dus_25832___2"
},
{
"attributes": "id=<6> p_str=<dus_25832/6> p_int=<600> p_date=<2019-01-06>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.dus_25832___6"
},
{
"attributes": "id=<7> p_str=<dus_25832/7> p_int=<700> p_date=<2019-01-07>",
"geometry": "POINT EPSG:3857",
"uid": "a.map.dus_25832___7"
}
]
assert u.short_features(r['features']) == exp
def test_render_squares():
x, y = cc.POINTS.ny
bbox = x, y, x + 350, y + 350
url = '_/cmd/mapHttpGetBox/layerUid/a.map.ny_3857/bbox/' + u.strlist(bbox)
r = u.req(url, params={'width': 200, 'height': 200})
a, b = u.compare_image(r, '/data/response_images/squares_200x200.png')
assert a == b
r = u.req(url, params={'width': 400, 'height': 400})
a, b = u.compare_image(r, '/data/response_images/squares_400x400.png')
assert a == b
r = u.req(url, params={'width': 800, 'height': 400})
a, b = u.compare_image(r, '/data/response_images/squares_800x400.png')
assert a == b
def test_render_squares_styled():
x, y = cc.POINTS.ny
bbox = x, y, x + 350, y + 350
url = '_/cmd/mapHttpGetBox/layerUid/a.map.ny_3857_styled/bbox/' + u.strlist(bbox)
r = u.req(url, params={'width': 200, 'height': 200})
a, b = u.compare_image(r, '/data/response_images/squares_styled_200x200.png')
assert a == b
def test_render_squares_reprojected():
x, y = cc.POINTS.london
x, y = gws.gis.proj.transform_xy(x, y, cc.CRS_3857, cc.CRS_25833)
bbox = x, y, x + 350, y + 350
bbox = gws.gis.extent.transform(bbox, cc.CRS_25833, cc.CRS_3857)
url = '_/cmd/mapHttpGetBox/layerUid/a.map.london_25833/bbox/' + u.strlist(bbox)
r = u.req(url, params={'width': 200, 'height': 200})
a, b = u.compare_image(r, '/data/response_images/squares_reprojected_200x200.png')
assert a == b
| 30.167513
| 99
| 0.562511
| 847
| 5,943
| 3.753247
| 0.146399
| 0.010695
| 0.028311
| 0.034602
| 0.815665
| 0.800881
| 0.757471
| 0.727273
| 0.671909
| 0.651463
| 0
| 0.104025
| 0.255931
| 5,943
| 196
| 100
| 30.321429
| 0.61488
| 0.022043
| 0
| 0.473333
| 0
| 0.066667
| 0.349578
| 0.065438
| 0
| 0
| 0
| 0
| 0.073333
| 1
| 0.046667
| false
| 0
| 0.04
| 0
| 0.086667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 5
|
3359a4062aa5a5f0f0cab5ebe8a3a419ac4771ab
| 4,506
|
py
|
Python
|
tests/extensions/artificial_intelligence/ai_model/test_ai_model.py
|
chr0m1ng/blip-sdk-js
|
74f404a3ef048a100cc330f78a9751572e31fb0b
|
[
"MIT"
] | null | null | null |
tests/extensions/artificial_intelligence/ai_model/test_ai_model.py
|
chr0m1ng/blip-sdk-js
|
74f404a3ef048a100cc330f78a9751572e31fb0b
|
[
"MIT"
] | 9
|
2021-05-27T21:08:23.000Z
|
2021-06-14T20:10:10.000Z
|
tests/extensions/artificial_intelligence/ai_model/test_ai_model.py
|
chr0m1ng/blip-sdk-python
|
74f404a3ef048a100cc330f78a9751572e31fb0b
|
[
"MIT"
] | null | null | null |
from lime_python import Command
from pytest import fixture, mark
from pytest_mock import MockerFixture
from src import AiModelExtension
from ....async_mock import async_return
AI_TO = 'postmaster@ai.msging.net'
class TestAiModelExtension:
@fixture
def target(self, mocker: MockerFixture) -> AiModelExtension:
yield AiModelExtension(mocker.MagicMock(), 'msging.net')
@mark.asyncio
async def test_get_models_async(
self,
mocker: MockerFixture,
target: AiModelExtension
) -> None:
# Arrange
expected_command = Command(
'get',
'/models?$skip=0&$take=100&$ascending=False',
)
expected_command.to = AI_TO
mock = mocker.MagicMock(
return_value=async_return(None)
)
target.client.process_command_async = mock
# Act
await target.get_models_async(0, 100, False)
# Assert
expected_command.id = mock.call_args[0][0].id
mock.assert_called_once_with(expected_command)
@mark.asyncio
async def test_get_model_async(
self,
mocker: MockerFixture,
target: AiModelExtension
) -> None:
# Assert
model_id = '1234'
expected_command = Command(
'get',
'/model/1234'
)
expected_command.to = AI_TO
mock = mocker.MagicMock(
return_value=async_return(None)
)
target.client.process_command_async = mock
# Act
await target.get_model_async(model_id)
# Assert
expected_command.id = mock.call_args[0][0].id
mock.assert_called_once_with(expected_command)
@mark.asyncio
async def test_get_model_summary_async(
self,
mocker: MockerFixture,
target: AiModelExtension
) -> None:
# Assert
expected_command = Command(
'get',
'/models/summary'
)
expected_command.to = AI_TO
mock = mocker.MagicMock(
return_value=async_return(None)
)
target.client.process_command_async = mock
# Act
await target.get_model_summary_async()
# Assert
expected_command.id = mock.call_args[0][0].id
mock.assert_called_once_with(expected_command)
@mark.asyncio
async def test_get_last_trained_or_published_model_async(
self,
mocker: MockerFixture,
target: AiModelExtension
) -> None:
# Assert
expected_command = Command(
'get',
'/models/last-trained-or-published'
)
expected_command.to = AI_TO
mock = mocker.MagicMock(
return_value=async_return(None)
)
target.client.process_command_async = mock
# Act
await target.get_last_trained_or_published_model_async()
# Assert
expected_command.id = mock.call_args[0][0].id
mock.assert_called_once_with(expected_command)
@mark.asyncio
async def test_train_model_async(
self,
mocker: MockerFixture,
target: AiModelExtension
) -> None:
# Assert
expected_command = Command(
'set',
'/models',
'application/vnd.iris.ai.model-training+json',
{}
)
expected_command.to = AI_TO
mock = mocker.MagicMock(
return_value=async_return(None)
)
target.client.process_command_async = mock
# Act
await target.train_model_async()
# Assert
expected_command.id = mock.call_args[0][0].id
mock.assert_called_once_with(expected_command)
@mark.asyncio
async def test_publish_model_async(
self,
mocker: MockerFixture,
target: AiModelExtension
) -> None:
# Assert
model_id = '1234'
command_resource = {
'id': model_id
}
expected_command = Command(
'set',
'/models',
'application/vnd.iris.ai.model-publishing+json',
command_resource
)
expected_command.to = AI_TO
mock = mocker.MagicMock(
return_value=async_return(None)
)
target.client.process_command_async = mock
# Act
await target.publish_model_async(model_id)
# Assert
expected_command.id = mock.call_args[0][0].id
mock.assert_called_once_with(expected_command)
| 25.602273
| 64
| 0.595872
| 474
| 4,506
| 5.390295
| 0.14557
| 0.1409
| 0.073973
| 0.044618
| 0.796086
| 0.783953
| 0.773777
| 0.735421
| 0.735421
| 0.735421
| 0
| 0.010458
| 0.320905
| 4,506
| 175
| 65
| 25.748571
| 0.82451
| 0.023968
| 0
| 0.645669
| 0
| 0
| 0.060516
| 0.042704
| 0
| 0
| 0
| 0
| 0.047244
| 1
| 0.007874
| false
| 0
| 0.03937
| 0
| 0.055118
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
33626c8404b2f29327d60ddfb9a2272f47490176
| 129
|
py
|
Python
|
Code/YOLO/darkflow/vehicle_detection.py
|
kalvin-osoro/ml_project
|
bf0bdc5719f2712682dd070045a5f1edf933a0c4
|
[
"Apache-2.0"
] | null | null | null |
Code/YOLO/darkflow/vehicle_detection.py
|
kalvin-osoro/ml_project
|
bf0bdc5719f2712682dd070045a5f1edf933a0c4
|
[
"Apache-2.0"
] | null | null | null |
Code/YOLO/darkflow/vehicle_detection.py
|
kalvin-osoro/ml_project
|
bf0bdc5719f2712682dd070045a5f1edf933a0c4
|
[
"Apache-2.0"
] | null | null | null |
version https://git-lfs.github.com/spec/v1
oid sha256:2c46a593a69f34c4972c33792ef2bb78f9c6a1be66d6ef28886ae95531123e09
size 1664
| 32.25
| 75
| 0.883721
| 13
| 129
| 8.769231
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.414634
| 0.046512
| 129
| 3
| 76
| 43
| 0.512195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
684130c6479765623b1e8097caf148edfd6bf133
| 127
|
py
|
Python
|
chat/admin.py
|
MathurAditya724/PythonDjangoAsyncChatting
|
b33dee4850c240790b0676ffd60d7ad0b267d00c
|
[
"MIT"
] | null | null | null |
chat/admin.py
|
MathurAditya724/PythonDjangoAsyncChatting
|
b33dee4850c240790b0676ffd60d7ad0b267d00c
|
[
"MIT"
] | null | null | null |
chat/admin.py
|
MathurAditya724/PythonDjangoAsyncChatting
|
b33dee4850c240790b0676ffd60d7ad0b267d00c
|
[
"MIT"
] | 1
|
2021-01-15T12:41:38.000Z
|
2021-01-15T12:41:38.000Z
|
from django.contrib import admin
from .models import Friend, Message
admin.site.register(Friend)
admin.site.register(Message)
| 21.166667
| 35
| 0.818898
| 18
| 127
| 5.777778
| 0.555556
| 0.173077
| 0.326923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.094488
| 127
| 5
| 36
| 25.4
| 0.904348
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 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
| 5
|
684aa8dc61dcdd71febeb7ff793dd8cdc5f86c80
| 25
|
py
|
Python
|
division.py
|
wajahat-dev/divide_function
|
5dd8ccbc02718e60cf4ea9a92f3bd1ff2775c436
|
[
"MIT"
] | null | null | null |
division.py
|
wajahat-dev/divide_function
|
5dd8ccbc02718e60cf4ea9a92f3bd1ff2775c436
|
[
"MIT"
] | null | null | null |
division.py
|
wajahat-dev/divide_function
|
5dd8ccbc02718e60cf4ea9a92f3bd1ff2775c436
|
[
"MIT"
] | null | null | null |
def division(x,y):
x/y
| 8.333333
| 18
| 0.6
| 6
| 25
| 2.5
| 0.666667
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 25
| 2
| 19
| 12.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
685b7a45c9da4c22234bf740fa1ee73b276d02f6
| 102
|
py
|
Python
|
__init__.py
|
JapneetSingh5/new-hack-who-this-project
|
67a9cb72784358b7f5e13386908634118daefc47
|
[
"MIT"
] | 4
|
2020-07-11T08:50:44.000Z
|
2021-11-08T12:55:58.000Z
|
__init__.py
|
JapneetSingh5/new-hack-who-this-project
|
67a9cb72784358b7f5e13386908634118daefc47
|
[
"MIT"
] | 2
|
2020-07-10T16:47:55.000Z
|
2021-08-23T20:48:58.000Z
|
__init__.py
|
JapneetSingh5/new-hack-who-this-project
|
67a9cb72784358b7f5e13386908634118daefc47
|
[
"MIT"
] | 2
|
2020-07-12T13:12:27.000Z
|
2021-06-28T15:23:40.000Z
|
# Project root.
# This file is required to access project root directory
# from children directories.
| 25.5
| 56
| 0.784314
| 14
| 102
| 5.714286
| 0.857143
| 0.275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 102
| 3
| 57
| 34
| 0.941176
| 0.931373
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 1
| 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
| 5
|
6861e8d3fa841b69e7948a1f32b7a050c6c13c62
| 125
|
py
|
Python
|
changelogs/custom/pypi/selenium.py
|
chris48s/changelogs
|
0cdb929ac4546c766cd7eef9ae4eb4baaa08f452
|
[
"MIT"
] | 54
|
2017-01-12T09:44:49.000Z
|
2022-02-01T18:15:07.000Z
|
changelogs/custom/pypi/selenium.py
|
chris48s/changelogs
|
0cdb929ac4546c766cd7eef9ae4eb4baaa08f452
|
[
"MIT"
] | 254
|
2016-12-23T12:53:52.000Z
|
2021-11-23T14:59:01.000Z
|
changelogs/custom/pypi/selenium.py
|
chris48s/changelogs
|
0cdb929ac4546c766cd7eef9ae4eb4baaa08f452
|
[
"MIT"
] | 26
|
2017-02-25T08:21:05.000Z
|
2022-01-10T15:46:24.000Z
|
def get_urls(releases, **kwargs):
return ["https://raw.githubusercontent.com/SeleniumHQ/selenium/master/py/CHANGES"], []
| 41.666667
| 90
| 0.736
| 15
| 125
| 6.066667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 125
| 2
| 91
| 62.5
| 0.791304
| 0
| 0
| 0
| 0
| 0
| 0.568
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
688819faa897e5e75cc06973c50f4970ee1b2fb6
| 173
|
py
|
Python
|
authentication/socialaccount/providers/weixin/urls.py
|
vo0doO/pydj-persweb
|
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
|
[
"CC0-1.0"
] | null | null | null |
authentication/socialaccount/providers/weixin/urls.py
|
vo0doO/pydj-persweb
|
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
|
[
"CC0-1.0"
] | 4
|
2020-05-06T17:22:00.000Z
|
2021-12-13T20:43:30.000Z
|
authentication/socialaccount/providers/weixin/urls.py
|
vo0doO/pydj-persweb
|
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
|
[
"CC0-1.0"
] | null | null | null |
from authentication.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import WeixinProvider
urlpatterns = default_urlpatterns(WeixinProvider)
| 24.714286
| 82
| 0.872832
| 17
| 173
| 8.764706
| 0.647059
| 0.241611
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006289
| 0.080925
| 173
| 6
| 83
| 28.833333
| 0.930818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 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
| 1
| 0
|
0
| 5
|
d7b88d96942d1c21e5ede41ab11b895d54125f26
| 235
|
py
|
Python
|
User/models.py
|
gordiig/Fatty-backend
|
a8e79649f8d4f688487f6b210ca31c02b85e30a2
|
[
"MIT"
] | null | null | null |
User/models.py
|
gordiig/Fatty-backend
|
a8e79649f8d4f688487f6b210ca31c02b85e30a2
|
[
"MIT"
] | null | null | null |
User/models.py
|
gordiig/Fatty-backend
|
a8e79649f8d4f688487f6b210ca31c02b85e30a2
|
[
"MIT"
] | null | null | null |
from django.contrib.postgres.fields import CIEmailField
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
"""
Юзер
"""
email = CIEmailField(null=False, blank=True, default='', unique=True)
| 23.5
| 73
| 0.72766
| 27
| 235
| 6.333333
| 0.740741
| 0.116959
| 0.19883
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157447
| 235
| 9
| 74
| 26.111111
| 0.863636
| 0.017021
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d7bc59b4e83ebb661e04f8db87417a10aa55343f
| 122
|
py
|
Python
|
src/case_rate/__init__.py
|
richengguy/case-rate
|
4486343d091cbf3be1a850c0bef28c2c9da4c0a6
|
[
"BSD-3-Clause"
] | null | null | null |
src/case_rate/__init__.py
|
richengguy/case-rate
|
4486343d091cbf3be1a850c0bef28c2c9da4c0a6
|
[
"BSD-3-Clause"
] | null | null | null |
src/case_rate/__init__.py
|
richengguy/case-rate
|
4486343d091cbf3be1a850c0bef28c2c9da4c0a6
|
[
"BSD-3-Clause"
] | null | null | null |
# flake8: noqa
from case_rate._version import VERSION, VERSION_MAJOR, VERSION_MINOR
from case_rate.storage import Storage
| 30.5
| 68
| 0.844262
| 18
| 122
| 5.444444
| 0.555556
| 0.163265
| 0.244898
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009174
| 0.106557
| 122
| 3
| 69
| 40.666667
| 0.889908
| 0.098361
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
cc0715dda0fbaba734ff209d311250a68744e950
| 4,219
|
py
|
Python
|
rssympim/sympim_rz/maps/field_maps.py
|
radiasoft/rssympic
|
14b119267686c64e2d0fcd3be19c365b8d486e22
|
[
"Apache-2.0"
] | 2
|
2017-02-07T22:04:42.000Z
|
2017-04-27T13:00:03.000Z
|
rssympim/sympim_rz/maps/field_maps.py
|
radiasoft/rssympic
|
14b119267686c64e2d0fcd3be19c365b8d486e22
|
[
"Apache-2.0"
] | 14
|
2017-02-22T23:03:58.000Z
|
2018-03-27T21:51:03.000Z
|
rssympim/sympim_rz/maps/field_maps.py
|
radiasoft/rssympic
|
14b119267686c64e2d0fcd3be19c365b8d486e22
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
class field_maps:
"""
Class for handling field updates and rotations
Parameters
----------
field_data: data.field_data
field data class object
_dt: float (second)
Step size for integration and motion
"""
def __init__(self, fld_data, _dt):
kr = fld_data.kr
kz = fld_data.kz
mode_mass = fld_data.mode_mass
n_modes_r = np.shape(kr)[0]
n_modes_z = np.shape(kz)[0]
omega = fld_data.omega
M_omega = mode_mass*omega
self.dt = _dt
self.phase_advance = omega*_dt
self.rotation_matrices = np.zeros((n_modes_z, n_modes_r,2,2))
self.half_for_rot_mat = np.zeros((n_modes_z, n_modes_r,2,2))
self.half_bac_rot_mat = np.zeros((n_modes_z, n_modes_r,2,2))
for idx_z in range(0, n_modes_z):
for idx_r in range(0, n_modes_r):
# Compute the full rotation matrices
self.rotation_matrices[idx_z,idx_r,0,0] = \
np.cos(self.phase_advance[idx_z,idx_r])
self.rotation_matrices[idx_z,idx_r,1,0] = \
np.sin(self.phase_advance[idx_z,idx_r])/M_omega[idx_z,idx_r]
self.rotation_matrices[idx_z,idx_r,0,1] = \
-np.sin(self.phase_advance[idx_z,idx_r])*M_omega[idx_z,idx_r]
self.rotation_matrices[idx_z,idx_r,1,1] =\
np.cos(self.phase_advance[idx_z,idx_r])
# Compute the half rotation matrices and their inverses
self.half_for_rot_mat[idx_z, idx_r, 0,0] = \
np.cos(.5*self.phase_advance[idx_z, idx_r])
self.half_for_rot_mat[idx_z, idx_r, 1,0] = \
np.sin(.5*self.phase_advance[idx_z,idx_r])/M_omega[idx_z,idx_r]
self.half_for_rot_mat[idx_z, idx_r, 0,1] = \
-np.sin(.5*self.phase_advance[idx_z,idx_r])*M_omega[idx_z,idx_r]
self.half_for_rot_mat[idx_z, idx_r, 1,1] =\
np.cos(.5*self.phase_advance[idx_z,idx_r])
self.half_bac_rot_mat[idx_z,idx_r,0,0] = \
np.cos(-.5*self.phase_advance[idx_z,idx_r])
self.half_bac_rot_mat[idx_z,idx_r,1,0] = \
np.sin(-.5*self.phase_advance[idx_z,idx_r])/M_omega[idx_z,idx_r]
self.half_bac_rot_mat[idx_z,idx_r,0,1] = \
-np.sin(-.5*self.phase_advance[idx_z,idx_r])*M_omega[idx_z,idx_r]
self.half_bac_rot_mat[idx_z,idx_r,1,1] = \
np.cos(-.5*self.phase_advance[idx_z,idx_r])
def advance_forward(self, field_data):
"""
Advance the field data by a full time step.
Parameters
----------
field_data: data.field_data
field data class object
"""
field_data.omega_coords = np.einsum('ijkl, ijl -> ijk',
self.rotation_matrices, field_data.omega_coords)
field_data.dc_coords[:,:,1] += field_data.dc_coords[:,:,0]/field_data.mode_mass*self.dt
def half_advance_forward(self, field_data):
"""
Advance the field data by a half time step forward -- for the beginning of a simulation
Parameters
----------
field_data: data.field_data
field data class object
"""
field_data.omega_coords = np.einsum('ijkl, ijl -> ijk',
self.half_for_rot_mat, field_data.omega_coords)
field_data.dc_coords[:,:,1] += 0.5*field_data.dc_coords[:,:,0]/field_data.mode_mass*self.dt
def half_advance_back(self, field_data):
"""
Advance the field data by a half time step backward -- for the end of a simulation
Parameters
----------
field_data: data.field_data
field data class object
"""
field_data.omega_coords = np.einsum('ijkl, ijl -> ijk',
self.half_bac_rot_mat, field_data.omega_coords)
field_data.dc_coords[:,:,1] -= 0.5*field_data.dc_coords[:,:,0]/field_data.mode_mass*self.dt
| 36.37069
| 99
| 0.565063
| 629
| 4,219
| 3.461049
| 0.120827
| 0.136426
| 0.096463
| 0.110243
| 0.786403
| 0.768029
| 0.768029
| 0.768029
| 0.752412
| 0.711989
| 0
| 0.018043
| 0.3169
| 4,219
| 116
| 100
| 36.37069
| 0.737335
| 0.173975
| 0
| 0.169811
| 0
| 0
| 0.014787
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075472
| false
| 0
| 0.018868
| 0
| 0.113208
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
cc0b0dde51a0eac55cccc0cd7318c6306fc55948
| 994
|
py
|
Python
|
optimus_manager/pci.py
|
jsmnbom/optimus-manager
|
ebc06c802bef879a509f75d9fdbd1b44810d60f3
|
[
"MIT"
] | null | null | null |
optimus_manager/pci.py
|
jsmnbom/optimus-manager
|
ebc06c802bef879a509f75d9fdbd1b44810d60f3
|
[
"MIT"
] | null | null | null |
optimus_manager/pci.py
|
jsmnbom/optimus-manager
|
ebc06c802bef879a509f75d9fdbd1b44810d60f3
|
[
"MIT"
] | null | null | null |
from optimus_manager.detection import get_bus_ids
class PCIError(Exception):
pass
def set_power_management(enabled):
if enabled:
_set_mode("auto")
else:
_set_mode("on")
def reset_gpu():
bus_ids = get_bus_ids(notation_fix=False)
pci_path = "/sys/bus/pci/devices/0000:%s/reset" % bus_ids["nvidia"]
try:
with open(pci_path, "w") as f:
f.write("1")
except FileNotFoundError:
raise PCIError("Cannot find Nvidia PCI path at %s" % pci_path)
except IOError:
raise PCIError("Error writing to %s" % pci_path)
def _set_mode(mode):
bus_ids = get_bus_ids(notation_fix=False)
pci_path = "/sys/bus/pci/devices/0000:%s/power/control" % bus_ids["nvidia"]
try:
with open(pci_path, "w") as f:
f.write(mode)
except FileNotFoundError:
raise PCIError("Cannot find Nvidia PCI path at %s" % pci_path)
except IOError:
raise PCIError("Error writing to %s" % pci_path)
| 24.243902
| 79
| 0.641851
| 142
| 994
| 4.28169
| 0.373239
| 0.115132
| 0.052632
| 0.039474
| 0.710526
| 0.710526
| 0.710526
| 0.710526
| 0.710526
| 0.710526
| 0
| 0.011968
| 0.243461
| 994
| 40
| 80
| 24.85
| 0.796543
| 0
| 0
| 0.5
| 0
| 0
| 0.202213
| 0.076459
| 0
| 0
| 0
| 0
| 0
| 1
| 0.107143
| false
| 0.035714
| 0.035714
| 0
| 0.178571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
cc1618336d9bbe3b88217f454fd6126396c37530
| 539
|
py
|
Python
|
meraki/models/encryption_mode_enum.py
|
dexterlabora/meraki-python-sdk
|
f6e6d61bd8694548169cd872b0642def69115bcb
|
[
"MIT"
] | null | null | null |
meraki/models/encryption_mode_enum.py
|
dexterlabora/meraki-python-sdk
|
f6e6d61bd8694548169cd872b0642def69115bcb
|
[
"MIT"
] | null | null | null |
meraki/models/encryption_mode_enum.py
|
dexterlabora/meraki-python-sdk
|
f6e6d61bd8694548169cd872b0642def69115bcb
|
[
"MIT"
] | 1
|
2021-01-27T00:05:25.000Z
|
2021-01-27T00:05:25.000Z
|
# -*- coding: utf-8 -*-
"""
meraki
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class EncryptionModeEnum(object):
"""Implementation of the 'EncryptionMode' enum.
The psk encryption mode for the SSID ('wpa', 'wep' or 'wpa-eap')
Attributes:
WPA: TODO: type description here.
WEP: TODO: type description here.
WPAEAP: TODO: type description here.
"""
WPA = 'wpa'
WEP = 'wep'
WPAEAP = 'wpa-eap'
| 19.25
| 95
| 0.576994
| 61
| 539
| 5.098361
| 0.622951
| 0.07717
| 0.18328
| 0.221865
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007979
| 0.302412
| 539
| 27
| 96
| 19.962963
| 0.819149
| 0.671614
| 0
| 0
| 1
| 0
| 0.127451
| 0
| 0
| 0
| 0
| 0.111111
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
cc29fdb9e3934914d666e35bfc073db817647fe2
| 137
|
py
|
Python
|
src/birdhouse_toolbox/cli/checker/main.py
|
alexseitsinger/birdhouse-toolbox
|
2c7c725d143b02228365ed82f57f6fecca21a614
|
[
"BSD-2-Clause"
] | null | null | null |
src/birdhouse_toolbox/cli/checker/main.py
|
alexseitsinger/birdhouse-toolbox
|
2c7c725d143b02228365ed82f57f6fecca21a614
|
[
"BSD-2-Clause"
] | null | null | null |
src/birdhouse_toolbox/cli/checker/main.py
|
alexseitsinger/birdhouse-toolbox
|
2c7c725d143b02228365ed82f57f6fecca21a614
|
[
"BSD-2-Clause"
] | null | null | null |
import click
from .commands.check import check_command
@click.group(name="ck")
def main():
pass
main.add_command(check_command)
| 11.416667
| 41
| 0.744526
| 20
| 137
| 4.95
| 0.65
| 0.242424
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145985
| 137
| 11
| 42
| 12.454545
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0.014599
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| true
| 0.166667
| 0.333333
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
0bc460fff68b140f6b9eac60a86b350d15e5ef16
| 175
|
py
|
Python
|
lang/Python/character-codes-3.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/character-codes-3.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/character-codes-3.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
print((ord('a'))) # prints "97" (will also work in 2.x)
print((ord('π'))) # prints "960"
print((chr(97))) # prints "a" (will also work in 2.x)
print((chr(960))) # prints "π"
| 35
| 55
| 0.582857
| 32
| 175
| 3.1875
| 0.4375
| 0.156863
| 0.235294
| 0.27451
| 0.411765
| 0.411765
| 0.411765
| 0
| 0
| 0
| 0
| 0.081081
| 0.154286
| 175
| 4
| 56
| 43.75
| 0.608108
| 0.537143
| 0
| 0
| 0
| 0
| 0.026316
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
0bfaa2d097a14a699ab55d2e1ca11b0cb898e9ef
| 214
|
py
|
Python
|
main/SteppableDemos/KernelDiffusionSolver/diffusion_2D_kernel/Simulation/diffusion_2D_kernel.py
|
JulianoGianlupi/nh-cc3d-4x-base-tool
|
c0f4aceebd4c5bf3ec39e831ef851e419b161259
|
[
"CC0-1.0"
] | null | null | null |
main/SteppableDemos/KernelDiffusionSolver/diffusion_2D_kernel/Simulation/diffusion_2D_kernel.py
|
JulianoGianlupi/nh-cc3d-4x-base-tool
|
c0f4aceebd4c5bf3ec39e831ef851e419b161259
|
[
"CC0-1.0"
] | null | null | null |
main/SteppableDemos/KernelDiffusionSolver/diffusion_2D_kernel/Simulation/diffusion_2D_kernel.py
|
JulianoGianlupi/nh-cc3d-4x-base-tool
|
c0f4aceebd4c5bf3ec39e831ef851e419b161259
|
[
"CC0-1.0"
] | 1
|
2021-02-26T21:50:29.000Z
|
2021-02-26T21:50:29.000Z
|
from cc3d import CompuCellSetup
from diffusion_2D_kernelSteppables import diffusion_2D_kernelSteppable
CompuCellSetup.register_steppable(steppable=diffusion_2D_kernelSteppable(frequency=1))
CompuCellSetup.run()
| 26.75
| 86
| 0.892523
| 23
| 214
| 8
| 0.565217
| 0.179348
| 0.282609
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024876
| 0.060748
| 214
| 7
| 87
| 30.571429
| 0.890547
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 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
| 5
|
041394b955729c3f509c31bf9a5e5467f8c86d81
| 127
|
py
|
Python
|
rc/admin.py
|
xurble/recast
|
dac31dbfffbbd1db4840ee76b42b044bdf03a1f0
|
[
"MIT"
] | 4
|
2019-05-14T16:18:23.000Z
|
2021-08-13T19:56:55.000Z
|
rc/admin.py
|
xurble/recast
|
dac31dbfffbbd1db4840ee76b42b044bdf03a1f0
|
[
"MIT"
] | 12
|
2020-02-11T21:47:12.000Z
|
2022-02-01T23:55:55.000Z
|
rc/admin.py
|
xurble/recast
|
dac31dbfffbbd1db4840ee76b42b044bdf03a1f0
|
[
"MIT"
] | null | null | null |
from .models import *
from django.contrib import admin
admin.site.register(Subscription)
admin.site.register(SubscriptionPost)
| 25.4
| 37
| 0.834646
| 16
| 127
| 6.625
| 0.625
| 0.169811
| 0.320755
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.07874
| 127
| 5
| 37
| 25.4
| 0.905983
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 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
| 5
|
043e69fa8b66ab1d7a3e76b94938ba9638801f40
| 54
|
py
|
Python
|
01-python/leisure/gym.py
|
JamesKunstle/bootstrap_open_source_workflow
|
c6e02f76188b1040af7647fec89b54fd0a43ed10
|
[
"MIT"
] | null | null | null |
01-python/leisure/gym.py
|
JamesKunstle/bootstrap_open_source_workflow
|
c6e02f76188b1040af7647fec89b54fd0a43ed10
|
[
"MIT"
] | null | null | null |
01-python/leisure/gym.py
|
JamesKunstle/bootstrap_open_source_workflow
|
c6e02f76188b1040af7647fec89b54fd0a43ed10
|
[
"MIT"
] | null | null | null |
def draw_gym():
print("gym not found")
return
| 13.5
| 26
| 0.611111
| 8
| 54
| 4
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.259259
| 54
| 3
| 27
| 18
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.240741
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0
| 0
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
0454de01773a306726872ee9b227d991f801cb38
| 91
|
py
|
Python
|
registry/public/__init__.py
|
j-jzk/donors_registry
|
554290b5b928986af95fc3723e7b9634f3356f9f
|
[
"MIT"
] | 3
|
2020-08-03T15:00:02.000Z
|
2021-05-26T13:54:08.000Z
|
registry/public/__init__.py
|
j-jzk/donors_registry
|
554290b5b928986af95fc3723e7b9634f3356f9f
|
[
"MIT"
] | 128
|
2020-08-29T07:30:53.000Z
|
2022-01-24T07:04:13.000Z
|
registry/public/__init__.py
|
j-jzk/donors_registry
|
554290b5b928986af95fc3723e7b9634f3356f9f
|
[
"MIT"
] | 9
|
2020-07-18T16:53:24.000Z
|
2021-05-20T08:27:19.000Z
|
"""The public module, including the homepage and user auth."""
from . import views # noqa
| 30.333333
| 62
| 0.714286
| 13
| 91
| 5
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175824
| 91
| 2
| 63
| 45.5
| 0.866667
| 0.681319
| 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
| 1
| 0
|
0
| 5
|
f0a24584f6c48bb711e10d77ef0b36b3884d07ed
| 157
|
py
|
Python
|
test/test.py
|
banjy92/WebsitePractise
|
0731f6ceeb1bfc082855823c0f13e909ef16aa02
|
[
"Apache-2.0"
] | null | null | null |
test/test.py
|
banjy92/WebsitePractise
|
0731f6ceeb1bfc082855823c0f13e909ef16aa02
|
[
"Apache-2.0"
] | null | null | null |
test/test.py
|
banjy92/WebsitePractise
|
0731f6ceeb1bfc082855823c0f13e909ef16aa02
|
[
"Apache-2.0"
] | null | null | null |
#!C:/Users/Maestro/Appdata/Local/Programs/Python/Python36/python.exe
print("Content-Type: text/html\n")
print ("Hello Python Web Browser!! This is cool!!")
| 52.333333
| 69
| 0.745223
| 24
| 157
| 4.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013793
| 0.076433
| 157
| 3
| 70
| 52.333333
| 0.793103
| 0.426752
| 0
| 0
| 0
| 0
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
f0aae3b78f79c03d1a36c7eeb8b6b3274000ce01
| 133
|
py
|
Python
|
tests/opendata_cacem_dechets_test.py
|
glefait/opendata-cacem-dechets
|
ab33a9b0f302a37f344338639a15c4e7bc8a57f9
|
[
"MIT"
] | null | null | null |
tests/opendata_cacem_dechets_test.py
|
glefait/opendata-cacem-dechets
|
ab33a9b0f302a37f344338639a15c4e7bc8a57f9
|
[
"MIT"
] | null | null | null |
tests/opendata_cacem_dechets_test.py
|
glefait/opendata-cacem-dechets
|
ab33a9b0f302a37f344338639a15c4e7bc8a57f9
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `opendata_cacem_dechets` package."""
def empty_test():
assert True
| 14.777778
| 49
| 0.639098
| 18
| 133
| 4.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009009
| 0.165414
| 133
| 8
| 50
| 16.625
| 0.72973
| 0.646617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f0c96d12231d93cc9569fc357295fff37ac87064
| 210
|
py
|
Python
|
virtualenv/lib/python3.6/site-packages/pyflakes/scripts/pyflakes.py
|
coderunn3r/HadoopSpike
|
3e57219d0489fae1d755bc4bd97eaf22f1898464
|
[
"MIT"
] | 21
|
2015-02-14T04:06:19.000Z
|
2021-01-20T23:25:14.000Z
|
virtualenv/lib/python3.6/site-packages/pyflakes/scripts/pyflakes.py
|
coderunn3r/HadoopSpike
|
3e57219d0489fae1d755bc4bd97eaf22f1898464
|
[
"MIT"
] | 2
|
2015-03-16T00:22:13.000Z
|
2018-04-24T12:51:33.000Z
|
virtualenv/lib/python3.6/site-packages/pyflakes/scripts/pyflakes.py
|
coderunn3r/HadoopSpike
|
3e57219d0489fae1d755bc4bd97eaf22f1898464
|
[
"MIT"
] | 5
|
2015-01-13T04:56:38.000Z
|
2021-04-01T08:47:32.000Z
|
"""
Implementation of the command-line I{pyflakes} tool.
"""
from __future__ import absolute_import
# For backward compatibility
from pyflakes.api import check, checkPath, checkRecursive, iterSourceCode, main
| 26.25
| 79
| 0.804762
| 25
| 210
| 6.56
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 210
| 7
| 80
| 30
| 0.886486
| 0.380952
| 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
| 1
| 0
|
0
| 5
|
f0cac240d8b5ff05aa93f23bc532ca07adabe627
| 90
|
py
|
Python
|
blog-server/blog/repositories/base.py
|
rob-blackbourn/blog-engine
|
9b0239996732f377b70c82eb908bae826f35e67c
|
[
"Apache-2.0"
] | 1
|
2019-05-13T19:40:32.000Z
|
2019-05-13T19:40:32.000Z
|
blog-server/blog/repositories/base.py
|
rob-blackbourn/blog-engine
|
9b0239996732f377b70c82eb908bae826f35e67c
|
[
"Apache-2.0"
] | null | null | null |
blog-server/blog/repositories/base.py
|
rob-blackbourn/blog-engine
|
9b0239996732f377b70c82eb908bae826f35e67c
|
[
"Apache-2.0"
] | null | null | null |
class Repository:
def register_data_loaders(self, registry):
return registry
| 18
| 46
| 0.722222
| 10
| 90
| 6.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 90
| 4
| 47
| 22.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
f0e6861c3f22db3ae3d2b7ac91d2622e46e02821
| 48
|
py
|
Python
|
main.py
|
julianeventeu/api-fintech
|
0583e3b9b3612c09989bc34aa62edc96bf91f204
|
[
"BSD-3-Clause"
] | 5
|
2019-05-16T12:44:51.000Z
|
2021-06-28T09:28:49.000Z
|
main.py
|
julianeventeu/api-fintech
|
0583e3b9b3612c09989bc34aa62edc96bf91f204
|
[
"BSD-3-Clause"
] | 30
|
2019-05-05T19:13:10.000Z
|
2019-05-20T03:12:33.000Z
|
main.py
|
julianeventeu/api-fintech
|
0583e3b9b3612c09989bc34aa62edc96bf91f204
|
[
"BSD-3-Clause"
] | 9
|
2019-05-06T15:14:59.000Z
|
2021-06-28T09:28:51.000Z
|
def project():
raise NotImplementedError()
| 16
| 32
| 0.708333
| 4
| 48
| 8.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 48
| 2
| 33
| 24
| 0.871795
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f0f63e191f3c91903c52a071b3b937c09931e2af
| 243
|
py
|
Python
|
relogic/structures/collection.py
|
Impavidity/relogic
|
f647106e143cd603b95b63e06ea530cdd516aefe
|
[
"MIT"
] | 24
|
2019-07-20T02:10:21.000Z
|
2022-03-15T07:13:07.000Z
|
relogic/structures/collection.py
|
One-paper-luck/relogic
|
f647106e143cd603b95b63e06ea530cdd516aefe
|
[
"MIT"
] | 3
|
2019-11-28T04:19:25.000Z
|
2019-11-30T23:29:19.000Z
|
relogic/structures/collection.py
|
One-paper-luck/relogic
|
f647106e143cd603b95b63e06ea530cdd516aefe
|
[
"MIT"
] | 5
|
2019-11-27T03:12:07.000Z
|
2021-12-08T11:45:43.000Z
|
from dataclasses import dataclass
from typing import List
from relogic.structures.document import Document
from relogic.structures.sentence import Sentence
@dataclass
class ReaderDataStructure:
doc_list: List[Document]
query: Sentence
| 18.692308
| 48
| 0.831276
| 29
| 243
| 6.931034
| 0.482759
| 0.109453
| 0.208955
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127572
| 243
| 12
| 49
| 20.25
| 0.948113
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.875
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9bc683f08882fba4f8c805b1ecbf99f95d538e15
| 138
|
py
|
Python
|
inca/util.py
|
dholth/pyweek19
|
7133a61f94aea41db48f3c3a0e77ca7c8bca1dd3
|
[
"MIT"
] | null | null | null |
inca/util.py
|
dholth/pyweek19
|
7133a61f94aea41db48f3c3a0e77ca7c8bca1dd3
|
[
"MIT"
] | null | null | null |
inca/util.py
|
dholth/pyweek19
|
7133a61f94aea41db48f3c3a0e77ca7c8bca1dd3
|
[
"MIT"
] | null | null | null |
def clamp(coord, lower, upper):
"""
Clamp coord to lay between lower and upper.
"""
return min(upper, max(coord, lower))
| 19.714286
| 47
| 0.615942
| 19
| 138
| 4.473684
| 0.631579
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.253623
| 138
| 6
| 48
| 23
| 0.825243
| 0.311594
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
5004d7521170fb67f31694282d45ab52b498dff4
| 329
|
py
|
Python
|
buildingboundary/__init__.py
|
StOriJimmy/building-boundary
|
db582c40f46f250a6fa8244a867501cf3149330a
|
[
"MIT"
] | null | null | null |
buildingboundary/__init__.py
|
StOriJimmy/building-boundary
|
db582c40f46f250a6fa8244a867501cf3149330a
|
[
"MIT"
] | null | null | null |
buildingboundary/__init__.py
|
StOriJimmy/building-boundary
|
db582c40f46f250a6fa8244a867501cf3149330a
|
[
"MIT"
] | null | null | null |
from .trace import trace_boundary
from .components import intersect
from .components import regularize
from .components import segment
from .components import segmentation
from .components import assess
from .components import alphashape
from .components import boundingbox
from .components import merge
from .utils import angle
| 29.909091
| 36
| 0.848024
| 41
| 329
| 6.780488
| 0.365854
| 0.402878
| 0.57554
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121581
| 329
| 10
| 37
| 32.9
| 0.961938
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
500953f6113ed686852690729dcb19bd6739d7ff
| 88
|
py
|
Python
|
API/src/main/resources/Lib/guide/__init__.py
|
MiguelDomingues/SikuliX1
|
4ff932ae616b1c1fd5409f6e8fbf6c4615aa52f3
|
[
"MIT"
] | 1,746
|
2018-03-10T11:09:19.000Z
|
2022-03-31T12:56:37.000Z
|
API/src/main/resources/Lib/guide/__init__.py
|
MiguelDomingues/SikuliX1
|
4ff932ae616b1c1fd5409f6e8fbf6c4615aa52f3
|
[
"MIT"
] | 461
|
2018-03-12T22:21:56.000Z
|
2022-03-31T11:18:42.000Z
|
API/src/main/resources/Lib/guide/__init__.py
|
MiguelDomingues/SikuliX1
|
4ff932ae616b1c1fd5409f6e8fbf6c4615aa52f3
|
[
"MIT"
] | 269
|
2018-03-10T11:10:17.000Z
|
2022-03-26T19:16:15.000Z
|
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license
from guide import *
| 17.6
| 65
| 0.704545
| 13
| 88
| 4.769231
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 0.181818
| 88
| 4
| 66
| 22
| 0.75
| 0.704545
| 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
| 1
| 0
|
0
| 5
|
502756319303a7ded600133dafabf7b9d12bf9c1
| 161
|
py
|
Python
|
pySPACE/run/scripts/node_chain_scripts/__init__.py
|
pyspace/pyspace
|
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
|
[
"BSD-3-Clause"
] | 32
|
2015-02-20T09:03:09.000Z
|
2022-02-25T22:32:52.000Z
|
pySPACE/run/scripts/node_chain_scripts/__init__.py
|
pyspace/pyspace
|
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
|
[
"BSD-3-Clause"
] | 5
|
2015-05-18T15:08:40.000Z
|
2020-03-05T19:18:01.000Z
|
pySPACE/run/scripts/node_chain_scripts/__init__.py
|
pyspace/pyspace
|
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
|
[
"BSD-3-Clause"
] | 18
|
2015-09-28T07:16:38.000Z
|
2021-01-20T13:52:19.000Z
|
""" Several mostly undocumented scripts with unknown functionality
.. todo:: Documentation of scripts is to sparse
.. todo:: link source code of scripts
"""
| 20.125
| 67
| 0.73913
| 20
| 161
| 5.95
| 0.8
| 0.151261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 161
| 7
| 68
| 23
| 0.894737
| 0.937888
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.285714
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
50554b252001750b27f44bfe8064de626e74589c
| 121
|
py
|
Python
|
sigla/utils/filters.py
|
mintyPT/sigla
|
f4f2a77d7da637f1dd9f6db97be8fd70af610bd0
|
[
"MIT"
] | 7
|
2021-01-25T23:09:21.000Z
|
2021-05-27T02:37:32.000Z
|
sigla/utils/filters.py
|
mintyPT/sigla
|
f4f2a77d7da637f1dd9f6db97be8fd70af610bd0
|
[
"MIT"
] | null | null | null |
sigla/utils/filters.py
|
mintyPT/sigla
|
f4f2a77d7da637f1dd9f6db97be8fd70af610bd0
|
[
"MIT"
] | null | null | null |
FILTERS = {}
def register_filter(name):
def wraps(f):
FILTERS[name] = f
return f
return wraps
| 12.1
| 26
| 0.561983
| 15
| 121
| 4.466667
| 0.533333
| 0.208955
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.338843
| 121
| 9
| 27
| 13.444444
| 0.8375
| 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 | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
aca8b1e0ffec98af80978930cc0442e8496d57ce
| 146
|
py
|
Python
|
openverse_catalog/dags/common/licenses/__init__.py
|
yavik-kapadia/openverse-catalog
|
853766f2176a96450f456a9fd6675e134c0866e1
|
[
"MIT"
] | 25
|
2021-05-06T20:53:45.000Z
|
2022-03-30T23:18:50.000Z
|
openverse_catalog/dags/common/licenses/__init__.py
|
yavik-kapadia/openverse-catalog
|
853766f2176a96450f456a9fd6675e134c0866e1
|
[
"MIT"
] | 272
|
2021-05-17T05:53:00.000Z
|
2022-03-31T23:57:20.000Z
|
openverse_catalog/dags/common/licenses/__init__.py
|
yavik-kapadia/openverse-catalog
|
853766f2176a96450f456a9fd6675e134c0866e1
|
[
"MIT"
] | 13
|
2021-06-12T07:09:06.000Z
|
2022-03-29T17:39:13.000Z
|
from .licenses import ( # noqa: F401
LicenseInfo,
get_license_info,
get_license_info_from_license_pair,
is_valid_license_info,
)
| 20.857143
| 39
| 0.739726
| 19
| 146
| 5.157895
| 0.631579
| 0.336735
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 0.19863
| 146
| 6
| 40
| 24.333333
| 0.811966
| 0.068493
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.166667
| 0
| 0.166667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
acbddfaca608b979130c8d74abe6f75468a3732f
| 72
|
py
|
Python
|
ipython/startup/import_platform.py
|
dycw/dotfiles2
|
9e23c4989e9813080da3658a8f98dbb1e03776f2
|
[
"MIT"
] | null | null | null |
ipython/startup/import_platform.py
|
dycw/dotfiles2
|
9e23c4989e9813080da3658a8f98dbb1e03776f2
|
[
"MIT"
] | null | null | null |
ipython/startup/import_platform.py
|
dycw/dotfiles2
|
9e23c4989e9813080da3658a8f98dbb1e03776f2
|
[
"MIT"
] | null | null | null |
import platform # noqa: F401
from platform import system # noqa: F401
| 24
| 41
| 0.75
| 10
| 72
| 5.4
| 0.6
| 0.296296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103448
| 0.194444
| 72
| 2
| 42
| 36
| 0.827586
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
acc04eec3e5019b46f462b5779337eb9841be17a
| 1,644
|
py
|
Python
|
drepr/old_code/prototype/tests/drepr/mfunc/test_index_mapping_func.py
|
scorpio975/d-repr
|
1d08024192642233d42d29e1d05f8713ee265bca
|
[
"MIT"
] | 5
|
2019-10-02T01:04:50.000Z
|
2022-03-08T09:39:50.000Z
|
drepr/old_code/prototype/tests/drepr/mfunc/test_index_mapping_func.py
|
scorpio975/d-repr
|
1d08024192642233d42d29e1d05f8713ee265bca
|
[
"MIT"
] | 3
|
2020-06-13T22:09:48.000Z
|
2021-04-23T08:23:49.000Z
|
drepr/old_code/prototype/tests/drepr/mfunc/test_index_mapping_func.py
|
scorpio975/d-repr
|
1d08024192642233d42d29e1d05f8713ee265bca
|
[
"MIT"
] | 5
|
2019-10-02T03:01:27.000Z
|
2021-02-02T13:34:35.000Z
|
from copy import copy
from drepr.mfunc.index_mapping_func import IndexMappingFunc
from drepr.models import Location, DimensionMapping
from drepr.models.parser_v1 import LocationReadableDeSerV1
def test_single_val():
dm = DimensionMapping("x", [1], "y", [0])
xloc = LocationReadableDeSerV1.unsafe_deserialize({'resource_id': 'default', 'slices': "5:0..10".split(":")})
yloc = LocationReadableDeSerV1.unsafe_deserialize({'resource_id': 'default', 'slices': "1..11:6".split(":")})
mfunc = IndexMappingFunc(dm, xloc, yloc)
assert mfunc.is_single_value_func()
assert mfunc.single_val_exec(None, [5, 7]) == [8, 6]
assert mfunc.single_val_exec(None, [5, 9]) == [10, 6]
def test_set_val():
dm = DimensionMapping("x", [1], "y", [0])
xloc = LocationReadableDeSerV1.unsafe_deserialize({'resource_id': 'default', 'slices': "5:0..10".split(":")})
yloc = LocationReadableDeSerV1.unsafe_deserialize({'resource_id': 'default', 'slices': "1..11:6:3..5".split(":")})
mfunc = IndexMappingFunc(dm, xloc, yloc)
assert mfunc.is_set_value_func()
assert [copy(x) for x in mfunc.multiple_val_exec(None, [5, 9])] == [[10, 6, 3], [10, 6, 4]]
dm = DimensionMapping("x", [0, 1], "y", [2, 0])
xloc = LocationReadableDeSerV1.unsafe_deserialize({'resource_id': 'default', 'slices': "2..4:7..10".split(":")})
yloc = LocationReadableDeSerV1.unsafe_deserialize({'resource_id': 'default', 'slices': "9..12:3..5:4..6".split(":")})
mfunc = IndexMappingFunc(dm, xloc, yloc)
assert mfunc.is_set_value_func()
assert [copy(x) for x in mfunc.multiple_val_exec(None, [3, 9])] == [[11, 3, 5], [11, 4, 5]]
| 48.352941
| 121
| 0.6691
| 222
| 1,644
| 4.792793
| 0.238739
| 0.163534
| 0.225564
| 0.270677
| 0.758459
| 0.758459
| 0.758459
| 0.695489
| 0.695489
| 0.631579
| 0
| 0.052891
| 0.13747
| 1,644
| 34
| 122
| 48.352941
| 0.697461
| 0
| 0
| 0.36
| 0
| 0
| 0.130091
| 0
| 0
| 0
| 0
| 0
| 0.28
| 1
| 0.08
| false
| 0
| 0.16
| 0
| 0.24
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
acd932e414647e676b6d34b7b902fccd2820d805
| 39
|
py
|
Python
|
tests/__init__.py
|
mateuspontesm/RL-Agents
|
70274b2b4b95402f03857818733fc0d52aa3e385
|
[
"BSD-3-Clause"
] | 1
|
2020-10-30T15:40:01.000Z
|
2020-10-30T15:40:01.000Z
|
tests/__init__.py
|
mateuspontesm/RL-Agents
|
70274b2b4b95402f03857818733fc0d52aa3e385
|
[
"BSD-3-Clause"
] | null | null | null |
tests/__init__.py
|
mateuspontesm/RL-Agents
|
70274b2b4b95402f03857818733fc0d52aa3e385
|
[
"BSD-3-Clause"
] | null | null | null |
"""Unit test package for rl_agents."""
| 19.5
| 38
| 0.692308
| 6
| 39
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128205
| 39
| 1
| 39
| 39
| 0.764706
| 0.820513
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
4a035378df0fed5086e190d3acfd0fdb971794fa
| 357
|
py
|
Python
|
src/sortingandsearching/tests/test_stick_lengths.py
|
seahrh/cses-problem-set-python
|
53e8dba200893cc13a0f7b66fc18e55fa0af137a
|
[
"MIT"
] | null | null | null |
src/sortingandsearching/tests/test_stick_lengths.py
|
seahrh/cses-problem-set-python
|
53e8dba200893cc13a0f7b66fc18e55fa0af137a
|
[
"MIT"
] | null | null | null |
src/sortingandsearching/tests/test_stick_lengths.py
|
seahrh/cses-problem-set-python
|
53e8dba200893cc13a0f7b66fc18e55fa0af137a
|
[
"MIT"
] | null | null | null |
from sortingandsearching.stick_lengths import *
class TestStickLengths:
def test_array_length_of_2_or_less(self):
assert solve([9]) == 0
assert solve([2, 1]) == 1
def test_case_1(self):
assert solve([2, 3, 1, 5, 2]) == 5
def test_case_2(self):
assert solve([1, 4, 7, 8, 10, 3, 2, 5, 6, 9]) == 25
| 25.5
| 60
| 0.571429
| 56
| 357
| 3.446429
| 0.535714
| 0.227979
| 0.233161
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106299
| 0.288515
| 357
| 13
| 61
| 27.461538
| 0.653543
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 1
| 0.333333
| false
| 0
| 0.111111
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
c5d181a92f64e4e5de624038aa52729a7cf1d4ed
| 105
|
py
|
Python
|
data/__init__.py
|
prs-eth/graph-super-resolution
|
bd5af4d9b1682c309262e4153f6529c9b0584bcb
|
[
"MIT"
] | 14
|
2022-03-25T10:33:21.000Z
|
2022-03-31T09:14:05.000Z
|
data/__init__.py
|
prs-eth/graph-super-resolution
|
bd5af4d9b1682c309262e4153f6529c9b0584bcb
|
[
"MIT"
] | null | null | null |
data/__init__.py
|
prs-eth/graph-super-resolution
|
bd5af4d9b1682c309262e4153f6529c9b0584bcb
|
[
"MIT"
] | null | null | null |
from .middlebury import MiddleburyDataset
from .nyu_v2 import NYUv2Dataset
from .diml import DIMLDataset
| 26.25
| 41
| 0.857143
| 13
| 105
| 6.846154
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021505
| 0.114286
| 105
| 3
| 42
| 35
| 0.935484
| 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
| 1
| 0
|
0
| 5
|
c5d57e81dec6f83cecde3a264a07eaf62beeb423
| 229
|
py
|
Python
|
ConvModel/sk_net.py
|
YuHe0108/cvmodule
|
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
|
[
"Apache-2.0"
] | null | null | null |
ConvModel/sk_net.py
|
YuHe0108/cvmodule
|
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
|
[
"Apache-2.0"
] | null | null | null |
ConvModel/sk_net.py
|
YuHe0108/cvmodule
|
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
|
[
"Apache-2.0"
] | null | null | null |
"""
SKNet:
同样是一个轻量级嵌入式的模块,其灵感来源是,我们在看不同尺寸不同远近的物体时,
视觉皮层神经元接受域大小是会根据刺激来进行调节的。那么对应于CNN网络,一般来说对于特定任务特定模型,
卷积核大小是确定的,那么是否可以构建一种模型,使网络可以根据输入信息的多个尺度自适应的调节接受域大小呢?
基于这种想法,作者提出了Selective Kernel Networks(SKNet)。
"""
| 28.625
| 57
| 0.772926
| 15
| 229
| 11.8
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139738
| 229
| 7
| 58
| 32.714286
| 0.898477
| 0.930131
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 1
| 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
| 5
|
c5f9ff4884148b43204381c8c24a1f37fe55f88b
| 8,777
|
py
|
Python
|
local-deployment/ramdonWord.py
|
enrikiko/cortijo
|
12c36bed218298c7ca1b85059c2ff9916e645154
|
[
"MIT"
] | null | null | null |
local-deployment/ramdonWord.py
|
enrikiko/cortijo
|
12c36bed218298c7ca1b85059c2ff9916e645154
|
[
"MIT"
] | 1
|
2020-04-21T17:28:27.000Z
|
2020-04-21T17:28:27.000Z
|
local-deployment/ramdonWord.py
|
enrikiko/cortijo
|
12c36bed218298c7ca1b85059c2ff9916e645154
|
[
"MIT"
] | null | null | null |
import random
list=["Hello","World","Infinity","Eternal","Inmortal","Passion","ability","able","about","above","accept","according","account","across","act","action","activity","actually","add","address","administration","admit","adult","affect","after","again","against","age","agency","agent","ago","agree","agreement","ahead","air","all","allow","almost","alone","along","already","also","although","always","American","among","amount","analysis","and","animal","another","answer","any","anyone","anything","appear","apply","approach","area","argue","arm","around","arrive","art","article","artist","as","ask","assume","at","attack","attention","attorney","audience","author","authority","available","avoid","away","baby","back","bad","bag","ball","bank","bar","base","be","beat","beautiful","because","become","bed","before","begin","behavior","behind","believe","benefit","best","better","between","beyond","big","bill","billion","bit","black","blood","blue","board","body","book","born","both","box","boy","break","bring","brother","budget","build","building","business","but","buy","by","call","camera","campaign","can","cancer","candidate","capital","car","card","care","career","carry","case","catch","cause","cell","center","central","century","certain","certainly","chair","challenge","chance","change","character","charge","check","child","choice","choose","church","citizen","city","civil","claim","class","clear","clearly","close","coach","cold","collection","college","color","come","commercial","common","community","company","compare","computer","concern","condition","conference","Congress","consider","consumer","contain","continue","control","cost","could","country","couple","course","court","cover","create","crime","cultural","culture","cup","current","customer","cut","dark","data","daughter","day","dead","deal","death","debate","decade","decide","decision","deep","defense","degree","Democrat","democratic","describe","design","despite","detail","determine","develop","development","die","difference","different","difficult","dinner","direction","director","discover","discuss","discussion","disease","do","doctor","dog","door","down","draw","dream","drive","drop","drug","during","each","early","east","easy","eat","economic","economy","edge","education","effect","effort","eight","either","election","else","employee","end","energy","enjoy","enough","enter","entire","environment","environmental","especially","establish","even","evening","event","ever","every","everybody","everyone","everything","evidence","exactly","example","executive","exist","expect","experience","expert","explain","eye","face","fact","factor","fail","fall","family","far","fast","father","fear","federal","feel","feeling","few","field","fight","figure","fill","film","final","finally","financial","find","fine","finger","finish","fire","firm","first","fish","five","floor","fly","focus","follow","food","foot","for","force","foreign","forget","form","former","forward","four","free","friend","from","front","full","fund","future","game","garden","gas","general","generation","get","girl","give","glass","go","goal","good","government","great","green","ground","group","grow","growth","guess","gun","guy","hair","half","hand","hang","happen","happy","hard","have","he","head","health","hear","heart","heat","heavy","help","her","here","herself","high","him","himself","his","history","hit","hold","home","hope","hospital","hot","hotel","hour","house","how","however","huge","human","hundred","husband","I","idea","identify","if","image","imagine","impact","important","improve","in","include","including","increase","indeed","indicate","individual","industry","information","inside","instead","institution","interest","interesting","international","interview","into","investment","involve","issue","it","item","its","itself","job","join","just","keep","key","kid","kill","kind","kitchen","know","knowledge","land","language","large","last","late","later","laugh","law","lawyer","lay","lead","leader","learn","least","leave","left","leg","legal","less","let","letter","level","lie","life","light","like","likely","line","list","listen","little","live","local","long","look","lose","loss","lot","love","low","machine","magazine","main","maintain","major","majority","make","man","manage","management","manager","many","market","marriage","material","matter","may","maybe","me","mean","measure","media","medical","meet","meeting","member","memory","mention","message","method","middle","might","military","million","mind","minute","miss","mission","model","modern","moment","money","month","more","morning","most","mother","mouth","move","movement","movie","Mr","Mrs","much","music","must","my","myself","name","nation","national","natural","nature","near","nearly","necessary","need","network","never","new","news","newspaper","next","nice","night","no","none","nor","north","not","note","nothing","notice","now","n't","number","occur","of","off","offer","office","officer","official","often","oh","oil","ok","old","on","once","one","only","onto","open","operation","opportunity","option","or","order","organization","other","others","our","out","outside","over","own","owner","page","pain","painting","paper","parent","part","participant","particular","particularly","partner","party","pass","past","patient","pattern","pay","peace","people","per","perform","performance","perhaps","period","person","personal","phone","physical","pick","picture","piece","place","plan","plant","play","player","PM","point","police","policy","political","politics","poor","popular","population","position","positive","possible","power","practice","prepare","present","president","pressure","pretty","prevent","price","private","probably","problem","process","produce","product","production","professional","professor","program","project","property","protect","prove","provide","public","pull","purpose","push","put","quality","question","quickly","quite","race","radio","raise","range","rate","rather","reach","read","ready","real","reality","realize","really","reason","receive","recent","recently","recognize","record","red","reduce","reflect","region","relate","relationship","religious","remain","remember","remove","report","represent","Republican","require","research","resource","respond","response","responsibility","rest","result","return","reveal","rich","right","rise","risk","road","rock","role","room","rule","run","safe","same","save","say","scene","school","science","scientist","score","sea","season","seat","second","section","security","see","seek","seem","sell","send","senior","sense","series","serious","serve","service","set","seven","several","sex","sexual","shake","share","she","shoot","short","shot","should","shoulder","show","side","sign","significant","similar","simple","simply","since","sing","single","sister","sit","site","situation","six","size","skill","skin","small","smile","so","social","society","soldier","some","somebody","someone","something","sometimes","son","song","soon","sort","sound","source","south","southern","space","speak","special","specific","speech","spend","sport","spring","staff","stage","stand","standard","star","start","state","statement","station","stay","step","still","stock","stop","store","story","strategy","street","strong","structure","student","study","stuff","style","subject","success","successful","such","suddenly","suffer","suggest","summer","support","sure","surface","system","table","take","talk","task","tax","teach","teacher","team","technology","television","tell","ten","tend","term","test","than","thank","that","the","their","them","themselves","then","theory","there","these","they","thing","think","third","this","those","though","thought","thousand","threat","three","through","throughout","throw","thus","time","to","today","together","tonight","too","top","total","tough","toward","town","trade","traditional","training","travel","treat","treatment","tree","trial","trip","trouble","true","truth","try","turn","TV","two","type","under","understand","unit","until","up","upon","us","use","usually","value","various","very","victim","view","violence","visit","voice","vote","wait","walk","wall","want","war","watch","water","way","we","weapon","wear","week","weight","well","west","western","what","whatever","when","where","whether","which","while","white","who","whole","whom","whose","why","wide","wife","will","win","wind","window","wish","with","within","without","woman","wonder","word","work","worker","world","worry","would","write","writer","wrong","yard","yeah","year","yes","yet","you","young","your","yourself"]
lengh=random.randint(1,3)
textList=[]
for elem in (range(lengh)):
textList.append(random.choice(list)+"-")
print("".join(textList)[:-1])
#text=random.choice(list)
#print(text)
| 877.7
| 8,582
| 0.649425
| 1,035
| 8,777
| 5.507246
| 0.981643
| 0.004211
| 0.005614
| 0.007368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.000342
| 0.001937
| 8,777
| 9
| 8,583
| 975.222222
| 0.650342
| 0.003988
| 0
| 0
| 0
| 0
| 0.636384
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0.285714
| 0
| 0.285714
| 0.142857
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
680475c8c69bc49d439880466929c993bd3c1b76
| 220
|
py
|
Python
|
zisan/Seg/davisinteractive/common.py
|
JintuZheng/zisan
|
84b30d1ee91754d4351841a2077c78146028adfc
|
[
"MIT"
] | 40
|
2020-02-14T07:03:16.000Z
|
2022-03-07T10:52:18.000Z
|
zisan/Seg/davisinteractive/common.py
|
EpsilionJT/zisan
|
84b30d1ee91754d4351841a2077c78146028adfc
|
[
"MIT"
] | 1
|
2021-09-04T07:40:26.000Z
|
2021-09-04T14:51:03.000Z
|
zisan/Seg/davisinteractive/common.py
|
EpsilionJT/zisan
|
84b30d1ee91754d4351841a2077c78146028adfc
|
[
"MIT"
] | 9
|
2020-02-24T01:08:11.000Z
|
2021-12-15T07:35:14.000Z
|
# Python2/3 Compatibility
# pathlib
try:
from pathlib2 import Path
except ImportError:
from pathlib import Path
# Testing
try:
from unittest.mock import patch
except ImportError:
from mock import patch
| 15.714286
| 35
| 0.745455
| 28
| 220
| 5.857143
| 0.535714
| 0.085366
| 0.256098
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017341
| 0.213636
| 220
| 13
| 36
| 16.923077
| 0.930636
| 0.177273
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
680d87943f4dd23826bc61e2fdaf75f702836281
| 45
|
py
|
Python
|
event_design/__init__.py
|
ppmadalin/py-patterns
|
ea898e0119c0cd746953c955152efa779fc72f14
|
[
"MIT"
] | 4
|
2020-07-22T13:39:33.000Z
|
2021-07-26T19:11:35.000Z
|
event_design/__init__.py
|
madalinpopa/py-patterns
|
795322225fba80d794fda8ac16c46c1fab210db2
|
[
"MIT"
] | null | null | null |
event_design/__init__.py
|
madalinpopa/py-patterns
|
795322225fba80d794fda8ac16c46c1fab210db2
|
[
"MIT"
] | 2
|
2022-02-19T11:38:55.000Z
|
2022-03-26T02:12:06.000Z
|
# coding: utf-8
# event_design/__init__.py
| 9
| 26
| 0.711111
| 7
| 45
| 3.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026316
| 0.155556
| 45
| 4
| 27
| 11.25
| 0.684211
| 0.844444
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
68129fdce3e3dc24f5a2c872c585109a2fbef29e
| 356
|
py
|
Python
|
ncem/train/__init__.py
|
theislab/ncem
|
cd0ea2e9de8e1815e1f1f4139c62b4f33979f9ca
|
[
"BSD-3-Clause"
] | 37
|
2021-07-02T11:40:26.000Z
|
2022-03-25T20:17:03.000Z
|
ncem/train/__init__.py
|
theislab/ncem
|
cd0ea2e9de8e1815e1f1f4139c62b4f33979f9ca
|
[
"BSD-3-Clause"
] | 61
|
2021-07-06T08:30:59.000Z
|
2022-03-31T05:16:41.000Z
|
ncem/train/__init__.py
|
theislab/ncem
|
cd0ea2e9de8e1815e1f1f4139c62b4f33979f9ca
|
[
"BSD-3-Clause"
] | 1
|
2022-01-28T13:36:54.000Z
|
2022-01-28T13:36:54.000Z
|
"""Importing GridSearchContrainer and TrainModel classes."""
from ncem.train.summaries import GridSearchContainer
from ncem.train.train_model import (TrainModelCVAE, TrainModelCVAEncem,
TrainModelED, TrainModelEDncem, TrainModelEdSingleNcem,
TrainModelInteractions, TrainModelLinear)
| 59.333333
| 91
| 0.691011
| 24
| 356
| 10.208333
| 0.791667
| 0.065306
| 0.106122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.255618
| 356
| 5
| 92
| 71.2
| 0.924528
| 0.151685
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a862c70e0df100cdab2f0cea138b23f02f8c419e
| 1,676
|
py
|
Python
|
games/ffa_test.py
|
etaiklein/JoustMania
|
7558fccd5322409d7d66dc587a9d14efada50740
|
[
"MIT"
] | null | null | null |
games/ffa_test.py
|
etaiklein/JoustMania
|
7558fccd5322409d7d66dc587a9d14efada50740
|
[
"MIT"
] | null | null | null |
games/ffa_test.py
|
etaiklein/JoustMania
|
7558fccd5322409d7d66dc587a9d14efada50740
|
[
"MIT"
] | null | null | null |
import asyncio
import unittest
from games import ffa
from testing import fakes
import piaudio
class TestFFA(unittest.TestCase):
def test_one_winner(self):
controller1 = fakes.FakeMove()
controller2 = fakes.FakeMove()
loop = asyncio.get_event_loop()
game = ffa.FreeForAll([controller1, controller2], piaudio.DummyMusic())
game.set_rainbow_duration_for_testing(0.1)
game_task = asyncio.ensure_future(game.run())
loop.run_until_complete(asyncio.sleep(1))
self.assertFalse(game_task.done())
self.assertFalse(game_task.cancelled())
controller1.accel = (100, 100, 100)
# Shouldn't throw timeout.
loop.run_until_complete(asyncio.wait_for(game_task, timeout=3))
self.assertTrue(game.has_winner_())
def test_two_outs(self):
"""Tests that we don't lose all the players if they all simultaenously register high accel."""
controller1 = fakes.FakeMove()
controller2 = fakes.FakeMove()
loop = asyncio.get_event_loop()
game = ffa.FreeForAll([controller1, controller2], piaudio.DummyMusic())
game.set_rainbow_duration_for_testing(0.1)
game_task = asyncio.ensure_future(game.run())
loop.run_until_complete(asyncio.sleep(0.01))
self.assertFalse(game_task.done())
self.assertFalse(game_task.cancelled())
controller1.accel = (100, 100, 100)
controller2.accel = (100, 100, 100)
# Shouldn't throw timeout.
loop.run_until_complete(asyncio.wait_for(game_task, timeout=3))
self.assertTrue(game.has_winner_())
if __name__ == '__main__':
unittest.main()
| 32.230769
| 102
| 0.676014
| 205
| 1,676
| 5.292683
| 0.341463
| 0.058986
| 0.04424
| 0.073733
| 0.764977
| 0.764977
| 0.764977
| 0.764977
| 0.764977
| 0.764977
| 0
| 0.036474
| 0.214797
| 1,676
| 51
| 103
| 32.862745
| 0.787994
| 0.082936
| 0
| 0.628571
| 0
| 0
| 0.005229
| 0
| 0
| 0
| 0
| 0
| 0.171429
| 1
| 0.057143
| false
| 0
| 0.142857
| 0
| 0.228571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
a867e0ed3423ac9e929f99c9bbccf56f5704cef0
| 90
|
py
|
Python
|
script_tarea1.py
|
AnaLopezP/warmupbien
|
d46883bc72f1d6aec2ab25672cfde26dfb182ede
|
[
"Apache-2.0"
] | null | null | null |
script_tarea1.py
|
AnaLopezP/warmupbien
|
d46883bc72f1d6aec2ab25672cfde26dfb182ede
|
[
"Apache-2.0"
] | null | null | null |
script_tarea1.py
|
AnaLopezP/warmupbien
|
d46883bc72f1d6aec2ab25672cfde26dfb182ede
|
[
"Apache-2.0"
] | null | null | null |
print("Roses are #ff0000 Violets are #0000ff why my code´s working"
+ "I haven´t a clue")
| 45
| 68
| 0.711111
| 19
| 90
| 3.473684
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106667
| 0.166667
| 90
| 2
| 69
| 45
| 0.746667
| 0
| 0
| 0
| 0
| 0
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
a87c30e5bffec94cdfb05a5a25170c6c14f50220
| 119
|
py
|
Python
|
data/dataset/__init__.py
|
demo125/pytorch-rotation-decoupled-detector
|
ee007bc1103ffa9c4057d04e8a315f7e22cf42de
|
[
"MIT"
] | 39
|
2020-10-09T12:47:45.000Z
|
2022-03-18T07:57:11.000Z
|
data/dataset/__init__.py
|
demo125/pytorch-rotation-decoupled-detector
|
ee007bc1103ffa9c4057d04e8a315f7e22cf42de
|
[
"MIT"
] | 7
|
2021-03-15T10:07:39.000Z
|
2022-03-21T02:02:17.000Z
|
data/dataset/__init__.py
|
demo125/pytorch-rotation-decoupled-detector
|
ee007bc1103ffa9c4057d04e8a315f7e22cf42de
|
[
"MIT"
] | 9
|
2020-12-19T03:15:20.000Z
|
2022-03-11T03:11:03.000Z
|
from .dataset import DetDataset
from .dota import DOTA
from .hrsc2016 import HRSC2016
from .usca_aod import UCAS_AOD
| 17
| 31
| 0.815126
| 18
| 119
| 5.277778
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079208
| 0.151261
| 119
| 6
| 32
| 19.833333
| 0.861386
| 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
| 1
| 0
|
0
| 5
|
765f618110af2c6808c873799482adbadca69321
| 173
|
py
|
Python
|
src/app/server_client/rpyc_s.py
|
mdn522/IRBRL
|
30f9120bd22f709778f618899968e293897caebe
|
[
"MIT"
] | 1
|
2020-08-12T19:19:45.000Z
|
2020-08-12T19:19:45.000Z
|
src/app/server_client/rpyc_s.py
|
mdn522/IRBRL
|
30f9120bd22f709778f618899968e293897caebe
|
[
"MIT"
] | null | null | null |
src/app/server_client/rpyc_s.py
|
mdn522/IRBRL
|
30f9120bd22f709778f618899968e293897caebe
|
[
"MIT"
] | null | null | null |
#python
import rpyc
import sys
c = rpyc.classic.connect("localhost")
c.execute("print('hi python cookbook')")
c.modules.sys.stdout = sys.stdout
c.execute("print('hi here')")
| 24.714286
| 40
| 0.734104
| 27
| 173
| 4.703704
| 0.555556
| 0.125984
| 0.204724
| 0.23622
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086705
| 173
| 7
| 41
| 24.714286
| 0.803797
| 0.034682
| 0
| 0
| 0
| 0
| 0.311377
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7674db8e88bdcb821d82ee1e1132feba5ce0d3ad
| 13
|
py
|
Python
|
secound.py
|
pythonkangbazi/flask-
|
d530d48d81ab3cf9c299c5fe10ac16ac85006eb0
|
[
"Apache-2.0"
] | null | null | null |
secound.py
|
pythonkangbazi/flask-
|
d530d48d81ab3cf9c299c5fe10ac16ac85006eb0
|
[
"Apache-2.0"
] | null | null | null |
secound.py
|
pythonkangbazi/flask-
|
d530d48d81ab3cf9c299c5fe10ac16ac85006eb0
|
[
"Apache-2.0"
] | null | null | null |
print('No.2')
| 13
| 13
| 0.615385
| 3
| 13
| 2.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0
| 13
| 1
| 13
| 13
| 0.538462
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 1
|
0
| 5
|
76b23c111e24eb8202b0606290643a3f2766e01f
| 189
|
py
|
Python
|
examples/cifar_stages/__init__.py
|
and-kul/catalyst
|
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
|
[
"Apache-2.0"
] | 2
|
2019-04-19T21:34:31.000Z
|
2019-05-02T22:50:25.000Z
|
examples/cifar_stages/__init__.py
|
and-kul/catalyst
|
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
|
[
"Apache-2.0"
] | 1
|
2021-01-07T16:13:45.000Z
|
2021-01-21T09:27:54.000Z
|
examples/cifar_stages/__init__.py
|
and-kul/catalyst
|
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
|
[
"Apache-2.0"
] | 1
|
2020-12-02T18:42:31.000Z
|
2020-12-02T18:42:31.000Z
|
# flake8: noqa
from catalyst import registry
from catalyst.dl import SupervisedRunner as Runner
from .experiment import Experiment
from .model import SimpleNet
registry.Model(SimpleNet)
| 18.9
| 50
| 0.825397
| 24
| 189
| 6.5
| 0.541667
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006098
| 0.132275
| 189
| 9
| 51
| 21
| 0.945122
| 0.063492
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4f6bde23577e5e710db5d7e6b207146dab74c449
| 2,857
|
py
|
Python
|
texrel/tests/test_texturizer.py
|
asappresearch/texrel
|
dff447a99d56f2f92284df866fa01e7762dc6eac
|
[
"MIT"
] | null | null | null |
texrel/tests/test_texturizer.py
|
asappresearch/texrel
|
dff447a99d56f2f92284df866fa01e7762dc6eac
|
[
"MIT"
] | null | null | null |
texrel/tests/test_texturizer.py
|
asappresearch/texrel
|
dff447a99d56f2f92284df866fa01e7762dc6eac
|
[
"MIT"
] | null | null | null |
import time
import matplotlib.pyplot as plt
import numpy as np
import torch
from ulfs.tensor_utils import Hadamard
from texrel.texturizer import Texturizer
def test_single_images():
batch_size = 3
grid_size = 7
num_objects = 30
num_textures = 9
num_colors = 9
texture_size = 2
texturizer = Texturizer(
num_textures=num_textures,
num_colors=num_colors,
texture_size=texture_size,
background_noise=0,
background_mean=0,
background_mean_std=0,
seed=None
)
N = batch_size
mask = torch.zeros(N, grid_size, grid_size, dtype=torch.int64)
for n in range(N):
mask_idxes = torch.from_numpy(np.random.choice(grid_size * grid_size, num_objects, replace=False))
mask.view(N, grid_size * grid_size)[n, mask_idxes] = 1
idxes = torch.from_numpy(np.random.choice(num_textures * num_colors, (N, grid_size, grid_size), replace=True))
idxes = Hadamard(idxes, mask)
t_idxes = idxes // num_colors + 1
c_idxes = idxes % num_colors + 1
t_idxes = Hadamard(t_idxes, mask)
c_idxes = Hadamard(c_idxes, mask)
grids = texturizer.forward(texture_idxes=t_idxes, color_idxes=c_idxes, savefig=False)
for n in range(batch_size):
plt.imshow(grids[n].transpose(-3, -2).transpose(-2, -1).detach().numpy())
plt.savefig(f'/tmp/grids{n}.png')
def test_sequence():
batch_size = 3
grid_size = 7
num_objects = 30
num_textures = 9
num_colors = 9
texture_size = 2
texturizer = Texturizer(
num_textures=num_textures,
num_colors=num_colors,
texture_size=texture_size,
background_noise=0,
background_mean=0,
background_mean_std=0,
seed=None
)
M = 5
N = batch_size
start_time = time.time()
mask = torch.zeros(M, N, grid_size, grid_size, dtype=torch.int64)
for m in range(M):
for n in range(N):
mask_idxes = torch.from_numpy(np.random.choice(grid_size * grid_size, num_objects, replace=False))
mask.view(M, N, grid_size * grid_size)[m, n, mask_idxes] = 1
idxes = torch.from_numpy(np.random.choice(num_textures * num_colors, (M, N, grid_size, grid_size), replace=True))
idxes = Hadamard(idxes, mask)
t_idxes = idxes // num_colors + 1
c_idxes = idxes % num_colors + 1
t_idxes = Hadamard(t_idxes, mask)
c_idxes = Hadamard(c_idxes, mask)
print('generation time', time.time() - start_time)
start_time = time.time()
grids = texturizer.forward(texture_idxes=t_idxes, color_idxes=c_idxes, savefig=False)
print('texturizer time', time.time() - start_time)
for m in range(3):
for n in range(2):
plt.imshow(grids[m][n].transpose(-3, -2).transpose(-2, -1).detach().numpy())
plt.savefig(f'/tmp/gridsseq_M{m}_N{n}.png')
| 29.153061
| 117
| 0.654533
| 420
| 2,857
| 4.216667
| 0.178571
| 0.08131
| 0.054207
| 0.072276
| 0.781479
| 0.748165
| 0.736872
| 0.736872
| 0.736872
| 0.69904
| 0
| 0.018704
| 0.232762
| 2,857
| 97
| 118
| 29.453608
| 0.789234
| 0
| 0
| 0.64
| 0
| 0
| 0.025901
| 0.00945
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026667
| false
| 0
| 0.08
| 0
| 0.106667
| 0.026667
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
4f8178de27d6402f333f07465f843f3e9a2e5b51
| 23
|
py
|
Python
|
net_access/__init__.py
|
hellflame/WHU-net-access
|
4ba5857cea83b41f387953438af8b016a3c4bf75
|
[
"Apache-2.0"
] | 5
|
2016-05-13T04:22:33.000Z
|
2021-09-13T06:29:55.000Z
|
net_access/__init__.py
|
hellflame/WHU-net-access
|
4ba5857cea83b41f387953438af8b016a3c4bf75
|
[
"Apache-2.0"
] | null | null | null |
net_access/__init__.py
|
hellflame/WHU-net-access
|
4ba5857cea83b41f387953438af8b016a3c4bf75
|
[
"Apache-2.0"
] | 2
|
2016-05-13T04:22:33.000Z
|
2021-03-17T08:24:06.000Z
|
from main import main
| 7.666667
| 21
| 0.782609
| 4
| 23
| 4.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217391
| 23
| 2
| 22
| 11.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
4f8e7c11f5c3a624a9e9892fa27db4f44eca869a
| 201
|
py
|
Python
|
dogProject/account/views.py
|
cs-fullstack-2019-spring/django-models-cw-bettyjware11
|
1cdd033b598a640a932db5aece91e3f8d2770d85
|
[
"Apache-2.0"
] | null | null | null |
dogProject/account/views.py
|
cs-fullstack-2019-spring/django-models-cw-bettyjware11
|
1cdd033b598a640a932db5aece91e3f8d2770d85
|
[
"Apache-2.0"
] | null | null | null |
dogProject/account/views.py
|
cs-fullstack-2019-spring/django-models-cw-bettyjware11
|
1cdd033b598a640a932db5aece91e3f8d2770d85
|
[
"Apache-2.0"
] | null | null | null |
from django.shortcuts import render
# Create your views here.
# from django.http import HttpResponse
#
#
# def account(request):
# return HttpResponse("userName, realName, accountNumber, balance")
| 25.125
| 71
| 0.761194
| 23
| 201
| 6.652174
| 0.826087
| 0.130719
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144279
| 201
| 8
| 71
| 25.125
| 0.889535
| 0.756219
| 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
| 1
| 0
|
0
| 5
|
4f938951e24f58436e4b321a249201ce830fa1b3
| 160
|
py
|
Python
|
saffy/__init__.py
|
PPierzc/Sappy
|
5ea6a88f6185e85fe0ce04ca85d082c290d0ebdf
|
[
"MIT"
] | 1
|
2019-09-14T17:29:13.000Z
|
2019-09-14T17:29:13.000Z
|
saffy/__init__.py
|
PPierzc/Sappy
|
5ea6a88f6185e85fe0ce04ca85d082c290d0ebdf
|
[
"MIT"
] | 2
|
2019-04-02T10:45:58.000Z
|
2019-04-02T17:34:47.000Z
|
saffy/__init__.py
|
PPierzc/Sappy
|
5ea6a88f6185e85fe0ce04ca85d082c290d0ebdf
|
[
"MIT"
] | 3
|
2019-04-07T21:49:36.000Z
|
2019-10-20T19:24:10.000Z
|
__version__ = '0.1.12-dev2'
from saffy.SignalManager import SignalManager
from saffy.plugins.PluginManager import PluginManager
from saffy.generators import *
| 26.666667
| 53
| 0.83125
| 20
| 160
| 6.45
| 0.6
| 0.209302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034722
| 0.1
| 160
| 5
| 54
| 32
| 0.861111
| 0
| 0
| 0
| 0
| 0
| 0.06875
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
| 1
| 0
|
0
| 5
|
96c425e9c004cec62b4dc50b4b99dcca5b76522b
| 40
|
py
|
Python
|
SUM/gehrmann_rouge_opennmt/rouge_baselines/pyrouge/pyrouge/__init__.py
|
Dorcoh4/BARTScore
|
e24fd22b80a01ef142ce43e24ec585f1ee8c1ff2
|
[
"Apache-2.0"
] | null | null | null |
SUM/gehrmann_rouge_opennmt/rouge_baselines/pyrouge/pyrouge/__init__.py
|
Dorcoh4/BARTScore
|
e24fd22b80a01ef142ce43e24ec585f1ee8c1ff2
|
[
"Apache-2.0"
] | null | null | null |
SUM/gehrmann_rouge_opennmt/rouge_baselines/pyrouge/pyrouge/__init__.py
|
Dorcoh4/BARTScore
|
e24fd22b80a01ef142ce43e24ec585f1ee8c1ff2
|
[
"Apache-2.0"
] | null | null | null |
# from pyrouge.Rouge155 import Rouge155
| 20
| 39
| 0.825
| 5
| 40
| 6.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.171429
| 0.125
| 40
| 1
| 40
| 40
| 0.771429
| 0.925
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8c18f9e728ac9d99bc83f0c4cff7a5d9ffc04b40
| 55
|
py
|
Python
|
S4/S4 Library/core/sims4/tuning/tunable_errors.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | 1
|
2021-05-20T19:33:37.000Z
|
2021-05-20T19:33:37.000Z
|
S4/S4 Library/core/sims4/tuning/tunable_errors.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | null | null | null |
S4/S4 Library/core/sims4/tuning/tunable_errors.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | null | null | null |
class TunableMinimumLengthError(ValueError):
pass
| 13.75
| 44
| 0.8
| 4
| 55
| 11
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 55
| 3
| 45
| 18.333333
| 0.93617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
4fe4fc4a5265d39bf4be0d915c282bbfb88eaf8d
| 34
|
py
|
Python
|
testsuite/W39.py
|
dpursehouse/pep8
|
8d658692345e6866741719595f14a144337b3b9f
|
[
"MIT"
] | 1
|
2015-08-04T11:47:25.000Z
|
2015-08-04T11:47:25.000Z
|
testsuite/W39.py
|
dpursehouse/pep8
|
8d658692345e6866741719595f14a144337b3b9f
|
[
"MIT"
] | null | null | null |
testsuite/W39.py
|
dpursehouse/pep8
|
8d658692345e6866741719595f14a144337b3b9f
|
[
"MIT"
] | null | null | null |
#: W391
# The next line is blank
| 8.5
| 24
| 0.647059
| 6
| 34
| 3.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 0.264706
| 34
| 3
| 25
| 11.333333
| 0.76
| 0.852941
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
4ffebbfac06082723d59fa13fcb561dfdfb28820
| 3,479
|
py
|
Python
|
repos/system_upgrade/el7toel8/actors/checkkdegnome/tests/unit_test_checkkdegnome.py
|
sm00th/leapp-repository
|
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
|
[
"Apache-2.0"
] | 21
|
2018-11-20T15:58:39.000Z
|
2022-03-15T19:57:24.000Z
|
repos/system_upgrade/el7toel8/actors/checkkdegnome/tests/unit_test_checkkdegnome.py
|
sm00th/leapp-repository
|
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
|
[
"Apache-2.0"
] | 732
|
2018-11-21T18:33:26.000Z
|
2022-03-31T16:16:24.000Z
|
repos/system_upgrade/el7toel8/actors/checkkdegnome/tests/unit_test_checkkdegnome.py
|
sm00th/leapp-repository
|
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
|
[
"Apache-2.0"
] | 85
|
2018-11-20T17:55:00.000Z
|
2022-03-29T09:40:31.000Z
|
from leapp.models import InstalledDesktopsFacts, InstalledKdeAppsFacts, Report
no_desktop_env = InstalledDesktopsFacts(gnome_installed=False,
kde_installed=False)
gnome_desktop_env = InstalledDesktopsFacts(gnome_installed=True,
kde_installed=False)
KDE_desktop_env = InstalledDesktopsFacts(gnome_installed=False,
kde_installed=True)
both_desktop_env = InstalledDesktopsFacts(gnome_installed=True,
kde_installed=True)
no_KDE_apps = InstalledKdeAppsFacts(installed_apps=[])
some_KDE_apps = InstalledKdeAppsFacts(installed_apps=["okular", "kate"])
def test_no_desktop_no_apps(current_actor_context):
"""
No action expected.
"""
current_actor_context.feed(no_desktop_env)
current_actor_context.feed(no_KDE_apps)
current_actor_context.run()
assert not current_actor_context.consume(Report)
def test_gnome_desktop_no_apps(current_actor_context):
"""
No action expected.
"""
current_actor_context.feed(gnome_desktop_env)
current_actor_context.feed(no_KDE_apps)
current_actor_context.run()
assert not current_actor_context.consume(Report)
def test_gnome_desktop_KDE_apps(current_actor_context):
"""
One report about deleting KDE apps expected.
"""
current_actor_context.feed(gnome_desktop_env)
current_actor_context.feed(some_KDE_apps)
current_actor_context.run()
message = current_actor_context.consume(Report)[0]
assert "Upgrade can be performed, but KDE/Qt apps will be uninstalled." in message.report["title"]
def test_KDE_desktop_no_apps(current_actor_context):
"""
"Inhibitor" flag in report expected.
"""
current_actor_context.feed(KDE_desktop_env)
current_actor_context.feed(no_KDE_apps)
current_actor_context.run()
message = current_actor_context.consume(Report)[0]
assert "inhibitor" in message.report["flags"]
def test_KDE_desktop_KDE_apps(current_actor_context):
"""
"Inhibitor" flag in report expected.
"""
current_actor_context.feed(KDE_desktop_env)
current_actor_context.feed(some_KDE_apps)
current_actor_context.run()
message = current_actor_context.consume(Report)[0]
assert "inhibitor" in message.report["flags"]
def test_both_desktops_no_apps(current_actor_context):
"""
Report about removing KDE desktop environment expected.
"""
current_actor_context.feed(both_desktop_env)
current_actor_context.feed(no_KDE_apps)
current_actor_context.run()
message = current_actor_context.consume(Report)[0]
assert "Upgrade can be performed, but KDE will be uninstalled." in message.report["title"]
def test_both_desktop_KDE_apps(current_actor_context):
"""
Two reports expected, first about removing KDE desktop, second about KDE/Qt apps
"""
current_actor_context.feed(both_desktop_env)
current_actor_context.feed(some_KDE_apps)
current_actor_context.run()
messages = current_actor_context.consume(Report)
remove_KDE_title = "Upgrade can be performed, but KDE will be uninstalled."
remove_apps_title = "Upgrade can be performed, but KDE/Qt apps will be uninstalled."
assert len(messages) == 2
assert [True for message in messages if remove_KDE_title in message.report["title"]]
assert [True for message in messages if remove_apps_title in message.report["title"]]
| 36.621053
| 102
| 0.736706
| 441
| 3,479
| 5.45805
| 0.142857
| 0.174491
| 0.276278
| 0.143332
| 0.860407
| 0.777732
| 0.745326
| 0.741172
| 0.605733
| 0.557956
| 0
| 0.001759
| 0.183099
| 3,479
| 94
| 103
| 37.010638
| 0.845179
| 0.084794
| 0
| 0.581818
| 0
| 0
| 0.094217
| 0
| 0
| 0
| 0
| 0
| 0.163636
| 1
| 0.127273
| false
| 0
| 0.018182
| 0
| 0.145455
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8b0dc450aa78f7ace537adf6667754f38f773e8a
| 38
|
py
|
Python
|
tests/__init__.py
|
tullur/r_freeze
|
e93f682d129ed47e6005df553ab170ede75cd688
|
[
"MIT"
] | 1
|
2021-01-13T04:10:54.000Z
|
2021-01-13T04:10:54.000Z
|
tests/__init__.py
|
tullur/r_freeze
|
e93f682d129ed47e6005df553ab170ede75cd688
|
[
"MIT"
] | 5
|
2020-10-03T14:07:40.000Z
|
2021-02-13T13:30:08.000Z
|
tests/__init__.py
|
tullur/r_freeze
|
e93f682d129ed47e6005df553ab170ede75cd688
|
[
"MIT"
] | 1
|
2020-10-03T17:26:35.000Z
|
2020-10-03T17:26:35.000Z
|
"""Unit test package for r_freeze."""
| 19
| 37
| 0.684211
| 6
| 38
| 4.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 38
| 1
| 38
| 38
| 0.757576
| 0.815789
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8b17d6639a8417ad5f6e7048e4607b1e5289308d
| 92
|
py
|
Python
|
sami/cryptography/symmetric/__init__.py
|
sami-dca/Sami
|
796f73500bb4ee36a7023653d47d300e04a10217
|
[
"MIT"
] | 1
|
2020-11-14T10:52:33.000Z
|
2020-11-14T10:52:33.000Z
|
sami/cryptography/symmetric/__init__.py
|
sami-dca/Sami
|
796f73500bb4ee36a7023653d47d300e04a10217
|
[
"MIT"
] | null | null | null |
sami/cryptography/symmetric/__init__.py
|
sami-dca/Sami
|
796f73500bb4ee36a7023653d47d300e04a10217
|
[
"MIT"
] | null | null | null |
from ._key_part import KeyPart
from ._key import SymmetricKey, EncryptionKey, DecryptionKey
| 30.666667
| 60
| 0.847826
| 11
| 92
| 6.818182
| 0.727273
| 0.186667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108696
| 92
| 2
| 61
| 46
| 0.914634
| 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
| 1
| 0
|
0
| 5
|
8b1ac3a84c11b5905ca4939be5412bfbbb889909
| 57
|
py
|
Python
|
src/nia/selections/__init__.py
|
salar-shdk/nia
|
bb0f1b941240b627291dd8212b8840cbe77b0398
|
[
"MIT"
] | 8
|
2021-09-06T07:20:23.000Z
|
2022-02-23T23:18:22.000Z
|
src/nia/selections/__init__.py
|
salar-shdk/nia
|
bb0f1b941240b627291dd8212b8840cbe77b0398
|
[
"MIT"
] | null | null | null |
src/nia/selections/__init__.py
|
salar-shdk/nia
|
bb0f1b941240b627291dd8212b8840cbe77b0398
|
[
"MIT"
] | null | null | null |
from .rank import Rank
from .tournament import Tournament
| 28.5
| 34
| 0.842105
| 8
| 57
| 6
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122807
| 57
| 2
| 34
| 28.5
| 0.96
| 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
| 1
| 0
|
0
| 5
|
8b250ce78bfe316e0fb480eae1129e12fa649e46
| 54
|
py
|
Python
|
python/testData/resolve/multiFile/nameConflict/NameConflict.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/resolve/multiFile/nameConflict/NameConflict.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/resolve/multiFile/nameConflict/NameConflict.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
from intermediate import do_stuff
do_stuff()
# <ref>
| 10.8
| 33
| 0.759259
| 8
| 54
| 4.875
| 0.75
| 0.358974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 54
| 4
| 34
| 13.5
| 0.847826
| 0.092593
| 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 | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8c7d088d32b0f87779817a615c63af239b4463a1
| 69
|
py
|
Python
|
acousticspy/room/__init__.py
|
AerospaceMark/AcousticsPy
|
28d065cc627b449a443fd6902cc4c22af5c9ba71
|
[
"MIT"
] | null | null | null |
acousticspy/room/__init__.py
|
AerospaceMark/AcousticsPy
|
28d065cc627b449a443fd6902cc4c22af5c9ba71
|
[
"MIT"
] | 3
|
2022-03-12T05:56:19.000Z
|
2022-03-12T05:57:04.000Z
|
acousticspy/room/__init__.py
|
AerospaceMark/AcousticsPy
|
28d065cc627b449a443fd6902cc4c22af5c9ba71
|
[
"MIT"
] | null | null | null |
from . import room_modes
from .room_modes import calculate_room_modes
| 34.5
| 44
| 0.869565
| 11
| 69
| 5.090909
| 0.454545
| 0.482143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101449
| 69
| 2
| 44
| 34.5
| 0.903226
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8cc61c78ee6e1be07d0199398b9cfc7288ca4e65
| 51
|
py
|
Python
|
collect/__init__.py
|
Zeroto521/Wox.Plugin.PRPR-Collect
|
cb98346c43e6c1ff48714b1eb8d4534e8795c4fd
|
[
"MIT"
] | null | null | null |
collect/__init__.py
|
Zeroto521/Wox.Plugin.PRPR-Collect
|
cb98346c43e6c1ff48714b1eb8d4534e8795c4fd
|
[
"MIT"
] | null | null | null |
collect/__init__.py
|
Zeroto521/Wox.Plugin.PRPR-Collect
|
cb98346c43e6c1ff48714b1eb8d4534e8795c4fd
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from .collect import Main
| 12.75
| 25
| 0.607843
| 7
| 51
| 4.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.196078
| 51
| 3
| 26
| 17
| 0.731707
| 0.411765
| 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
| 1
| 0
|
0
| 5
|
8cdd64e8cbe5c8ff291dbf0ea0177e2fa1b9fdb2
| 298
|
py
|
Python
|
hackerRank/main/print_pattern.py
|
eu-snehagupta/learningpython
|
2a3404b165b97da9656a2d8d4f4d7d038127a693
|
[
"MIT"
] | null | null | null |
hackerRank/main/print_pattern.py
|
eu-snehagupta/learningpython
|
2a3404b165b97da9656a2d8d4f4d7d038127a693
|
[
"MIT"
] | null | null | null |
hackerRank/main/print_pattern.py
|
eu-snehagupta/learningpython
|
2a3404b165b97da9656a2d8d4f4d7d038127a693
|
[
"MIT"
] | null | null | null |
# def print_pattern():
# for i in range(1, 4):
# for j in range(i, i+1):
# print("*"*j)
def print_pattern():
for i, j in zip(range(2, -1, -1), range(1, 6, 2)):
print(" "*i + "*"*j)
if __name__ == "__main__":
print_pattern()
# *
# ***
#*****
| 17.529412
| 54
| 0.432886
| 42
| 298
| 2.809524
| 0.380952
| 0.305085
| 0.254237
| 0.305085
| 0.322034
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 0.33557
| 298
| 17
| 55
| 17.529412
| 0.550505
| 0.385906
| 0
| 0
| 0
| 0
| 0.056818
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0
| 0
| 0.2
| 0.6
| 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
| 1
|
0
| 5
|
507091d2082e2f8fc366ccc9705b9eace96f9743
| 198
|
py
|
Python
|
data/__all_models.py
|
ztkuperman/crud
|
54d82842bcb801f171124ba491b5a126b8e90e13
|
[
"bzip2-1.0.6"
] | null | null | null |
data/__all_models.py
|
ztkuperman/crud
|
54d82842bcb801f171124ba491b5a126b8e90e13
|
[
"bzip2-1.0.6"
] | null | null | null |
data/__all_models.py
|
ztkuperman/crud
|
54d82842bcb801f171124ba491b5a126b8e90e13
|
[
"bzip2-1.0.6"
] | null | null | null |
# Add all your SQLAlchemy models here.
# This allows us to import just this file when
# we need to preload the models and ensure they
# are all loaded.
import crud.data.post
import crud.data.users
| 24.75
| 47
| 0.767677
| 35
| 198
| 4.342857
| 0.771429
| 0.131579
| 0.184211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 198
| 7
| 48
| 28.285714
| 0.938272
| 0.722222
| 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
| 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
| 5
|
507672eee5a4766f0169abc2519832161bd53d0b
| 4,408
|
py
|
Python
|
pyaz/network/dns/record_set/cname/__init__.py
|
py-az-cli/py-az-cli
|
9a7dc44e360c096a5a2f15595353e9dad88a9792
|
[
"MIT"
] | null | null | null |
pyaz/network/dns/record_set/cname/__init__.py
|
py-az-cli/py-az-cli
|
9a7dc44e360c096a5a2f15595353e9dad88a9792
|
[
"MIT"
] | null | null | null |
pyaz/network/dns/record_set/cname/__init__.py
|
py-az-cli/py-az-cli
|
9a7dc44e360c096a5a2f15595353e9dad88a9792
|
[
"MIT"
] | 1
|
2022-02-03T09:12:01.000Z
|
2022-02-03T09:12:01.000Z
|
from ..... pyaz_utils import _call_az
def show(name, resource_group, zone_name, record_type=None):
'''
Get the details of a CNAME record set.
Required Parameters:
- name -- The name of the record set, relative to the name of the zone.
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
- zone_name -- The name of the zone.
Optional Parameters:
- record_type -- ==SUPPRESS==
'''
return _call_az("az network dns record-set cname show", locals())
def delete(name, resource_group, zone_name, if_match=None, record_type=None, yes=None):
'''
Delete a CNAME record set and its associated record.
Required Parameters:
- name -- The name of the record set, relative to the name of the zone.
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
- zone_name -- The name of the zone.
Optional Parameters:
- if_match -- The etag of the record set. Omit this value to always delete the current record set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
- record_type -- ==SUPPRESS==
- yes -- Do not prompt for confirmation.
'''
return _call_az("az network dns record-set cname delete", locals())
def list(resource_group, zone_name, record_type=None):
'''
List the CNAME record set in a zone.
Required Parameters:
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
- zone_name -- The name of the zone.
Optional Parameters:
- record_type -- ==SUPPRESS==
'''
return _call_az("az network dns record-set cname list", locals())
def create(name, resource_group, zone_name, if_match=None, if_none_match=None, metadata=None, record_set_type=None, target_resource=None, ttl=None):
'''
Create an empty CNAME record set.
Required Parameters:
- name -- The name of the record set, relative to the name of the zone.
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
- zone_name -- The name of the zone.
Optional Parameters:
- if_match -- The etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.
- if_none_match -- Create the record set only if it does not already exist.
- metadata -- Metadata in space-separated key=value pairs. This overwrites any existing metadata.
- record_set_type -- ==SUPPRESS==
- target_resource -- ID of an Azure resource from which the DNS resource value is taken.
- ttl -- Record set TTL (time-to-live)
'''
return _call_az("az network dns record-set cname create", locals())
def set_record(cname, record_set_name, resource_group, zone_name, if_none_match=None, ttl=None):
'''
Set the value of a CNAME record.
Required Parameters:
- cname -- Value of the cname record-set. It should be Canonical name.
- record_set_name -- The name of the record set relative to the zone. Creates a new record set if one does not exist.
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
- zone_name -- The name of the zone.
Optional Parameters:
- if_none_match -- Create the record set only if it does not already exist.
- ttl -- Record set TTL (time-to-live)
'''
return _call_az("az network dns record-set cname set-record", locals())
def remove_record(cname, record_set_name, resource_group, zone_name, keep_empty_record_set=None):
'''
Remove a CNAME record from its record set.
Required Parameters:
- cname -- Value of the cname record-set. It should be Canonical name.
- record_set_name -- The name of the record set relative to the zone.
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
- zone_name -- The name of the zone.
Optional Parameters:
- keep_empty_record_set -- Keep the empty record set if the last record is removed.
'''
return _call_az("az network dns record-set cname remove-record", locals())
| 43.643564
| 198
| 0.707804
| 654
| 4,408
| 4.649847
| 0.155963
| 0.106544
| 0.041434
| 0.055245
| 0.721802
| 0.720487
| 0.719829
| 0.69681
| 0.673134
| 0.618547
| 0
| 0
| 0.20667
| 4,408
| 100
| 199
| 44.08
| 0.869603
| 0.696461
| 0
| 0
| 0
| 0
| 0.22045
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.461538
| false
| 0
| 0.076923
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
50776cbc6b5d9a40595631dcbba9200676f43c3e
| 81
|
py
|
Python
|
deepclass/dataprocessing/__init__.py
|
meghdadFar/deepclass
|
fd782455cf56d6ec718cec16e5b2dfc342b749f5
|
[
"MIT"
] | 1
|
2021-08-24T16:38:39.000Z
|
2021-08-24T16:38:39.000Z
|
deepclass/dataprocessing/__init__.py
|
meghdadFar/deepclass
|
fd782455cf56d6ec718cec16e5b2dfc342b749f5
|
[
"MIT"
] | null | null | null |
deepclass/dataprocessing/__init__.py
|
meghdadFar/deepclass
|
fd782455cf56d6ec718cec16e5b2dfc342b749f5
|
[
"MIT"
] | null | null | null |
from deepclass.dataprocessing.datautil import set_up_data, measure_class_weights
| 40.5
| 80
| 0.901235
| 11
| 81
| 6.272727
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061728
| 81
| 1
| 81
| 81
| 0.907895
| 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
| 1
| 0
|
0
| 5
|
5098cfec04677c8ec70918c651b24d971f4f47c5
| 10,714
|
py
|
Python
|
wright_plans/_plans.py
|
wright-group/wright-plans
|
0fddcf7a1165a7ed42c652fb8b23d94ebf9de856
|
[
"MIT"
] | 1
|
2021-05-13T18:57:47.000Z
|
2021-05-13T18:57:47.000Z
|
wright_plans/_plans.py
|
wright-group/wright-plans
|
0fddcf7a1165a7ed42c652fb8b23d94ebf9de856
|
[
"MIT"
] | 3
|
2021-05-13T05:10:55.000Z
|
2021-09-07T22:40:12.000Z
|
wright_plans/_plans.py
|
wright-group/wright-plans
|
0fddcf7a1165a7ed42c652fb8b23d94ebf9de856
|
[
"MIT"
] | 1
|
2021-08-24T21:13:39.000Z
|
2021-08-24T21:13:39.000Z
|
__all__ = [
"make_one_nd_step",
"scan_wp",
"rel_scan_wp",
"list_scan_wp",
"rel_list_scan_wp",
"list_grid_scan_wp",
"rel_list_grid_scan_wp",
"grid_scan_wp",
"rel_grid_scan_wp",
"scan_nd_wp",
]
from graphlib import TopologicalSorter
import bluesky.plan_stubs
from bluesky import plans as bsp
from bluesky.protocols import Movable
import toolz
from ._constants import Constant, ConstantTerm
from ._units import ureg, get_units
def make_one_nd_step(constants=None, axis_units=None, per_step=None):
"""Generate a one_nd_step function for given metadata.
The fields taken into account are:
`axis_units`: a map of motor names to string of pint compatible units
`constants`: a map of motor names to tuple of (string units, list of (coeff: float, var: string))
`motors` is a mapping of motor names to motor objects
"""
if per_step is None:
per_step = bluesky.plan_stubs.one_nd_step
if not constants and not axis_units:
# Nothing special to do, just return original method
return per_step
if not constants:
constants = {}
if not axis_units:
axis_units = {}
if isinstance(constants, list):
constants = {
mot: Constant(units, [ConstantTerm(coeff, var) for coeff, var in terms])
for mot, units, terms in constants
}
sorter = TopologicalSorter({})
for var, const in constants.items():
sorter.add(var, *[x.var for x in const.terms])
order = [*sorter.static_order()]
def one_nd_step(detectors, step, pos_cache):
"""Version of bluesky.plan_stubs.one_nd_step with support for constants and units."""
# Translate axes from scan units to native units
for mot, units in axis_units.items():
mot_units = get_units(mot, units)
quantity = ureg.Quantity(step[mot], units)
if mot_units:
quantity = quantity.to(mot_units)
step[mot] = quantity.magnitude
# fill out constants in topological order, ignore "", do math in constant's units
for mot in order:
if mot not in constants:
continue
const = constants[mot]
const_mot_units = get_units(mot, const.units)
step[mot] = const.evaluate(step, const_mot_units)
yield from per_step(detectors, step, pos_cache)
return one_nd_step
def _md_constants(constants):
if isinstance(constants, list):
constants = {
mot: Constant(units, [ConstantTerm(coeff, var) for coeff, var in terms])
for mot, units, terms in constants
}
return {
k.name: [
v.units,
[[t.coeff, None if t.var is None else t.var.name] for t in v.terms],
]
for k, v in constants.items()
}
def _axis_units_from_args(args, n):
return {m: u for m, *_, u in toolz.partition(n, args) if u}
def scan_wp(detectors, *args, num=None, constants=None, per_step=None, md=None):
nargs = 4
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.scan(detectors, *args, num=num, per_step=per_step, md=_md)
def rel_scan_wp(detectors, *args, num=None, constants=None, per_step=None, md=None):
nargs = 4
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "rel_scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.rel_scan(detectors, *args, num=num, per_step=per_step, md=_md)
def list_scan_wp(detectors, *args, constants=None, per_step=None, md=None):
nargs = 3
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "list_scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.list_scan(detectors, *args, per_step=per_step, md=_md)
def rel_list_scan_wp(detectors, *args, constants=None, per_step=None, md=None):
nargs = 3
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "rel_list_scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.rel_list_scan(detectors, *args, per_step=per_step, md=_md)
def list_grid_scan_wp(
detectors, *args, constants=None, snake_axes=False, per_step=None, md=None
):
nargs = 3
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "list_grid_scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.list_grid_scan(
detectors, *args, snake_axes=snake_axes, per_step=per_step, md=_md
)
def rel_list_grid_scan_wp(
detectors, *args, constants=None, snake_axes=False, per_step=None, md=None
):
nargs = 3
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "rel_list_grid_scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.rel_list_grid_scan(
detectors, *args, snake_axes=snake_axes, per_step=per_step, md=_md
)
def grid_scan_wp(
detectors, *args, constants=None, snake_axes=False, per_step=None, md=None
):
nargs = 5
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "grid_scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
print(_md)
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.grid_scan(
detectors, *args, snake_axes=snake_axes, per_step=per_step, md=_md
)
def rel_grid_scan_wp(
detectors, *args, constants=None, snake_axes=False, per_step=None, md=None
):
nargs = 5
axis_units = _axis_units_from_args(args, nargs)
md_args = [repr(i) if isinstance(i, Movable) else i for i in args]
_md = {
"plan_name": "rel_grid_scan_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"args": md_args,
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
args = [x for i, x in enumerate(args) if not i % nargs == nargs - 1]
yield from bsp.rel_grid_scan(
detectors, *args, snake_axes=snake_axes, per_step=per_step, md=_md
)
def scan_nd_wp(
detectors, cycler, *, axis_units=None, constants=None, per_step=None, md=None
):
_md = {
"plan_name": "scan_nd_wp",
"plan_args": {
"detectors": list(map(repr, detectors)),
"cycler": repr(cycler),
"axis_units": {k.name: v for k, v in axis_units.items()},
"constants": _md_constants(constants),
"per_step": repr(per_step),
},
"plan_constants": _md_constants(constants),
"plan_axis_units": {k.name: v for k, v in axis_units.items()},
}
_md.update(md or {})
per_step = make_one_nd_step(constants, axis_units, per_step)
yield from bsp.scan_nd(detectors, cycler, per_step=per_step, md=_md)
| 35.713333
| 101
| 0.622083
| 1,535
| 10,714
| 4.06645
| 0.083388
| 0.076258
| 0.060878
| 0.083627
| 0.768664
| 0.744954
| 0.728292
| 0.728292
| 0.716117
| 0.715636
| 0
| 0.002015
| 0.258914
| 10,714
| 299
| 102
| 35.832776
| 0.784131
| 0.053015
| 0
| 0.559055
| 0
| 0
| 0.095431
| 0.004153
| 0
| 0
| 0
| 0
| 0
| 1
| 0.051181
| false
| 0
| 0.027559
| 0.003937
| 0.094488
| 0.003937
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
50cba1b07412000c5b80063b2c5b49170037506b
| 123
|
py
|
Python
|
chatbot/auth/admin.py
|
Anubhav722/ahdekjah
|
95bac77b3b21e11091076c321e1e87df977e1add
|
[
"MIT"
] | null | null | null |
chatbot/auth/admin.py
|
Anubhav722/ahdekjah
|
95bac77b3b21e11091076c321e1e87df977e1add
|
[
"MIT"
] | null | null | null |
chatbot/auth/admin.py
|
Anubhav722/ahdekjah
|
95bac77b3b21e11091076c321e1e87df977e1add
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from auth.models import Client
# Register your models here.
admin.site.register(Client)
| 17.571429
| 32
| 0.804878
| 18
| 123
| 5.5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130081
| 123
| 6
| 33
| 20.5
| 0.925234
| 0.211382
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
50d521081dec1fe35e19725a69d030979ccdcec2
| 17
|
py
|
Python
|
code/sample_2-1-21.py
|
KoyanagiHitoshi/AtCoder-Python-Introduction
|
6d014e333a873f545b4d32d438e57cf428b10b96
|
[
"MIT"
] | 1
|
2022-03-29T13:50:12.000Z
|
2022-03-29T13:50:12.000Z
|
code/sample_2-1-21.py
|
KoyanagiHitoshi/AtCoder-Python-Introduction
|
6d014e333a873f545b4d32d438e57cf428b10b96
|
[
"MIT"
] | null | null | null |
code/sample_2-1-21.py
|
KoyanagiHitoshi/AtCoder-Python-Introduction
|
6d014e333a873f545b4d32d438e57cf428b10b96
|
[
"MIT"
] | null | null | null |
x = 9/3
print(x)
| 5.666667
| 8
| 0.529412
| 5
| 17
| 1.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 0.235294
| 17
| 2
| 9
| 8.5
| 0.538462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
0fa20d42763a0c75d5ce6a9c0b24e190607bb52e
| 36
|
py
|
Python
|
my_linux_academy/my_python_class/hello.py
|
mikronixx/public
|
7410e42f3f5bf911be28b762817e30936d7a7c60
|
[
"Apache-2.0"
] | null | null | null |
my_linux_academy/my_python_class/hello.py
|
mikronixx/public
|
7410e42f3f5bf911be28b762817e30936d7a7c60
|
[
"Apache-2.0"
] | null | null | null |
my_linux_academy/my_python_class/hello.py
|
mikronixx/public
|
7410e42f3f5bf911be28b762817e30936d7a7c60
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
print ("hello")
| 9
| 17
| 0.611111
| 5
| 36
| 4.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138889
| 36
| 3
| 18
| 12
| 0.709677
| 0.444444
| 0
| 0
| 0
| 0
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 1
|
0
| 5
|
0fb15190901f1fe832475b0a142c8457c3876910
| 43
|
py
|
Python
|
scraper/exceptions.py
|
phuongnh3012/django-scraper
|
c8203fc38fe7d97d288a958b6b7fe0d8b1e46340
|
[
"MIT"
] | 16
|
2015-05-26T16:35:31.000Z
|
2022-02-17T16:22:29.000Z
|
scraper/exceptions.py
|
phuongnh3012/django-scraper
|
c8203fc38fe7d97d288a958b6b7fe0d8b1e46340
|
[
"MIT"
] | 1
|
2016-05-12T15:04:38.000Z
|
2016-05-13T03:55:01.000Z
|
scraper/exceptions.py
|
phuongnh3012/django-scraper
|
c8203fc38fe7d97d288a958b6b7fe0d8b1e46340
|
[
"MIT"
] | 13
|
2015-04-08T06:43:38.000Z
|
2021-02-12T02:40:01.000Z
|
class ExtractorNotSet(Exception):
pass
| 14.333333
| 33
| 0.767442
| 4
| 43
| 8.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162791
| 43
| 2
| 34
| 21.5
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
0fded768ae13d579217f0120567e47bcd7c96ffd
| 4,758
|
py
|
Python
|
src/kblue/nodes/const.py
|
tulare/kblue
|
731aa3c4600f3b7c0e53efb51075335ca266b665
|
[
"MIT"
] | null | null | null |
src/kblue/nodes/const.py
|
tulare/kblue
|
731aa3c4600f3b7c0e53efb51075335ca266b665
|
[
"MIT"
] | null | null | null |
src/kblue/nodes/const.py
|
tulare/kblue
|
731aa3c4600f3b7c0e53efb51075335ca266b665
|
[
"MIT"
] | null | null | null |
# -*- encoding: utf-8 -*-
DBUS_NAME = "org.freedesktop.DBus"
SERVICE_NAME = "org.bluez"
DBUS_OM_INTERFACE = DBUS_NAME + ".ObjectManager"
INTROSPECTABLE_INTERFACE = DBUS_NAME + ".Introspectable"
BLUEZ_MANAGER_INTERFACE = SERVICE_NAME + ".BluezManager1"
AGENT_MANAGER_INTERFACE = SERVICE_NAME + ".AgentManager1"
PROFILE_MANAGER_INTERFACE = SERVICE_NAME + ".ProfileManager1"
HEALTH_MANAGER_INTERFACE = SERVICE_NAME + ".HealthManager1"
PERIPHERAL_INTERFACE = SERVICE_NAME + ".Peripheral1"
ADAPTER_INTERFACE = SERVICE_NAME + ".Adapter1"
DEVICE_INTERFACE = SERVICE_NAME + ".Device1"
NETWORK_INTERFACE = SERVICE_NAME + ".Network1"
INPUT_INTERFACE = SERVICE_NAME + ".Input1"
MEDIA_INTERFACE = SERVICE_NAME + ".Media1"
NETWORK_SERVER_INTERFACE = SERVICE_NAME + ".NetworkServer1"
GATT_MANAGER_INTERFACE = SERVICE_NAME + ".GattManager1"
LE_ADVERTISING_MANAGER_INTERFACE = SERVICE_NAME + ".LEAdvertisingManager1"
SIM_ACCESS_INTERFACE = SERVICE_NAME + ".SimAccess1"
MEDIA_CONTROL_INTERFACE = SERVICE_NAME + ".MediaControl1"
MEDIA_PLAYER_INTERFACE = SERVICE_NAME + ".MediaPlayer1"
MEDIA_TRANSPORT_INTERFACE = SERVICE_NAME + ".MediaTransport1"
GATT_SERVICE_INTERFACE = SERVICE_NAME + ".GattService1"
GATT_CHARACTERISTIC_INTERFACE = SERVICE_NAME + ".GattCharacteristic1"
GATT_DESCRIPTOR_INTERFACE = SERVICE_NAME + ".GattDescriptor1"
ADVANCED_AUDIO_CLASS = "0000110d-0000-1000-8000-00805F9B34FB"
AUDIO_SINK_CLASS = "0000110b-0000-1000-8000-00805F9B34FB"
AUDIO_SOURCE_CLASS = "0000110a-0000-1000-8000-00805F9B34FB"
AV_CLASS = "0000112c-0000-1000-8000-00805F9B34FB"
AV_REMOTE_CLASS = "0000110e-0000-1000-8000-00805F9B34FB"
AV_REMOTE_TARGET_CLASS = "0000110c-0000-1000-8000-00805F9B34FB"
BASIC_PRINTING_CLASS = "00001122-0000-1000-8000-00805F9B34FB"
BROWSE_GRP_DESC_CLASS = "00001001-0000-1000-8000-00805F9B34FB"
CIP_CLASS = "00001128-0000-1000-8000-00805F9B34FB"
CORDLESS_TELEPHONY_CLASS = "00001109-0000-1000-8000-00805F9B34FB"
DIALUP_NET_CLASS = "00001103-0000-1000-8000-00805F9B34FB"
DIRECT_PRINTING_CLASS = "00001118-0000-1000-8000-00805F9B34FB"
DIRECT_PRT_REFOBJS_CLASS = "00001120-0000-1000-8000-00805F9B34FB"
FAX_CLASS = "00001111-0000-1000-8000-00805F9B34FB"
GENERIC_AUDIO_CLASS = "00001203-0000-1000-8000-00805F9B34FB"
GENERIC_FILETRANS_CLASS = "00001202-0000-1000-8000-00805F9B34FB"
GENERIC_NETWORKING_CLASS = "00001201-0000-1000-8000-00805F9B34FB"
GENERIC_TELEPHONY_CLASS = "00001204-0000-1000-8000-00805F9B34FB"
GN_CLASS = "00001117-0000-1000-8000-00805F9B34FB"
HANDSFREE_AGW_CLASS = "0000111f-0000-1000-8000-00805F9B34FB"
HANDSFREE_CLASS = "0000111e-0000-1000-8000-00805F9B34FB"
HCR_CLASS = "00001125-0000-1000-8000-00805F9B34FB"
HCR_PRINT_CLASS = "00001126-0000-1000-8000-00805F9B34FB"
HCR_SCAN_CLASS = "00001127-0000-1000-8000-00805F9B34FB"
HEADSET_AGW_CLASS = "00001112-0000-1000-8000-00805F9B34FB"
HEADSET_CLASS = "00001108-0000-1000-8000-00805F9B34FB"
HID_CLASS = "00001124-0000-1000-8000-00805F9B34FB"
IMAGING_ARCHIVE_CLASS = "0000111c-0000-1000-8000-00805F9B34FB"
IMAGING_CLASS = "0000111a-0000-1000-8000-00805F9B34FB"
IMAGING_REFOBJS_CLASS = "0000111d-0000-1000-8000-00805F9B34FB"
IMAGING_RESPONDER_CLASS = "0000111b-0000-1000-8000-00805F9B34FB"
INTERCOM_CLASS = "00001110-0000-1000-8000-00805F9B34FB"
IRMC_SYNC_CLASS = "00001104-0000-1000-8000-00805F9B34FB"
IRMC_SYNC_CMD_CLASS = "00001107-0000-1000-8000-00805F9B34FB"
LAN_ACCESS_CLASS = "00001102-0000-1000-8000-00805F9B34FB"
NAP_CLASS = "00001116-0000-1000-8000-00805F9B34FB"
OBEX_FILETRANS_CLASS = "00001106-0000-1000-8000-00805F9B34FB"
OBEX_OBJPUSH_CLASS = "00001105-0000-1000-8000-00805F9B34FB"
PANU_CLASS = "00001115-0000-1000-8000-00805F9B34FB"
PNP_INFO_CLASS = "00001200-0000-1000-8000-00805F9B34FB"
PRINTING_STATUS_CLASS = "00001123-0000-1000-8000-00805F9B34FB"
REFERENCE_PRINTING_CLASS = "00001119-0000-1000-8000-00805F9B34FB"
REFLECTED_UI_CLASS = "00001121-0000-1000-8000-00805F9B34FB"
SAP_CLASS = "0000112d-0000-1000-8000-00805F9B34FB"
SDP_SERVER_CLASS = "00001000-0000-1000-8000-00805F9B34FB"
SERIAL_PORT_CLASS = "00001101-0000-1000-8000-00805F9B34FB"
UDI_MT_CLASS = "0000112a-0000-1000-8000-00805F9B34FB"
UDI_TA_CLASS = "0000112b-0000-1000-8000-00805F9B34FB"
UPNP_CLASS = "00001205-0000-1000-8000-00805F9B34FB"
UPNP_IP_CLASS = "00001206-0000-1000-8000-00805F9B34FB"
UPNP_L2CAP_CLASS = "00001302-0000-1000-8000-00805F9B34FB"
UPNP_LAP_CLASS = "00001301-0000-1000-8000-00805F9B34FB"
UPNP_PAN_CLASS = "00001300-0000-1000-8000-00805F9B34FB"
VIDEO_CONF_CLASS = "0000110f-0000-1000-8000-00805F9B34FB"
VIDEO_CONF_GW_CLASS = "00001129-0000-1000-8000-00805F9B34FB"
VIDEO_SINK_CLASS = "00001304-0000-1000-8000-00805F9B34FB"
VIDEO_SOURCE_CLASS = "00001303-0000-1000-8000-00805F9B34FB"
WAP_CLASS = "00001113-0000-1000-8000-00805F9B34FB"
WAP_CLIENT_CLASS = "00001114-0000-1000-8000-00805F9B34FB"
| 51.16129
| 74
| 0.821774
| 600
| 4,758
| 6.233333
| 0.308333
| 0.126203
| 0.189305
| 0.37861
| 0.309358
| 0.051872
| 0
| 0
| 0
| 0
| 0
| 0.372501
| 0.064523
| 4,758
| 92
| 75
| 51.717391
| 0.46776
| 0.004834
| 0
| 0
| 0
| 0
| 0.516797
| 0.453412
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.