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
99e3d3333d7aa18597378ca4a913a1eccc683dc6
4,400
py
Python
evaluations.py
leandrocoding/sudoku
708649bada5b219f50a0cb977ad4317b7e7be2f6
[ "MIT" ]
4
2020-07-05T08:19:40.000Z
2021-01-02T03:00:27.000Z
evaluations.py
leandrocoding/sudoku
708649bada5b219f50a0cb977ad4317b7e7be2f6
[ "MIT" ]
1
2021-03-13T10:41:59.000Z
2021-03-13T10:41:59.000Z
evaluations.py
leandrocoding/sudoku
708649bada5b219f50a0cb977ad4317b7e7be2f6
[ "MIT" ]
null
null
null
"""This python script can be used to test the correctness and finiteness of the algorithms.""" from multiprocessing import Process from BASolver2 import bASolve, bASolverHandle from OPBASolver import OPSolverHandle import time # bASolve() class NonFiniteException(Exception): pass def testcorrectness(algo): """"Test the algorithm specified in <algo> algo: 1: BA-Algorithm 2: OPBA-Algorithm 3: Algorithm X The input will be passed to the algorithm directly """ if algo == 1: return testBA() elif algo == 2: return testOPBA() elif algo == 3: return testAlgoX() def locBASOLVE(grid): print(bASolverHandle(grid)) # print(grid) def testBA(): inputs = [] validInput = [[7, 8, 0, 4, 0, 0, 1, 2, 0], [6, 0, 0, 0, 7, 5, 0, 0, 9], [0, 0, 7, 0, 4, 0, 2, 6, 0], [9, 0, 4, 0, 6, 0, 0, 0, 5], [0, 0, 1, 0, 5,0, 9, 3, 0], [0, 0, 0, 6, 0, 1, 0, 7, 8], [0, 7, 0, 3, 0, 0, 0, 1, 2], [1, 2, 0, 0, 0, 7, 4, 0, 0], [0, 4, 9, 2, 0, 6, 0, 0, 7]] inputs.append(validInput) wrongdim = [[1,2,3,4],[4,3,2,1],[2,1,4,3],[3,4,1,2]] # 4x4 instead of 9x9 inputs.append(wrongdim) # 8 is two times in a collomn at start, therfore unsolvable. invStart = [[7, 8, 0, 4, 0, 0, 1, 2, 0], [6, 8, 0, 0, 7, 5, 0, 0, 9], [0, 0, 7, 0, 4, 0, 2, 6, 0], [9, 0, 4, 0, 6, 0, 0, 0, 5], [0, 0, 1, 0, 5,0, 9, 3, 0], [0, 0, 0, 6, 0, 1, 0, 7, 8], [0, 7, 0, 3, 0, 0, 0, 1, 2], [1, 2, 0, 0, 0, 7, 4, 0, 0], [0, 4, 9, 2, 0, 6, 0, 0, 7]] inputs.append(invStart) # 22 is not valid. invNumbers = [[7, 8, 0, 4, 0, 0, 1, 2, 0], [6, 22, 0, 0, 7, 5, 0, 0, 9], [0, 0, 7, 0, 4, 0, 2, 6, 0], [9, 0, 4, 0, 6, 0, 0, 0, 5], [0, 0, 1, 0, 5,0, 9, 3, 0], [0, 0, 0, 6, 0, 1, 0, 7, 8], [0, 7, 0, 3, 0, 0, 0, 1, 2], [1, 2, 0, 0, 0, 7, 4, 0, 0], [0, 4, 9, 2, 0, 6, 0, 0, 7]] inputs.append(invNumbers) emptyinp = [[0 for _ in range(9)] for _ in range(9)] inputs.append(emptyinp) for inp in inputs: proc = Process(target=locBASOLVE, args=[inp]) proc.start() curtim = time.time() proc.join(timeout=11) # This stops the test if it takes longer than 10 seconds if abs(curtim-time.time()) >10: print("ERROR, took longer than 10 seconds. Stoped after 10 seconds") raise NonFiniteException("The solver took more than 10 seconds.") proc.terminate() print("NEXT") def testOP(): inputs = [] validInput = [[7, 8, 0, 4, 0, 0, 1, 2, 0], [6, 0, 0, 0, 7, 5, 0, 0, 9], [0, 0, 7, 0, 4, 0, 2, 6, 0], [9, 0, 4, 0, 6, 0, 0, 0, 5], [0, 0, 1, 0, 5,0, 9, 3, 0], [0, 0, 0, 6, 0, 1, 0, 7, 8], [0, 7, 0, 3, 0, 0, 0, 1, 2], [1, 2, 0, 0, 0, 7, 4, 0, 0], [0, 4, 9, 2, 0, 6, 0, 0, 7]] inputs.append(validInput) wrongdim = [[1,2,3,4],[4,3,2,1],[2,1,4,3],[3,4,1,2]] # 4x4 instead of 9x9 inputs.append(wrongdim) # 8 is two times in a collomn at start, therfore unsolvable. invStart = [[7, 8, 0, 4, 0, 0, 1, 2, 0], [6, 8, 0, 0, 7, 5, 0, 0, 9], [0, 0, 7, 0, 4, 0, 2, 6, 0], [9, 0, 4, 0, 6, 0, 0, 0, 5], [0, 0, 1, 0, 5,0, 9, 3, 0], [0, 0, 0, 6, 0, 1, 0, 7, 8], [0, 7, 0, 3, 0, 0, 0, 1, 2], [1, 2, 0, 0, 0, 7, 4, 0, 0], [0, 4, 9, 2, 0, 6, 0, 0, 7]] inputs.append(invStart) # 22 is not valid. invNumbers = [[7, 8, 0, 4, 0, 0, 1, 2, 0], [6, 22, 0, 0, 7, 5, 0, 0, 9], [0, 0, 7, 0, 4, 0, 2, 6, 0], [9, 0, 4, 0, 6, 0, 0, 0, 5], [0, 0, 1, 0, 5,0, 9, 3, 0], [0, 0, 0, 6, 0, 1, 0, 7, 8], [0, 7, 0, 3, 0, 0, 0, 1, 2], [1, 2, 0, 0, 0, 7, 4, 0, 0], [0, 4, 9, 2, 0, 6, 0, 0, 7]] inputs.append(invNumbers) # Empty field: emptyinp = [[0 for _ in range(9)] for _ in range(9)] inputs.append(emptyinp) for inp in inputs: proc = Process(target=OPSolverHandle, args=[inp]) proc.start() curtim = time.time() proc.join(timeout=11) # This stops the test if it takes longer than 10 seconds if abs(curtim-time.time()) >10: print("ERROR, took longer than 10 seconds. Stoped after 10 seconds") raise NonFiniteException("The solver took more than 10 seconds.") proc.terminate() print("NEXT") def testOPBA(): pass def testAlgoX(): pass if __name__ == "__main__": testBA() testOP() testAlgoX() # print(bASolverHandle([[0 for _ in range(9)] for _ in range(9)]))
35.483871
278
0.503409
851
4,400
2.586369
0.13396
0.094503
0.051795
0.025443
0.722853
0.722853
0.722853
0.722853
0.722853
0.712403
0
0.183504
0.289091
4,400
124
279
35.483871
0.520141
0.1475
0
0.641791
0
0
0.05614
0
0
0
0
0
0
1
0.089552
false
0.044776
0.059701
0
0.208955
0.074627
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
8220698c204a1446ed030218727b2f760902286f
61
py
Python
echo_text_classifiers/__init__.py
nschaetti/PAN17-author-profiling
c1d1041bbdc4b631709b1cbc134c562fcff2b542
[ "Apache-2.0" ]
1
2022-03-07T15:45:06.000Z
2022-03-07T15:45:06.000Z
echo_text_classifiers/__init__.py
nschaetti/PAN17-author-profiling
c1d1041bbdc4b631709b1cbc134c562fcff2b542
[ "Apache-2.0" ]
null
null
null
echo_text_classifiers/__init__.py
nschaetti/PAN17-author-profiling
c1d1041bbdc4b631709b1cbc134c562fcff2b542
[ "Apache-2.0" ]
null
null
null
# Import from .EchoTextClassifier import EchoTextClassifier
15.25
50
0.852459
5
61
10.4
0.6
0
0
0
0
0
0
0
0
0
0
0
0.114754
61
3
51
20.333333
0.962963
0.098361
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
823c37e204f339ffbed684b109b1de9e326b50a2
65
py
Python
gemlog_from_rss/spip/__init__.py
Hookz/Gemlog-from-RSS
b57a311db3008e8b0df2442236c4729a06d9b74d
[ "MIT" ]
1
2021-02-19T16:06:07.000Z
2021-02-19T16:06:07.000Z
gemlog_from_rss/spip/__init__.py
Hookz/Gemlog-from-RSS
b57a311db3008e8b0df2442236c4729a06d9b74d
[ "MIT" ]
null
null
null
gemlog_from_rss/spip/__init__.py
Hookz/Gemlog-from-RSS
b57a311db3008e8b0df2442236c4729a06d9b74d
[ "MIT" ]
null
null
null
from .content import SinglePost from .page import Page, MainPage
21.666667
32
0.815385
9
65
5.888889
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.138462
65
2
33
32.5
0.946429
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
4143ccf190301cf56eeae0f7c02717bcd229a66f
213
py
Python
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
from .group import Group from .aminoacid import AminoAcid from .nucleotide import Nucleotide from .water import Water from .ion import Ion from .cosolute import Cosolute from .small_molecule import SmallMolecule
23.666667
41
0.830986
29
213
6.068966
0.37931
0
0
0
0
0
0
0
0
0
0
0
0.13615
213
8
42
26.625
0.956522
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
4188e0bdb0246bed574781d83fd5dfac338b69bd
218
py
Python
compiler/python_compiler/engines/py3_8/Compiler.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
3
2021-08-12T12:59:27.000Z
2021-08-29T15:30:49.000Z
compiler/python_compiler/engines/py3_8/Compiler.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
compiler/python_compiler/engines/py3_8/Compiler.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
from utils.flags import * from .get_fragment_class import get_fragment_class def compile(blueprint:dict, *, level = 0)->str: build = get_fragment_class(blueprint, compile, level=level) return build.compile()
27.25
63
0.756881
30
218
5.3
0.533333
0.207547
0.301887
0
0
0
0
0
0
0
0
0.005348
0.142202
218
7
64
31.142857
0.84492
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0.4
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
68ba116787e1a4e63e9786fddd4525fabeef6657
104
py
Python
desafio21.py
kelson-gs/Desafios-python
b40867a331c0dab84b4ceff5391c5dcd07c42da2
[ "MIT" ]
null
null
null
desafio21.py
kelson-gs/Desafios-python
b40867a331c0dab84b4ceff5391c5dcd07c42da2
[ "MIT" ]
null
null
null
desafio21.py
kelson-gs/Desafios-python
b40867a331c0dab84b4ceff5391c5dcd07c42da2
[ "MIT" ]
null
null
null
import pygame pygame.mixer.init() pygame.mixer.music.load('anzenchitai.mp3') pygame.mixer.music.play()
17.333333
42
0.778846
15
104
5.4
0.6
0.407407
0.395062
0
0
0
0
0
0
0
0
0.010204
0.057692
104
5
43
20.8
0.816327
0
0
0
0
0
0.145631
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
68bbf627a9afc37939a7f82cf9c685bca13e0e51
10,068
py
Python
salika/views/django_admin_log_views.py
BarisSari/django_crud
ce9586c10da2f865d29d9a18e9ff5582abe5e3a0
[ "MIT" ]
null
null
null
salika/views/django_admin_log_views.py
BarisSari/django_crud
ce9586c10da2f865d29d9a18e9ff5582abe5e3a0
[ "MIT" ]
null
null
null
salika/views/django_admin_log_views.py
BarisSari/django_crud
ce9586c10da2f865d29d9a18e9ff5582abe5e3a0
[ "MIT" ]
null
null
null
from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.views.generic.list import ListView from ..models import DjangoAdminLog from ..forms import DjangoAdminLogForm from django.urls import reverse_lazy from django.urls import reverse from django.http import Http404 class DjangoAdminLogListView(ListView): model = DjangoAdminLog template_name = "salika/django_admin_log_list.html" paginate_by = 20 context_object_name = "django_admin_log_list" allow_empty = True page_kwarg = 'page' paginate_orphans = 0 def __init__(self, **kwargs): return super(DjangoAdminLogListView, self).__init__(**kwargs) def dispatch(self, *args, **kwargs): return super(DjangoAdminLogListView, self).dispatch(*args, **kwargs) def get(self, request, *args, **kwargs): return super(DjangoAdminLogListView, self).get(request, *args, **kwargs) def get_queryset(self): return super(DjangoAdminLogListView, self).get_queryset() def get_allow_empty(self): return super(DjangoAdminLogListView, self).get_allow_empty() def get_context_data(self, *args, **kwargs): ret = super(DjangoAdminLogListView, self).get_context_data(*args, **kwargs) return ret def get_paginate_by(self, queryset): return super(DjangoAdminLogListView, self).get_paginate_by(queryset) def get_context_object_name(self, object_list): return super(DjangoAdminLogListView, self).get_context_object_name(object_list) def paginate_queryset(self, queryset, page_size): return super(DjangoAdminLogListView, self).paginate_queryset(queryset, page_size) def get_paginator(self, queryset, per_page, orphans=0, allow_empty_first_page=True): return super(DjangoAdminLogListView, self).get_paginator(queryset, per_page, orphans=0, allow_empty_first_page=True) def render_to_response(self, context, **response_kwargs): return super(DjangoAdminLogListView, self).render_to_response(context, **response_kwargs) def get_template_names(self): return super(DjangoAdminLogListView, self).get_template_names() class DjangoAdminLogDetailView(DetailView): model = DjangoAdminLog template_name = "salika/django_admin_log_detail.html" context_object_name = "django_admin_log" slug_field = 'slug' slug_url_kwarg = 'slug' pk_url_kwarg = 'pk' def __init__(self, **kwargs): return super(DjangoAdminLogDetailView, self).__init__(**kwargs) def dispatch(self, *args, **kwargs): return super(DjangoAdminLogDetailView, self).dispatch(*args, **kwargs) def get(self, request, *args, **kwargs): return super(DjangoAdminLogDetailView, self).get(request, *args, **kwargs) def get_object(self, queryset=None): return super(DjangoAdminLogDetailView, self).get_object(queryset) def get_queryset(self): return super(DjangoAdminLogDetailView, self).get_queryset() def get_slug_field(self): return super(DjangoAdminLogDetailView, self).get_slug_field() def get_context_data(self, **kwargs): ret = super(DjangoAdminLogDetailView, self).get_context_data(**kwargs) return ret def get_context_object_name(self, obj): return super(DjangoAdminLogDetailView, self).get_context_object_name(obj) def render_to_response(self, context, **response_kwargs): return super(DjangoAdminLogDetailView, self).render_to_response(context, **response_kwargs) def get_template_names(self): return super(DjangoAdminLogDetailView, self).get_template_names() class DjangoAdminLogCreateView(CreateView): model = DjangoAdminLog form_class = DjangoAdminLogForm # fields = ['action_time', 'object_id', 'object_repr', 'action_flag', 'change_message', 'content_type', 'user'] template_name = "salika/django_admin_log_create.html" success_url = reverse_lazy("django_admin_log_list") def __init__(self, **kwargs): return super(DjangoAdminLogCreateView, self).__init__(**kwargs) def dispatch(self, request, *args, **kwargs): return super(DjangoAdminLogCreateView, self).dispatch(request, *args, **kwargs) def get(self, request, *args, **kwargs): return super(DjangoAdminLogCreateView, self).get(request, *args, **kwargs) def post(self, request, *args, **kwargs): return super(DjangoAdminLogCreateView, self).post(request, *args, **kwargs) def get_form_class(self): return super(DjangoAdminLogCreateView, self).get_form_class() def get_form(self, form_class=None): return super(DjangoAdminLogCreateView, self).get_form(form_class) def get_form_kwargs(self, **kwargs): return super(DjangoAdminLogCreateView, self).get_form_kwargs(**kwargs) def get_initial(self): return super(DjangoAdminLogCreateView, self).get_initial() def form_invalid(self, form): return super(DjangoAdminLogCreateView, self).form_invalid(form) def form_valid(self, form): obj = form.save(commit=False) obj.save() return super(DjangoAdminLogCreateView, self).form_valid(form) def get_context_data(self, **kwargs): ret = super(DjangoAdminLogCreateView, self).get_context_data(**kwargs) return ret def render_to_response(self, context, **response_kwargs): return super(DjangoAdminLogCreateView, self).render_to_response(context, **response_kwargs) def get_template_names(self): return super(DjangoAdminLogCreateView, self).get_template_names() def get_success_url(self): return reverse("salika:django_admin_log_detail", args=(self.object.pk,)) class DjangoAdminLogUpdateView(UpdateView): model = DjangoAdminLog form_class = DjangoAdminLogForm # fields = ['action_time', 'object_id', 'object_repr', 'action_flag', 'change_message', 'content_type', 'user'] template_name = "salika/django_admin_log_update.html" initial = {} slug_field = 'slug' slug_url_kwarg = 'slug' pk_url_kwarg = 'pk' context_object_name = "django_admin_log" def __init__(self, **kwargs): return super(DjangoAdminLogUpdateView, self).__init__(**kwargs) def dispatch(self, *args, **kwargs): return super(DjangoAdminLogUpdateView, self).dispatch(*args, **kwargs) def get(self, request, *args, **kwargs): return super(DjangoAdminLogUpdateView, self).get(request, *args, **kwargs) def post(self, request, *args, **kwargs): return super(DjangoAdminLogUpdateView, self).post(request, *args, **kwargs) def get_object(self, queryset=None): return super(DjangoAdminLogUpdateView, self).get_object(queryset) def get_queryset(self): return super(DjangoAdminLogUpdateView, self).get_queryset() def get_slug_field(self): return super(DjangoAdminLogUpdateView, self).get_slug_field() def get_form_class(self): return super(DjangoAdminLogUpdateView, self).get_form_class() def get_form(self, form_class=None): return super(DjangoAdminLogUpdateView, self).get_form(form_class) def get_form_kwargs(self, **kwargs): return super(DjangoAdminLogUpdateView, self).get_form_kwargs(**kwargs) def get_initial(self): return super(DjangoAdminLogUpdateView, self).get_initial() def form_invalid(self, form): return super(DjangoAdminLogUpdateView, self).form_invalid(form) def form_valid(self, form): obj = form.save(commit=False) obj.save() return super(DjangoAdminLogUpdateView, self).form_valid(form) def get_context_data(self, **kwargs): ret = super(DjangoAdminLogUpdateView, self).get_context_data(**kwargs) return ret def get_context_object_name(self, obj): return super(DjangoAdminLogUpdateView, self).get_context_object_name(obj) def render_to_response(self, context, **response_kwargs): return super(DjangoAdminLogUpdateView, self).render_to_response(context, **response_kwargs) def get_template_names(self): return super(DjangoAdminLogUpdateView, self).get_template_names() def get_success_url(self): return reverse("salika:django_admin_log_detail", args=(self.object.pk,)) class DjangoAdminLogDeleteView(DeleteView): model = DjangoAdminLog template_name = "salika/django_admin_log_delete.html" slug_field = 'slug' slug_url_kwarg = 'slug' pk_url_kwarg = 'pk' context_object_name = "django_admin_log" def __init__(self, **kwargs): return super(DjangoAdminLogDeleteView, self).__init__(**kwargs) def dispatch(self, *args, **kwargs): return super(DjangoAdminLogDeleteView, self).dispatch(*args, **kwargs) def get(self, request, *args, **kwargs): raise Http404 def post(self, request, *args, **kwargs): return super(DjangoAdminLogDeleteView, self).post(request, *args, **kwargs) def delete(self, request, *args, **kwargs): return super(DjangoAdminLogDeleteView, self).delete(request, *args, **kwargs) def get_object(self, queryset=None): return super(DjangoAdminLogDeleteView, self).get_object(queryset) def get_queryset(self): return super(DjangoAdminLogDeleteView, self).get_queryset() def get_slug_field(self): return super(DjangoAdminLogDeleteView, self).get_slug_field() def get_context_data(self, **kwargs): ret = super(DjangoAdminLogDeleteView, self).get_context_data(**kwargs) return ret def get_context_object_name(self, obj): return super(DjangoAdminLogDeleteView, self).get_context_object_name(obj) def render_to_response(self, context, **response_kwargs): return super(DjangoAdminLogDeleteView, self).render_to_response(context, **response_kwargs) def get_template_names(self): return super(DjangoAdminLogDeleteView, self).get_template_names() def get_success_url(self): return reverse("salika:django_admin_log_list")
37.707865
124
0.723977
1,150
10,068
6.067826
0.085217
0.09143
0.060906
0.089424
0.878619
0.760963
0.615649
0.598166
0.529808
0.529808
0
0.001316
0.169944
10,068
266
125
37.849624
0.833672
0.021752
0
0.475936
0
0
0.039102
0.030774
0
0
0
0
0
1
0.358289
false
0
0.042781
0.315508
0.946524
0
0
0
0
null
0
0
0
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
1
0
0
0
1
1
0
0
5
ec09fbb6283c15ce280ed78dbf9c0d4cee3fc770
691
py
Python
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
2
2022-01-16T02:34:40.000Z
2022-02-26T01:31:54.000Z
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
null
null
null
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
null
null
null
from .colors import Colorize from .banners import banner def inputc(text: str, foreground_color: str = 'default', background_color: str = 'default') -> str: return input(Colorize(text, foreground_color, background_color)) def input_banner(text: str, simbol: str = '-', size: int = 50, text_foreground_color: str = 'default', text_background_color: str = 'default', line_foreground_color: str = 'default', line_background_color: str = 'default') -> str: banner(text, simbol, size, text_foreground_color, text_background_color, line_foreground_color, line_background_color) return inputc('>>> ', text_foreground_color, text_background_color)
53.153846
122
0.720695
84
691
5.630952
0.25
0.221987
0.190275
0.158562
0.27907
0.160677
0
0
0
0
0
0.003484
0.16932
691
12
123
57.583333
0.820557
0
0
0
0
0
0.068017
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.111111
0.666667
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
1
0
0
0
1
1
0
0
5
ec36f77c91a8f8042240f5809fbfdc767c72da16
46
py
Python
game/components/__init__.py
MarsRaptor/battleships
81e0a595c05f627de568dad49904be99f0cbf6ac
[ "MIT" ]
null
null
null
game/components/__init__.py
MarsRaptor/battleships
81e0a595c05f627de568dad49904be99f0cbf6ac
[ "MIT" ]
null
null
null
game/components/__init__.py
MarsRaptor/battleships
81e0a595c05f627de568dad49904be99f0cbf6ac
[ "MIT" ]
null
null
null
from .ships import * from .battlegrid import *
23
25
0.76087
6
46
5.833333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.152174
46
2
25
23
0.897436
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
ec4acbb13573dbfd3ec65423e098e4ec53a68a25
20
py
Python
test/try.py
realjiangjiapeng/killing-time
ad9c60953b623e6701170a4d823afb492f6a0140
[ "Apache-2.0" ]
null
null
null
test/try.py
realjiangjiapeng/killing-time
ad9c60953b623e6701170a4d823afb492f6a0140
[ "Apache-2.0" ]
null
null
null
test/try.py
realjiangjiapeng/killing-time
ad9c60953b623e6701170a4d823afb492f6a0140
[ "Apache-2.0" ]
null
null
null
print ('HELLO JJP')
10
19
0.65
3
20
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.15
20
1
20
20
0.764706
0
0
0
0
0
0.45
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
6b4fc78528b44e95eeb827b77773dc7dd92da655
42
py
Python
src/asphalt/__main__.py
agronholm/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
226
2015-08-19T16:57:32.000Z
2022-03-31T22:28:18.000Z
src/asphalt/__main__.py
Asphalt-framework/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
31
2015-09-05T11:18:33.000Z
2019-03-25T10:51:17.000Z
src/asphalt/__main__.py
Asphalt-framework/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
11
2015-09-04T21:43:34.000Z
2017-12-08T19:06:20.000Z
from asphalt.core.cli import main main()
10.5
33
0.761905
7
42
4.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.142857
42
3
34
14
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
6b8b3dd970c2381dc6fab482c6f4e706bdbe8c46
25
py
Python
core_dev/datetime_/__init__.py
alexzanderr/_core-dev
831f69dad524e450c4243b1dd88f26de80e1d444
[ "MIT" ]
null
null
null
core_dev/datetime_/__init__.py
alexzanderr/_core-dev
831f69dad524e450c4243b1dd88f26de80e1d444
[ "MIT" ]
null
null
null
core_dev/datetime_/__init__.py
alexzanderr/_core-dev
831f69dad524e450c4243b1dd88f26de80e1d444
[ "MIT" ]
null
null
null
from .datetime_ import *
12.5
24
0.76
3
25
6
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
2
24
12.5
0.857143
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
6bc8119faa11d3034406f5e04fb3d2f0570e36ee
127
py
Python
django_frontend_presets/presets/__init__.py
mikemenard/django-frontend-presets
0d1837415282ae43488b3e6e66889bc94f1a45b4
[ "BSD-3-Clause" ]
null
null
null
django_frontend_presets/presets/__init__.py
mikemenard/django-frontend-presets
0d1837415282ae43488b3e6e66889bc94f1a45b4
[ "BSD-3-Clause" ]
null
null
null
django_frontend_presets/presets/__init__.py
mikemenard/django-frontend-presets
0d1837415282ae43488b3e6e66889bc94f1a45b4
[ "BSD-3-Clause" ]
null
null
null
from .Bootstrap import Bootstrap from .Init import Init from .React import React from .Reset import Reset from .Vue import Vue
21.166667
32
0.80315
20
127
5.1
0.35
0
0
0
0
0
0
0
0
0
0
0
0.15748
127
5
33
25.4
0.953271
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
d417880052032f76146a52a10cf7662251c5d90b
122
py
Python
typeconversion.py
ShivamDevopsCommunity/Python_app
aa496fab65267061d5b4f4f374f63d2b5ae43f67
[ "Apache-2.0" ]
1
2020-07-23T11:30:22.000Z
2020-07-23T11:30:22.000Z
typeconversion.py
ShivamDevopsCommunity/Python_app
aa496fab65267061d5b4f4f374f63d2b5ae43f67
[ "Apache-2.0" ]
null
null
null
typeconversion.py
ShivamDevopsCommunity/Python_app
aa496fab65267061d5b4f4f374f63d2b5ae43f67
[ "Apache-2.0" ]
null
null
null
birth_year = input('Birth year: ') print(type(birth_year)) age = 2020 - int(birth_year) print(type(age)) print(age)
10.166667
34
0.680328
19
122
4.210526
0.421053
0.45
0.35
0.45
0
0
0
0
0
0
0
0.038835
0.155738
122
11
35
11.090909
0.737864
0
0
0
0
0
0.103448
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
d44934c340554c98f34eefb9a2b323aeeec6a374
265
py
Python
wifi-scheduler/deets.py
lileddie/guest-wifi-scheduler
37b7256458145ab677df4b5fffb270f7cede83b8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
wifi-scheduler/deets.py
lileddie/guest-wifi-scheduler
37b7256458145ab677df4b5fffb270f7cede83b8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
wifi-scheduler/deets.py
lileddie/guest-wifi-scheduler
37b7256458145ab677df4b5fffb270f7cede83b8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
ssh_username='Wireless-LAN-controller-USERNAME' ssh_password='Wireless-LAN-controller-PASSWD' ssh_ip='10.1.1.1' gmail_user='some_user@gmail.com' gmail_password='PASSWD' emdomain='@your_domain.com' emailAddrs=['IT-team@your_domain.com','Wifi-Admin@your_domain.com']
33.125
67
0.803774
42
265
4.857143
0.52381
0.147059
0.191176
0
0
0
0
0
0
0
0
0.01938
0.026415
265
7
68
37.857143
0.771318
0
0
0
0
0
0.603774
0.418868
0
0
0
0
0
1
0
false
0.285714
0
0
0
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
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
2e0f191ffd0baa303d922ca0110a4a273412b1e0
65
py
Python
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
2,577
2016-04-19T09:57:39.000Z
2022-03-17T10:34:25.000Z
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
7,410
2016-04-19T21:19:31.000Z
2022-01-21T20:14:21.000Z
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
625
2016-04-19T10:09:35.000Z
2022-03-16T10:53:45.000Z
import pytest pytest.register_assert_rewrite('gen.tests.utils')
16.25
49
0.830769
9
65
5.777778
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.061538
65
3
50
21.666667
0.852459
0
0
0
0
0
0.230769
0
0
0
0
0
0.5
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
1
0
0
0
0
5
2e19bc4ef8e76688f627aac760712755f2851717
114
py
Python
fcd_torch/__init__.py
hadim/fcd-torch
71fe153c16ece9b010efd52ed5490973a3b36d9e
[ "MIT" ]
30
2019-02-07T17:41:10.000Z
2022-03-30T08:14:24.000Z
fcd_torch/__init__.py
AIDrug/fcd_torch
a5a966897b89831c596f326df0ba3e151c4cc434
[ "MIT" ]
null
null
null
fcd_torch/__init__.py
AIDrug/fcd_torch
a5a966897b89831c596f326df0ba3e151c4cc434
[ "MIT" ]
8
2019-04-08T21:40:27.000Z
2022-02-20T07:58:05.000Z
from .fcd import FCD from .fcd import calculate_frechet_distance __all__ = ['FCD', 'calculate_frechet_distance']
22.8
47
0.798246
15
114
5.533333
0.466667
0.168675
0.313253
0
0
0
0
0
0
0
0
0
0.114035
114
4
48
28.5
0.821782
0
0
0
0
0
0.254386
0.22807
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
cf0de3ba9e20ca39a57f3acbae18add6e56df71b
70
py
Python
core/nn/__init__.py
achaiah/awesome-semantic-segmentation-pytorch
4f945a1989ae8b1bb6b24f1214fa84a7ca8c8e07
[ "Apache-2.0" ]
1
2019-09-09T16:58:48.000Z
2019-09-09T16:58:48.000Z
core/nn/__init__.py
achaiah/awesome-semantic-segmentation-pytorch
4f945a1989ae8b1bb6b24f1214fa84a7ca8c8e07
[ "Apache-2.0" ]
null
null
null
core/nn/__init__.py
achaiah/awesome-semantic-segmentation-pytorch
4f945a1989ae8b1bb6b24f1214fa84a7ca8c8e07
[ "Apache-2.0" ]
1
2019-12-04T03:06:07.000Z
2019-12-04T03:06:07.000Z
"""Seg NN Modules""" from .sync_bn.syncbn import * from .loss import *
23.333333
29
0.7
11
70
4.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.142857
70
3
30
23.333333
0.8
0.2
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
cf144bab411bff8503d65becf1b966fa838b391b
286
py
Python
utils/targetTools.py
brzx/pydataloader
005c347b8fd9aca0a35ecf8eccce0a35e7e6da52
[ "BSD-2-Clause" ]
null
null
null
utils/targetTools.py
brzx/pydataloader
005c347b8fd9aca0a35ecf8eccce0a35e7e6da52
[ "BSD-2-Clause" ]
null
null
null
utils/targetTools.py
brzx/pydataloader
005c347b8fd9aca0a35ecf8eccce0a35e7e6da52
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import abc class TargetTools(): __metaclass__ = abc.ABCMeta @abc.abstractmethod def getConnection(self, username, password, url): pass @abc.abstractmethod def validTarget(self, target): pass
19.066667
54
0.611888
29
286
5.896552
0.758621
0.19883
0.233918
0
0
0
0
0
0
0
0
0.004808
0.272727
286
15
55
19.066667
0.817308
0.132867
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.333333
0.111111
0
0.555556
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
cf6473217e7645ed213ed7c309d9dc071c16091a
129
py
Python
dl/initializers/initializer_base.py
nuka137/DeepLearningFramework
613881e46b48c2206b9424a49106455cb2336d2e
[ "MIT" ]
10
2020-06-28T05:50:41.000Z
2022-01-30T01:31:43.000Z
dl/initializers/initializer_base.py
nuka137/DeepLearningFramework
613881e46b48c2206b9424a49106455cb2336d2e
[ "MIT" ]
null
null
null
dl/initializers/initializer_base.py
nuka137/DeepLearningFramework
613881e46b48c2206b9424a49106455cb2336d2e
[ "MIT" ]
1
2020-07-26T12:36:32.000Z
2020-07-26T12:36:32.000Z
class InitializerBase: def __init__(self): pass def init(self, shape): raise NotImprementedError()
16.125
35
0.612403
12
129
6.25
0.75
0.186667
0.293333
0
0
0
0
0
0
0
0
0
0.310078
129
7
36
18.428571
0.842697
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0.2
0
0
0.6
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
1
0
1
0
0
0
0
0
5
d849ad31053906c063fe54eb88c77659c721172b
288
py
Python
polish_case_trainer/word/word_bag.py
davidhelbig/casetrainer-api
e420070960996302e8cf4ee370f4cf844222ed98
[ "MIT" ]
5
2018-01-30T22:10:40.000Z
2020-09-22T10:43:57.000Z
polish_case_trainer/word/word_bag.py
davidhelbig/casetrainer-api
e420070960996302e8cf4ee370f4cf844222ed98
[ "MIT" ]
3
2017-05-02T21:42:10.000Z
2019-07-19T09:41:07.000Z
polish_case_trainer/word/word_bag.py
davidhelbig/casetrainer-api
e420070960996302e8cf4ee370f4cf844222ed98
[ "MIT" ]
4
2017-05-01T22:44:57.000Z
2020-09-21T23:34:01.000Z
import random class WordBag: def __init__(self, word_list): if not isinstance(word_list, list): raise TypeError("word_list must be a list object") self.word_list = word_list def get_word_from_bag(self): return random.choice(self.word_list)
22.153846
62
0.670139
41
288
4.390244
0.560976
0.266667
0.2
0
0
0
0
0
0
0
0
0
0.253472
288
12
63
24
0.837209
0
0
0
0
0
0.107639
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
0.625
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
1
0
0
0
1
1
0
0
5
d8d3a3c4c4228610d78f5c857adca30a66a1762a
142
py
Python
backend/app/views/GetConstructsAsGenbankView/__init__.py
Edinburgh-Genome-Foundry/dab
7eabf76adf3a0b9332c3651b5d0e5e6d98237d2b
[ "MIT" ]
7
2019-04-11T20:36:07.000Z
2020-03-24T07:12:13.000Z
backend/app/views/GetConstructsAsGenbankView/__init__.py
Edinburgh-Genome-Foundry/dab
7eabf76adf3a0b9332c3651b5d0e5e6d98237d2b
[ "MIT" ]
null
null
null
backend/app/views/GetConstructsAsGenbankView/__init__.py
Edinburgh-Genome-Foundry/dab
7eabf76adf3a0b9332c3651b5d0e5e6d98237d2b
[ "MIT" ]
null
null
null
from .GetConstructsAsGenbank import (GetConstructsAsGenbankView, construct_data_to_assemblies_sequences)
47.333333
76
0.676056
9
142
10.222222
1
0
0
0
0
0
0
0
0
0
0
0
0.295775
142
2
77
71
0.92
0
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
d8f50d17f9a52ee96a7037b851918cf13a2ca3ae
96
py
Python
enthought/mayavi/core/ui/mayavi_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/mayavi/core/ui/mayavi_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/mayavi/core/ui/mayavi_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from mayavi.core.ui.mayavi_scene import *
24
41
0.833333
14
96
5.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.114583
96
3
42
32
0.870588
0.125
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
2b157c7b02563c277a3b074729ba1a44f8eb0df3
113
py
Python
endpoints/projects.py
FLUX-SE/TrackedHQ_python_wrapper
d35f868698d0ba0cb2fdb820317f7460b154a6d0
[ "MIT" ]
null
null
null
endpoints/projects.py
FLUX-SE/TrackedHQ_python_wrapper
d35f868698d0ba0cb2fdb820317f7460b154a6d0
[ "MIT" ]
null
null
null
endpoints/projects.py
FLUX-SE/TrackedHQ_python_wrapper
d35f868698d0ba0cb2fdb820317f7460b154a6d0
[ "MIT" ]
null
null
null
from .base import Resource class Projects(Resource): def list(self): return self._get("/projects")
16.142857
37
0.672566
14
113
5.357143
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.212389
113
6
38
18.833333
0.842697
0
0
0
0
0
0.079646
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
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
2b27627202fcf16a1bd8bdf2adc4734f515109a8
45
py
Python
01_hello/hello02_comment.py
rebeckaflynn/tiny_python_projects
692f24dd00769438e7aaa1c45223b701b20a1192
[ "MIT" ]
null
null
null
01_hello/hello02_comment.py
rebeckaflynn/tiny_python_projects
692f24dd00769438e7aaa1c45223b701b20a1192
[ "MIT" ]
null
null
null
01_hello/hello02_comment.py
rebeckaflynn/tiny_python_projects
692f24dd00769438e7aaa1c45223b701b20a1192
[ "MIT" ]
null
null
null
# Purpose: Say hello print('Hello, World!')
11.25
22
0.666667
6
45
5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.155556
45
3
23
15
0.789474
0.4
0
0
0
0
0.541667
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
2b6ab14e30c87422b9c8105893ef622c024762db
121
py
Python
python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
1
2020-06-25T02:17:26.000Z
2020-06-25T02:17:26.000Z
python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
<warning descr="Unused import statement 'import spam'">import <error descr="No module named spam">spam</error></warning>
60.5
120
0.760331
17
121
5.411765
0.588235
0
0
0
0
0
0
0
0
0
0
0
0.090909
121
1
121
121
0.836364
0
0
0
0
0
0.471074
0
0
0
0
0
0
0
null
null
0
1
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
5
9925c9a2bda0f481aaea1d23f4f43156ce4186d1
3,345
py
Python
tests/clpy_tests/opencl_tests/test_concatenate.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
142
2018-06-07T07:43:10.000Z
2021-10-30T21:06:32.000Z
tests/clpy_tests/opencl_tests/test_concatenate.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
282
2018-06-07T08:35:03.000Z
2021-03-31T03:14:32.000Z
tests/clpy_tests/opencl_tests/test_concatenate.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
19
2018-06-19T11:07:53.000Z
2021-05-13T20:57:04.000Z
import unittest import clpy import numpy class TestConcatenate(unittest.TestCase): """test clpy.manipulate.join.concatenate method""" def get_numpy_clpy_concatenated_result(self, dtype, shapes, axis): length = [] numpy_ar = [] clpy_ar = [] num_array = len(shapes) for i in range(num_array): length.append(numpy.prod(shapes[i])) numpy_ar.append(numpy.arange( length[i], dtype=dtype).reshape(shapes[i])) clpy_ar.append(clpy.array(numpy_ar[i])) clpy_result = clpy.concatenate((clpy_ar), axis).get() numpy_result = numpy.concatenate((numpy_ar), axis) return (numpy_result, clpy_result) def test_concatenate_2d_2array_axis0(self): dtype = "int64" axis = 0 shapes = [(2, 2), (3, 2)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) def test_concatenate_2d_2array_axis1(self): dtype = "int64" axis = 1 shapes = [(2, 2), (2, 3)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) def test_concatenate_3d_3array_axis0(self): dtype = "int64" axis = 0 shapes = [(2, 2, 2), (3, 2, 2), (4, 2, 2)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) def test_concatenate_3d_3array_axis1(self): dtype = "int64" axis = 1 shapes = [(2, 2, 2), (2, 3, 2), (2, 4, 2)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) def test_concatenate_3d_3array_axis2(self): dtype = "int64" axis = 2 shapes = [(2, 2, 2), (2, 2, 3), (2, 2, 4)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) def test_concatenate_3d_4array_axis0(self): dtype = "int64" axis = 0 shapes = [(2, 2, 2), (3, 2, 2), (4, 2, 2), (5, 2, 2)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) def test_concatenate_3d_4array_axis1(self): dtype = "int64" axis = 1 shapes = [(2, 2, 2), (2, 3, 2), (2, 4, 2), (2, 5, 2)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) def test_concatenate_3d_4array_axis2(self): dtype = "int64" axis = 2 shapes = [(2, 2, 2), (2, 2, 3), (2, 2, 4), (2, 2, 5)] numpy_result, clpy_result = self.get_numpy_clpy_concatenated_result( dtype, shapes, axis) self.assertTrue(numpy.array_equal(clpy_result, numpy_result)) if __name__ == '__main__': unittest.main()
30.409091
76
0.616442
435
3,345
4.443678
0.124138
0.033109
0.020176
0.111743
0.783238
0.767201
0.746508
0.746508
0.746508
0.729953
0
0.048374
0.264574
3,345
109
77
30.688073
0.737398
0.013154
0
0.533333
0
0
0.014568
0
0
0
0
0
0.106667
1
0.12
false
0
0.04
0
0.186667
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
99518065e86a0471bd9b44cb187c5e08ca0206fa
291
py
Python
src/rdml_graph/information_gathering/__init__.py
ianran/rdml_graph
83f3896a2a0f5ceb7e092f4e719fb35254c5a5f8
[ "MIT" ]
4
2020-09-01T17:52:18.000Z
2022-01-18T22:36:48.000Z
src/rdml_graph/information_gathering/__init__.py
ianran/rdml_graph
83f3896a2a0f5ceb7e092f4e719fb35254c5a5f8
[ "MIT" ]
null
null
null
src/rdml_graph/information_gathering/__init__.py
ianran/rdml_graph
83f3896a2a0f5ceb7e092f4e719fb35254c5a5f8
[ "MIT" ]
null
null
null
# init for information_gathering from .Evaluator import PathEvaluator, PathEvaluatorWithRadius, PathEvaluatorAlongPath, applyBudget from .MaskedEvaluator import MaskedEvaluator from .StochasticOptimizer import StochasticOptimizer from .InfoField import random_field2d, random_multi_field2d
41.571429
98
0.883162
27
291
9.37037
0.62963
0
0
0
0
0
0
0
0
0
0
0.007519
0.085911
291
6
99
48.5
0.943609
0.103093
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
997b54bcf5f7b4cc139e3fa13dc04de3e3c8896b
102
py
Python
python/6Kyu/Split Strings.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/6Kyu/Split Strings.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/6Kyu/Split Strings.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
def solution(s): return [s[x:x+2] if x < len(s) - 1 else s[-1] + "_" for x in range(0, len(s), 2)]
51
85
0.529412
24
102
2.208333
0.583333
0.150943
0
0
0
0
0
0
0
0
0
0.063291
0.22549
102
2
85
51
0.607595
0
0
0
0
0
0.009709
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
9989614393dfb36145666c0ee972313c9461ff34
73
py
Python
firstpython.py
Renatoirp/CloudCourse
1edd614a7179bf444b122acfebb50f6ffea5c1c2
[ "Apache-2.0" ]
null
null
null
firstpython.py
Renatoirp/CloudCourse
1edd614a7179bf444b122acfebb50f6ffea5c1c2
[ "Apache-2.0" ]
null
null
null
firstpython.py
Renatoirp/CloudCourse
1edd614a7179bf444b122acfebb50f6ffea5c1c2
[ "Apache-2.0" ]
null
null
null
# Display output print("New python file!") print("Add a new print line.")
24.333333
30
0.712329
12
73
4.333333
0.75
0
0
0
0
0
0
0
0
0
0
0
0.136986
73
3
30
24.333333
0.825397
0.191781
0
0
0
0
0.637931
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
999a70b638ef43d6635227758b0cf57cc97a50c7
152
py
Python
src/nostradamus/utils/__init__.py
Orlogskapten/tsNostradamus
707cbc23fac3e0f92875d89550046e5c3b7b17d2
[ "MIT" ]
3
2020-07-06T10:58:40.000Z
2020-07-23T21:39:51.000Z
src/nostradamus/utils/__init__.py
wenceslas-sanchez/tsNostradamus
707cbc23fac3e0f92875d89550046e5c3b7b17d2
[ "MIT" ]
null
null
null
src/nostradamus/utils/__init__.py
wenceslas-sanchez/tsNostradamus
707cbc23fac3e0f92875d89550046e5c3b7b17d2
[ "MIT" ]
null
null
null
from .error import exception_type, check_method_lauched, check_is_int, \ check_is_in, check_key_is_in from .normal_hist import compare_hist_to_norm
38
72
0.842105
26
152
4.384615
0.653846
0.122807
0
0
0
0
0
0
0
0
0
0
0.111842
152
4
73
38
0.844444
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
510be31bb9c422b20d34df7cba9b6a88cf0c6ddf
235
py
Python
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
1
2015-05-31T10:42:36.000Z
2015-11-03T17:52:06.000Z
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
from userena.forms import EditProfileForm from userena import views as userena_views class CustomEditProfileForm(userena_views.EditProfileForm): class Meta(EditProfileForm.Meta): exclude = EditProfileForm.Meta.exclude + ['privacy']
39.166667
59
0.834043
26
235
7.461538
0.461538
0.113402
0.268041
0
0
0
0
0
0
0
0
0
0.093617
235
6
60
39.166667
0.910798
0
0
0
0
0
0.029661
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
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
513b7781461e774c4edea5cc00a442a4bd33ae7d
51
py
Python
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
from gym_voilier.envs.voilier_env import VoilierEnv
51
51
0.901961
8
51
5.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.058824
51
1
51
51
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5ab37c9f2cc9d5f92cea84f7411a66b98892ba55
334
py
Python
pygoogletranslation/urls.py
sha-cmd/Translator
8f01b04c90782feb474204c738cd1b9dbe8fe853
[ "MIT", "Unlicense" ]
null
null
null
pygoogletranslation/urls.py
sha-cmd/Translator
8f01b04c90782feb474204c738cd1b9dbe8fe853
[ "MIT", "Unlicense" ]
null
null
null
pygoogletranslation/urls.py
sha-cmd/Translator
8f01b04c90782feb474204c738cd1b9dbe8fe853
[ "MIT", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Predefined URLs used to make google translate requests. """ BASE = 'https://translate.google.com' TOKEN = 'https://translate.google.com/translate_a/element.js' TRANSLATE = 'https://translate.googleapis.com/translate_a/' TRANSLATEURL = 'https://translate.google.com/_/TranslateWebserverUi/data/batchexecute'
41.75
86
0.751497
40
334
6.2
0.575
0.225806
0.241935
0.278226
0
0
0
0
0
0
0
0.003247
0.077844
334
8
86
41.75
0.801948
0.233533
0
0
0
0
0.7751
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5ab8816bb76e60e81fc3c314b0b1f78ca16670ca
64
py
Python
models/__init__.py
vrdelc/deepmask-pytorch
4432aa06ef43fe845230fd539dcbad27177c37d4
[ "MIT" ]
233
2019-02-20T16:40:02.000Z
2022-01-24T07:08:28.000Z
models/__init__.py
vrdelc/deepmask-pytorch
4432aa06ef43fe845230fd539dcbad27177c37d4
[ "MIT" ]
10
2019-03-19T06:33:00.000Z
2021-02-11T02:49:07.000Z
models/__init__.py
vrdelc/deepmask-pytorch
4432aa06ef43fe845230fd539dcbad27177c37d4
[ "MIT" ]
62
2019-02-21T02:27:56.000Z
2021-11-16T02:37:41.000Z
from .DeepMask import DeepMask from .SharpMask import SharpMask
21.333333
32
0.84375
8
64
6.75
0.5
0
0
0
0
0
0
0
0
0
0
0
0.125
64
2
33
32
0.964286
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
5ab8ac9f9305d1dcc1a98fb23d25074ad1e3b140
37
py
Python
homeassistant/components/systemmonitor/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/systemmonitor/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/systemmonitor/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The systemmonitor integration."""
18.5
36
0.72973
3
37
9
1
0
0
0
0
0
0
0
0
0
0
0
0.081081
37
1
37
37
0.794118
0.810811
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
5ac936989b55dd5518ef35edf3a26894eace0277
157
py
Python
NRPG-DataManager.py
oliverfaustino/NRPG-DataManager
71064cb79be304f712aabcceebd6647121d2cb6c
[ "MIT" ]
null
null
null
NRPG-DataManager.py
oliverfaustino/NRPG-DataManager
71064cb79be304f712aabcceebd6647121d2cb6c
[ "MIT" ]
null
null
null
NRPG-DataManager.py
oliverfaustino/NRPG-DataManager
71064cb79be304f712aabcceebd6647121d2cb6c
[ "MIT" ]
null
null
null
from modulos.query import * from modulos.splash_screen import * if __name__ == '__main__': splash_screen(segundos = 2) while True: query()
17.444444
35
0.675159
19
157
5.052632
0.684211
0.229167
0
0
0
0
0
0
0
0
0
0.008264
0.229299
157
8
36
19.625
0.785124
0
0
0
0
0
0.050955
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
5ad80dcae0e4a2b3ab268f2939266c44cfa02c66
52
py
Python
tests/test_placeholder.py
yhay81/socialname
1907947014d3ba8e518be1374f24c44b89854e29
[ "MIT" ]
null
null
null
tests/test_placeholder.py
yhay81/socialname
1907947014d3ba8e518be1374f24c44b89854e29
[ "MIT" ]
7
2021-01-23T11:18:00.000Z
2022-03-12T21:43:13.000Z
tests/test_placeholder.py
yhay81/socialname
1907947014d3ba8e518be1374f24c44b89854e29
[ "MIT" ]
null
null
null
def test_sample() -> None: assert True # nosec
17.333333
26
0.634615
7
52
4.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.25
52
2
27
26
0.820513
0.096154
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
852cff807d09b429ab0d23969412105f94b87e2b
89
py
Python
citrination_client/util/quote_finder.py
matSciMalcolm/python-citrination-client
a59a2ddd49b3a4323a3393ce13c81172c9b1b645
[ "Apache-2.0" ]
20
2016-06-15T18:40:50.000Z
2022-03-21T11:59:13.000Z
citrination_client/util/quote_finder.py
matSciMalcolm/python-citrination-client
a59a2ddd49b3a4323a3393ce13c81172c9b1b645
[ "Apache-2.0" ]
91
2015-12-23T18:13:43.000Z
2020-07-21T21:33:13.000Z
citrination_client/util/quote_finder.py
matSciMalcolm/python-citrination-client
a59a2ddd49b3a4323a3393ce13c81172c9b1b645
[ "Apache-2.0" ]
18
2016-07-19T15:33:18.000Z
2022-03-02T19:42:24.000Z
try: from urllib.parse import quote except ImportError: from urllib import quote
17.8
34
0.752809
12
89
5.583333
0.666667
0.298507
0
0
0
0
0
0
0
0
0
0
0.213483
89
4
35
22.25
0.957143
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
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
51830277eec8fa5abb205846898e8caf0f167a74
3,651
py
Python
tests/test_status.py
Nulifier/hp-status
a97132d9c9e037ceb601a506c2742d3dd8610f9b
[ "MIT" ]
null
null
null
tests/test_status.py
Nulifier/hp-status
a97132d9c9e037ceb601a506c2742d3dd8610f9b
[ "MIT" ]
null
null
null
tests/test_status.py
Nulifier/hp-status
a97132d9c9e037ceb601a506c2742d3dd8610f9b
[ "MIT" ]
null
null
null
import unittest from unittest import mock from tests import mocks from hpstatus import status class SystemTest(unittest.TestCase): @mock.patch("hpstatus.status._get_system_feature", side_effect=mocks._get_system_feature) def test_get_fans(self, mock_get_system_feature): data = status.get_fans() self.assertIsInstance(data, list) self.assertNotEqual(len(data), 0) row = data[0] self.assertIsInstance(row, dict) self.assertIn("id", row) self.assertIn("location", row) self.assertIn("present", row) self.assertIn("speed", row) self.assertIn("percentage", row) self.assertIn("redundant", row) self.assertIn("partner", row) self.assertIn("hot_pluggable", row) @mock.patch("hpstatus.status._get_system_feature", side_effect=mocks._get_system_feature) def test_get_powermeter(self, mock_get_system_feature): data = status.get_powermeter() self.assertIsInstance(data, list) self.assertNotEqual(len(data), 0) row = data[0] self.assertIsInstance(row, dict) self.assertIn("id", row) self.assertIn("reading", row) @mock.patch("hpstatus.status._get_system_feature", side_effect=mocks._get_system_feature) def test_get_powersupply(self, mock_get_system_feature): data = status.get_powersupply() self.assertIsInstance(data, list) self.assertNotEqual(len(data), 0) row = data[0] self.assertIsInstance(row, dict) self.assertIn("id", row) self.assertIn("present", row) self.assertIn("redundant", row) self.assertIn("condition", row) self.assertIn("hotplug", row) self.assertIn("reading", row) @mock.patch("hpstatus.status._get_system_feature", side_effect=mocks._get_system_feature) def test_get_temp(self, mock_get_system_feature): data = status.get_temp() self.assertIsInstance(data, list) self.assertNotEqual(len(data), 0) row = data[0] self.assertIsInstance(row, dict) self.assertIn("id", row) self.assertIn("location", row) self.assertIn("temp", row) self.assertIn("threshold", row) class StorageTest(unittest.TestCase): @mock.patch("hpstatus.status._get_storage_controllers", side_effect=mocks._get_storage_controllers) def test_get_storage_controllers(self, mock_get_storage_controllers): data = status.get_storage_controllers() self.assertIsInstance(data, list) self.assertNotEqual(len(data), 0) row = data[0] self.assertIsInstance(row, dict) self.assertIn("id", row) self.assertIn("model", row) self.assertIn("status", row) self.assertIn("cache", row) self.assertIn("battery", row) @mock.patch("hpstatus.status._get_storage_drives", side_effect=mocks._get_storage_drives) def test_get_storage_drives(self, mock_get_storage_drives): data = status.get_storage_drives(1) self.assertIsInstance(data, list) self.assertNotEqual(len(data), 0) row = data[0] self.assertIsInstance(row, dict) self.assertIn("location", row) self.assertIn("port", row) self.assertIn("box", row) self.assertIn("bay", row) self.assertIn("size", row) self.assertIn("status", row) @mock.patch("hpstatus.status._get_storage_drives_detail", side_effect=mocks._get_storage_drives_detail) def test_get_storage_drives_detail(self, mock_get_storage_drives_detail): data = status.get_storage_drives_detail(1) self.assertIsInstance(data, list) self.assertNotEqual(len(data), 0) row = data[0] self.assertIsInstance(row, dict) self.assertIn("location", row) self.assertIn("port", row) self.assertIn("box", row) self.assertIn("bay", row) self.assertIn("size", row) self.assertIn("status", row) self.assertIn("serial", row) self.assertIn("temp", row) self.assertIn("max_temp", row) if __name__ == "__main__": unittest.main()
34.121495
104
0.751301
496
3,651
5.304435
0.129032
0.18244
0.188141
0.061193
0.81984
0.750285
0.724059
0.622957
0.535918
0.535918
0
0.004922
0.109559
3,651
106
105
34.443396
0.804368
0
0
0.618557
0
0
0.136401
0.070392
0
0
0
0
0.628866
1
0.072165
false
0
0.041237
0
0.134021
0
0
0
0
null
0
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
5199f14fdf88726ac3b8eabf6653de80b8972703
103
py
Python
rcnn/dataset/__init__.py
qilei123/MASK_4_RETINA2
c02a516f37877c52abc6df9d69bb2ac34ab85950
[ "Apache-2.0" ]
null
null
null
rcnn/dataset/__init__.py
qilei123/MASK_4_RETINA2
c02a516f37877c52abc6df9d69bb2ac34ab85950
[ "Apache-2.0" ]
null
null
null
rcnn/dataset/__init__.py
qilei123/MASK_4_RETINA2
c02a516f37877c52abc6df9d69bb2ac34ab85950
[ "Apache-2.0" ]
null
null
null
from imdb import IMDB from pascal_voc import PascalVOC from coco import coco from retina import retina
20.6
32
0.84466
17
103
5.058824
0.470588
0
0
0
0
0
0
0
0
0
0
0
0.15534
103
4
33
25.75
0.988506
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
51c73412f6b848915731c179d918c5aa37f2bde0
261
py
Python
python/destryseuler/tests/test_p1.py
destrys/euler
7afd8fba023f29c42d11cc4725cb99e49b62b014
[ "MIT" ]
null
null
null
python/destryseuler/tests/test_p1.py
destrys/euler
7afd8fba023f29c42d11cc4725cb99e49b62b014
[ "MIT" ]
5
2020-03-24T15:30:22.000Z
2021-06-01T21:51:31.000Z
python/destryseuler/tests/test_p1.py
destrys/euler
7afd8fba023f29c42d11cc4725cb99e49b62b014
[ "MIT" ]
null
null
null
from destryseuler import p1 def test_p1_answer(): assert p1.answer(10) == 23 def test_brute(): assert p1.natural_3and5_brute(10) == 23 def test_lambda(): assert p1.natural_3and5_lambda(10) == 23 assert p1.natural_3and5_lambda(1000) == 233168
21.75
50
0.716475
40
261
4.425
0.4
0.180791
0.254237
0.338983
0.293785
0
0
0
0
0
0
0.157407
0.172414
261
11
51
23.727273
0.662037
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0.375
true
0
0.125
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
5
51c9d30479808975f17a8356968ba3ffdf2e3a45
278
py
Python
src/onegov/form/filters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/filters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/filters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.utils import yubikey_public_id def as_float(value): return value and float(value) or 0.0 def strip_whitespace(value): return value and value.strip(' \r\n') or None def yubikey_identifier(value): return value and yubikey_public_id(value) or ''
19.857143
51
0.741007
45
278
4.422222
0.488889
0.165829
0.241206
0.286432
0
0
0
0
0
0
0
0.008658
0.169065
278
13
52
21.384615
0.852814
0
0
0
0
0
0.017986
0
0
0
0
0
0
1
0.428571
false
0
0.142857
0.428571
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
51d20805035ef6654add7f645a56e481da2c4877
96
py
Python
venv/lib/python3.8/site-packages/clikit/io/output_stream/__init__.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/clikit/io/output_stream/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/clikit/io/output_stream/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/64/da/97/267e8a2c0079f193f0db8c07cf48ce560bdfa25b876ba5b0c0a062bc16
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.395833
0
96
1
96
96
0.5
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
51dc8e18a95d43bdff9738868787ec57f30ae57c
2,569
py
Python
tests/unit/dataactvalidator/test_fabs39_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
1
2018-10-29T12:54:44.000Z
2018-10-29T12:54:44.000Z
tests/unit/dataactvalidator/test_fabs39_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_fabs39_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
from tests.unit.dataactcore.factories.staging import DetachedAwardFinancialAssistanceFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'fabs39_detached_award_financial_assistance_2' def test_column_headers(database): expected_subset = {"row_number", "place_of_performance_code", "place_of_perform_country_c"} actual = set(query_columns(_FILE, database)) assert expected_subset == actual def test_success(database): """ PrimaryPlaceOfPerformanceCode must be 00FORGN when PrimaryPlaceofPerformanceCountryCode is not USA, not 00FORGN otherwise. """ det_award_1 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="00FORGN", place_of_perform_country_c="UKR") det_award_2 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="00FoRGN", place_of_perform_country_c="uKr") det_award_3 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="ny**987", place_of_perform_country_c="USA") det_award_4 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="NY**987", place_of_perform_country_c="UsA") errors = number_of_errors(_FILE, database, models=[det_award_1, det_award_2, det_award_3, det_award_4]) assert errors == 0 def test_failure(database): """ Test failure for PrimaryPlaceOfPerformanceCode must be 00FORGN when PrimaryPlaceofPerformanceCountryCode is not USA, not 00FORGN otherwise. """ det_award_1 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="00FORGN", place_of_perform_country_c="USA") det_award_2 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="00FoRGN", place_of_perform_country_c="usA") det_award_3 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="ny**987", place_of_perform_country_c="UKR") det_award_4 = DetachedAwardFinancialAssistanceFactory(place_of_performance_code="NY**987", place_of_perform_country_c="ukR") errors = number_of_errors(_FILE, database, models=[det_award_1, det_award_2, det_award_3, det_award_4]) assert errors == 4
59.744186
112
0.671467
257
2,569
6.249027
0.237354
0.078456
0.100872
0.123288
0.759651
0.745953
0.745953
0.745953
0.745953
0.745953
0
0.025871
0.262748
2,569
42
113
61.166667
0.82207
0.102374
0
0.482759
0
0
0.081283
0.04174
0
0
0
0
0.103448
1
0.103448
false
0
0.068966
0
0.172414
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
cf9753a080d8359212476544e2f2019880886fa3
1,451
py
Python
children/tests/snapshots/snap_test_notifications.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
null
null
null
children/tests/snapshots/snap_test_notifications.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
157
2019-10-08T07:58:59.000Z
2022-03-20T23:00:17.000Z
children/tests/snapshots/snap_test_notifications.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
3
2019-10-07T12:06:26.000Z
2022-01-25T14:03:14.000Z
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots["test_signup_notification 1"] = [ """kukkuu@example.com|['michellewalker@example.net']|SIGNUP-notifikaation aihe| SIGNUP-notifikaation sisältö tekstimuodossa. Lapset: [<Child: Matti Mainio (2020-01-01)>, <Child: Jussi Juonio (2020-02-02)>] Huoltaja: Gulle Guardian (michellewalker@example.net)""" ] snapshots["test_signup_notification_language[EN] 1"] = [ """kukkuu@example.com|['michellewalker@example.net']|SIGNUP notification subject| SIGNUP notification body text. Children: [<Child: Matti Mainio (2020-01-01)>, <Child: Jussi Juonio (2020-02-02)>] Guardian: Gulle Guardian (michellewalker@example.net)""" ] snapshots["test_signup_notification_language[FI] 1"] = [ """kukkuu@example.com|['michellewalker@example.net']|SIGNUP-notifikaation aihe| SIGNUP-notifikaation sisältö tekstimuodossa. Lapset: [<Child: Matti Mainio (2020-01-01)>, <Child: Jussi Juonio (2020-02-02)>] Huoltaja: Gulle Guardian (michellewalker@example.net)""" ] snapshots["test_signup_notification_language[SV] 1"] = [ """kukkuu@example.com|['michellewalker@example.net']|SIGNUP-notifikaation aihe| SIGNUP-notifikaation sisältö tekstimuodossa. Lapset: [<Child: Matti Mainio (2020-01-01)>, <Child: Jussi Juonio (2020-02-02)>] Huoltaja: Gulle Guardian (michellewalker@example.net)""" ]
40.305556
85
0.751206
174
1,451
6.172414
0.281609
0.156425
0.178771
0.115456
0.798883
0.798883
0.798883
0.798883
0.755121
0.755121
0
0.054033
0.094418
1,451
35
86
41.457143
0.763318
0.042729
0
0
0
0
0.41092
0.387931
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
cfe5ffbaebbe5bd0914a0d5d09fc0b8e3446928a
140
py
Python
extra_foam/database/__init__.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
extra_foam/database/__init__.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
extra_foam/database/__init__.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
from .metadata import Metadata, MetaProxy from .mondata import MonProxy from .data_source import DataTransformer, SourceCatalog, SourceItem
35
67
0.85
16
140
7.375
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.107143
140
3
68
46.666667
0.944
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
cfe9564e19eb5444e93954e93924e5e1836deed2
139
py
Python
national_id/admin.py
AhmedElmougy/national-id-validator
27d81cd6e3ef556074c0fd5097db0537fd2114c2
[ "BSD-3-Clause" ]
1
2021-06-24T08:31:44.000Z
2021-06-24T08:31:44.000Z
national_id/admin.py
AhmedElmougy/national-id-validator
27d81cd6e3ef556074c0fd5097db0537fd2114c2
[ "BSD-3-Clause" ]
null
null
null
national_id/admin.py
AhmedElmougy/national-id-validator
27d81cd6e3ef556074c0fd5097db0537fd2114c2
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from national_id.models import NationalId # Register your models here. admin.site.register(NationalId)
17.375
41
0.820144
19
139
5.947368
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.122302
139
7
42
19.857143
0.92623
0.18705
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
cfebdc0f6cd106411e690aa30a03ad7d8289dd06
251
py
Python
pynovice/gaode_map/__init__.py
wqwangchn/novice
d52190a9cd5045726e49aff8610b718636c304c7
[ "MIT" ]
2
2020-06-28T08:30:47.000Z
2020-11-04T07:55:42.000Z
pynovice/gaode_map/__init__.py
wqwangchn/novice
d52190a9cd5045726e49aff8610b718636c304c7
[ "MIT" ]
8
2020-11-13T18:56:02.000Z
2022-02-10T03:16:52.000Z
pynovice/gaode_map/__init__.py
wqwangchn/novice
d52190a9cd5045726e49aff8610b718636c304c7
[ "MIT" ]
2
2020-09-17T00:12:36.000Z
2020-11-04T07:55:55.000Z
# coding=utf-8 # /usr/bin/env python ''' Author: wenqiangw Email: wenqiangw@opera.com Date: 2020-07-28 15:07 Desc: 数据分布画图 ''' from .trajectory_playback import Trajectory as Trajectory_his from .trajectory_playback_v2 import Trajectory as Trajectory
19.307692
61
0.784861
37
251
5.216216
0.702703
0.145078
0.227979
0.290155
0
0
0
0
0
0
0
0.063348
0.119522
251
13
62
19.307692
0.809955
0.454183
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cff74728899c8059dabaf8a45e44b747f83f7f39
23
py
Python
classifier/__init__.py
django-stars/django-classifier
d2f207c80b47f755be2e23fc472a838e440088d4
[ "BSD-3-Clause" ]
26
2016-09-01T05:11:57.000Z
2021-09-01T03:38:54.000Z
classifier/__init__.py
django-stars/django-classifier
d2f207c80b47f755be2e23fc472a838e440088d4
[ "BSD-3-Clause" ]
2
2017-04-01T08:48:58.000Z
2018-05-02T13:43:16.000Z
classifier/__init__.py
django-stars/django-classifier
d2f207c80b47f755be2e23fc472a838e440088d4
[ "BSD-3-Clause" ]
2
2017-04-01T08:45:12.000Z
2018-05-01T16:40:17.000Z
VERSION = (0, 2, 2, 1)
11.5
22
0.478261
5
23
2.2
0.8
0
0
0
0
0
0
0
0
0
0
0.235294
0.26087
23
1
23
23
0.411765
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5c558b5f5e8456363bff492630d64b29d53b48cb
55
py
Python
django_fastapi/test/apply_rds/Package/Connector/__init__.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
null
null
null
django_fastapi/test/apply_rds/Package/Connector/__init__.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
null
null
null
django_fastapi/test/apply_rds/Package/Connector/__init__.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
1
2021-11-26T08:22:57.000Z
2021-11-26T08:22:57.000Z
from .Connector import Connector from .Info import Info
27.5
32
0.836364
8
55
5.75
0.5
0
0
0
0
0
0
0
0
0
0
0
0.127273
55
2
33
27.5
0.958333
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
5c59b8fe0c256e8b00d27cb87aafc78c144f7a64
10,263
py
Python
tests/test_main.py
AndreLouisCaron/runwith
cfa2b6ae67d73ec5b24f1502a37060d838276e8b
[ "MIT" ]
null
null
null
tests/test_main.py
AndreLouisCaron/runwith
cfa2b6ae67d73ec5b24f1502a37060d838276e8b
[ "MIT" ]
null
null
null
tests/test_main.py
AndreLouisCaron/runwith
cfa2b6ae67d73ec5b24f1502a37060d838276e8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import ( print_function, unicode_literals, ) import hypothesis import hypothesis.strategies import mock import os.path import pytest from datetime import timedelta from hypothesis_regex import regex from runwith import ( main, __main__, timespan, SIGKILL, ) try: from shlex import quote except ImportError: from pipes import quote def unused(*args): pass # Must be imported to be tracked by coverage. unused(__main__) SECOND = 1 MINUTE = 60 * SECOND HOUR = 60 * MINUTE DAY = 24 * HOUR WEEK = 7 * DAY def seconds_to_timespan(x): y = '' weeks, x = divmod(x, WEEK) if weeks: y += '%dw' % weeks days, x = divmod(x, DAY) if days: y += '%dd' % days hours, x = divmod(x, HOUR) if hours: y += '%dh' % hours minutes, x = divmod(x, MINUTE) if minutes: y += '%dm' % minutes seconds, x = divmod(x, SECOND) if seconds: y += '%ds' % seconds if x > 0: y += '%dms' % (1000.0 * x) return y @pytest.mark.parametrize('value,expected', [ ('1w', timedelta(weeks=1)), ('7d', timedelta(days=7)), ('2h', timedelta(hours=2)), ('.1m', timedelta(minutes=.1)), ('.7s', timedelta(seconds=.7)), ('5m30s', timedelta(minutes=5, seconds=30)), ]) def test_timespan(value, expected): assert timespan(value) == expected @pytest.mark.parametrize('value', [ '1', '123abc', ]) def test_timespan_invalid(value): with pytest.raises(ValueError) as exc: print(timespan(value)) assert str(exc.value) == ('Invalid time span "%s".' % value) def test_run_without_args(): with mock.patch('subprocess.Popen') as popen: with pytest.raises(SystemExit) as exc: print(main([])) assert exc.value.code == 2 popen.assert_not_called() @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), ) def test_implicit_argv(status, command): with mock.patch('sys.argv', ['runwith', '--'] + command): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode with mock.patch('subprocess.Popen') as popen: popen.side_effect = [process] assert main() == status popen.assert_called_once_with(command) @hypothesis.given( command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), ) def test_spawn_failure(command): with mock.patch('subprocess.Popen') as popen: popen.side_effect = OSError('unknown program') with pytest.raises(SystemExit) as exc: print(main(['--'] + command)) assert exc.value.code == 2 popen.assert_called_once_with(command) @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), ) def test_forward_status(status, command): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode with mock.patch('subprocess.Popen') as popen: popen.side_effect = [process] assert main(['--'] + command) == status popen.assert_called_once_with(command) @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), ) def test_redirect_stdin(tempcwd, status, command): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode with open('foo.txt', 'wb') as stream: stream.write(b'FOO') with mock.patch('subprocess.Popen') as popen: popen.side_effect = [process] assert main(['-i', 'foo.txt', '--'] + command) == status popen.assert_called_once_with(command, stdin=mock.ANY) @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), ) def test_redirect_stdout(tempcwd, status, command): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode with mock.patch('subprocess.Popen') as popen: popen.side_effect = [process] assert main(['-o', 'foo.txt', '--'] + command) == status popen.assert_called_once_with(command, stdout=mock.ANY) assert os.path.exists('foo.txt') @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), ) def test_redirect_stderr(tempcwd, status, command): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode with mock.patch('subprocess.Popen') as popen: popen.side_effect = [process] assert main(['-e', 'foo.txt', '--'] + command) == status popen.assert_called_once_with(command, stderr=mock.ANY) assert os.path.exists('foo.txt') @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), workdir=regex(r'\w+').map(quote), ) def test_change_working_directory(tempcwd, status, command, workdir): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode with mock.patch('subprocess.Popen') as popen: popen.side_effect = [process] assert main(['-w', workdir, '--'] + command) == status popen.assert_called_once_with(command, cwd=workdir) @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), timebox=hypothesis.strategies.floats( min_value=0.001, # 1ms max_value=31 * DAY, ).map(seconds_to_timespan), ) def test_respect_timebox(status, command, timebox): process = mock.MagicMock() process.returncode = status process.wait.side_effect = [process.returncode] with mock.patch('subprocess.Popen') as popen: popen.side_effect = [process] assert main(['-t', timebox, '--'] + command) == status popen.assert_called_once_with(command) process.wait.assert_called_once_with() process.send_signal.assert_not_called() process.terminate.assert_not_called() @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), timebox=hypothesis.strategies.floats( min_value=0.001, # 1ms max_value=31 * DAY, ).map(seconds_to_timespan), ) def test_exceed_timebox(status, command, timebox): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode thread = mock.MagicMock() thread.is_alive.side_effect = [True, False] thread.join.side_effect = [None, None] with mock.patch('threading.Thread') as T: T.side_effect = [thread] with mock.patch('subprocess.Popen') as P: P.side_effect = [process] assert main(['-t', timebox, '-g', '2s', '--'] + command) == status P.assert_called_once_with(command) T.assert_called_once() process.send_signal.assert_called_once_with(SIGKILL) process.terminate.assert_not_called() @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), timebox=hypothesis.strategies.floats( min_value=0.001, # 1ms max_value=31 * DAY, ).map(seconds_to_timespan), ) def test_exceed_timebox_no_grace_time(status, command, timebox): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode thread = mock.MagicMock() thread.is_alive.side_effect = [True, True] thread.join.side_effect = [None, None, None] with mock.patch('threading.Thread') as T: T.side_effect = [thread] with mock.patch('subprocess.Popen') as P: P.side_effect = [process] assert main(['-t', timebox, '--'] + command) == status P.assert_called_once_with(command) T.assert_called_once() process.send_signal.assert_not_called() process.terminate.assert_called_once() @hypothesis.given( status=hypothesis.strategies.integers(min_value=-128, max_value=127), command=hypothesis.strategies.lists( elements=hypothesis.strategies.text(min_size=1), min_size=1, ), timebox=hypothesis.strategies.floats( min_value=0.001, # 1ms max_value=31 * DAY, ).map(seconds_to_timespan), ) def test_exceed_timebox_and_grace_time(status, command, timebox): process = mock.MagicMock() process.returncode = status process.wait.return_value = process.returncode thread = mock.MagicMock() thread.is_alive.side_effect = [True, True] thread.join.side_effect = [None, None, None] with mock.patch('threading.Thread') as T: T.side_effect = [thread] with mock.patch('subprocess.Popen') as P: P.side_effect = [process] assert main(['-t', timebox, '-g', '2s', '--'] + command) == status P.assert_called_once_with(command) T.assert_called_once() process.send_signal.assert_called_once_with(SIGKILL) process.terminate.assert_called_once()
31.194529
78
0.659164
1,247
10,263
5.257418
0.144346
0.112874
0.026846
0.042709
0.79637
0.793319
0.790268
0.778371
0.753356
0.731544
0
0.018409
0.211342
10,263
328
79
31.289634
0.791574
0.007892
0
0.614035
0
0
0.044324
0
0
0
0
0
0.140351
1
0.05614
false
0.003509
0.042105
0
0.101754
0.014035
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
5c62c7542b38a5760c7218089280959bf24857b6
119
py
Python
enthought/contexts/adapter/unit_conversion_adapter.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/contexts/adapter/unit_conversion_adapter.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/contexts/adapter/unit_conversion_adapter.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from codetools.contexts.adapter.unit_conversion_adapter import *
29.75
64
0.865546
15
119
6.4
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.092437
119
3
65
39.666667
0.888889
0.10084
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
5c7c9a535fbd18754102262dd39390f40bebc58c
89
py
Python
sorl/thumbnail_standalone/__init__.py
kreopt/sorl-thumbnail
cbc02e642c45e6206234bcfb0562c243ecffacf7
[ "BSD-3-Clause" ]
null
null
null
sorl/thumbnail_standalone/__init__.py
kreopt/sorl-thumbnail
cbc02e642c45e6206234bcfb0562c243ecffacf7
[ "BSD-3-Clause" ]
null
null
null
sorl/thumbnail_standalone/__init__.py
kreopt/sorl-thumbnail
cbc02e642c45e6206234bcfb0562c243ecffacf7
[ "BSD-3-Clause" ]
null
null
null
from sorl.thumbnail_standalone.base import ThumbnailBackend from sorl import __version__
29.666667
59
0.88764
11
89
6.727273
0.727273
0.216216
0
0
0
0
0
0
0
0
0
0
0.089888
89
2
60
44.5
0.91358
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
5cb56963b7976f720d715207e1996f45b2421639
149
py
Python
shelf/link_title.py
not-nexus/shelf
ea59703082402ad3b6454482f0487418295fbd19
[ "MIT" ]
4
2016-11-07T13:02:18.000Z
2019-09-03T02:04:05.000Z
shelf/link_title.py
not-nexus/shelf
ea59703082402ad3b6454482f0487418295fbd19
[ "MIT" ]
21
2016-11-30T20:44:52.000Z
2017-05-02T15:38:56.000Z
shelf/link_title.py
not-nexus/shelf
ea59703082402ad3b6454482f0487418295fbd19
[ "MIT" ]
2
2017-01-24T14:36:04.000Z
2020-01-13T16:10:05.000Z
class LinkTitle(object): ARTIFACT_LIST = "artifact-list" ARTIFACT_ROOT = "artifact-root" ARTIFACT = "artifact" METADATA = "metadata"
24.833333
35
0.684564
15
149
6.666667
0.466667
0.24
0.4
0
0
0
0
0
0
0
0
0
0.201342
149
5
36
29.8
0.840336
0
0
0
0
0
0.281879
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
5cbd0d3f9fd7d3affecf3aeb1717980ce341da1d
12,141
py
Python
tests/unit/data/test_datamodule.py
pietrolesci/pytorch-energizer
31b23347967963cda704bda8b05f3e567368c9bb
[ "MIT" ]
null
null
null
tests/unit/data/test_datamodule.py
pietrolesci/pytorch-energizer
31b23347967963cda704bda8b05f3e567368c9bb
[ "MIT" ]
null
null
null
tests/unit/data/test_datamodule.py
pietrolesci/pytorch-energizer
31b23347967963cda704bda8b05f3e567368c9bb
[ "MIT" ]
null
null
null
import pytest from pytorch_lightning.utilities.exceptions import MisconfigurationException from torch.utils.data.sampler import SequentialSampler from energizer.data import ActiveDataModule from energizer.data.datamodule import FixedLengthSampler @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_len(dataset_arg): """Test that measures of length are consistent.""" # no instances ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) ads.prepare_data() # useless: just pass but for coverage ads.setup() # useless: just pass but for coverage assert ads.total_labelled_size == ads.train_size + ads.val_size assert len(ads.train_dataset) == ads.train_size == ads.val_size == ads.total_labelled_size == 0 assert len(dataset_arg) == len(ads.pool_dataset) == ads.pool_size assert len(dataset_arg) == ads.total_labelled_size + ads.pool_size # one instance in the train dataset ads.label(0) assert ads.total_labelled_size == ads.train_size + ads.val_size assert len(ads.train_dataset) == ads.train_size == ads.total_labelled_size == 1 assert ads.val_dataset is None assert len(dataset_arg) - ads.total_labelled_size == len(ads.pool_dataset) == ads.pool_size assert len(dataset_arg) == ads.total_labelled_size + ads.pool_size # one instance in the train dataset and one in the val dataset ads.val_split = 0.5 # hack ads.label([0, 1]) assert ads.total_labelled_size == ads.train_size + ads.val_size assert len(ads.train_dataset) == ads.train_size == 2 assert len(ads.val_dataset) == ads.val_size == 1 assert len(dataset_arg) - ads.total_labelled_size == len(ads.pool_dataset) == ads.pool_size assert len(dataset_arg) == ads.total_labelled_size + ads.pool_size @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_indexing(dataset_arg): """Test that ActiveDataModule is not indexable directly.""" ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) with pytest.raises(TypeError): assert ads[0] @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_labelling(dataset_arg): """Test that labelling changes all the required states.""" ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) len_dataset_arg = len(dataset_arg) assert ads.last_labelling_step == 0 assert ads.train_size == 0 assert ads.pool_size == len_dataset_arg assert ads.has_labelled_data is False assert ads.has_unlabelled_data is True assert ads.train_dataset.indices == [] for i in range(1, len_dataset_arg + 1): ads.label(0) # always label the first instance in the pool assert ads.last_labelling_step == i assert ads.train_size == i assert ads.pool_size == len_dataset_arg - ads.train_size assert ads.has_labelled_data is True if i < len_dataset_arg: assert ads.has_unlabelled_data is True else: assert ads.has_unlabelled_data is False assert ads.train_dataset.indices == list(range(i)) assert ads.last_labelling_step == len_dataset_arg assert ads.train_size == len_dataset_arg assert ads.pool_size == len_dataset_arg - ads.train_size assert ads.has_labelled_data is True assert ads.has_unlabelled_data is False assert ads.train_dataset.indices == list(range(len_dataset_arg)) @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_labelling_multiple_indices(dataset_arg): """Test labelling multiple instances at once.""" ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) pool_ids = [0, 8, 7] # they are the first to be labelled so correspond to ids in oracle ads.label(pool_ids) assert ads.train_dataset.indices == sorted(pool_ids) @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_labelling_duplicates(dataset_arg): """Test that labelling duplicate indices results in a single instance to be labelled.""" # check behaviour when batch of indices contains ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) pool_ids = [0, 0] # they are the first to be labelled so correspond to ids in oracle ads.label(pool_ids) assert ads.train_size == 1 # check behaviour when batch of indices contains ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, val_split=0.5) pool_ids = [0, 0, 1] # they are the first to be labelled so correspond to ids in oracle ads.label(pool_ids) assert ads.train_size == ads.val_size == 1 @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_labelling_val_split(dataset_arg): """Test that labelling with val_split works.""" # check split works ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, val_split=0.5) pool_ids = [0, 1] # they are the first to be labelled so correspond to ids in oracle ads.label(pool_ids) assert ads.train_size == ads.val_size == 1 # check that val_split receives at least 1 instance when there are two labelled instances # and the probability is too small that it randomly would receive just one ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, val_split=0.0001) pool_ids = [0, 1] # they are the first to be labelled so correspond to ids in oracle ads.label(pool_ids) assert ads.train_size == ads.val_size == 1 # check behaviour when there is only one instance (bonus: using a duplicate) ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, val_split=0.99) pool_ids = [0, 0] # they are the first to be labelled so correspond to ids in oracle ads.label(pool_ids) assert ads.train_size == 1 @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_reset_at_labelling_step(dataset_arg): """Test that resetting the labelling steps sets the correct states.""" ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) len_dataset_arg = len(dataset_arg) ads.label(0) # label first assert ads.last_labelling_step == 1 assert ads.train_size == 1 assert ads.pool_size == len_dataset_arg - ads.train_size assert ads.has_labelled_data is True assert ads.has_unlabelled_data is True assert ads.train_dataset.indices == [0] ads.label(list(range(len_dataset_arg - 1))) # label the rest assert ads.train_size == len_dataset_arg assert ads.pool_size == len_dataset_arg - ads.train_size assert ads.has_labelled_data is True assert ads.has_unlabelled_data is False assert ads.train_dataset.indices == list(range(len_dataset_arg)) ads.reset_at_labelling_step(1) # go back to when there was one instance assert ads.train_size == 1 assert ads.pool_size == len_dataset_arg - ads.train_size assert ads.has_labelled_data is True assert ads.has_unlabelled_data is True assert ads.train_dataset.indices == [0] ads.reset_at_labelling_step(0) # go back to when there was nothing labelled assert ads.last_labelling_step == 2 assert ads.train_size == 0 assert ads.pool_size == len_dataset_arg - ads.train_size assert ads.has_labelled_data is False assert ads.has_unlabelled_data is True assert ads.train_dataset.indices == [] ads.reset_at_labelling_step(ads.last_labelling_step) # reset to the last step assert ads.train_size == len_dataset_arg assert ads.pool_size == len_dataset_arg - ads.train_size assert ads.has_labelled_data is True assert ads.has_unlabelled_data is False assert ads.train_dataset.indices == list(range(len_dataset_arg)) with pytest.raises(ValueError): assert ads.reset_at_labelling_step(100) @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_sample_pool_indices(dataset_arg): ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) with pytest.raises(ValueError): assert ads.sample_pool_idx(-1) with pytest.raises(ValueError): assert ads.sample_pool_idx(0) with pytest.raises(ValueError): assert ads.sample_pool_idx(ads.pool_size + 1) assert len(ads.sample_pool_idx(ads.pool_size)) == ads.pool_size assert len(ads.sample_pool_idx(1)) == 1 @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_curriculum(dataset_arg): ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) for _ in range(5): ads.label(0) assert ads.curriculum_dataset().indices == list(range(5)) @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_initial_labelling(dataset_arg): ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) assert ads.train_size == 0 ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, initial_labels=[0]) assert ads.train_size == 1 ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, initial_labels=2) assert ads.train_size == 2 ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, initial_labels=2, val_split=0.5) assert ads.train_size == ads.val_size == 1 @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_dataloader_len(dataset_arg): for batch_size in range(1, len(dataset_arg) + 1): ads = ActiveDataModule( num_classes=2, train_dataset=dataset_arg, initial_labels=2, batch_size=batch_size, ) assert ads.train_dataloader().batch_size is None assert ads.train_dataloader().batch_sampler.batch_size == batch_size assert len(ads.train_dataloader().batch_sampler) == len(ads.train_dataloader()) # min_steps_per_epoch for shuffle in (True, False): ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, initial_labels=2, shuffle=shuffle) ads._min_steps_per_epoch = 1 assert len(ads.train_dataloader().batch_sampler) == len(ads.train_dataloader()) == 2 for _ in range(2): assert next(iter(ads.train_dataloader())) ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg, initial_labels=2, shuffle=shuffle) ads._min_steps_per_epoch = 10 assert len(ads.train_dataloader().batch_sampler) == len(ads.train_dataloader()) == 10 for _ in range(10): assert next(iter(ads.train_dataloader())) @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_sampler_type(dataset_arg): ads = ActiveDataModule( num_classes=2, train_dataset=dataset_arg, test_dataset=dataset_arg, predict_dataset=dataset_arg, val_dataset=dataset_arg, initial_labels=2, batch_size=1, ) assert isinstance(ads.train_dataloader().batch_sampler.sampler, FixedLengthSampler) assert isinstance(ads.pool_dataloader().batch_sampler.sampler, SequentialSampler) assert isinstance(ads.val_dataloader().batch_sampler.sampler, SequentialSampler) assert isinstance(ads.test_dataloader().batch_sampler.sampler, SequentialSampler) assert isinstance(ads.predict_dataloader().batch_sampler.sampler, SequentialSampler) @pytest.mark.parametrize("dataset_arg", ["mock_dataset", "mock_hf_dataset"], indirect=True) def test_raise_errors(dataset_arg): for i in (-0.5, 1.0): with pytest.raises(MisconfigurationException): ActiveDataModule(num_classes=2, train_dataset=dataset_arg, val_split=i) with pytest.raises(MisconfigurationException): ActiveDataModule(num_classes=2, train_dataset=dataset_arg, val_split=i, val_dataset=dataset_arg) with pytest.raises(RuntimeError): ads = ActiveDataModule(num_classes=2, train_dataset=dataset_arg) next(iter(ads.train_dataloader()))
43.206406
107
0.732889
1,748
12,141
4.828375
0.093822
0.097156
0.047749
0.073578
0.817062
0.738863
0.706043
0.697749
0.659242
0.631754
0
0.012018
0.170744
12,141
280
108
43.360714
0.826281
0.123878
0
0.55665
0
0
0.046705
0
0
0
0
0
0.44335
1
0.064039
false
0
0.024631
0
0.08867
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
7a33a1943f4be516367d61e93a16ed20c91bac15
100
py
Python
brain_training/programming_challenges/leetcode/easy/T58_Length_of_Last_Word.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
brain_training/programming_challenges/leetcode/easy/T58_Length_of_Last_Word.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
brain_training/programming_challenges/leetcode/easy/T58_Length_of_Last_Word.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
def lengthOfLastWord_(s): words = s.split() return 0 if len(words) == 0 else len(words[-1])
25
51
0.63
16
100
3.875
0.6875
0.258065
0
0
0
0
0
0
0
0
0
0.037975
0.21
100
3
52
33.333333
0.746835
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
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
7a4b1a9183a636b76d0da0668faad0f0e939fdff
25
py
Python
dataloaders/__init__.py
RishiTejaMadduri/pyramid-fuse
a8bad9adc2734572c87c5ee4c2a956aa2d04fb97
[ "MIT" ]
null
null
null
dataloaders/__init__.py
RishiTejaMadduri/pyramid-fuse
a8bad9adc2734572c87c5ee4c2a956aa2d04fb97
[ "MIT" ]
null
null
null
dataloaders/__init__.py
RishiTejaMadduri/pyramid-fuse
a8bad9adc2734572c87c5ee4c2a956aa2d04fb97
[ "MIT" ]
null
null
null
from .voc1 import VOC
5
21
0.68
4
25
4.25
1
0
0
0
0
0
0
0
0
0
0
0.055556
0.28
25
4
22
6.25
0.888889
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
7a58c9e4d6b79dfb6949d7b8df14eeeba0805cf6
7,493
py
Python
tests/unit/dataactvalidator/test_b9_award_financial.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
1
2018-10-29T12:54:44.000Z
2018-10-29T12:54:44.000Z
tests/unit/dataactvalidator/test_b9_award_financial.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_b9_award_financial.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
from tests.unit.dataactcore.factories.staging import AwardFinancialFactory from tests.unit.dataactcore.factories.domain import ProgramActivityFactory from tests.unit.dataactcore.factories.job import SubmissionFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'b9_award_financial' def test_column_headers(database): expected_subset = {'row_number', 'agency_identifier', 'main_account_code', 'program_activity_name', 'program_activity_code'} actual = set(query_columns(_FILE, database)) assert (actual & expected_subset) == expected_subset def test_success(database): """ Testing valid program activity name for the corresponding TAS/TAFS as defined in Section 82 of OMB Circular A-11. """ af_1 = AwardFinancialFactory(row_number=1, agency_identifier='test', main_account_code='test', program_activity_name='test', program_activity_code='test') af_2 = AwardFinancialFactory(row_number=2, agency_identifier='test', main_account_code='test', program_activity_name='test', program_activity_code='test') pa = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test', program_activity_name='test', program_activity_code='test') assert number_of_errors(_FILE, database, models=[af_1, af_2, pa]) == 0 def test_success_null(database): """Program activity name/code as null""" af = AwardFinancialFactory(row_number=1, agency_identifier='test', main_account_code='test', program_activity_name=None, program_activity_code=None) pa = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test') assert number_of_errors(_FILE, database, models=[af, pa]) == 0 def test_success_fiscal_year(database): """ Testing valid name for FY that matches with budget_year""" af_1 = AwardFinancialFactory(row_number=1, submission_id='1', agency_identifier='test', main_account_code='test', program_activity_name='test', program_activity_code='test') af_2 = AwardFinancialFactory(row_number=1, submission_id='1', agency_identifier='test2', main_account_code='test2', program_activity_name='test2', program_activity_code='test2') pa_1 = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test', program_activity_name='test', program_activity_code='test') pa_2 = ProgramActivityFactory(budget_year=2017, agency_id='test2', allocation_transfer_id='test2', account_number='test2', program_activity_name='test2', program_activity_code='test2') submission = SubmissionFactory(submission_id='1', reporting_fiscal_year='2017') assert number_of_errors(_FILE, database, models=[af_1, af_2, pa_1, pa_2], submission=submission) == 0 def test_failure_fiscal_year(database): """ Testing invalid name for FY, not matches with budget_year""" af = AwardFinancialFactory(row_number=1, submission_id='1', agency_identifier='test4', main_account_code='test4', program_activity_name='test4', program_activity_code='test4') pa_1 = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test', program_activity_name='test', program_activity_code='test') pa_2 = ProgramActivityFactory(budget_year=2017, agency_id='test2', allocation_transfer_id='test2', account_number='test2', program_activity_name='test2', program_activity_code='test2') pa_3 = ProgramActivityFactory(budget_year=2018, agency_id='test3', allocation_transfer_id='test3', account_number='test3', program_activity_name='test3', program_activity_code='test3') pa_4 = ProgramActivityFactory(budget_year=2019, agency_id='test4', allocation_transfer_id='test4', account_number='test4', program_activity_name='test4', program_activity_code='test4') submission = SubmissionFactory(submission_id='1', reporting_fiscal_year='2017') assert number_of_errors(_FILE, database, models=[af, pa_1, pa_2, pa_3, pa_4], submission=submission) == 1 def test_success_ignore_case(database): """ Testing program activity validation to ignore case """ af = AwardFinancialFactory(row_number=1, agency_identifier='test', main_account_code='test', program_activity_name='TEST', program_activity_code='test') pa = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test', program_activity_name='test', program_activity_code='test') assert number_of_errors(_FILE, database, models=[af, pa]) == 0 def test_failure_program_activity_name(database): """ Testing invalid program activity name for the corresponding TAS/TAFS as defined in Section 82 of OMB Circular A-11. """ af_1 = AwardFinancialFactory(row_number=1, agency_identifier='test', main_account_code='test', program_activity_name='test_wrong', program_activity_code='test') af_2 = AwardFinancialFactory(row_number=1, agency_identifier='test', main_account_code='test', program_activity_name='test_wrong', program_activity_code='0000') pa = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test', program_activity_name='test', program_activity_code='test') assert number_of_errors(_FILE, database, models=[af_1, af_2, pa]) == 1 def test_failure_program_activity_code(database): """Failure where the program _activity_code does not match""" af_1 = AwardFinancialFactory(row_number=1, agency_identifier='test', main_account_code='test', program_activity_name='test', program_activity_code='test_wrong') af_2 = AwardFinancialFactory(row_number=1, agency_identifier='test', main_account_code='test', program_activity_name='Unknown/Other', program_activity_code='12345') pa = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test', program_activity_name='test', program_activity_code='test') assert number_of_errors(_FILE, database, models=[af_1, af_2, pa]) == 1 def test_success_null_program_activity(database): """program activity name/code as null""" af = AwardFinancialFactory(row_number=1, agency_identifier='test_wrong', main_account_code='test', program_activity_name=None, program_activity_code=None) pa = ProgramActivityFactory(budget_year=2016, agency_id='test', allocation_transfer_id='test', account_number='test') assert number_of_errors(_FILE, database, models=[af, pa]) == 0
52.034722
119
0.680101
859
7,493
5.571595
0.119907
0.172378
0.111158
0.076891
0.775387
0.731718
0.731091
0.731091
0.731091
0.680944
0
0.026469
0.218471
7,493
143
120
52.398601
0.790813
0.069798
0
0.47561
0
0
0.083719
0.006073
0
0
0
0
0.109756
1
0.109756
false
0
0.04878
0
0.158537
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
7a5ef0d1d60184e8ef2a2b4a6360f59137607317
488
py
Python
tests/conftest.py
odra/kelo
22930954c6a75ba3e60ec07d258d65d13533b5b0
[ "MIT" ]
null
null
null
tests/conftest.py
odra/kelo
22930954c6a75ba3e60ec07d258d65d13533b5b0
[ "MIT" ]
null
null
null
tests/conftest.py
odra/kelo
22930954c6a75ba3e60ec07d258d65d13533b5b0
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def hello_world_fn(): def fn(): return 'hello world' return fn @pytest.fixture def greetings_fn(): def fn(name): return 'hello %s' % name return fn @pytest.fixture def greetings_default_fn(): def fn(name='nobody'): return 'hello %s' % name return fn @pytest.fixture def complex_fn(): def fn(name, age=32, **kwargs): return '%s is %s years old and lives in %s' % (name, age, kwargs.get('country', 'nowhere')) return fn
16.266667
95
0.655738
74
488
4.243243
0.351351
0.165605
0.203822
0.200637
0.388535
0.388535
0.254777
0.254777
0.254777
0
0
0.005155
0.204918
488
29
96
16.827586
0.804124
0
0
0.47619
0
0
0.166324
0
0
0
0
0
0
1
0.380952
false
0
0.047619
0.190476
0.809524
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
7aa7505271b59ca60c424c74d2860fd22e8cc684
159
py
Python
system/imports/validador_de_email.py
ryanprogrammer/Sistema-de-cadastro
de1f1e2332650e7ba1dc43eb7daeafe2e5753b75
[ "MIT" ]
4
2021-12-23T22:56:42.000Z
2022-01-01T06:00:38.000Z
system/imports/validador_de_email.py
ryanprogrammer/registration-system
de1f1e2332650e7ba1dc43eb7daeafe2e5753b75
[ "MIT" ]
null
null
null
system/imports/validador_de_email.py
ryanprogrammer/registration-system
de1f1e2332650e7ba1dc43eb7daeafe2e5753b75
[ "MIT" ]
null
null
null
def emailValida(email): if '@gmail.com' in email or '@hotmail.com' in email or '@outlook.com' in email: return True else: return False
26.5
83
0.622642
23
159
4.304348
0.608696
0.151515
0.30303
0.242424
0
0
0
0
0
0
0
0
0.27044
159
5
84
31.8
0.853448
0
0
0
0
0
0.213836
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
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
0
0
1
0
0
5
8fd939c052fc4c9e9ec94a7f3786498d2183b5eb
83
py
Python
jaseci_core/jaseci/actions/std.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
jaseci_core/jaseci/actions/std.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
jaseci_core/jaseci/actions/std.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
"""Built in actions for Jaseci""" from .module.standard_actions import * # noqa
16.6
46
0.710843
11
83
5.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.168675
83
4
47
20.75
0.84058
0.39759
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
8903853635f4c1e466c5c4c036f17e355da9ccf7
156
py
Python
hocr_spec/__init__.py
kba/hocr-spec-python
1d41c6f524ba709af451a1a897a805b6414547cd
[ "MIT" ]
5
2017-01-17T20:13:18.000Z
2021-03-25T18:00:28.000Z
hocr_spec/__init__.py
kba/hocr-spec-python
1d41c6f524ba709af451a1a897a805b6414547cd
[ "MIT" ]
4
2016-09-15T15:59:56.000Z
2020-01-03T11:25:26.000Z
hocr_spec/__init__.py
kba/hocr-spec-python
1d41c6f524ba709af451a1a897a805b6414547cd
[ "MIT" ]
3
2017-05-03T10:03:25.000Z
2017-07-19T13:47:15.000Z
# -*- coding: utf-8 -*- """ Classes for validating and parsing hOCR, close to the spec. """ from .spec import HocrSpec from .validate import HocrValidator
19.5
59
0.711538
21
156
5.285714
0.857143
0
0
0
0
0
0
0
0
0
0
0.007692
0.166667
156
7
60
22.285714
0.846154
0.525641
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
64f676f9dc39b1b750355b9ece3b4cb04859aa3d
51
py
Python
master/bopytest-code/code/tasks_proj/tests/func/test_delete.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/bopytest-code/code/tasks_proj/tests/func/test_delete.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/bopytest-code/code/tasks_proj/tests/func/test_delete.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
def test_delete(): """Placeholder test""" pass
12.75
24
0.647059
6
51
5.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.176471
51
3
25
17
0.761905
0.313725
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
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
0
0
1
1
1
0
0
0
0
0
5
8f199845284d48a07aa7f005ade6fd7c86f09c1e
68
py
Python
clips/training_session/plotsequence.py
thomasbazeille/public_protocols
8d8dd051eda7eec2b8358dae42ab363b7d83e1d0
[ "BSD-3-Clause" ]
3
2019-09-19T13:06:59.000Z
2021-07-03T18:09:32.000Z
clips/training_session/plotsequence.py
thomasbazeille/public_protocols
8d8dd051eda7eec2b8358dae42ab363b7d83e1d0
[ "BSD-3-Clause" ]
2
2017-11-30T19:32:24.000Z
2020-09-03T19:40:13.000Z
clips/training_session/plotsequence.py
thomasbazeille/public_protocols
8d8dd051eda7eec2b8358dae42ab363b7d83e1d0
[ "BSD-3-Clause" ]
3
2019-09-19T13:07:10.000Z
2021-01-14T16:07:16.000Z
import numpy as np import sys import pylab as pl _, f = sys.argv
8.5
18
0.705882
13
68
3.615385
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.25
68
7
19
9.714286
0.921569
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8f443933ce391a779da9a70c342fe4fdd0a98f7a
414
py
Python
rltk/blocking/__init__.py
ckxz105/rltk
2d08269002c00c0218421c8c2dc0cc7c4f677131
[ "MIT" ]
null
null
null
rltk/blocking/__init__.py
ckxz105/rltk
2d08269002c00c0218421c8c2dc0cc7c4f677131
[ "MIT" ]
null
null
null
rltk/blocking/__init__.py
ckxz105/rltk
2d08269002c00c0218421c8c2dc0cc7c4f677131
[ "MIT" ]
null
null
null
from rltk.blocking.block import Block from rltk.blocking.block_black_list import BlockBlackList from rltk.blocking.block_generator import BlockGenerator from rltk.blocking.hash_block_generator import HashBlockGenerator from rltk.blocking.token_block_generator import TokenBlockGenerator from rltk.blocking.canopy_block_generator import CanopyBlockGenerator from rltk.blocking.blocking_helper import BlockingHelper
51.75
69
0.898551
52
414
6.961538
0.346154
0.154696
0.309392
0.174033
0
0
0
0
0
0
0
0
0.067633
414
7
70
59.142857
0.937824
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
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
8f56222a9d4f4dba998acce60d101d7eba94059a
257
py
Python
generated-libraries/python/netapp/exports/exportchownmode.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/exports/exportchownmode.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/exports/exportchownmode.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
class Exportchownmode(basestring): """ restricted|unrestricted Possible values: <ul> <li> "restricted" , <li> "unrestricted" </ul> """ @staticmethod def get_api_name(): return "exportchownmode"
17.133333
34
0.560311
20
257
7.1
0.75
0
0
0
0
0
0
0
0
0
0
0
0.319066
257
14
35
18.357143
0.811429
0.365759
0
0
0
0
0.11811
0
0
0
0
0
0
1
0.25
true
0
0
0.25
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
5
8f71414f26283f636acf131540cc80063b73c4d4
691
py
Python
components/amp-utility/python/Snd.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/amp-utility/python/Snd.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/amp-utility/python/Snd.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# * coding: UTF8 * """ 这里所有的的接口仅需要调用一次即可,具体接口和参数如下所示。 ================================================================================================= """ def install_codec_driver(): """ 声卡安装,仅需要调用一次。 :param 空: :returns: 0: 成功,其他: 失败 :raises OSError: EINVAL """ pass def uninstall_codec_driver(): """ 声卡卸载,仅需要调用一次。 :param 空: :returns: 0: 成功,其他: 失败 :raises OSError: EINVAL """ pass def init(): """ 初始化uVoice功能组件,仅需要调用一次。 :param 空: :returns: 0: 成功,其他: 失败 :raises OSError: EINVAL """ pass def deinit(): """ 取消初始化uVoice功能组件,仅需要调用一次。 :param 空: :returns: 0: 成功,其他: 失败 :raises OSError: EINVAL """ pass
14.102041
97
0.489146
68
691
4.911765
0.397059
0.143713
0.155689
0.239521
0.625749
0.625749
0.625749
0.625749
0.625749
0.625749
0
0.009488
0.237337
691
48
98
14.395833
0.624288
0.658466
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
0
0.5
0
0
0
0
null
0
0
1
0
0
0
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
1
1
0
0
0
0
0
5
56ad3f65e7e326b6c8e24ade681a2bdad38713f8
61
py
Python
je_auto_control/windows/screen/__init__.py
JE-Chen/AutoControl
c2d78f0b428d27aef2ea27f210d11c6dc1144221
[ "MIT" ]
1
2022-03-27T14:59:45.000Z
2022-03-27T14:59:45.000Z
je_auto_control/windows/screen/__init__.py
JE-Chen/AutoControl
c2d78f0b428d27aef2ea27f210d11c6dc1144221
[ "MIT" ]
2
2021-11-19T13:45:37.000Z
2021-12-03T12:25:28.000Z
je_auto_control/windows/screen/__init__.py
JE-Chen/AutoControl
c2d78f0b428d27aef2ea27f210d11c6dc1144221
[ "MIT" ]
null
null
null
from je_auto_control.windows.screen.win32_screen import size
30.5
60
0.885246
10
61
5.1
0.9
0
0
0
0
0
0
0
0
0
0
0.035088
0.065574
61
1
61
61
0.859649
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
56bf87b62349b915ce3f570672341fdac70f6f1f
58
py
Python
physballs/physballs.py
Dhhoyt/Physballs
2225f5d88c7e16ac2b9aa59eb6e312eb62750955
[ "MIT" ]
null
null
null
physballs/physballs.py
Dhhoyt/Physballs
2225f5d88c7e16ac2b9aa59eb6e312eb62750955
[ "MIT" ]
null
null
null
physballs/physballs.py
Dhhoyt/Physballs
2225f5d88c7e16ac2b9aa59eb6e312eb62750955
[ "MIT" ]
null
null
null
from graphics.render import open_window open_window()
14.5
40
0.793103
8
58
5.5
0.75
0.454545
0
0
0
0
0
0
0
0
0
0
0.155172
58
3
41
19.333333
0.897959
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
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
56c02adeb142ee8a2831146de93928ab4c1be844
60
py
Python
compute/dbconn/dbconn/models/incident.py
djfurman/well-managed-deployments
b61c9adb7212bb2f2a03f007568760ec5a36af72
[ "BSD-3-Clause" ]
1
2020-05-18T00:28:12.000Z
2020-05-18T00:28:12.000Z
compute/dbconn/dbconn/models/incident.py
djfurman/well-managed-deployments
b61c9adb7212bb2f2a03f007568760ec5a36af72
[ "BSD-3-Clause" ]
10
2018-04-02T23:09:50.000Z
2018-04-22T15:58:08.000Z
compute/dbconn/dbconn/models/incident.py
djfurman/well-managed-deployments
b61c9adb7212bb2f2a03f007568760ec5a36af72
[ "BSD-3-Clause" ]
null
null
null
from orator import Model class Incident(Model): pass
8.571429
24
0.716667
8
60
5.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.233333
60
6
25
10
0.934783
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
56cdb1a4bb76205dcc32cb83ce84f25a331f0228
217
py
Python
coast/timeseries.py
British-Oceanographic-Data-Centre/NEMO-ENTRUST
41ed278e56428404ab8ec41d74a9a3a761e308ae
[ "MIT" ]
null
null
null
coast/timeseries.py
British-Oceanographic-Data-Centre/NEMO-ENTRUST
41ed278e56428404ab8ec41d74a9a3a761e308ae
[ "MIT" ]
null
null
null
coast/timeseries.py
British-Oceanographic-Data-Centre/NEMO-ENTRUST
41ed278e56428404ab8ec41d74a9a3a761e308ae
[ "MIT" ]
null
null
null
"""Timeseries Class""" from .index import Indexed from . import general_utils class Timeseries(Indexed): """Parent class for Tidegauge and other timeseries type datasets Common methods ... """ pass
18.083333
68
0.700461
25
217
6.04
0.72
0
0
0
0
0
0
0
0
0
0
0
0.207373
217
11
69
19.727273
0.877907
0.447005
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
56d2493a0437ee12a9fdd6e4cf50891d7f181b49
35,632
py
Python
mysite/patterns/35.py
BioinfoNet/prepub
e19c48cabf8bd22736dcef9308a5e196cfd8119a
[ "MIT" ]
19
2016-06-17T23:36:27.000Z
2020-01-13T16:41:55.000Z
mysite/patterns/35.py
BioinfoNet/prepub
e19c48cabf8bd22736dcef9308a5e196cfd8119a
[ "MIT" ]
13
2016-06-06T12:57:05.000Z
2019-02-05T02:21:00.000Z
patterns/35.py
OmnesRes/GRIMMER
173c99ebdb6a9edb1242d24a791d0c5d778ff643
[ "MIT" ]
7
2017-03-28T18:12:22.000Z
2021-06-16T09:32:59.000Z
pattern_zero=[0.0, 0.027755102041, 0.05387755102, 0.057142857143, 0.078367346939, 0.084897959184, 0.101224489796, 0.111020408163, 0.114285714286, 0.122448979592, 0.135510204082, 0.142040816327, 0.158367346939, 0.16, 0.168163265306, 0.171428571429, 0.176326530612, 0.179591836735, 0.191020408163, 0.192653061224, 0.199183673469, 0.204081632653, 0.215510204082, 0.217142857143, 0.225306122449, 0.228571428571, 0.233469387755, 0.236734693878, 0.24, 0.244897959184, 0.248163265306, 0.249795918367, 0.256326530612, 0.261224489796, 0.272653061224, 0.274285714286, 0.282448979592, 0.285714285714, 0.290612244898, 0.29387755102, 0.297142857143, 0.302040816327, 0.305306122449, 0.30693877551, 0.313469387755, 0.318367346939, 0.329795918367, 0.331428571429, 0.339591836735, 0.342857142857, 0.347755102041, 0.351020408163, 0.354285714286, 0.359183673469, 0.362448979592, 0.364081632653, 0.370612244898, 0.375510204082, 0.38693877551, 0.388571428571, 0.396734693878, 0.4, 0.404897959184, 0.408163265306, 0.411428571429, 0.416326530612, 0.419591836735, 0.421224489796, 0.427755102041, 0.432653061224, 0.444081632653, 0.445714285714, 0.45387755102, 0.457142857143, 0.462040816327, 0.465306122449, 0.468571428571, 0.473469387755, 0.476734693878, 0.478367346939, 0.484897959184, 0.489795918367, 0.501224489796, 0.502857142857, 0.511020408163, 0.514285714286, 0.519183673469, 0.522448979592, 0.525714285714, 0.530612244898, 0.53387755102, 0.535510204082, 0.542040816327, 0.54693877551, 0.558367346939, 0.56, 0.568163265306, 0.571428571429, 0.576326530612, 0.579591836735, 0.582857142857, 0.587755102041, 0.591020408163, 0.592653061224, 0.599183673469, 0.604081632653, 0.615510204082, 0.617142857143, 0.625306122449, 0.628571428571, 0.633469387755, 0.636734693878, 0.64, 0.644897959184, 0.648163265306, 0.649795918367, 0.656326530612, 0.661224489796, 0.672653061224, 0.674285714286, 0.682448979592, 0.685714285714, 0.690612244898, 0.69387755102, 0.697142857143, 0.702040816327, 0.705306122449, 0.70693877551, 0.713469387755, 0.718367346939, 0.729795918367, 0.731428571429, 0.739591836735, 0.742857142857, 0.747755102041, 0.751020408163, 0.754285714286, 0.759183673469, 0.762448979592, 0.764081632653, 0.770612244898, 0.775510204082, 0.78693877551, 0.788571428571, 0.796734693878, 0.8, 0.804897959184, 0.808163265306, 0.811428571429, 0.816326530612, 0.819591836735, 0.821224489796, 0.827755102041, 0.832653061224, 0.844081632653, 0.845714285714, 0.85387755102, 0.857142857143, 0.862040816327, 0.865306122449, 0.868571428571, 0.873469387755, 0.876734693878, 0.878367346939, 0.884897959184, 0.889795918367, 0.901224489796, 0.902857142857, 0.911020408163, 0.914285714286, 0.919183673469, 0.922448979592, 0.925714285714, 0.930612244898, 0.93387755102, 0.935510204082, 0.942040816327, 0.94693877551, 0.958367346939, 0.96, 0.968163265306, 0.971428571429, 0.976326530612, 0.979591836735, 0.982857142857, 0.987755102041, 0.991020408163, 0.992653061224, 0.999183673469] pattern_odd=[0.004081632653, 0.015510204082, 0.017142857143, 0.025306122449, 0.028571428571, 0.033469387755, 0.036734693878, 0.04, 0.044897959184, 0.048163265306, 0.049795918367, 0.056326530612, 0.061224489796, 0.072653061224, 0.074285714286, 0.082448979592, 0.085714285714, 0.090612244898, 0.09387755102, 0.097142857143, 0.102040816327, 0.105306122449, 0.10693877551, 0.113469387755, 0.118367346939, 0.129795918367, 0.131428571429, 0.139591836735, 0.142857142857, 0.147755102041, 0.151020408163, 0.154285714286, 0.159183673469, 0.162448979592, 0.164081632653, 0.170612244898, 0.175510204082, 0.18693877551, 0.188571428571, 0.196734693878, 0.2, 0.204897959184, 0.208163265306, 0.211428571429, 0.216326530612, 0.219591836735, 0.221224489796, 0.227755102041, 0.232653061224, 0.244081632653, 0.245714285714, 0.25387755102, 0.257142857143, 0.262040816327, 0.265306122449, 0.268571428571, 0.273469387755, 0.276734693878, 0.278367346939, 0.284897959184, 0.289795918367, 0.301224489796, 0.302857142857, 0.311020408163, 0.314285714286, 0.319183673469, 0.322448979592, 0.325714285714, 0.330612244898, 0.33387755102, 0.335510204082, 0.342040816327, 0.34693877551, 0.358367346939, 0.36, 0.368163265306, 0.371428571429, 0.376326530612, 0.379591836735, 0.382857142857, 0.387755102041, 0.391020408163, 0.392653061224, 0.399183673469, 0.404081632653, 0.415510204082, 0.417142857143, 0.425306122449, 0.428571428571, 0.433469387755, 0.436734693878, 0.44, 0.444897959184, 0.448163265306, 0.449795918367, 0.456326530612, 0.461224489796, 0.472653061224, 0.474285714286, 0.482448979592, 0.485714285714, 0.490612244898, 0.49387755102, 0.497142857143, 0.502040816327, 0.505306122449, 0.50693877551, 0.513469387755, 0.518367346939, 0.529795918367, 0.531428571429, 0.539591836735, 0.542857142857, 0.547755102041, 0.551020408163, 0.554285714286, 0.559183673469, 0.562448979592, 0.564081632653, 0.570612244898, 0.575510204082, 0.58693877551, 0.588571428571, 0.596734693878, 0.6, 0.604897959184, 0.608163265306, 0.611428571429, 0.616326530612, 0.619591836735, 0.621224489796, 0.627755102041, 0.632653061224, 0.644081632653, 0.645714285714, 0.65387755102, 0.657142857143, 0.662040816327, 0.665306122449, 0.668571428571, 0.673469387755, 0.676734693878, 0.678367346939, 0.684897959184, 0.689795918367, 0.701224489796, 0.702857142857, 0.711020408163, 0.714285714286, 0.719183673469, 0.722448979592, 0.725714285714, 0.730612244898, 0.73387755102, 0.735510204082, 0.742040816327, 0.74693877551, 0.758367346939, 0.76, 0.768163265306, 0.771428571429, 0.776326530612, 0.779591836735, 0.782857142857, 0.787755102041, 0.791020408163, 0.792653061224, 0.799183673469, 0.804081632653, 0.815510204082, 0.817142857143, 0.825306122449, 0.828571428571, 0.833469387755, 0.836734693878, 0.84, 0.844897959184, 0.848163265306, 0.849795918367, 0.856326530612, 0.861224489796, 0.872653061224, 0.874285714286, 0.882448979592, 0.885714285714, 0.890612244898, 0.89387755102, 0.897142857143, 0.902040816327, 0.905306122449, 0.90693877551, 0.913469387755, 0.918367346939, 0.929795918367, 0.931428571429, 0.939591836735, 0.942857142857, 0.947755102041, 0.951020408163, 0.954285714286, 0.959183673469, 0.962448979592, 0.964081632653, 0.970612244898, 0.975510204082, 0.98693877551, 0.988571428571, 0.996734693878] pattern_even=[0.0, 0.004897959184, 0.008163265306, 0.011428571429, 0.016326530612, 0.019591836735, 0.021224489796, 0.027755102041, 0.032653061224, 0.044081632653, 0.045714285714, 0.05387755102, 0.057142857143, 0.062040816327, 0.065306122449, 0.068571428571, 0.073469387755, 0.076734693878, 0.078367346939, 0.084897959184, 0.089795918367, 0.101224489796, 0.102857142857, 0.111020408163, 0.114285714286, 0.119183673469, 0.122448979592, 0.125714285714, 0.130612244898, 0.13387755102, 0.135510204082, 0.142040816327, 0.14693877551, 0.158367346939, 0.16, 0.168163265306, 0.171428571429, 0.176326530612, 0.179591836735, 0.182857142857, 0.187755102041, 0.191020408163, 0.192653061224, 0.199183673469, 0.204081632653, 0.215510204082, 0.217142857143, 0.225306122449, 0.228571428571, 0.233469387755, 0.236734693878, 0.24, 0.244897959184, 0.248163265306, 0.249795918367, 0.256326530612, 0.261224489796, 0.272653061224, 0.274285714286, 0.282448979592, 0.285714285714, 0.290612244898, 0.29387755102, 0.297142857143, 0.302040816327, 0.305306122449, 0.30693877551, 0.313469387755, 0.318367346939, 0.329795918367, 0.331428571429, 0.339591836735, 0.342857142857, 0.347755102041, 0.351020408163, 0.354285714286, 0.359183673469, 0.362448979592, 0.364081632653, 0.370612244898, 0.375510204082, 0.38693877551, 0.388571428571, 0.396734693878, 0.4, 0.404897959184, 0.408163265306, 0.411428571429, 0.416326530612, 0.419591836735, 0.421224489796, 0.427755102041, 0.432653061224, 0.444081632653, 0.445714285714, 0.45387755102, 0.457142857143, 0.462040816327, 0.465306122449, 0.468571428571, 0.473469387755, 0.476734693878, 0.478367346939, 0.484897959184, 0.489795918367, 0.501224489796, 0.502857142857, 0.511020408163, 0.514285714286, 0.519183673469, 0.522448979592, 0.525714285714, 0.530612244898, 0.53387755102, 0.535510204082, 0.542040816327, 0.54693877551, 0.558367346939, 0.56, 0.568163265306, 0.571428571429, 0.576326530612, 0.579591836735, 0.582857142857, 0.587755102041, 0.591020408163, 0.592653061224, 0.599183673469, 0.604081632653, 0.615510204082, 0.617142857143, 0.625306122449, 0.628571428571, 0.633469387755, 0.636734693878, 0.64, 0.644897959184, 0.648163265306, 0.649795918367, 0.656326530612, 0.661224489796, 0.672653061224, 0.674285714286, 0.682448979592, 0.685714285714, 0.690612244898, 0.69387755102, 0.697142857143, 0.702040816327, 0.705306122449, 0.70693877551, 0.713469387755, 0.718367346939, 0.729795918367, 0.731428571429, 0.739591836735, 0.742857142857, 0.747755102041, 0.751020408163, 0.754285714286, 0.759183673469, 0.762448979592, 0.764081632653, 0.770612244898, 0.775510204082, 0.78693877551, 0.788571428571, 0.796734693878, 0.8, 0.804897959184, 0.808163265306, 0.811428571429, 0.816326530612, 0.819591836735, 0.821224489796, 0.827755102041, 0.832653061224, 0.844081632653, 0.845714285714, 0.85387755102, 0.857142857143, 0.862040816327, 0.865306122449, 0.868571428571, 0.873469387755, 0.876734693878, 0.878367346939, 0.884897959184, 0.889795918367, 0.901224489796, 0.902857142857, 0.911020408163, 0.914285714286, 0.919183673469, 0.922448979592, 0.925714285714, 0.930612244898, 0.93387755102, 0.935510204082, 0.942040816327, 0.94693877551, 0.958367346939, 0.96, 0.968163265306, 0.971428571429, 0.976326530612, 0.979591836735, 0.982857142857, 0.987755102041, 0.991020408163, 0.992653061224, 0.999183673469] averages_even={0.0: [0.0], 0.102857142857: [0.2, 0.8], 0.302040816327: [0.5714285714286, 0.4285714285714], 0.068571428571: [0.6, 0.4], 0.192653061224: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.171428571429: [0.0], 0.411428571429: [0.6, 0.4], 0.85387755102: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.468571428571: [0.6, 0.4], 0.089795918367: [0.2857142857143, 0.7142857142857], 0.96: [0.2, 0.8], 0.582857142857: [0.6, 0.4], 0.604081632653: [0.2857142857143, 0.7142857142857], 0.968163265306: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.530612244898: [0.5714285714286, 0.4285714285714], 0.261224489796: [0.2857142857143, 0.7142857142857], 0.076734693878: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.045714285714: [0.2, 0.8], 0.796734693878: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.697142857143: [0.6, 0.4], 0.249795918367: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.644897959184: [0.5714285714286, 0.4285714285714], 0.236734693878: [0.1428571428571, 0.8571428571429], 0.364081632653: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.811428571429: [0.6, 0.4], 0.592653061224: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.633469387755: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.759183673469: [0.5714285714286, 0.4285714285714], 0.770612244898: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.421224489796: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.925714285714: [0.6, 0.4], 0.70693877551: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.285714285714: [0.0], 0.579591836735: [0.1428571428571, 0.8571428571429], 0.94693877551: [0.2857142857143, 0.7142857142857], 0.478367346939: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.519183673469: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.032653061224: [0.2857142857143, 0.7142857142857], 0.342857142857: [0.0], 0.987755102041: [0.5714285714286, 0.4285714285714], 0.158367346939: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.935510204082: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.359183673469: [0.5714285714286, 0.4285714285714], 0.587755102041: [0.5714285714286, 0.4285714285714], 0.8: [0.0], 0.4: [0.0], 0.290612244898: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.179591836735: [0.1428571428571, 0.8571428571429], 0.705306122449: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.489795918367: [0.2857142857143, 0.7142857142857], 0.992653061224: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.114285714286: [0.0], 0.347755102041: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.062040816327: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.56: [0.2, 0.8], 0.636734693878: [0.1428571428571, 0.8571428571429], 0.215510204082: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.911020408163: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.101224489796: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.832653061224: [0.2857142857143, 0.7142857142857], 0.591020408163: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.674285714286: [0.2, 0.8], 0.976326530612: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.462040816327: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.044081632653: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.747755102041: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.884897959184: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.788571428571: [0.2, 0.8], 0.868571428571: [0.6, 0.4], 0.685714285714: [0.0], 0.775510204082: [0.2857142857143, 0.7142857142857], 0.819591836735: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.902857142857: [0.2, 0.8], 0.502857142857: [0.2, 0.8], 0.274285714286: [0.2, 0.8], 0.233469387755: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.125714285714: [0.6, 0.4], 0.64: [0.6, 0.4], 0.473469387755: [0.5714285714286, 0.4285714285714], 0.331428571429: [0.2, 0.8], 0.982857142857: [0.6, 0.4], 0.057142857143: [0.0], 0.873469387755: [0.5714285714286, 0.4285714285714], 0.305306122449: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.69387755102: [0.1428571428571, 0.8571428571429], 0.416326530612: [0.5714285714286, 0.4285714285714], 0.388571428571: [0.2, 0.8], 0.558367346939: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.30693877551: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.187755102041: [0.5714285714286, 0.4285714285714], 0.362448979592: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.731428571429: [0.2, 0.8], 0.808163265306: [0.1428571428571, 0.8571428571429], 0.027755102041: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.445714285714: [0.2, 0.8], 0.168163265306: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.419591836735: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.008163265306: [0.1428571428571, 0.8571428571429], 0.29387755102: [0.1428571428571, 0.8571428571429], 0.78693877551: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.142040816327: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.615510204082: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.501224489796: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.119183673469: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.999183673469: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.599183673469: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.225306122449: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.682448979592: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.54693877551: [0.2857142857143, 0.7142857142857], 0.228571428571: [0.0], 0.713469387755: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.199183673469: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.661224489796: [0.2857142857143, 0.7142857142857], 0.525714285714: [0.6, 0.4], 0.764081632653: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.827755102041: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.535510204082: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.672653061224: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.404897959184: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.751020408163: [0.1428571428571, 0.8571428571429], 0.542040816327: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.16: [0.2, 0.8], 0.942040816327: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.05387755102: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.073469387755: [0.5714285714286, 0.4285714285714], 0.889795918367: [0.2857142857143, 0.7142857142857], 0.865306122449: [0.1428571428571, 0.8571428571429], 0.754285714286: [0.6, 0.4], 0.13387755102: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.351020408163: [0.1428571428571, 0.8571428571429], 0.93387755102: [0.2571428571429, 0.5428571428571, 0.4571428571429, 0.7428571428571], 0.217142857143: [0.2, 0.8], 0.649795918367: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.702040816327: [0.5714285714286, 0.4285714285714], 0.514285714286: [0.0], 0.204081632653: [0.2857142857143, 0.7142857142857], 0.979591836735: [0.1428571428571, 0.8571428571429], 0.191020408163: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.804897959184: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.272653061224: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.628571428571: [0.0], 0.465306122449: [0.1428571428571, 0.8571428571429], 0.922448979592: [0.1428571428571, 0.8571428571429], 0.576326530612: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.878367346939: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.329795918367: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.742857142857: [0.0], 0.011428571429: [0.6, 0.4], 0.019591836735: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.690612244898: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.248163265306: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.38693877551: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.857142857143: [0.0], 0.901224489796: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.14693877551: [0.2857142857143, 0.7142857142857], 0.457142857143: [0.0], 0.568163265306: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.111020408163: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.176326530612: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.971428571429: [0.0], 0.53387755102: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.617142857143: [0.2, 0.8], 0.122448979592: [0.1428571428571, 0.8571428571429], 0.919183673469: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.282448979592: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.648163265306: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.135510204082: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.182857142857: [0.6, 0.4], 0.084897959184: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.256326530612: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.408163265306: [0.1428571428571, 0.8571428571429], 0.914285714286: [0.0], 0.021224489796: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.816326530612: [0.5714285714286, 0.4285714285714], 0.476734693878: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.762448979592: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.845714285714: [0.2, 0.8], 0.004897959184: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.396734693878: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.876734693878: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.24: [0.6, 0.4], 0.370612244898: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.065306122449: [0.1428571428571, 0.8571428571429], 0.45387755102: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.571428571429: [0.0], 0.991020408163: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.930612244898: [0.5714285714286, 0.4285714285714], 0.427755102041: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.318367346939: [0.2857142857143, 0.7142857142857], 0.862040816327: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.313469387755: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.078367346939: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.522448979592: [0.1428571428571, 0.8571428571429], 0.484897959184: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.375510204082: [0.2857142857143, 0.7142857142857], 0.444081632653: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.339591836735: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.432653061224: [0.2857142857143, 0.7142857142857], 0.729795918367: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.511020408163: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.130612244898: [0.5714285714286, 0.4285714285714], 0.718367346939: [0.2857142857143, 0.7142857142857], 0.297142857143: [0.6, 0.4], 0.244897959184: [0.5714285714286, 0.4285714285714], 0.016326530612: [0.5714285714286, 0.4285714285714], 0.844081632653: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.625306122449: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.821224489796: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.354285714286: [0.6, 0.4], 0.656326530612: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.958367346939: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.739591836735: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571]} averages_odd={0.562448979592: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.151020408163: [0.1428571428571, 0.8571428571429], 0.645714285714: [0.2, 0.8], 0.947755102041: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.048163265306: [0.2571428571429, 0.5428571428571, 0.4571428571429, 0.7428571428571], 0.676734693878: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.044897959184: [0.5714285714286, 0.4285714285714], 0.76: [0.2, 0.8], 0.221224489796: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.265306122449: [0.1428571428571, 0.8571428571429], 0.208163265306: [0.1428571428571, 0.8571428571429], 0.874285714286: [0.2, 0.8], 0.779591836735: [0.1428571428571, 0.8571428571429], 0.322448979592: [0.1428571428571, 0.8571428571429], 0.905306122449: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.118367346939: [0.2857142857143, 0.7142857142857], 0.988571428571: [0.2, 0.8], 0.551020408163: [0.1428571428571, 0.8571428571429], 0.379591836735: [0.1428571428571, 0.8571428571429], 0.105306122449: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.65387755102: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.665306122449: [0.1428571428571, 0.8571428571429], 0.529795918367: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.142857142857: [0.0], 0.436734693878: [0.1428571428571, 0.8571428571429], 0.129795918367: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.301224489796: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.644081632653: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.085714285714: [0.0], 0.49387755102: [0.1428571428571, 0.8571428571429], 0.954285714286: [0.6, 0.4], 0.89387755102: [0.1428571428571, 0.8571428571429], 0.358367346939: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.758367346939: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.539591836735: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.2: [0.0], 0.072653061224: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.951020408163: [0.1428571428571, 0.8571428571429], 0.18693877551: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.415510204082: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.872653061224: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.028571428571: [0.0], 0.513469387755: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.518367346939: [0.2857142857143, 0.7142857142857], 0.897142857143: [0.6, 0.4], 0.684897959184: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.472653061224: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.98693877551: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.25387755102: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.768163265306: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.025306122449: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.147755102041: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.632653061224: [0.2857142857143, 0.7142857142857], 0.244081632653: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.799183673469: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.596734693878: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.311020408163: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.74693877551: [0.2857142857143, 0.7142857142857], 0.284897959184: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.611428571429: [0.6, 0.4], 0.913469387755: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.368163265306: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.204897959184: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.861224489796: [0.2857142857143, 0.7142857142857], 0.570612244898: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.342040816327: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.725714285714: [0.6, 0.4], 0.50693877551: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.017142857143: [0.8, 0.2], 0.425306122449: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.673469387755: [0.5714285714286, 0.4285714285714], 0.975510204082: [0.2857142857143, 0.7142857142857], 0.399183673469: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.289795918367: [0.2857142857143, 0.7142857142857], 0.84: [0.6, 0.4], 0.621224489796: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.791020408163: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.482448979592: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.787755102041: [0.5714285714286, 0.4285714285714], 0.456326530612: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.34693877551: [0.2857142857143, 0.7142857142857], 0.735510204082: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.097142857143: [0.6, 0.4], 0.139591836735: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.6: [0.0], 0.902040816327: [0.5714285714286, 0.4285714285714], 0.090612244898: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.547755102041: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.404081632653: [0.2857142857143, 0.7142857142857], 0.849795918367: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.714285714286: [0.0], 0.942857142857: [0.0], 0.268571428571: [0.6, 0.4], 0.461224489796: [0.2857142857143, 0.7142857142857], 0.964081632653: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.196734693878: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.828571428571: [0.0], 0.325714285714: [0.6, 0.4], 0.776326530612: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.056326530612: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.170612244898: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.382857142857: [0.6, 0.4], 0.273469387755: [0.5714285714286, 0.4285714285714], 0.931428571429: [0.2, 0.8], 0.588571428571: [0.2, 0.8], 0.890612244898: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.049795918367: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.619591836735: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.44: [0.6, 0.4], 0.330612244898: [0.5714285714286, 0.4285714285714], 0.702857142857: [0.2, 0.8], 0.131428571429: [0.2, 0.8], 0.227755102041: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.497142857143: [0.6, 0.4], 0.387755102041: [0.5714285714286, 0.4285714285714], 0.278367346939: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.04: [0.6, 0.4], 0.036734693878: [0.1428571428571, 0.8571428571429], 0.848163265306: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.444897959184: [0.5714285714286, 0.4285714285714], 0.604897959184: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.335510204082: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.722448979592: [0.1428571428571, 0.8571428571429], 0.188571428571: [0.2, 0.8], 0.033469387755: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.175510204082: [0.2857142857143, 0.7142857142857], 0.392653061224: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.608163265306: [0.1428571428571, 0.8571428571429], 0.162448979592: [0.4571428571429, 0.2571428571429, 0.5428571428571, 0.7428571428571], 0.962448979592: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.257142857143: [0.0], 0.102040816327: [0.5714285714286, 0.4285714285714], 0.449795918367: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.245714285714: [0.2, 0.8], 0.58693877551: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.314285714286: [0.0], 0.232653061224: [0.2857142857143, 0.7142857142857], 0.662040816327: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.836734693878: [0.1428571428571, 0.8571428571429], 0.219591836735: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.082448979592: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.701224489796: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.371428571429: [0.0], 0.262040816327: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.882448979592: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.015510204082: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.815510204082: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.428571428571: [0.0], 0.319183673469: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.627755102041: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.929795918367: [0.3142857142857, 0.8857142857143, 0.1142857142857, 0.6857142857143], 0.711020408163: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.485714285714: [0.0], 0.376326530612: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.575510204082: [0.2857142857143, 0.7142857142857], 0.154285714286: [0.6, 0.4], 0.742040816327: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.825306122449: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.433469387755: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.689795918367: [0.2857142857143, 0.7142857142857], 0.554285714286: [0.6, 0.4], 0.856326530612: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.939591836735: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.490612244898: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.502040816327: [0.5714285714286, 0.4285714285714], 0.804081632653: [0.2857142857143, 0.7142857142857], 0.211428571429: [0.6, 0.4], 0.668571428571: [0.6, 0.4], 0.970612244898: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.616326530612: [0.5714285714286, 0.4285714285714], 0.918367346939: [0.2857142857143, 0.7142857142857], 0.004081632653: [0.2857142857143, 0.7142857142857], 0.782857142857: [0.6, 0.4], 0.564081632653: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.302857142857: [0.2, 0.8], 0.113469387755: [0.8285714285714, 0.9714285714286, 0.0285714285714, 0.1714285714286], 0.730612244898: [0.5714285714286, 0.4285714285714], 0.276734693878: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.10693877551: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.159183673469: [0.5714285714286, 0.4285714285714], 0.678367346939: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.996734693878: [0.9428571428571, 0.6571428571429, 0.0571428571429, 0.3428571428571], 0.36: [0.8, 0.2], 0.542857142857: [0.0], 0.844897959184: [0.5714285714286, 0.4285714285714], 0.33387755102: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.09387755102: [0.1428571428571, 0.8571428571429], 0.792653061224: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.417142857143: [0.2, 0.8], 0.559183673469: [0.5714285714286, 0.4285714285714], 0.657142857143: [0.0], 0.959183673469: [0.5714285714286, 0.4285714285714], 0.391020408163: [0.2571428571429, 0.5428571428571, 0.4571428571429, 0.7428571428571], 0.216326530612: [0.5714285714286, 0.4285714285714], 0.90693877551: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143], 0.474285714286: [0.2, 0.8], 0.771428571429: [0.0], 0.505306122449: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.074285714286: [0.2, 0.8], 0.448163265306: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.817142857143: [0.2, 0.8], 0.719183673469: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.061224489796: [0.2857142857143, 0.7142857142857], 0.73387755102: [0.2571428571429, 0.7428571428571, 0.4571428571429, 0.5428571428571], 0.885714285714: [0.0], 0.531428571429: [0.2, 0.8], 0.833469387755: [0.6285714285714, 0.7714285714286, 0.2285714285714, 0.3714285714286], 0.164081632653: [0.5142857142857, 0.4857142857143, 0.9142857142857, 0.0857142857143]}
7,126.4
13,182
0.7864
4,518
35,632
6.200974
0.100708
0.005425
0.004176
0.03498
0.714235
0.585487
0.585487
0.585487
0.581489
0.158302
0
0.837682
0.06323
35,632
5
13,183
7,126.4
0.001648
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
56dac085576643fac64d1abfca3b7fade3bb0fb0
50
py
Python
arbory/subcommands/__init__.py
n8jhj/arbory
702917acecace85eb4a1597dd86c553148db1432
[ "BSD-2-Clause" ]
null
null
null
arbory/subcommands/__init__.py
n8jhj/arbory
702917acecace85eb4a1597dd86c553148db1432
[ "BSD-2-Clause" ]
null
null
null
arbory/subcommands/__init__.py
n8jhj/arbory
702917acecace85eb4a1597dd86c553148db1432
[ "BSD-2-Clause" ]
null
null
null
from .config import config from .tree import tree
16.666667
26
0.8
8
50
5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.16
50
2
27
25
0.952381
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
56f77dfab2b19510099200dcfd2b7bf839aee11a
175
py
Python
rainbowconnection/sources/__init__.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
6
2019-09-04T20:22:02.000Z
2020-12-30T05:00:10.000Z
rainbowconnection/sources/__init__.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
8
2019-05-23T18:06:51.000Z
2020-02-13T22:15:07.000Z
rainbowconnection/sources/__init__.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
null
null
null
from .spectrum import Spectrum from .blank import Blank from .thermal import Thermal from .sun import Sun from .lightbulbs import * # , LED, CFL # from .PHOENIX import Star
21.875
39
0.76
25
175
5.32
0.44
0
0
0
0
0
0
0
0
0
0
0
0.177143
175
7
40
25
0.923611
0.205714
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
56fcbdb798ac3caf6427669eb040b57eb4eb3d30
331
py
Python
graph_pruning/methods/zhenv5/remove_self_loops.py
shan18/taxi
286e2c9a97c1e0b52d63bbb3508045001f449714
[ "Apache-2.0" ]
49
2017-06-26T01:10:48.000Z
2022-03-15T12:15:26.000Z
graph_pruning/methods/zhenv5/remove_self_loops.py
uhh-lt/taxi
0abc016ff854cf3ebeff61be76acf10b7d6a67a7
[ "Apache-2.0" ]
7
2018-06-20T12:33:49.000Z
2018-08-27T09:30:34.000Z
graph_pruning/methods/zhenv5/remove_self_loops.py
shan18/taxi
286e2c9a97c1e0b52d63bbb3508045001f449714
[ "Apache-2.0" ]
20
2017-06-26T01:27:56.000Z
2021-12-24T10:38:09.000Z
import networkx as nx def remove_self_loops_from_graph(g): self_loops = list(g.selfloop_edges()) g.remove_edges_from(self_loops) return self_loops def remove_self_loops_from_edges_file(graph_file): g = nx.read_edgelist(args.original_graph, nodetype = int, create_using = nx.DiGraph()) return remove_self_loops_from_graph(g)
30.090909
87
0.81571
55
331
4.490909
0.454545
0.218623
0.182186
0.230769
0.303644
0.202429
0
0
0
0
0
0
0.096677
331
10
88
33.1
0.826087
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
710806234af5d094e32935a5e432c9bd6ad09b51
9,749
py
Python
apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py
semi-technologies/weaviate-chaos-engineering
57bc0cd919130749ead1ca2f397a3a46aa77c5fd
[ "BSD-3-Clause" ]
null
null
null
apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py
semi-technologies/weaviate-chaos-engineering
57bc0cd919130749ead1ca2f397a3a46aa77c5fd
[ "BSD-3-Clause" ]
1
2022-03-08T12:03:20.000Z
2022-03-14T10:28:45.000Z
apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py
semi-technologies/weaviate-chaos-engineering
57bc0cd919130749ead1ca2f397a3a46aa77c5fd
[ "BSD-3-Clause" ]
null
null
null
from weaviate import Client from uuid import uuid1 class TestConsecutiveCreateAndUpdate: client: Client img = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV/TSou0ONhBxCFD62RBVMRRq1CECqFWaNXB5NIvaNKSpLg4Cq4FBz8Wqw4uzro6uAqC4AeIm5uToouU+L+k0CLGg+N+vLv3uHsHCK0q08zAOKDplpFJJcVcflUMviKACEKIwy8zsz4nSWl4jq97+Ph6l+BZ3uf+HBG1YDLAJxLPsrphEW8QT29adc77xFFWllXic+Ixgy5I/Mh1xeU3ziWHBZ4ZNbKZeeIosVjqYaWHWdnQiKeIY6qmU76Qc1nlvMVZqzZY5578heGCvrLMdZojSGERS5AgQkEDFVRhIUGrToqJDO0nPfzDjl8il0KuChg5FlCDBtnxg//B727N4uSEmxROAn0vtv0RB4K7QLtp29/Htt0+AfzPwJXe9ddawMwn6c2uFjsCBraBi+uupuwBlzvA0FNdNmRH8tMUikXg/Yy+KQ8M3gL9a25vnX2cPgBZ6ip9AxwcAqMlyl73eHeot7d/z3T6+wEPO3J/B8olWgAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+UEDQgmFS2naPsAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAADElEQVQI12NgYGAAAAAEAAEnNCcKAAAAAElFTkSuQmCC" img2 = "/9j/4AAQSkZJRgABAQEASABIAAD/4QpKRXhpZgAASUkqAAgAAAAGABoBBQABAAAAVgAAABsBBQABAAAAXgAAACgBAwABAAAAAgAAADEBAgANAAAAZgAAADIBAgAUAAAAdAAAAGmHBAABAAAAiAAAAJoAAABIAAAAAQAAAEgAAAABAAAAR0lNUCAyLjEwLjE0AAAyMDIxOjAzOjI1IDE2OjI5OjQ3AAEAAaADAAEAAAABAAAAAAAAAAgAAAEEAAEAAAAAAQAAAQEEAAEAAADXAAAAAgEDAAMAAAAAAQAAAwEDAAEAAAAGAAAABgEDAAEAAAAGAAAAFQEDAAEAAAADAAAAAQIEAAEAAAAGAQAAAgIEAAEAAAA7CQAAAAAAAAgACAAIAP/Y/+AAEEpGSUYAAQEAAAEAAQAA/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgA1wEAAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A9/ooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAK+YP+GjvGH/QN0P8A78Tf/Ha+n6+AKAPYP+GjvGH/AEDdD/78Tf8Ax2j/AIaO8Yf9A3Q/+/E3/wAdrx+igD2D/ho7xh/0DdD/AO/E3/x2j/ho7xh/0DdD/wC/E3/x2vH6KAPYP+GjvGH/AEDdD/78Tf8Ax2j/AIaO8Yf9A3Q/+/E3/wAdrx+igD2D/ho7xh/0DdD/AO/E3/x2j/ho7xh/0DdD/wC/E3/x2vH6KAPYP+GjvGH/AEDdD/78Tf8Ax2j/AIaO8Yf9A3Q/+/E3/wAdrx+igD2D/ho7xh/0DdD/AO/E3/x2j/ho7xh/0DdD/wC/E3/x2vH6KAPYP+GjvGH/AEDdD/78Tf8Ax2j/AIaO8Yf9A3Q/+/E3/wAdrx+igD2D/ho7xh/0DdD/AO/E3/x2j/ho7xh/0DdD/wC/E3/x2vH6KAPYP+GjvGH/AEDdD/78Tf8Ax2j/AIaO8Yf9A3Q/+/E3/wAdrx+igD2D/ho7xh/0DdD/AO/E3/x2j/ho7xh/0DdD/wC/E3/x2vH6KAPYP+GjvGH/AEDdD/78Tf8Ax2j/AIaO8Yf9A3Q/+/E3/wAdrx+igD7/AKKKKACiiigAooooAKKKKACvgCvv+vgCgAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAPv8AooooAKKKKACiiigAooooAK+AK+/6+AKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA+/wCiiigAooooAKKKKACiiigAr4Ar7/r4AoAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD7/AKKKKACiiigAooooAKKKKACvgCvv+vgCgAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAPv8AooooAKKKKACiiigAooooAK+AK+/6+AKACiiigAooooAKKKKACiiigAr0jwt8FPEni7w5aa5YXulR2t1v2JPLIHG12Q5AjI6qe9eb19f/AAS/5JDoX/bx/wClElAHkH/DOPjD/oJaH/3/AJv/AI1R/wAM4+MP+glof/f+b/41X0/RQB8wf8M4+MP+glof/f8Am/8AjVH/AAzj4w/6CWh/9/5v/jVfT9FAHzB/wzj4w/6CWh/9/wCb/wCNUf8ADOPjD/oJaH/3/m/+NV9P0UAfMH/DOPjD/oJaH/3/AJv/AI1R/wAM4+MP+glof/f+b/41X0/RQB8wf8M4+MP+glof/f8Am/8AjVH/AAzj4w/6CWh/9/5v/jVfT9FAHzB/wzj4w/6CWh/9/wCb/wCNUf8ADOPjD/oJaH/3/m/+NV9P0UAFFFFABRRRQAUUUUAFFFFABXwBX3/XwBQAUUUUAFFFFABRRRQAUUUUAFfX/wAEv+SQ6F/28f8ApRJXyBX1/wDBL/kkOhf9vH/pRJQB6BRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAV8AV9/wBfAFABRRRQAUUUUAFFFFABRRRQAV9f/BL/AJJDoX/bx/6USV8gV9f/AAS/5JDoX/bx/wClElAHoFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABXwBX3/XwBQAUUUUAFFFFABRRRQAUUUUAFfX/wS/5JDoX/AG8f+lElfIFfX/wS/wCSQ6F/28f+lElAHoFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABXwBX3/XwBQAUUUUAFFFFABRRRQAUUUUAFfX/AMEv+SQ6F/28f+lElfIFfX/wS/5JDoX/AG8f+lElAHoFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABXwBRRQAUUUUAFFFFABRRRQAUUUUAFfX/wAEv+SQ6F/28f8ApRJRRQB6BRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAH//ZAP/iArBJQ0NfUFJPRklMRQABAQAAAqBsY21zBDAAAG1udHJSR0IgWFlaIAflAAMAGQAPABwAMmFjc3BBUFBMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD21gABAAAAANMtbGNtcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADWRlc2MAAAEgAAAAQGNwcnQAAAFgAAAANnd0cHQAAAGYAAAAFGNoYWQAAAGsAAAALHJYWVoAAAHYAAAAFGJYWVoAAAHsAAAAFGdYWVoAAAIAAAAAFHJUUkMAAAIUAAAAIGdUUkMAAAIUAAAAIGJUUkMAAAIUAAAAIGNocm0AAAI0AAAAJGRtbmQAAAJYAAAAJGRtZGQAAAJ8AAAAJG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAJAAAABwARwBJAE0AUAAgAGIAdQBpAGwAdAAtAGkAbgAgAHMAUgBHAEJtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABoAAAAcAFAAdQBiAGwAaQBjACAARABvAG0AYQBpAG4AAFhZWiAAAAAAAAD21gABAAAAANMtc2YzMgAAAAAAAQxCAAAF3v//8yUAAAeTAAD9kP//+6H///2iAAAD3AAAwG5YWVogAAAAAAAAb6AAADj1AAADkFhZWiAAAAAAAAAknwAAD4QAALbEWFlaIAAAAAAAAGKXAAC3hwAAGNlwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAMAAAAAo9cAAFR8AABMzQAAmZoAACZnAAAPXG1sdWMAAAAAAAAAAQAAAAxlblVTAAAACAAAABwARwBJAE0AUG1sdWMAAAAAAAAAAQAAAAxlblVTAAAACAAAABwAcwBSAEcAQv/bAEMAAwICAwICAwMDAwQDAwQFCAUFBAQFCgcHBggMCgwMCwoLCw0OEhANDhEOCwsQFhARExQVFRUMDxcYFhQYEhQVFP/bAEMBAwQEBQQFCQUFCRQNCw0UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFP/CABEIABUAGQMBEQACEQEDEQH/xAAXAAADAQAAAAAAAAAAAAAAAAAABwgJ/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEAMQAAABpkSAANUzlHgBVRABpSB//8QAGxAAAQUBAQAAAAAAAAAAAAAABQAEBhc2AhD/2gAIAQEAAQUCIPeBrC6giuoIrqCKWZYey7JP6VNqlTalmWiep8//xAAUEQEAAAAAAAAAAAAAAAAAAAAw/9oACAEDAQE/AU//xAAUEQEAAAAAAAAAAAAAAAAAAAAw/9oACAECAQE/AU//xAAhEAAABQQDAQEAAAAAAAAAAAAAAQIDBQQ0k9IRdLIxEP/aAAgBAQAGPwKpq3CUbbDanVEn7wRci1kMaNxayGNG4tZDGjcTPTe8GKakbNJOPuJaSavnJnwLqPyL0F1H5F6CZ6b3gxDdxn2X7//EABcQAQEBAQAAAAAAAAAAAAAAAAERICH/2gAIAQEAAT8hLs8otSCp2GcWLErbs8qEQWDyu8WJWr//2gAMAwEAAgADAAAAEIABAAJP/8QAFBEBAAAAAAAAAAAAAAAAAAAAMP/aAAgBAwEBPxBP/8QAFBEBAAAAAAAAAAAAAAAAAAAAMP/aAAgBAgEBPxBP/8QAFxABAQEBAAAAAAAAAAAAAAAAAREgMf/aAAgBAQABPxAT69h7QKUBQsqdz06dNin17D2oAKoLLB5vp02bP//Z" def __init__(self, client): self.client = client def batch_callback_result(self, results: dict) -> int: """ Check batch results for errors and return the number of occurred errors. Parameters ---------- results : dict The Weaviate batch creation return value. """ if results is not None: for result in results: if 'result' in result and 'errors' in result['result']: if 'error' in result['result']['errors']: print(f"error: {result['result']['errors']}") raise Exception("Some batch items failed!") def deleteTestClass(self, schemas, cls_name): if self.client.schema.contains(schemas): self.client.schema.delete_class(cls_name) def checkIfObjectsExist(self, uuids): for _id in uuids: # assert self.client.data_object.exists(_id) resp = self.client.data_object.get_by_id(_id, with_vector=True) if resp is None: print(f"ERROR!!! Object with ID: {_id} doesn't exist!!!") raise def consecutive_create_and_update_operations(self): print("Test started") cls_name = 'Test123' schemas = { 'classes': [ { 'class': cls_name, "vectorizer": "none", 'vectorIndexConfig': {'skip': False}, 'properties': [ { 'dataType': ['blob'], 'name': 'a', 'indexInverted': False, } ], }, ] } self.deleteTestClass(schemas, cls_name) uuids = [str(uuid1()) for _ in range(28000)] assert len(list(set(uuids))) == len(uuids), 'uuids contain duplicates' # extend print(f"Create objects in batch of 50 items...") with self.client.batch(batch_size=50, callback=self.batch_callback_result) as batch: for _id in uuids: batch.add_data_object(data_object={'a': self.img}, class_name=cls_name, uuid=_id) self.client.batch.flush() print(f"Update objects with vector started...") x = 1 # embed for _id in uuids: self.client.batch.add_data_object(data_object={'a': self.img2}, class_name=cls_name, uuid=_id, vector=[3,2,1]) if x % 1000 == 0: print(f"updated {x} objects...") x += 1 print("Check if objects exist...") # check self.checkIfObjectsExist(uuids) print(f"Update objects with new vector in batch of 50 items...") x = 1 # update vectors with self.client.batch(batch_size=50, callback=self.batch_callback_result) as batch: for _id in uuids: batch.add_data_object(data_object={'a': self.img}, class_name=cls_name, uuid=_id, vector=[1,2,3]) if x % 1000 == 0: print(f"updated {x} objects...") x += 1 self.client.batch.flush() print("Check if objects exist...") # check self.checkIfObjectsExist(uuids) self.deleteTestClass(schemas, cls_name) print("Test done") c = Client('http://localhost:8080') test = TestConsecutiveCreateAndUpdate(c) test.consecutive_create_and_update_operations()
89.440367
5,389
0.795569
683
9,749
11.270864
0.374817
0.014289
0.014809
0.023383
0.186932
0.153676
0.153676
0.14926
0.144973
0.130164
0
0.060113
0.129757
9,749
109
5,390
89.440367
0.847242
0.024618
0
0.289474
0
0.026316
0.701767
0.648958
0
1
0
0
0.013158
1
0.065789
false
0
0.026316
0
0.144737
0.144737
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
5
713e566b91f55269e724b2a11eda8f515d37d765
415
py
Python
evaluate/coverage_filter.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
null
null
null
evaluate/coverage_filter.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
null
null
null
evaluate/coverage_filter.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
2
2020-11-04T18:15:43.000Z
2020-11-06T01:38:08.000Z
from evaluate.filter import Filter from .vcf import VCF class CoverageFilter(Filter): def __init__(self, coverage_threshold: float): self._coverage_threshold = coverage_threshold @property def coverage_threshold(self) -> float: return self._coverage_threshold def record_should_be_filtered_out(self, record: VCF) -> bool: return record.coverage < self.coverage_threshold
27.666667
65
0.742169
49
415
5.959184
0.428571
0.349315
0.287671
0
0
0
0
0
0
0
0
0
0.187952
415
14
66
29.642857
0.866469
0
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.2
0.2
0.8
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
1
0
0
0
1
1
0
0
5
8535410c8ebbea8fb51fba1d44a3fdf3092fb5af
161
py
Python
tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
71
2015-04-13T09:44:14.000Z
2019-03-24T01:03:02.000Z
tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
35
2019-05-06T15:26:09.000Z
2022-03-28T06:30:33.000Z
tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
139
2015-05-30T18:37:43.000Z
2019-03-27T17:14:05.000Z
from tests.utils import W3CTestCase class TestFlexbox_StfTableCell(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox_stf-table-cell'))
26.833333
77
0.807453
19
161
6.473684
0.842105
0
0
0
0
0
0
0
0
0
0
0.020408
0.086957
161
5
78
32.2
0.816327
0
0
0
0
0
0.136646
0.136646
0
0
0
0
0
1
0
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8554e93428cf180870f92bec8ca8595e5c36545c
965
py
Python
servertools/variables/logos.py
sWallyx/server-tools
880f28bb1502cc51064e8e0f3f9c85ea2f1fe2af
[ "MIT" ]
null
null
null
servertools/variables/logos.py
sWallyx/server-tools
880f28bb1502cc51064e8e0f3f9c85ea2f1fe2af
[ "MIT" ]
7
2020-03-25T17:15:54.000Z
2021-06-25T15:37:43.000Z
servertools/variables/logos.py
sWallyx/server-tools
880f28bb1502cc51064e8e0f3f9c85ea2f1fe2af
[ "MIT" ]
1
2020-02-02T13:45:54.000Z
2020-02-02T13:45:54.000Z
""" Variables that contain the logo ASCII text """ SERVER_TOOLS_LOGO = r""" ____ _____ _ / ___| ___ _ ____ _____ _ __ |_ _|__ ___ | |___ \___ \ / _ \ '__\ \ / / _ \ '__| | |/ _ \ / _ \| / __| ___) | __/ | \ V / __/ | | | (_) | (_) | \__ \ |____/ \___|_| \_/ \___|_| |_|\___/ \___/|_|___/ """ SCAN_PORTS_LOGO = r""" ___ ___ __ _ _ __ _ __ ___ _ __| |_ ___ / __|/ __/ _` | '_ \ | '_ \ / _ \| '__| __/ __| \__ \ (_| (_| | | | | | |_) | (_) | | | |_\__ \ |___/\___\__,_|_| |_| | .__/ \___/|_| \__|___/ """ DNS_LOGO = r""" ____ _ _ ____ | _ \| \ | / ___| | | | | \| \___ \ | |_| | |\ |___) | |____/|_| \_|____/ """ HOST_TO_IP_LOGO = r""" _ _ _ _____ ___ ____ | | | | ___ ___| |_ |_ _|__ |_ _| _ \ | |_| |/ _ \/ __| __| | |/ _ \ | || |_) | | _ | (_) \__ \ |_ | | (_) | | || __/ |_| |_|\___/|___/\__| |_|\___/ |___|_| """
28.382353
56
0.359585
24
965
3.666667
0.708333
0.227273
0
0
0
0
0
0
0
0
0
0
0.378238
965
33
57
29.242424
0.146667
0.043523
0
0.222222
0
0.333333
0.886339
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
85ad9c028dfaf818420fafd7aefd545015dfdd94
70
py
Python
src/hello_world.py
jlanga/snakehooks
7ae3ece602a1470fba53e63a3695e35c5f62247d
[ "MIT" ]
1
2020-02-10T23:14:36.000Z
2020-02-10T23:14:36.000Z
src/hello_world.py
jlanga/snakehooks
7ae3ece602a1470fba53e63a3695e35c5f62247d
[ "MIT" ]
null
null
null
src/hello_world.py
jlanga/snakehooks
7ae3ece602a1470fba53e63a3695e35c5f62247d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Hello, world! """ print("Hello, World!")
8.75
22
0.585714
9
70
4.555556
0.777778
0.487805
0
0
0
0
0
0
0
0
0
0.016667
0.142857
70
7
23
10
0.666667
0.5
0
0
0
0
0.481481
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
a41089c49435a2064c9c78cdd2d52364cce44984
127
py
Python
textHandler/tests.py
surajsjain/social-media-analytics-app
1f310dcf2f79c9f80edee80dd59d8c63f827f04a
[ "MIT" ]
null
null
null
textHandler/tests.py
surajsjain/social-media-analytics-app
1f310dcf2f79c9f80edee80dd59d8c63f827f04a
[ "MIT" ]
8
2020-06-05T20:49:10.000Z
2022-02-10T00:37:59.000Z
textHandler/tests.py
surajsjain/social-media-analytics-app
1f310dcf2f79c9f80edee80dd59d8c63f827f04a
[ "MIT" ]
3
2020-01-26T10:48:25.000Z
2020-08-25T17:47:54.000Z
version https://git-lfs.github.com/spec/v1 oid sha256:9ab6c6191360e63c1b4c9b5659aef348a743c9e078be68190917369e4e9563e8 size 60
31.75
75
0.88189
13
127
8.615385
1
0
0
0
0
0
0
0
0
0
0
0.421488
0.047244
127
3
76
42.333333
0.504132
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
a4368f5ea4098d66e119f2d225e904c8c5edfc95
26
py
Python
sub/project6/package6/package/module.py
oshinko/py-pkgs
332030ee35453441a1e870176954367798b206d8
[ "MIT" ]
null
null
null
sub/project6/package6/package/module.py
oshinko/py-pkgs
332030ee35453441a1e870176954367798b206d8
[ "MIT" ]
null
null
null
sub/project6/package6/package/module.py
oshinko/py-pkgs
332030ee35453441a1e870176954367798b206d8
[ "MIT" ]
null
null
null
print(__file__, 'Hello!')
13
25
0.692308
3
26
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.076923
26
1
26
26
0.583333
0
0
0
0
0
0.230769
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
a43726d4f10b72e38bf5d56c3f12c1aa7e2214e2
140
py
Python
python_target/FoxySheep/Utils/__init__.py
rljacobson/FoxySheep
78451ba9f868d21f20f23ee880649f20669e7644
[ "BSD-2-Clause" ]
41
2016-02-08T12:35:11.000Z
2021-11-17T11:45:47.000Z
python_target/FoxySheep/Utils/__init__.py
rljacobson/FoxySheep
78451ba9f868d21f20f23ee880649f20669e7644
[ "BSD-2-Clause" ]
4
2020-09-09T20:43:34.000Z
2021-01-21T22:32:26.000Z
python_target/FoxySheep/Utils/__init__.py
rljacobson/FoxySheep
78451ba9f868d21f20f23ee880649f20669e7644
[ "BSD-2-Clause" ]
4
2017-08-20T01:04:10.000Z
2021-08-07T19:51:52.000Z
from .WolframLanguageData import find_symbol # Mathematica's members are all module level, so no need to import then. # import .Mathematica
35
72
0.807143
20
140
5.6
0.85
0
0
0
0
0
0
0
0
0
0
0
0.142857
140
4
73
35
0.933333
0.642857
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
a485788eeecfff354b48a006a86e1d854357d0c9
50
py
Python
aerosandbox/weights/__init__.py
raihaan123/AeroSandbox
1e7c78f04b066415f671237a4833ba98901bb9ec
[ "MIT" ]
1
2021-11-01T22:48:12.000Z
2021-11-01T22:48:12.000Z
aerosandbox/weights/__init__.py
raihaan123/AeroSandbox
1e7c78f04b066415f671237a4833ba98901bb9ec
[ "MIT" ]
null
null
null
aerosandbox/weights/__init__.py
raihaan123/AeroSandbox
1e7c78f04b066415f671237a4833ba98901bb9ec
[ "MIT" ]
null
null
null
from aerosandbox.weights.mass_properties import *
25
49
0.86
6
50
7
1
0
0
0
0
0
0
0
0
0
0
0
0.08
50
1
50
50
0.913043
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
a485dec593e36886639d25ea0cb31bfa15127541
93
py
Python
__name__ == '__main__'/test_import_new.py
kyaiooiayk/Python-Programming
b70dde24901cd24b38e2ead7c9a1b2d1808fc4b0
[ "OLDAP-2.3" ]
null
null
null
__name__ == '__main__'/test_import_new.py
kyaiooiayk/Python-Programming
b70dde24901cd24b38e2ead7c9a1b2d1808fc4b0
[ "OLDAP-2.3" ]
null
null
null
__name__ == '__main__'/test_import_new.py
kyaiooiayk/Python-Programming
b70dde24901cd24b38e2ead7c9a1b2d1808fc4b0
[ "OLDAP-2.3" ]
null
null
null
import important_new print("Called from test_import_new.py, __name__ has value?:", __name__)
31
71
0.806452
14
93
4.571429
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.096774
93
3
71
31
0.761905
0
0
0
0
0
0.553191
0
0
0
0
0
0
1
0
true
0
1
0
1
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
f117604d765d64de174902fb0fbc7bb4e32707ff
129
py
Python
test/generate_x.py
ksemianov/torch2caffe
1a4e622f0ddb1212dbfc0ffca91ed0ad1a0a0545
[ "MIT" ]
null
null
null
test/generate_x.py
ksemianov/torch2caffe
1a4e622f0ddb1212dbfc0ffca91ed0ad1a0a0545
[ "MIT" ]
null
null
null
test/generate_x.py
ksemianov/torch2caffe
1a4e622f0ddb1212dbfc0ffca91ed0ad1a0a0545
[ "MIT" ]
null
null
null
import sys import numpy as np assert len(sys.argv) == 6 x = np.random.randn(*map(int, sys.argv[1:-1])) np.save(sys.argv[-1], x)
18.428571
46
0.658915
27
129
3.148148
0.592593
0.247059
0.188235
0
0
0
0
0
0
0
0
0.035714
0.131783
129
6
47
21.5
0.723214
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0
false
0
0.4
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
f18793cae2b85ec27dc63fa7682a9e35d2982e31
102
py
Python
test/test_parse.py
aagnone3/edit-learn
1e033e3e358510f5400f1c7cc5687cafdcef1a00
[ "Apache-2.0" ]
null
null
null
test/test_parse.py
aagnone3/edit-learn
1e033e3e358510f5400f1c7cc5687cafdcef1a00
[ "Apache-2.0" ]
2
2018-06-17T21:16:37.000Z
2018-06-17T23:38:31.000Z
test/test_parse.py
aagnone3/edit-learn
1e033e3e358510f5400f1c7cc5687cafdcef1a00
[ "Apache-2.0" ]
null
null
null
import numpy import ielearn from ielearn import extract, predict, util def test_123(): assert True
12.75
42
0.784314
15
102
5.266667
0.8
0
0
0
0
0
0
0
0
0
0
0.035294
0.166667
102
7
43
14.571429
0.894118
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
true
0
0.6
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
f18f9e7f23115fa084cf6bfe20683d0f105bb79e
116
py
Python
src/bgpfu/io.py
bgpfu/bgpfu
6dcb236914d49ab8fb595d8a6d300f36ecf1e152
[ "Apache-2.0" ]
12
2017-08-18T14:39:43.000Z
2021-11-21T16:50:45.000Z
src/bgpfu/io.py
bgpfu/bgpfu
6dcb236914d49ab8fb595d8a6d300f36ecf1e152
[ "Apache-2.0" ]
17
2017-04-03T22:51:30.000Z
2021-06-17T12:48:58.000Z
src/bgpfu/io.py
bgpfu/bgpfu
6dcb236914d49ab8fb595d8a6d300f36ecf1e152
[ "Apache-2.0" ]
2
2017-04-04T18:25:22.000Z
2019-07-29T08:36:38.000Z
# import to namespace from gevent import select, socket # noqa from gevent.queue import Empty, Full, Queue # noqa
29
51
0.758621
17
116
5.176471
0.647059
0.227273
0
0
0
0
0
0
0
0
0
0
0.181034
116
3
52
38.666667
0.926316
0.25
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
74aed0a79651f3031398772075cf7ed206fd3979
1,752
py
Python
hypersand/plot.py
deverte/HyperSand
8e1fa4db68689ec9fe108ecc4759a221122a9a80
[ "MIT" ]
1
2020-01-31T15:55:01.000Z
2020-01-31T15:55:01.000Z
hypersand/plot.py
deverte/HyperSand
8e1fa4db68689ec9fe108ecc4759a221122a9a80
[ "MIT" ]
null
null
null
hypersand/plot.py
deverte/HyperSand
8e1fa4db68689ec9fe108ecc4759a221122a9a80
[ "MIT" ]
1
2020-06-24T23:59:54.000Z
2020-06-24T23:59:54.000Z
import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D """ Вывод графиков. """ def plt2d(data, types): """ Строит двумерный график из произвольного количества таблиц. Параметры: data - список из таблиц данных типа pandas.DataFrame. Таблицы должны иметь два столбца - ось X и ось Y. Тип - list. types - список из типов графиков. Значения: "plot" - график из точек, соединенных прямой, "scatter" - график из точек. """ # Определяем оси, на которых будем строить графики ax = plt.figure().gca() # Строим графики в зависимости от типа for i in range(len(types)): element = data[i] keys = element.keys() if types[i] == "plot": ax.plot(element[keys[0]], element[keys[1]]) if types[i] == "scatter": ax.scatter(element[keys[0]], element[keys[1]]) plt.show() def plt3d(data, types): """ Строит трехмерный график из произвольного количества таблиц. Параметры: data - список из таблиц данных типа pandas.DataFrame. Таблицы должны иметь три столбца - ось X, ось Y и ось Z. Тип - list. types - список из типов графиков. Значения: "plot" - график из точек, соединенных прямой, "scatter" - график из точек. """ # Определяем оси, на которых будем строить графики ax = plt.figure().gca(projection='3d') # Строим графики в зависимости от типа for i in range(len(types)): element = data[i] keys = element.keys() if types[i] == "plot": ax.plot(element[keys[0]], element[keys[1]], element[keys[2]]) if types[i] == "scatter": ax.scatter(element[keys[0]], element[keys[1]], element[keys[2]]) plt.show()
33.692308
77
0.625571
231
1,752
4.74026
0.341991
0.120548
0.047489
0.069406
0.796347
0.796347
0.796347
0.796347
0.796347
0.774429
0
0.011477
0.253995
1,752
51
78
34.352941
0.82632
0.462329
0
0.521739
0
0
0.028402
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.217391
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
74d30db42e4e43fd40ce31aa9b1b2da29831eebb
29,244
py
Python
setup.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
12
2019-07-23T08:07:53.000Z
2022-03-09T06:13:16.000Z
setup.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
7
2019-08-30T07:00:00.000Z
2021-12-30T08:02:56.000Z
setup.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
5
2020-10-10T03:40:32.000Z
2021-11-23T12:28:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup script for cynetworkx You can install cynetworkx with python setup.py install """ from glob import glob import os import sys if os.path.exists('MANIFEST'): os.remove('MANIFEST') from setuptools import setup from setuptools.extension import Extension from Cython.Build import cythonize if sys.argv[-1] == 'setup.py': print("To install, run 'python setup.py install'") print() if sys.version_info[:2] < (2, 7): print("NetworkX requires Python 2.7 or later (%d.%d detected)." % sys.version_info[:2]) sys.exit(-1) # Write the version information. sys.path.insert(0, 'cynetworkx') import cynetworkx.release as release version = release.write_versionfile() sys.path.pop(0) extensions = [ Extension("cynetworkx.algorithms.approximation.__init__", ["cynetworkx/algorithms/approximation/__init__.py"]), Extension("cynetworkx.algorithms.approximation.clique", ["cynetworkx/algorithms/approximation/clique.py"]), Extension("cynetworkx.algorithms.approximation.clustering_coefficient", ["cynetworkx/algorithms/approximation/clustering_coefficient.py"]), Extension("cynetworkx.algorithms.approximation.connectivity", ["cynetworkx/algorithms/approximation/connectivity.py"]), Extension("cynetworkx.algorithms.approximation.dominating_set", ["cynetworkx/algorithms/approximation/dominating_set.py"]), Extension("cynetworkx.algorithms.approximation.independent_set", ["cynetworkx/algorithms/approximation/independent_set.py"]), Extension("cynetworkx.algorithms.approximation.kcomponents", ["cynetworkx/algorithms/approximation/kcomponents.py"]), Extension("cynetworkx.algorithms.approximation.matching", ["cynetworkx/algorithms/approximation/matching.py"]), Extension("cynetworkx.algorithms.approximation.ramsey", ["cynetworkx/algorithms/approximation/ramsey.py"]), Extension("cynetworkx.algorithms.approximation.steinertree", ["cynetworkx/algorithms/approximation/steinertree.py"]), Extension("cynetworkx.algorithms.approximation.vertex_cover", ["cynetworkx/algorithms/approximation/vertex_cover.py"]), Extension("cynetworkx.algorithms.assortativity.__init__", ["cynetworkx/algorithms/assortativity/__init__.py"]), Extension("cynetworkx.algorithms.assortativity.connectivity", ["cynetworkx/algorithms/assortativity/connectivity.py"]), Extension("cynetworkx.algorithms.assortativity.correlation", ["cynetworkx/algorithms/assortativity/correlation.py"]), Extension("cynetworkx.algorithms.assortativity.mixing", ["cynetworkx/algorithms/assortativity/mixing.py"]), Extension("cynetworkx.algorithms.assortativity.neighbor_degree", ["cynetworkx/algorithms/assortativity/neighbor_degree.py"]), Extension("cynetworkx.algorithms.assortativity.pairs", ["cynetworkx/algorithms/assortativity/pairs.py"]), Extension("cynetworkx.algorithms.bipartite.__init__", ["cynetworkx/algorithms/bipartite/__init__.py"]), Extension("cynetworkx.algorithms.bipartite.basic", ["cynetworkx/algorithms/bipartite/basic.py"]), Extension("cynetworkx.algorithms.bipartite.centrality", ["cynetworkx/algorithms/bipartite/centrality.py"]), Extension("cynetworkx.algorithms.bipartite.cluster", ["cynetworkx/algorithms/bipartite/cluster.py"]), Extension("cynetworkx.algorithms.bipartite.covering", ["cynetworkx/algorithms/bipartite/covering.py"]), Extension("cynetworkx.algorithms.bipartite.edgelist", ["cynetworkx/algorithms/bipartite/edgelist.py"]), Extension("cynetworkx.algorithms.bipartite.generators", ["cynetworkx/algorithms/bipartite/generators.py"]), Extension("cynetworkx.algorithms.bipartite.matching", ["cynetworkx/algorithms/bipartite/matching.py"]), Extension("cynetworkx.algorithms.bipartite.matrix", ["cynetworkx/algorithms/bipartite/matrix.py"]), Extension("cynetworkx.algorithms.bipartite.projection", ["cynetworkx/algorithms/bipartite/projection.py"]), Extension("cynetworkx.algorithms.bipartite.redundancy", ["cynetworkx/algorithms/bipartite/redundancy.py"]), Extension("cynetworkx.algorithms.bipartite.spectral", ["cynetworkx/algorithms/bipartite/spectral.py"]), Extension("cynetworkx.algorithms.centrality.__init__", ["cynetworkx/algorithms/centrality/__init__.py"]), Extension("cynetworkx.algorithms.centrality.betweenness", ["cynetworkx/algorithms/centrality/betweenness.py"]), Extension("cynetworkx.algorithms.centrality.betweenness_subset", ["cynetworkx/algorithms/centrality/betweenness_subset.py"]), Extension("cynetworkx.algorithms.centrality.closeness", ["cynetworkx/algorithms/centrality/closeness.py"]), Extension("cynetworkx.algorithms.centrality.current_flow_betweenness", ["cynetworkx/algorithms/centrality/current_flow_betweenness.py"]), Extension("cynetworkx.algorithms.centrality.current_flow_betweenness_subset", ["cynetworkx/algorithms/centrality/current_flow_betweenness_subset.py"]), Extension("cynetworkx.algorithms.centrality.current_flow_closeness", ["cynetworkx/algorithms/centrality/current_flow_closeness.py"]), Extension("cynetworkx.algorithms.centrality.degree_alg", ["cynetworkx/algorithms/centrality/degree_alg.py"]), Extension("cynetworkx.algorithms.centrality.dispersion", ["cynetworkx/algorithms/centrality/dispersion.py"]), Extension("cynetworkx.algorithms.centrality.eigenvector", ["cynetworkx/algorithms/centrality/eigenvector.py"]), Extension("cynetworkx.algorithms.centrality.flow_matrix", ["cynetworkx/algorithms/centrality/flow_matrix.py"]), Extension("cynetworkx.algorithms.centrality.harmonic", ["cynetworkx/algorithms/centrality/harmonic.py"]), Extension("cynetworkx.algorithms.centrality.katz", ["cynetworkx/algorithms/centrality/katz.py"]), Extension("cynetworkx.algorithms.centrality.load", ["cynetworkx/algorithms/centrality/load.py"]), Extension("cynetworkx.algorithms.centrality.reaching", ["cynetworkx/algorithms/centrality/reaching.py"]), Extension("cynetworkx.algorithms.centrality.subgraph_alg", ["cynetworkx/algorithms/centrality/subgraph_alg.py"]), Extension("cynetworkx.algorithms.coloring.__init__", ["cynetworkx/algorithms/coloring/__init__.py"]), Extension("cynetworkx.algorithms.coloring.greedy_coloring", ["cynetworkx/algorithms/coloring/greedy_coloring.py"]), Extension("cynetworkx.algorithms.coloring.greedy_coloring_with_interchange", ["cynetworkx/algorithms/coloring/greedy_coloring_with_interchange.py"]), Extension("cynetworkx.algorithms.community.__init__", ["cynetworkx/algorithms/community/__init__.py"]), Extension("cynetworkx.algorithms.community.asyn_fluidc", ["cynetworkx/algorithms/community/asyn_fluidc.py"]), Extension("cynetworkx.algorithms.community.centrality", ["cynetworkx/algorithms/community/centrality.py"]), Extension("cynetworkx.algorithms.community.community_generators", ["cynetworkx/algorithms/community/community_generators.py"]), Extension("cynetworkx.algorithms.community.community_utils", ["cynetworkx/algorithms/community/community_utils.py"]), Extension("cynetworkx.algorithms.community.kclique", ["cynetworkx/algorithms/community/kclique.py"]), Extension("cynetworkx.algorithms.community.kernighan_lin", ["cynetworkx/algorithms/community/kernighan_lin.py"]), Extension("cynetworkx.algorithms.community.label_propagation", ["cynetworkx/algorithms/community/label_propagation.py"]), Extension("cynetworkx.algorithms.community.quality", ["cynetworkx/algorithms/community/quality.py"]), Extension("cynetworkx.algorithms.components.__init__", ["cynetworkx/algorithms/components/__init__.py"]), Extension("cynetworkx.algorithms.components.attracting", ["cynetworkx/algorithms/components/attracting.py"]), Extension("cynetworkx.algorithms.components.biconnected", ["cynetworkx/algorithms/components/biconnected.py"]), Extension("cynetworkx.algorithms.components.connected", ["cynetworkx/algorithms/components/connected.py"]), Extension("cynetworkx.algorithms.components.semiconnected", ["cynetworkx/algorithms/components/semiconnected.py"]), Extension("cynetworkx.algorithms.components.strongly_connected", ["cynetworkx/algorithms/components/strongly_connected.py"]), Extension("cynetworkx.algorithms.components.weakly_connected", ["cynetworkx/algorithms/components/weakly_connected.py"]), Extension("cynetworkx.algorithms.connectivity.__init__", ["cynetworkx/algorithms/connectivity/__init__.py"]), Extension("cynetworkx.algorithms.connectivity.connectivity", ["cynetworkx/algorithms/connectivity/connectivity.py"]), Extension("cynetworkx.algorithms.connectivity.cuts", ["cynetworkx/algorithms/connectivity/cuts.py"]), Extension("cynetworkx.algorithms.connectivity.disjoint_paths", ["cynetworkx/algorithms/connectivity/disjoint_paths.py"]), Extension("cynetworkx.algorithms.connectivity.edge_augmentation", ["cynetworkx/algorithms/connectivity/edge_augmentation.py"]), Extension("cynetworkx.algorithms.connectivity.edge_kcomponents", ["cynetworkx/algorithms/connectivity/edge_kcomponents.py"]), Extension("cynetworkx.algorithms.connectivity.kcomponents", ["cynetworkx/algorithms/connectivity/kcomponents.py"]), Extension("cynetworkx.algorithms.connectivity.kcutsets", ["cynetworkx/algorithms/connectivity/kcutsets.py"]), Extension("cynetworkx.algorithms.connectivity.stoerwagner", ["cynetworkx/algorithms/connectivity/stoerwagner.py"]), Extension("cynetworkx.algorithms.connectivity.utils", ["cynetworkx/algorithms/connectivity/utils.py"]), Extension("cynetworkx.algorithms.flow.__init__", ["cynetworkx/algorithms/flow/__init__.py"]), Extension("cynetworkx.algorithms.flow.boykovkolmogorov", ["cynetworkx/algorithms/flow/boykovkolmogorov.py"]), Extension("cynetworkx.algorithms.flow.capacityscaling", ["cynetworkx/algorithms/flow/capacityscaling.py"]), Extension("cynetworkx.algorithms.flow.dinitz_alg", ["cynetworkx/algorithms/flow/dinitz_alg.py"]), Extension("cynetworkx.algorithms.flow.edmondskarp", ["cynetworkx/algorithms/flow/edmondskarp.py"]), Extension("cynetworkx.algorithms.flow.gomory_hu", ["cynetworkx/algorithms/flow/gomory_hu.py"]), Extension("cynetworkx.algorithms.flow.maxflow", ["cynetworkx/algorithms/flow/maxflow.py"]), Extension("cynetworkx.algorithms.flow.mincost", ["cynetworkx/algorithms/flow/mincost.py"]), Extension("cynetworkx.algorithms.flow.networksimplex", ["cynetworkx/algorithms/flow/networksimplex.py"]), Extension("cynetworkx.algorithms.flow.preflowpush", ["cynetworkx/algorithms/flow/preflowpush.py"]), Extension("cynetworkx.algorithms.flow.shortestaugmentingpath", ["cynetworkx/algorithms/flow/shortestaugmentingpath.py"]), Extension("cynetworkx.algorithms.flow.utils", ["cynetworkx/algorithms/flow/utils.py"]), Extension("cynetworkx.algorithms.isomorphism.__init__", ["cynetworkx/algorithms/isomorphism/__init__.py"]), Extension("cynetworkx.algorithms.isomorphism.isomorph", ["cynetworkx/algorithms/isomorphism/isomorph.py"]), Extension("cynetworkx.algorithms.isomorphism.isomorphvf2", ["cynetworkx/algorithms/isomorphism/isomorphvf2.py"]), Extension("cynetworkx.algorithms.isomorphism.matchhelpers", ["cynetworkx/algorithms/isomorphism/matchhelpers.py"]), Extension("cynetworkx.algorithms.isomorphism.temporalisomorphvf2", ["cynetworkx/algorithms/isomorphism/temporalisomorphvf2.py"]), Extension("cynetworkx.algorithms.isomorphism.vf2userfunc", ["cynetworkx/algorithms/isomorphism/vf2userfunc.py"]), Extension("cynetworkx.algorithms.link_analysis.__init__", ["cynetworkx/algorithms/link_analysis/__init__.py"]), Extension("cynetworkx.algorithms.link_analysis.hits_alg", ["cynetworkx/algorithms/link_analysis/hits_alg.py"]), Extension("cynetworkx.algorithms.link_analysis.pagerank_alg", ["cynetworkx/algorithms/link_analysis/pagerank_alg.py"]), Extension("cynetworkx.algorithms.operators.__init__", ["cynetworkx/algorithms/operators/__init__.py"]), Extension("cynetworkx.algorithms.operators.all", ["cynetworkx/algorithms/operators/all.py"]), Extension("cynetworkx.algorithms.operators.binary", ["cynetworkx/algorithms/operators/binary.py"]), Extension("cynetworkx.algorithms.operators.product", ["cynetworkx/algorithms/operators/product.py"]), Extension("cynetworkx.algorithms.operators.unary", ["cynetworkx/algorithms/operators/unary.py"]), Extension("cynetworkx.algorithms.shortest_paths.__init__", ["cynetworkx/algorithms/shortest_paths/__init__.py"]), Extension("cynetworkx.algorithms.shortest_paths.astar", ["cynetworkx/algorithms/shortest_paths/astar.py"]), Extension("cynetworkx.algorithms.shortest_paths.dense", ["cynetworkx/algorithms/shortest_paths/dense.py"]), Extension("cynetworkx.algorithms.shortest_paths.generic", ["cynetworkx/algorithms/shortest_paths/generic.py"]), Extension("cynetworkx.algorithms.shortest_paths.unweighted", ["cynetworkx/algorithms/shortest_paths/unweighted.py"]), Extension("cynetworkx.algorithms.shortest_paths.weighted", ["cynetworkx/algorithms/shortest_paths/weighted.py"]), Extension("cynetworkx.algorithms.traversal.__init__", ["cynetworkx/algorithms/traversal/__init__.py"]), Extension("cynetworkx.algorithms.traversal.beamsearch", ["cynetworkx/algorithms/traversal/beamsearch.py"]), Extension("cynetworkx.algorithms.traversal.breadth_first_search", ["cynetworkx/algorithms/traversal/breadth_first_search.py"]), Extension("cynetworkx.algorithms.traversal.depth_first_search", ["cynetworkx/algorithms/traversal/depth_first_search.py"]), Extension("cynetworkx.algorithms.traversal.edgedfs", ["cynetworkx/algorithms/traversal/edgedfs.py"]), Extension("cynetworkx.algorithms.tree.__init__", ["cynetworkx/algorithms/tree/__init__.py"]), Extension("cynetworkx.algorithms.tree.branchings", ["cynetworkx/algorithms/tree/branchings.py"]), Extension("cynetworkx.algorithms.tree.coding", ["cynetworkx/algorithms/tree/coding.py"]), Extension("cynetworkx.algorithms.tree.mst", ["cynetworkx/algorithms/tree/mst.py"]), Extension("cynetworkx.algorithms.tree.operations", ["cynetworkx/algorithms/tree/operations.py"]), Extension("cynetworkx.algorithms.tree.recognition", ["cynetworkx/algorithms/tree/recognition.py"]), Extension("cynetworkx.algorithms.__init__", ["cynetworkx/algorithms/__init__.py"]), Extension("cynetworkx.algorithms.boundary", ["cynetworkx/algorithms/boundary.py"]), Extension("cynetworkx.algorithms.bridges", ["cynetworkx/algorithms/bridges.py"]), Extension("cynetworkx.algorithms.chains", ["cynetworkx/algorithms/chains.py"]), Extension("cynetworkx.algorithms.chordal", ["cynetworkx/algorithms/chordal.py"]), Extension("cynetworkx.algorithms.clique", ["cynetworkx/algorithms/clique.py"]), Extension("cynetworkx.algorithms.cluster", ["cynetworkx/algorithms/cluster.py"]), Extension("cynetworkx.algorithms.communicability_alg", ["cynetworkx/algorithms/communicability_alg.py"]), Extension("cynetworkx.algorithms.core", ["cynetworkx/algorithms/core.py"]), Extension("cynetworkx.algorithms.covering", ["cynetworkx/algorithms/covering.py"]), Extension("cynetworkx.algorithms.cuts", ["cynetworkx/algorithms/cuts.py"]), Extension("cynetworkx.algorithms.cycles", ["cynetworkx/algorithms/cycles.py"]), Extension("cynetworkx.algorithms.dag", ["cynetworkx/algorithms/dag.py"]), Extension("cynetworkx.algorithms.distance_measures", ["cynetworkx/algorithms/distance_measures.py"]), Extension("cynetworkx.algorithms.distance_regular", ["cynetworkx/algorithms/distance_regular.py"]), Extension("cynetworkx.algorithms.dominance", ["cynetworkx/algorithms/dominance.py"]), Extension("cynetworkx.algorithms.domninating", ["cynetworkx/algorithms/dominating.py"]), Extension("cynetworkx.algorithms.efficiency", ["cynetworkx/algorithms/efficiency.py"]), Extension("cynetworkx.algorithms.euler", ["cynetworkx/algorithms/euler.py"]), Extension("cynetworkx.algorithms.graphical", ["cynetworkx/algorithms/graphical.py"]), Extension("cynetworkx.algorithms.hierarchy", ["cynetworkx/algorithms/hierarchy.py"]), Extension("cynetworkx.algorithms.hybrid", ["cynetworkx/algorithms/hybrid.py"]), Extension("cynetworkx.algorithms.isolate", ["cynetworkx/algorithms/isolate.py"]), Extension("cynetworkx.algorithms.link_prediction", ["cynetworkx/algorithms/link_prediction.py"]), Extension("cynetworkx.algorithms.lowest_common_ancestors", ["cynetworkx/algorithms/lowest_common_ancestors.py"]), Extension("cynetworkx.algorithms.matching", ["cynetworkx/algorithms/matching.py"]), Extension("cynetworkx.algorithms.minors", ["cynetworkx/algorithms/minors.py"]), Extension("cynetworkx.algorithms.mis", ["cynetworkx/algorithms/mis.py"]), Extension("cynetworkx.algorithms.reciprocity", ["cynetworkx/algorithms/reciprocity.py"]), Extension("cynetworkx.algorithms.richclub", ["cynetworkx/algorithms/richclub.py"]), Extension("cynetworkx.algorithms.similarity", ["cynetworkx/algorithms/similarity.py"]), Extension("cynetworkx.algorithms.simple_paths", ["cynetworkx/algorithms/simple_paths.py"]), Extension("cynetworkx.algorithms.smetric", ["cynetworkx/algorithms/smetric.py"]), Extension("cynetworkx.algorithms.structuralholes", ["cynetworkx/algorithms/structuralholes.py"]), Extension("cynetworkx.algorithms.swap", ["cynetworkx/algorithms/swap.py"]), Extension("cynetworkx.algorithms.threshold", ["cynetworkx/algorithms/threshold.py"]), Extension("cynetworkx.algorithms.tournament", ["cynetworkx/algorithms/tournament.py"]), Extension("cynetworkx.algorithms.triads", ["cynetworkx/algorithms/triads.py"]), Extension("cynetworkx.algorithms.vitality", ["cynetworkx/algorithms/vitality.py"]), Extension("cynetworkx.algorithms.voronoi", ["cynetworkx/algorithms/voronoi.py"]), Extension("cynetworkx.algorithms.weiner", ["cynetworkx/algorithms/wiener.py"]), Extension("cynetworkx.classes.__init__", ["cynetworkx/classes/__init__.py"]), Extension("cynetworkx.classes.coreviews", ["cynetworkx/classes/coreviews.py"]), Extension("cynetworkx.classes.digraph", ["cynetworkx/classes/digraph.py"]), Extension("cynetworkx.classes.filters", ["cynetworkx/classes/filters.py"]), Extension("cynetworkx.classes.function", ["cynetworkx/classes/function.py"]), Extension("cynetworkx.classes.graph", ["cynetworkx/classes/graph.py"]), Extension("cynetworkx.classes.graphviews", ["cynetworkx/classes/graphviews.py"]), Extension("cynetworkx.classes.multidigraph", ["cynetworkx/classes/multidigraph.py"]), Extension("cynetworkx.classes.multigraph", ["cynetworkx/classes/multigraph.py"]), Extension("cynetworkx.classes.ordered", ["cynetworkx/classes/ordered.py"]), Extension("cynetworkx.classes.reportviews", ["cynetworkx/classes/reportviews.py"]), Extension("cynetworkx.utils.__init__", ["cynetworkx/utils/__init__.py"]), Extension("cynetworkx.utils.contextmanagers", ["cynetworkx/utils/contextmanagers.py"]), Extension("cynetworkx.utils.decorators", ["cynetworkx/utils/decorators.py"]), Extension("cynetworkx.utils.heaps", ["cynetworkx/utils/heaps.py"]), Extension("cynetworkx.utils.misc", ["cynetworkx/utils/misc.py"]), Extension("cynetworkx.utils.random_sequence", ["cynetworkx/utils/random_sequence.py"]), Extension("cynetworkx.utils.rcm", ["cynetworkx/utils/rcm.py"]), Extension("cynetworkx.utils.union_find", ["cynetworkx/utils/union_find.py"]), Extension("cynetworkx.drawing.__init__", ["cynetworkx/drawing/__init__.py"]), Extension("cynetworkx.drawing.layout", ["cynetworkx/drawing/layout.py"]), Extension("cynetworkx.drawing.nx_agraph", ["cynetworkx/drawing/nx_agraph.py"]), Extension("cynetworkx.drawing.nx_pydot", ["cynetworkx/drawing/nx_pydot.py"]), Extension("cynetworkx.drawing.nx_pylab", ["cynetworkx/drawing/nx_pylab.py"]), Extension("cynetworkx.generators.__init__", ["cynetworkx/generators/__init__.py"]), Extension("cynetworkx.generators.atlas", ["cynetworkx/generators/atlas.py"]), Extension("cynetworkx.generators.classic", ["cynetworkx/generators/classic.py"]), Extension("cynetworkx.generators.community", ["cynetworkx/generators/community.py"]), Extension("cynetworkx.generators.degree_seq", ["cynetworkx/generators/degree_seq.py"]), Extension("cynetworkx.generators.directed", ["cynetworkx/generators/directed.py"]), Extension("cynetworkx.generators.duplication", ["cynetworkx/generators/duplication.py"]), Extension("cynetworkx.generators.ego", ["cynetworkx/generators/ego.py"]), Extension("cynetworkx.generators.expanders", ["cynetworkx/generators/expanders.py"]), Extension("cynetworkx.generators.geometric", ["cynetworkx/generators/geometric.py"]), Extension("cynetworkx.generators.intersection", ["cynetworkx/generators/intersection.py"]), Extension("cynetworkx.generators.joint_degree_seq", ["cynetworkx/generators/joint_degree_seq.py"]), Extension("cynetworkx.generators.lattice", ["cynetworkx/generators/lattice.py"]), Extension("cynetworkx.generators.line", ["cynetworkx/generators/line.py"]), Extension("cynetworkx.generators.mycielski", ["cynetworkx/generators/mycielski.py"]), Extension("cynetworkx.generators.nonisomorphic_trees", ["cynetworkx/generators/nonisomorphic_trees.py"]), Extension("cynetworkx.generators.random_clustered", ["cynetworkx/generators/random_clustered.py"]), Extension("cynetworkx.generators.random_graphs", ["cynetworkx/generators/random_graphs.py"]), Extension("cynetworkx.generators.small", ["cynetworkx/generators/small.py"]), Extension("cynetworkx.generators.social", ["cynetworkx/generators/social.py"]), Extension("cynetworkx.generators.stochastic", ["cynetworkx/generators/stochastic.py"]), Extension("cynetworkx.generators.trees", ["cynetworkx/generators/trees.py"]), Extension("cynetworkx.generators.triads", ["cynetworkx/generators/triads.py"]), Extension("cynetworkx.linalg.__init__", ["cynetworkx/linalg/__init__.py"]), Extension("cynetworkx.linalg.algebraicconnectivity", ["cynetworkx/linalg/algebraicconnectivity.py"]), Extension("cynetworkx.linalg.attrmatrix", ["cynetworkx/linalg/attrmatrix.py"]), Extension("cynetworkx.linalg.graphmatrix", ["cynetworkx/linalg/graphmatrix.py"]), Extension("cynetworkx.linalg.laplacianmatrix", ["cynetworkx/linalg/laplacianmatrix.py"]), Extension("cynetworkx.linalg.modularitymatrix", ["cynetworkx/linalg/modularitymatrix.py"]), Extension("cynetworkx.linalg.spectrum", ["cynetworkx/linalg/spectrum.py"]), Extension("cynetworkx.readwrite.json_graph.__init__", ["cynetworkx/readwrite/json_graph/__init__.py"]), Extension("cynetworkx.readwrite.json_graph.adjacency", ["cynetworkx/readwrite/json_graph/adjacency.py"]), Extension("cynetworkx.readwrite.json_graph.cytoscape", ["cynetworkx/readwrite/json_graph/cytoscape.py"]), Extension("cynetworkx.readwrite.json_graph.jit", ["cynetworkx/readwrite/json_graph/jit.py"]), Extension("cynetworkx.readwrite.json_graph.node_link", ["cynetworkx/readwrite/json_graph/node_link.py"]), Extension("cynetworkx.readwrite.json_graph.tree", ["cynetworkx/readwrite/json_graph/tree.py"]), Extension("cynetworkx.readwrite.__init__", ["cynetworkx/readwrite/__init__.py"]), Extension("cynetworkx.readwrite.adjlist", ["cynetworkx/readwrite/adjlist.py"]), Extension("cynetworkx.readwrite.edgelist", ["cynetworkx/readwrite/edgelist.py"]), Extension("cynetworkx.readwrite.gexf", ["cynetworkx/readwrite/gexf.py"]), Extension("cynetworkx.readwrite.gml", ["cynetworkx/readwrite/gml.py"]), Extension("cynetworkx.readwrite.gpickle", ["cynetworkx/readwrite/gpickle.py"]), Extension("cynetworkx.readwrite.graph6", ["cynetworkx/readwrite/graph6.py"]), Extension("cynetworkx.readwrite.graphml", ["cynetworkx/readwrite/graphml.py"]), Extension("cynetworkx.readwrite.leda", ["cynetworkx/readwrite/leda.py"]), Extension("cynetworkx.readwrite.multiline_adjlist", ["cynetworkx/readwrite/multiline_adjlist.py"]), Extension("cynetworkx.readwrite.nx_shp", ["cynetworkx/readwrite/nx_shp.py"]), Extension("cynetworkx.readwrite.nx_yaml", ["cynetworkx/readwrite/nx_yaml.py"]), Extension("cynetworkx.readwrite.p2g", ["cynetworkx/readwrite/p2g.py"]), Extension("cynetworkx.readwrite.pajek", ["cynetworkx/readwrite/pajek.py"]), Extension("cynetworkx.readwrite.sparse6", ["cynetworkx/readwrite/sparse6.py"]), Extension("cynetworkx.__init__", ["cynetworkx/__init__.py"]), Extension("cynetworkx.convert", ["cynetworkx/convert.py"]), Extension("cynetworkx.convert_matrix", ["cynetworkx/convert_matrix.py"]), Extension("cynetworkx.exception", ["cynetworkx/exception.py"]), Extension("cynetworkx.relabel", ["cynetworkx/relabel.py"]) ] packages = ["cynetworkx", "cynetworkx.algorithms", "cynetworkx.algorithms.assortativity", "cynetworkx.algorithms.bipartite", "cynetworkx.algorithms.node_classification", "cynetworkx.algorithms.centrality", "cynetworkx.algorithms.community", "cynetworkx.algorithms.components", "cynetworkx.algorithms.connectivity", "cynetworkx.algorithms.coloring", "cynetworkx.algorithms.flow", "cynetworkx.algorithms.traversal", "cynetworkx.algorithms.isomorphism", "cynetworkx.algorithms.shortest_paths", "cynetworkx.algorithms.link_analysis", "cynetworkx.algorithms.operators", "cynetworkx.algorithms.approximation", "cynetworkx.algorithms.tree", "cynetworkx.classes", "cynetworkx.generators", "cynetworkx.drawing", "cynetworkx.linalg", "cynetworkx.readwrite", "cynetworkx.readwrite.json_graph", "cynetworkx.tests", "cynetworkx.testing", "cynetworkx.utils"] docdirbase = 'share/doc/cynetworkx-%s' % version # add basic documentation data = [(docdirbase, glob("*.txt"))] # add examples for d in ['.', 'advanced', 'algorithms', 'basic', '3d_drawing', 'drawing', 'graph', 'javascript', 'jit', 'pygraphviz', 'subclass']: dd = os.path.join(docdirbase, 'examples', d) pp = os.path.join('examples', d) data.append((dd, glob(os.path.join(pp, "*.txt")))) data.append((dd, glob(os.path.join(pp, "*.py")))) data.append((dd, glob(os.path.join(pp, "*.bz2")))) data.append((dd, glob(os.path.join(pp, "*.gz")))) data.append((dd, glob(os.path.join(pp, "*.mbox")))) data.append((dd, glob(os.path.join(pp, "*.edgelist")))) # add the tests package_data = { 'cynetworkx': ['tests/*.py'], 'cynetworkx.algorithms': ['tests/*.py'], 'cynetworkx.algorithms.assortativity': ['tests/*.py'], 'cynetworkx.algorithms.bipartite': ['tests/*.py'], 'cynetworkx.algorithms.node_classification': ['tests/*.py'], 'cynetworkx.algorithms.centrality': ['tests/*.py'], 'cynetworkx.algorithms.community': ['tests/*.py'], 'cynetworkx.algorithms.components': ['tests/*.py'], 'cynetworkx.algorithms.connectivity': ['tests/*.py'], 'cynetworkx.algorithms.coloring': ['tests/*.py'], 'cynetworkx.algorithms.flow': ['tests/*.py', 'tests/*.bz2'], 'cynetworkx.algorithms.isomorphism': ['tests/*.py', 'tests/*.*99'], 'cynetworkx.algorithms.link_analysis': ['tests/*.py'], 'cynetworkx.algorithms.approximation': ['tests/*.py'], 'cynetworkx.algorithms.operators': ['tests/*.py'], 'cynetworkx.algorithms.shortest_paths': ['tests/*.py'], 'cynetworkx.algorithms.traversal': ['tests/*.py'], 'cynetworkx.algorithms.tree': ['tests/*.py'], 'cynetworkx.classes': ['tests/*.py'], 'cynetworkx.generators': ['tests/*.py', 'atlas.dat.gz'], 'cynetworkx.drawing': ['tests/*.py'], 'cynetworkx.linalg': ['tests/*.py'], 'cynetworkx.readwrite': ['tests/*.py'], 'cynetworkx.readwrite.json_graph': ['tests/*.py'], 'cynetworkx.testing': ['tests/*.py'], 'cynetworkx.utils': ['tests/*.py'] } install_requires = ['decorator>=4.1.0'] extras_require = {'all': ['numpy', 'scipy', 'pandas', 'matplotlib', 'pygraphviz', 'pydot', 'pyyaml', 'gdal', 'lxml','nose']} if __name__ == "__main__": setup( name=release.name.lower(), version=version, maintainer=release.maintainer, maintainer_email=release.maintainer_email, author=release.authors['Pattern, Inc.'][0], author_email=release.authors['Pattern, Inc.'][1], description=release.description, keywords=release.keywords, long_description=release.long_description, license=release.license, platforms=release.platforms, url=release.url, download_url=release.download_url, classifiers=release.classifiers, packages=packages, data_files=data, package_data=package_data, install_requires=install_requires, extras_require=extras_require, test_suite='nose.collector', tests_require=['nose>=0.10.1'], zip_safe=False, ext_modules=cythonize(extensions) )
70.980583
155
0.752086
2,824
29,244
7.651912
0.126062
0.323939
0.230321
0.22523
0.401684
0.115785
0.034615
0.013605
0
0
0
0.001386
0.087026
29,244
411
156
71.153285
0.80797
0.007181
0
0
0
0
0.69529
0.659488
0
0
0
0
0
1
0
false
0
0.019231
0
0.019231
0.008242
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
74e275ec0fee421cce4e54186df885cf8877867b
83
py
Python
graphene_django/forms/types.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
4,038
2016-09-18T01:45:22.000Z
2022-03-31T01:06:57.000Z
graphene_django/forms/types.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
1,104
2016-09-19T20:10:22.000Z
2022-03-30T17:37:46.000Z
graphene_django/forms/types.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
791
2016-09-18T13:48:11.000Z
2022-03-29T08:32:06.000Z
from ..types import ErrorType # noqa Import ErrorType for backwards compatability
41.5
82
0.819277
10
83
6.8
0.8
0.441176
0
0
0
0
0
0
0
0
0
0
0.144578
83
1
83
83
0.957746
0.590361
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
74fbcda21347132ff292b55b6df302641ca59260
408
py
Python
uitestcore/custom_assertion.py
talawson05/ui-test-core
6578398d6cfad97cee552f676a027b8b37755a73
[ "MIT" ]
8
2019-09-16T14:31:38.000Z
2022-02-03T21:26:04.000Z
uitestcore/custom_assertion.py
talawson05/ui-test-core
6578398d6cfad97cee552f676a027b8b37755a73
[ "MIT" ]
12
2019-09-13T14:47:26.000Z
2022-01-10T11:24:52.000Z
uitestcore/custom_assertion.py
talawson05/ui-test-core
6578398d6cfad97cee552f676a027b8b37755a73
[ "MIT" ]
4
2019-09-16T14:49:53.000Z
2022-02-02T15:42:01.000Z
""" Create any custom assertion in here """ from hamcrest import assert_that, is_ def assert_no_failures(failure_description): """ Assert that the string passed is empty representing no failures - to be used in test steps :param failure_description: a string describing failures in a test step, or empty if no failures """ assert_that(failure_description, is_(""), failure_description)
31.384615
100
0.75
57
408
5.192982
0.578947
0.243243
0
0
0
0
0
0
0
0
0
0
0.181373
408
12
101
34
0.886228
0.546569
0
0
0
0
0
0
0
0
0
0
1
1
0.333333
false
0
0.333333
0
0.666667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
1
0
1
0
0
5
2d11b724ff940a49feced129c545ac4d65ca924d
24
py
Python
pyranges/version.py
biocore-ntnu/pyranges
5dd7cda7e42051c4b4a75eb6f8650464fb416f7a
[ "MIT" ]
299
2019-03-22T18:28:01.000Z
2022-03-11T16:14:19.000Z
pyranges/version.py
biocore-ntnu/pyranges
5dd7cda7e42051c4b4a75eb6f8650464fb416f7a
[ "MIT" ]
157
2019-04-06T18:05:27.000Z
2022-03-07T14:50:10.000Z
pyranges/version.py
biocore-ntnu/pyranges
5dd7cda7e42051c4b4a75eb6f8650464fb416f7a
[ "MIT" ]
33
2019-04-12T14:44:53.000Z
2022-03-16T16:58:06.000Z
__version__ = "0.0.111"
12
23
0.666667
4
24
3
0.75
0
0
0
0
0
0
0
0
0
0
0.238095
0.125
24
1
24
24
0.333333
0
0
0
0
0
0.291667
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
2d24304d5ecf67d3329a74e6bd41bb16295b32dd
67
py
Python
vnpy/api/oanda/workers/__init__.py
WongLynn/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
11
2019-10-28T13:01:48.000Z
2021-06-20T03:38:09.000Z
vnpy/api/oanda/workers/__init__.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
null
null
null
vnpy/api/oanda/workers/__init__.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
6
2019-10-28T13:16:13.000Z
2020-09-08T08:03:41.000Z
from .transaction import * from .tick import * from .order import *
22.333333
26
0.746269
9
67
5.555556
0.555556
0.4
0
0
0
0
0
0
0
0
0
0
0.164179
67
3
27
22.333333
0.892857
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
2d366ae91d3744d540214d0d257991a1dc1a1f6f
290
py
Python
skyportal/handlers/api/internal/__init__.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
null
null
null
skyportal/handlers/api/internal/__init__.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
156
2019-10-17T19:35:22.000Z
2021-08-01T13:23:47.000Z
skyportal/handlers/api/internal/__init__.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
null
null
null
from .plot import PlotPhotometryHandler, PlotSpectroscopyHandler from .token import TokenHandler from .dbinfo import DBInfoHandler from .profile import ProfileHandler from .source_views import SourceViewsHandler from .instrument_observation_params import InstrumentObservationParamsHandler
41.428571
77
0.889655
28
290
9.107143
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.086207
290
6
78
48.333333
0.962264
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
2d3ba84e7f3d9f50d96ba09e4dc3290fe2df32cc
121
py
Python
receipts_storage/forms/__init__.py
albinmedoc/receipts_storage
2c3e2a19312d5ca8ec31bf2f0c6315f29d5fd923
[ "MIT" ]
null
null
null
receipts_storage/forms/__init__.py
albinmedoc/receipts_storage
2c3e2a19312d5ca8ec31bf2f0c6315f29d5fd923
[ "MIT" ]
null
null
null
receipts_storage/forms/__init__.py
albinmedoc/receipts_storage
2c3e2a19312d5ca8ec31bf2f0c6315f29d5fd923
[ "MIT" ]
null
null
null
from .product import ProductForm from .receipt import ReceiptForm from .user import LoginForm, RegisterForm, EditUserForm
40.333333
55
0.85124
14
121
7.357143
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.107438
121
3
55
40.333333
0.953704
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
741439917b675f387d0d33e33aee90e37fbeb997
249
py
Python
Configuration/Geometry/python/GeometrySLHCSimIdeal_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Geometry/python/GeometrySLHCSimIdeal_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Geometry/python/GeometrySLHCSimIdeal_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Ideal geometry, needed for simulation from SLHCUpgradeSimulations.Geometry.Phase1_R30F12_cmsSimIdealGeometryXML_cff import * from Geometry.TrackerNumberingBuilder.trackerNumbering2026Geometry_cfi import *
41.5
86
0.883534
25
249
8.64
0.8
0
0
0
0
0
0
0
0
0
0
0.03913
0.076305
249
5
87
49.8
0.9
0.148594
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
743174fff100b9f86539866eae286cdca4d3bcac
51
py
Python
enthought/pyface/message_dialog.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/message_dialog.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/message_dialog.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.message_dialog import *
17
35
0.803922
7
51
5.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.137255
51
2
36
25.5
0.909091
0.235294
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
743efaed013ebb381bd98fe53bed0e263d0f7320
13,143
py
Python
old/eval_scripts/evaluation_functions.py
konatasick/face-of-art
e796747d0ef2df2df863adf53e217ff5c86c816b
[ "MIT" ]
220
2019-09-01T01:52:04.000Z
2022-03-28T12:52:07.000Z
old/eval_scripts/evaluation_functions.py
TrueMatthewKirkham/face-of-art
ffa62a579cc8bc389e2088923736c4947a1fad70
[ "MIT" ]
16
2019-10-24T07:55:11.000Z
2022-02-10T01:28:13.000Z
old/eval_scripts/evaluation_functions.py
TrueMatthewKirkham/face-of-art
ffa62a579cc8bc389e2088923736c4947a1fad70
[ "MIT" ]
33
2019-09-23T15:08:50.000Z
2022-02-08T07:54:52.000Z
import tensorflow as tf from menpofit.visualize import plot_cumulative_error_distribution from menpofit.error import compute_cumulative_error from scipy.integrate import simps from menpo_functions import load_menpo_image_list, load_bb_dictionary from logging_functions import * from data_loading_functions import * from time import time import sys from PyQt5 import QtWidgets qapp=QtWidgets.QApplication(['']) def load_menpo_test_list(img_dir, test_data='full', image_size=256, margin=0.25, bb_type='gt'): mode = 'TEST' bb_dir = os.path.join(img_dir, 'Bounding_Boxes') bb_dictionary = load_bb_dictionary(bb_dir, mode, test_data=test_data) img_menpo_list = load_menpo_image_list( img_dir=img_dir, train_crop_dir=None, img_dir_ns=None, mode=mode, bb_dictionary=bb_dictionary, image_size=image_size, margin=margin, bb_type=bb_type, test_data=test_data, augment_basic=False, augment_texture=False, p_texture=0, augment_geom=False, p_geom=0) return img_menpo_list def evaluate_heatmap_fusion_network(model_path, img_path, test_data, batch_size=10, image_size=256, margin=0.25, bb_type='gt', c_dim=3, scale=1, num_landmarks=68, debug=False, debug_data_size=20): t = time() from deep_heatmaps_model_fusion_net import DeepHeatmapsModel import logging logging.getLogger('tensorflow').disabled = True # load test image menpo list test_menpo_img_list = load_menpo_test_list( img_path, test_data=test_data, image_size=image_size, margin=margin, bb_type=bb_type) if debug: test_menpo_img_list = test_menpo_img_list[:debug_data_size] print ('\n*** FUSION NETWORK: calculating normalized mean error on: ' + test_data + ' set (%d images - debug mode) ***' % debug_data_size) else: print ('\n*** FUSION NETWORK: calculating normalized mean error on: ' + test_data + ' set (%d images) ***' % (len(test_menpo_img_list))) # create heatmap model tf.reset_default_graph() model = DeepHeatmapsModel(mode='TEST', batch_size=batch_size, image_size=image_size, c_dim=c_dim, num_landmarks=num_landmarks, img_path=img_path, test_model_path=model_path, test_data=test_data, menpo_verbose=False) # add placeholders model.add_placeholders() # build model model.build_model() # create loss ops model.create_loss_ops() num_batches = int(1. * len(test_menpo_img_list) / batch_size) if num_batches == 0: batch_size = len(test_menpo_img_list) num_batches = 1 reminder = len(test_menpo_img_list) - num_batches * batch_size num_batches_reminder = num_batches + 1 * (reminder > 0) img_inds = np.arange(len(test_menpo_img_list)) with tf.Session() as session: # load trained parameters saver = tf.train.Saver() saver.restore(session, model_path) print ('\nnum batches: ' + str(num_batches_reminder)) err = [] for j in range(num_batches): print ('batch %d / %d ...' % (j + 1, num_batches_reminder)) batch_inds = img_inds[j * batch_size:(j + 1) * batch_size] batch_images, _, batch_landmarks_gt = load_images_landmarks( test_menpo_img_list, batch_inds=batch_inds, image_size=image_size, c_dim=c_dim, num_landmarks=num_landmarks, scale=scale) batch_maps_pred = session.run(model.pred_hm_f, {model.images: batch_images}) batch_pred_landmarks = batch_heat_maps_to_landmarks( batch_maps_pred, batch_size=batch_size, image_size=image_size, num_landmarks=num_landmarks) batch_err = session.run( model.nme_per_image, {model.lms: batch_landmarks_gt, model.pred_lms: batch_pred_landmarks}) err = np.hstack((err, batch_err)) if reminder > 0: print ('batch %d / %d ...' % (j + 2, num_batches_reminder)) reminder_inds = img_inds[-reminder:] batch_images, _, batch_landmarks_gt = load_images_landmarks( test_menpo_img_list, batch_inds=reminder_inds, image_size=image_size, c_dim=c_dim, num_landmarks=num_landmarks, scale=scale) batch_maps_pred = session.run(model.pred_hm_f, {model.images: batch_images}) batch_pred_landmarks = batch_heat_maps_to_landmarks( batch_maps_pred, batch_size=reminder, image_size=image_size, num_landmarks=num_landmarks) batch_err = session.run( model.nme_per_image, {model.lms: batch_landmarks_gt, model.pred_lms: batch_pred_landmarks}) err = np.hstack((err, batch_err)) print ('\ndone!') print ('run time: ' + str(time() - t)) return err def evaluate_heatmap_primary_network(model_path, img_path, test_data, batch_size=10, image_size=256, margin=0.25, bb_type='gt', c_dim=3, scale=1, num_landmarks=68, debug=False, debug_data_size=20): t = time() from deep_heatmaps_model_primary_net import DeepHeatmapsModel import logging logging.getLogger('tensorflow').disabled = True # load test image menpo list test_menpo_img_list = load_menpo_test_list( img_path, test_data=test_data, image_size=image_size, margin=margin, bb_type=bb_type) if debug: test_menpo_img_list = test_menpo_img_list[:debug_data_size] print ('\n*** PRIMARY NETWORK: calculating normalized mean error on: ' + test_data + ' set (%d images - debug mode) ***' % debug_data_size) else: print ('\n*** PRIMARY NETWORK: calculating normalized mean error on: ' + test_data + ' set (%d images) ***' % (len(test_menpo_img_list))) # create heatmap model tf.reset_default_graph() model = DeepHeatmapsModel(mode='TEST', batch_size=batch_size, image_size=image_size, c_dim=c_dim, num_landmarks=num_landmarks, img_path=img_path, test_model_path=model_path, test_data=test_data, menpo_verbose=False) # add placeholders model.add_placeholders() # build model model.build_model() # create loss ops model.create_loss_ops() num_batches = int(1. * len(test_menpo_img_list) / batch_size) if num_batches == 0: batch_size = len(test_menpo_img_list) num_batches = 1 reminder = len(test_menpo_img_list) - num_batches * batch_size num_batches_reminder = num_batches + 1 * (reminder > 0) img_inds = np.arange(len(test_menpo_img_list)) with tf.Session() as session: # load trained parameters saver = tf.train.Saver() saver.restore(session, model_path) print ('\nnum batches: ' + str(num_batches_reminder)) err = [] for j in range(num_batches): print ('batch %d / %d ...' % (j + 1, num_batches_reminder)) batch_inds = img_inds[j * batch_size:(j + 1) * batch_size] batch_images, _, batch_landmarks_gt = load_images_landmarks( test_menpo_img_list, batch_inds=batch_inds, image_size=image_size, c_dim=c_dim, num_landmarks=num_landmarks, scale=scale) batch_maps_small_pred = session.run(model.pred_hm_p, {model.images: batch_images}) batch_maps_small_pred = zoom(batch_maps_small_pred, zoom=[1, 4, 4, 1], order=1) # NN interpolation batch_pred_landmarks = batch_heat_maps_to_landmarks( batch_maps_small_pred, batch_size=batch_size, image_size=image_size, num_landmarks=num_landmarks) batch_err = session.run( model.nme_per_image, {model.lms_small: batch_landmarks_gt, model.pred_lms_small: batch_pred_landmarks}) err = np.hstack((err, batch_err)) if reminder > 0: print ('batch %d / %d ...' % (j + 2, num_batches_reminder)) reminder_inds = img_inds[-reminder:] batch_images, _, batch_landmarks_gt = load_images_landmarks( test_menpo_img_list, batch_inds=reminder_inds, image_size=image_size, c_dim=c_dim, num_landmarks=num_landmarks, scale=scale) batch_maps_small_pred = session.run(model.pred_hm_p, {model.images: batch_images}) batch_maps_small_pred = zoom(batch_maps_small_pred, zoom=[1, 4, 4, 1], order=1) # NN interpolation batch_pred_landmarks = batch_heat_maps_to_landmarks( batch_maps_small_pred, batch_size=reminder, image_size=image_size, num_landmarks=num_landmarks) batch_err = session.run( model.nme_per_image, {model.lms_small: batch_landmarks_gt, model.pred_lms_small: batch_pred_landmarks}) err = np.hstack((err, batch_err)) print ('\ndone!') print ('run time: ' + str(time() - t)) return err def evaluate_heatmap_network(model_path, network_type, img_path, test_data, batch_size=10, image_size=256, margin=0.25, bb_type='gt', c_dim=3, scale=1, num_landmarks=68, debug=False, debug_data_size=20): if network_type.lower() == 'fusion': return evaluate_heatmap_fusion_network( model_path=model_path, img_path=img_path, test_data=test_data, batch_size=batch_size, image_size=image_size, margin=margin, bb_type=bb_type, c_dim=c_dim, scale=scale, num_landmarks=num_landmarks, debug=debug, debug_data_size=debug_data_size) elif network_type.lower() == 'primary': return evaluate_heatmap_primary_network( model_path=model_path, img_path=img_path, test_data=test_data, batch_size=batch_size, image_size=image_size, margin=margin, bb_type=bb_type, c_dim=c_dim, scale=scale, num_landmarks=num_landmarks, debug=debug, debug_data_size=debug_data_size) else: sys.exit('\n*** Error: please choose a valid network type: Fusion/Primary ***') def AUC(errors, max_error, step_error=0.0001): x_axis = list(np.arange(0., max_error + step_error, step_error)) ced = np.array(compute_cumulative_error(errors, x_axis)) return simps(ced, x=x_axis) / max_error, 1. - ced[-1] def print_nme_statistics( errors, model_path, network_type, test_data, max_error=0.08, log_path='', save_log=True, plot_ced=True, norm='interocular distance'): auc, failures = AUC(errors, max_error=max_error) print ("\n****** NME statistics for " + network_type + " Network ******\n") print ("* model path: " + model_path) print ("* dataset: " + test_data + ' set') print ("\n* Normalized mean error (percentage of "+norm+"): %.2f" % (100 * np.mean(errors))) print ("\n* AUC @ %.2f: %.2f" % (max_error, 100 * auc)) print ("\n* failure rate @ %.2f: %.2f" % (max_error, 100 * failures) + '%') if plot_ced: plt.figure() plt.yticks(np.linspace(0, 1, 11)) plot_cumulative_error_distribution( list(errors), legend_entries=[network_type], marker_style=['s'], marker_size=7, x_label='Normalised Point-to-Point Error\n('+norm+')\n*' + test_data + ' set*', ) if save_log: with open(os.path.join(log_path, network_type.lower() + "_nme_statistics_on_" + test_data + "_set.txt"), "wb") as f: f.write(b"************************************************") f.write(("\n****** NME statistics for " + str(network_type) + " Network ******\n").encode()) f.write(b"************************************************") f.write(("\n\n* model path: " + str(model_path)).encode()) f.write(("\n\n* dataset: " + str(test_data) + ' set').encode()) f.write(b"\n\n* Normalized mean error (percentage of "+norm+"): %.2f" % (100 * np.mean(errors))) f.write(b"\n\n* AUC @ %.2f: %.2f" % (max_error, 100 * auc)) f.write(("\n\n* failure rate @ %.2f: %.2f" % (max_error, 100 * failures) + '%').encode()) if plot_ced: plt.savefig(os.path.join(log_path, network_type.lower() + '_nme_ced_on_' + test_data + '_set.png'), bbox_inches='tight') plt.close() print ('\nlog path: ' + log_path) def print_ced_compare_methods( method_errors,method_names,test_data,log_path='', save_log=True, norm='interocular distance'): plt.yticks(np.linspace(0, 1, 11)) plot_cumulative_error_distribution( [list(err) for err in list(method_errors)], legend_entries=list(method_names), marker_style=['s'], marker_size=7, x_label='Normalised Point-to-Point Error\n('+norm+')\n*'+test_data+' set*' ) if save_log: plt.savefig(os.path.join(log_path,'nme_ced_on_'+test_data+'_set.png'), bbox_inches='tight') print ('ced plot path: ' + os.path.join(log_path,'nme_ced_on_'+test_data+'_set.png')) plt.close()
43.81
120
0.640645
1,771
13,143
4.405985
0.117448
0.034858
0.034987
0.04101
0.792772
0.783545
0.770857
0.768294
0.762655
0.741125
0
0.012814
0.239976
13,143
300
121
43.81
0.768345
0.020315
0
0.646789
0
0
0.102939
0.007464
0
0
0
0
0
1
0.03211
false
0
0.06422
0
0.123853
0.110092
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