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
005848ad8f626f8fc72adad0ac04190ffbfcf34c
1,526
py
Python
imagery/impart/migrations/0006_auto_20170117_0923.py
jw/imagery
79ee2373c8d8ec45aff40231ee20c62008dcfc1c
[ "MIT" ]
null
null
null
imagery/impart/migrations/0006_auto_20170117_0923.py
jw/imagery
79ee2373c8d8ec45aff40231ee20c62008dcfc1c
[ "MIT" ]
63
2016-12-07T09:03:31.000Z
2020-09-20T17:35:44.000Z
imagery/impart/migrations/0006_auto_20170117_0923.py
jw/imagery
79ee2373c8d8ec45aff40231ee20c62008dcfc1c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-17 09:23 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("impart", "0005_auto_20170117_0922")] operations = [ migrations.AlterField( model_name="contact", name="bank", field=models.CharField(blank=True, max_length=256, null=True), ), migrations.AlterField( model_name="contact", name="city", field=models.CharField(blank=True, max_length=256, null=True), ), migrations.AlterField( model_name="contact", name="company", field=models.CharField(blank=True, max_length=256, null=True), ), migrations.AlterField( model_name="contact", name="country", field=models.CharField(blank=True, max_length=256, null=True), ), migrations.AlterField( model_name="contact", name="street", field=models.CharField(blank=True, max_length=256, null=True), ), migrations.AlterField( model_name="contact", name="telephone", field=models.CharField(blank=True, max_length=256, null=True), ), migrations.AlterField( model_name="contact", name="vat", field=models.CharField(blank=True, max_length=256, null=True), ), ]
31.142857
74
0.57405
156
1,526
5.474359
0.326923
0.163934
0.204918
0.237705
0.729508
0.729508
0.68267
0.68267
0.68267
0.68267
0
0.050752
0.302752
1,526
48
75
31.791667
0.75188
0.044561
0
0.682927
1
0
0.0811
0.015808
0
0
0
0
0
1
0
false
0
0.04878
0
0.121951
0
0
0
0
null
0
1
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
005dd6d98114bb04c73d0b44d8ec1d263f28da1c
2,045
py
Python
UEM-Samples/Utilities and Tools/Generic/App Upload/Mobile CICD Script/api_client/url_helpers/internal_app_url.py
dholliman/euc-samples
457dec9363528c77799c60b190c22e7135ae4015
[ "BSD-3-Clause" ]
127
2019-07-31T20:46:16.000Z
2022-03-30T09:00:45.000Z
UEM-Samples/Utilities and Tools/Generic/App Upload/Mobile CICD Script/api_client/url_helpers/internal_app_url.py
dholliman/euc-samples
457dec9363528c77799c60b190c22e7135ae4015
[ "BSD-3-Clause" ]
59
2019-08-07T13:23:32.000Z
2022-03-04T16:25:21.000Z
UEM-Samples/Utilities and Tools/Generic/App Upload/Mobile CICD Script/api_client/url_helpers/internal_app_url.py
dholliman/euc-samples
457dec9363528c77799c60b190c22e7135ae4015
[ "BSD-3-Clause" ]
90
2019-08-02T17:41:10.000Z
2022-03-18T09:57:43.000Z
from config import config INTERNAL_API_COMMON_PATH = '{host_url}/api/mam/apps/internal'.format(host_url=config.HOST_URL) def get_chunk_upload_url(): """ Returns chunk upload api endpoint url :return: url """ return '{internal_api_path}/uploadchunk'.format(internal_api_path=INTERNAL_API_COMMON_PATH) def get_create_internal_app_from_blob_url(): """ Returns create internal app api endpoint url :return: url """ return '{internal_api_path}/begininstall'.format(internal_api_path=INTERNAL_API_COMMON_PATH) def get_internal_app_assignment_url(application_id): """ Returns internal app assignment api endpoint url :param application_id: Application ID :return: url """ return '{internal_api_path}/{application_id}/assignments'.format(internal_api_path=INTERNAL_API_COMMON_PATH, application_id=application_id) def get_retire_app_url(application_id): """ Returns retire app api endpoint url :param application_id: Application ID :return: url """ return '{internal_api_path}/{application_id}/retire'.format(internal_api_path=INTERNAL_API_COMMON_PATH, application_id=application_id) def get_edit_assignment_url(application_id): """ Returns edit assignment api endpoint url :param application_id: Application ID :return: url """ return '{internal_api_path}/{application_id}/assignments'.format(internal_api_path=INTERNAL_API_COMMON_PATH, application_id=application_id) def get_internal_app(application_id): """ Returns internal app details api endpoint url :param application_id: Application ID :return: url """ return '{internal_api_path}/{application_id}'.format(internal_api_path=INTERNAL_API_COMMON_PATH, application_id=application_id)
30.984848
112
0.663081
233
2,045
5.437768
0.137339
0.246251
0.142068
0.164167
0.770324
0.685083
0.685083
0.685083
0.685083
0.615627
0
0
0.258191
2,045
65
113
31.461538
0.835201
0.236675
0
0.333333
0
0
0.188811
0.188811
0
0
0
0
0
1
0.333333
false
0
0.055556
0
0.722222
0
0
0
0
null
1
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
0
0
0
0
1
0
0
5
00ad17fbe2bc6cb77bac90e392fea4cff95f1633
90
py
Python
xaby/nn/__init__.py
mcleonard/xaby
e9170983ca04e0891621164cd28fa2a76a527c40
[ "BSD-3-Clause" ]
89
2020-02-06T09:24:10.000Z
2021-09-11T22:49:34.000Z
xaby/nn/__init__.py
mcleonard/xaby
e9170983ca04e0891621164cd28fa2a76a527c40
[ "BSD-3-Clause" ]
null
null
null
xaby/nn/__init__.py
mcleonard/xaby
e9170983ca04e0891621164cd28fa2a76a527c40
[ "BSD-3-Clause" ]
8
2020-04-15T19:07:49.000Z
2020-10-12T10:06:55.000Z
from .functions import * from .layers import * from .losses import * from . import models
18
24
0.744444
12
90
5.583333
0.5
0.447761
0
0
0
0
0
0
0
0
0
0
0.177778
90
4
25
22.5
0.905405
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
00b787c28cd143628c0c4bb7aa016bd024e57799
1,416
py
Python
tests/test_conditions.py
orycion/django-event-sourcing
6f1b403f75d65d7754dacce745423f6d11a80cee
[ "MIT" ]
1
2020-12-31T09:19:14.000Z
2020-12-31T09:19:14.000Z
tests/test_conditions.py
orycion/django-event-sourcing
6f1b403f75d65d7754dacce745423f6d11a80cee
[ "MIT" ]
2
2021-03-03T21:22:59.000Z
2021-03-03T21:23:36.000Z
tests/test_conditions.py
orycion/django-event-sourcing
6f1b403f75d65d7754dacce745423f6d11a80cee
[ "MIT" ]
null
null
null
import pytest from django_event_sourcing.conditions import Condition class Condition30(Condition): def has_condition(self, value): return value < 30 class Condition40(Condition): def has_condition(self, value): return value < 40 class Condition50(Condition): def has_condition(self, value): return value < 50 class TestConditions: def test_and(self): condition_class = Condition30 & Condition40 assert condition_class().has_condition(24) def test_triple_and(self): condition_class = Condition30 & Condition40 & Condition50 assert condition_class().has_condition(24) def test_or(self): condition_class = Condition30 | Condition40 assert condition_class().has_condition(35) def test_failing_and(self): condition_class = Condition30 & Condition40 assert not condition_class().has_condition(35) def test_not(self): condition_class = ~Condition30 assert condition_class().has_condition(31) def test_must_instance_permission(self): with pytest.raises(AttributeError): condition_class = Condition30 | Condition40 assert condition_class.has_condition(35) def test_xor(self): condition_class = Condition30 ^ Condition40 assert condition_class().has_condition(35) assert not condition_class().has_condition(25)
27.764706
65
0.701271
158
1,416
6.037975
0.246835
0.234801
0.209644
0.218029
0.719078
0.685535
0.600629
0.509434
0.318658
0.318658
0
0.051048
0.225282
1,416
50
66
28.32
0.818596
0
0
0.314286
0
0
0
0
0
0
0
0
0.228571
1
0.285714
false
0
0.057143
0.085714
0.542857
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
00b8e2565602e3b390682af5c941eb46cdc2275a
43
py
Python
anypay/__init__.py
luminosoda/anypay
994168b5c524c00d40313181e552a4e69313ae8c
[ "MIT" ]
1
2021-01-09T20:56:40.000Z
2021-01-09T20:56:40.000Z
anypay/__init__.py
luminosoda/anypay
994168b5c524c00d40313181e552a4e69313ae8c
[ "MIT" ]
1
2020-10-29T18:25:38.000Z
2020-11-01T20:04:01.000Z
anypay/__init__.py
luminosoda/anypay
994168b5c524c00d40313181e552a4e69313ae8c
[ "MIT" ]
null
null
null
from .anypay import * from .enums import *
14.333333
21
0.72093
6
43
5.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.186047
43
2
22
21.5
0.885714
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
00cd1c78346a03bb8c735e470006ff09a0c3c54a
2,410
py
Python
parameter_checks.py
russelljjarvis/brian2_loihi
bb94ab014aabefca0861613ba0343c13619668f3
[ "MIT" ]
6
2021-05-03T06:20:07.000Z
2022-01-25T14:17:20.000Z
parameter_checks.py
russelljjarvis/brian2_loihi
bb94ab014aabefca0861613ba0343c13619668f3
[ "MIT" ]
17
2021-04-28T08:54:23.000Z
2021-12-08T19:30:46.000Z
parameter_checks.py
russelljjarvis/brian2_loihi
bb94ab014aabefca0861613ba0343c13619668f3
[ "MIT" ]
5
2021-07-11T23:15:03.000Z
2022-03-17T13:48:57.000Z
def check_range_and_int(val, name, low=0, high=127): """Checks a parameter to match Loihi Calls two methods to check if the parameter value is integer and in a range between low and high. Parameters ---------- val : int The value of the parameter name : str The name of the parameter low : int, optional The lower bound of the parameter high : int, optional The upper bound of the parameter """ check_int(val, name) check_range(val, name, low, high) def check_lower_and_int(val, name, low=0): """Checks a parameter to match Loihi Calls two methods to check if the parameter value is integer and in greater than low. Parameters ---------- val : int The value of the parameter name : str The name of the parameter low : int, optional The lower bound of the parameter """ check_int(val, name) check_lower(val, name, low) def check_lower(val, name, low=0): """Checks if a parameter is greater or equal than low Parameters ---------- val : int The value of the parameter name : str The name of the parameter low : int, optional The lower bound of the parameter Raises ------ Exception If value is lower than low. """ if (val < low): raise Exception(str(name) + " has to be greater or equal to " +str(low)+ ".") def check_range(val, name, low=0, high=127): """Checks if a parameter is between low and high Parameters ---------- val : int The value of the parameter name : str The name of the parameter low : int, optional The lower bound of the parameter high : int, optional The upper bound of the parameter Raises ------ Exception If value is lower than low of greater than high. """ if (val < low) or (val > high): raise Exception(str(name) + " has to be between " +str(low)+ " and " +str(high)+ ".") def check_int(val, name): """Checks if a parameter is of type integer Parameters ---------- val : int The value of the parameter name : str The name of the parameter Raises ------ Exception If value not integer """ if not isinstance(val, int): raise Exception(str(name) + " has to be an integer.")
24.591837
93
0.590871
338
2,410
4.174556
0.139053
0.153083
0.158753
0.080794
0.843373
0.761871
0.745571
0.64068
0.64068
0.612332
0
0.006053
0.314523
2,410
97
94
24.845361
0.848063
0.599585
0
0.133333
0
0
0.115836
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
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
0
0
1
0
0
0
0
0
0
0
5
da96823b7263259162ff6d4e14fe298e2a433d3d
184
py
Python
GT3/RadialTransport/Functions/CalcVrPinch.py
gt-frc/gt3
1b27d6ca68b182413be23efeb0282f4a9075212f
[ "MIT" ]
2
2018-10-10T00:11:19.000Z
2020-12-08T20:15:16.000Z
GT3/RadialTransport/Functions/CalcVrPinch.py
gt-frc/gt3
1b27d6ca68b182413be23efeb0282f4a9075212f
[ "MIT" ]
25
2018-05-02T22:16:37.000Z
2021-12-13T20:53:38.000Z
GT3/RadialTransport/Functions/CalcVrPinch.py
gt-frc/gt3
1b27d6ca68b182413be23efeb0282f4a9075212f
[ "MIT" ]
4
2018-06-06T16:07:20.000Z
2021-12-03T11:46:23.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """TODO: Add v_r for pinch velocity""" def calc_vr_pinch(): vr_pinch = 0 # TODO: Add the equation for vr_pinch return vr_pinch
23
55
0.652174
31
184
3.677419
0.677419
0.245614
0
0
0
0
0
0
0
0
0
0.020408
0.201087
184
7
56
26.285714
0.755102
0.608696
0
0
0
0
0
0
0
0
0
0.142857
0
1
0.333333
false
0
0
0
0.666667
0
0
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
1
0
0
1
0
0
0
0
1
0
0
5
97195ae65275537ad984ae8f9940050fe4fab2fb
6,688
py
Python
t.py
TRIAEIOU/Editor-scripts-symbols
029df642a4c5156787f8f2b19503855fd6f11d0e
[ "MIT" ]
null
null
null
t.py
TRIAEIOU/Editor-scripts-symbols
029df642a4c5156787f8f2b19503855fd6f11d0e
[ "MIT" ]
null
null
null
t.py
TRIAEIOU/Editor-scripts-symbols
029df642a4c5156787f8f2b19503855fd6f11d0e
[ "MIT" ]
null
null
null
[{'lbl': 'Symbols', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA8B0>, '3. Items': [{'lbl': 'Arrows', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA310>, '3. Items': [{'lbl': '←', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C48ADC0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4C80>}, {'lbl': '→', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C48AE50>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4CF0>}, {'lbl': '↑', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C48AEE0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4D60>}, {'lbl': '↓', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C48AF70>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4DD0>}, {'lbl': '⇐', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA040>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4E40>}, {'lbl': '⇒', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA0D0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4EB0>}, {'lbl': '↔', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA160>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4F20>}, {'lbl': '⤙', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA1F0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4A4F90>}, {'lbl': '⊣', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA280>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB040>}], '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB0B0>}, {'lbl': 'α', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA3A0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB120>}, {'lbl': 'β', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA430>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB190>}, {'lbl': 'γ', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA4C0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB200>}, {'lbl': 'δ', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA550>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB270>}, {'lbl': 'Δ', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA5E0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB2E0>}, {'lbl': 'ε', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA670>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB350>}, {'lbl': '♀', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA700>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB3C0>}, {'lbl': 'λ', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA790>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB430>}, {'lbl': '♂', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA820>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB4A0>}], '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB510>}, {'lbl': 'Lowercase', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA940>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB580>}, {'lbl': 'Uppercase', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AA9D0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB5F0>}, {'lbl': 'Strip table heights', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAA60>, '2. Shortcut': 0}, {'lbl': 'Strip empty div/p/span', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAAF0>, '2. Shortcut': 0}, {'lbl': 'Sort clozes', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAB80>, '2. Shortcut': 0}, {'lbl': 'Paste single paragraph', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAC10>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB660>}, {'lbl': 'Test', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AACA0>, '2. Shortcut': 0}, {'lbl': 'Editor shortcuts', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAF70>, '3. Items': [{'lbl': 'Indent', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAD30>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB6D0>}, {'lbl': 'Unindent', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AADC0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB740>}, {'lbl': 'Superscript', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAE50>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB7B0>}, {'lbl': 'Subscript', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AAEE0>, '2. Shortcut': <aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy object at 0x000002305C4AB820>}], '2. Shortcut': 0}, {'lbl': 'Tablify selection', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AE3A0>, '3. Items': [{'lbl': 'No header, no increase, no 1st col', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AE040>, '2. Shortcut': 0}, {'lbl': 'No header, increase, no 1st col', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AE0D0>, '2. Shortcut': 0}, {'lbl': 'No header, increase, 1st col', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AE160>, '2. Shortcut': 0}, {'lbl': 'Header, no increase, no 1st col', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AE1F0>, '2. Shortcut': 0}, {'lbl': 'Header, increase, no 1st col', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AE280>, '2. Shortcut': 0}, {'lbl': 'Header, increase, 1st col', 'cmd': <function build_cmds.<locals>.<lambda> at 0x000002305C4AE310>, '2. Shortcut': 0}], '2. Shortcut': 0}]
6,688
6,688
0.733553
823
6,688
5.828676
0.162819
0.089431
0.130081
0.162602
0.674588
0.671878
0.666458
0.440484
0.440484
0.42464
0
0.158082
0.076854
6,688
1
6,688
6,688
0.617104
0
0
0
0
0
0.159366
0
0
0
0.177605
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
97660a5de35e5567a8ba3d1528c72c0bdbde5979
87
py
Python
api/wsgi.py
libamen/libamen
bcf5c07ec6af25c0e5bd5703075638b46965412d
[ "Apache-2.0" ]
null
null
null
api/wsgi.py
libamen/libamen
bcf5c07ec6af25c0e5bd5703075638b46965412d
[ "Apache-2.0" ]
null
null
null
api/wsgi.py
libamen/libamen
bcf5c07ec6af25c0e5bd5703075638b46965412d
[ "Apache-2.0" ]
null
null
null
from api import create_app from config import Config application = create_app(Config)
17.4
32
0.827586
13
87
5.384615
0.538462
0.257143
0
0
0
0
0
0
0
0
0
0
0.137931
87
4
33
21.75
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
977909e20700c9747f35266e5590568a53de818c
157
py
Python
cores.py
tiagopariz/FaztCursoPythonParaPrincipiantes
4a9e1c24baf4a60424791f5b80b18e89395839a1
[ "MIT" ]
null
null
null
cores.py
tiagopariz/FaztCursoPythonParaPrincipiantes
4a9e1c24baf4a60424791f5b80b18e89395839a1
[ "MIT" ]
null
null
null
cores.py
tiagopariz/FaztCursoPythonParaPrincipiantes
4a9e1c24baf4a60424791f5b80b18e89395839a1
[ "MIT" ]
null
null
null
# importe o módulo colorama import colorama from colorama import Fore, Style, init init(convert=True) print("Hello World!") print(Fore.RED + "Hello world!")
22.428571
38
0.757962
23
157
5.173913
0.652174
0.235294
0
0
0
0
0
0
0
0
0
0
0.127389
157
7
39
22.428571
0.868613
0.159236
0
0
0
0
0.183206
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0.4
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
9783a4ac69d86386167062877900888e859b2dfa
78
py
Python
enb/__main__.py
AlysH/experiment-notebook
c6a40b1dd518814ccac50f83b3a09d59202b138e
[ "MIT" ]
null
null
null
enb/__main__.py
AlysH/experiment-notebook
c6a40b1dd518814ccac50f83b3a09d59202b138e
[ "MIT" ]
null
null
null
enb/__main__.py
AlysH/experiment-notebook
c6a40b1dd518814ccac50f83b3a09d59202b138e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def enb(): print("enb command line comming soon")
15.6
42
0.666667
12
78
4.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0.015625
0.179487
78
4
43
19.5
0.796875
0.269231
0
0
0
0
0.517857
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5
978f6a4581d5ce2b992916d8d8dd7f1712427139
111
py
Python
Raspberry_Pi_Pico/notebooks/esp01_demo.py
jckantor/cbe61622
bdc08e6c4f0674c5e991617945cafd1b121d6b4b
[ "MIT" ]
2
2021-11-22T20:36:35.000Z
2021-12-07T07:52:10.000Z
Raspberry_Pi_Pico/notebooks/esp01_demo.py
jckantor/cbe-virtual-laboratory
bdc08e6c4f0674c5e991617945cafd1b121d6b4b
[ "MIT" ]
null
null
null
Raspberry_Pi_Pico/notebooks/esp01_demo.py
jckantor/cbe-virtual-laboratory
bdc08e6c4f0674c5e991617945cafd1b121d6b4b
[ "MIT" ]
1
2021-12-11T20:39:32.000Z
2021-12-11T20:39:32.000Z
from machine import Pin from esp8266 import ESP8266 import time import sys esp01 = ESP8266(txPin=16, rxPin=17)
18.5
35
0.801802
18
111
4.944444
0.666667
0.292135
0
0
0
0
0
0
0
0
0
0.189474
0.144144
111
6
35
18.5
0.747368
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
97a63c982e67ffd1b9909c5d92163711971cd663
536
py
Python
concordance/blocks/planetary_bodies.py
jgeldart/magrathea
4e9d12a439d88036a8585b81f8bd37675f8aaadf
[ "BSD-3-Clause" ]
null
null
null
concordance/blocks/planetary_bodies.py
jgeldart/magrathea
4e9d12a439d88036a8585b81f8bd37675f8aaadf
[ "BSD-3-Clause" ]
null
null
null
concordance/blocks/planetary_bodies.py
jgeldart/magrathea
4e9d12a439d88036a8585b81f8bd37675f8aaadf
[ "BSD-3-Clause" ]
null
null
null
from .base import BaseCharacteristicsBlock class PlanetaryBodyPhysicalCharacteristicsBlock(BaseCharacteristicsBlock): class Meta: template = 'blocks/planetary_body_physical_characteristics_block.html' class PlanetaryBodySeasonalCharacteristicsBlock(BaseCharacteristicsBlock): class Meta: template = 'blocks/planetary_body_seasonal_characteristics_block.html' class PlanetaryBodySkySimulationBlock(BaseCharacteristicsBlock): class Meta: template = 'blocks/planetary_body_sky_simulation_block.html'
38.285714
78
0.828358
43
536
10.046512
0.465116
0.268519
0.229167
0.284722
0.416667
0.416667
0.416667
0
0
0
0
0
0.119403
536
13
79
41.230769
0.915254
0
0
0.3
0
0
0.300373
0.300373
0
0
0
0
0
1
0
false
0
0.1
0
0.7
0
0
0
1
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
97acca2015a3d55bac0ae165c1d7405d974410be
97
py
Python
Simulador/consultas/admin.py
silveriogabriel/Django-Blog
d47eb6c35ee1626720ab021db59e67ee9ed5c8cd
[ "MIT" ]
null
null
null
Simulador/consultas/admin.py
silveriogabriel/Django-Blog
d47eb6c35ee1626720ab021db59e67ee9ed5c8cd
[ "MIT" ]
null
null
null
Simulador/consultas/admin.py
silveriogabriel/Django-Blog
d47eb6c35ee1626720ab021db59e67ee9ed5c8cd
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import simulacoes admin.site.register(simulacoes)
19.4
32
0.835052
13
97
6.230769
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.103093
97
4
33
24.25
0.931034
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
8afb9947c6bc05a1ca6890da342699bf7d7e0d26
42
py
Python
tests/__init__.py
modep-ai/modep-client
e6d53eccbac70199472420ee7c1471fe0ffd51f5
[ "MIT" ]
null
null
null
tests/__init__.py
modep-ai/modep-client
e6d53eccbac70199472420ee7c1471fe0ffd51f5
[ "MIT" ]
null
null
null
tests/__init__.py
modep-ai/modep-client
e6d53eccbac70199472420ee7c1471fe0ffd51f5
[ "MIT" ]
null
null
null
"""Unit test package for modep_client."""
21
41
0.714286
6
42
4.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
1
42
42
0.783784
0.833333
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
c169c5f87e8f18cc4884fd54c07b641043d00515
119
py
Python
01-hello-world.py
Sarlianth/python-problems
a106081977b4bf82767b1f5a0ffa7ec5f737f7a0
[ "Apache-2.0" ]
null
null
null
01-hello-world.py
Sarlianth/python-problems
a106081977b4bf82767b1f5a0ffa7ec5f737f7a0
[ "Apache-2.0" ]
null
null
null
01-hello-world.py
Sarlianth/python-problems
a106081977b4bf82767b1f5a0ffa7ec5f737f7a0
[ "Apache-2.0" ]
null
null
null
# The famous Hello, world! problem written in python. # Author: Adrian Sypos # Date: 21/09/2017 print("Hello, world!")
23.8
53
0.714286
18
119
4.722222
0.888889
0.235294
0
0
0
0
0
0
0
0
0
0.079208
0.151261
119
5
54
23.8
0.762376
0.747899
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
c19b4b00253d5e6ae452769042ed37e5c56f8c2d
127
py
Python
example/rcnn/rcnn/dataset/__init__.py
SCDM/mxnet
2dcab02620798f3dd51d4282d566e0dfd5422f1c
[ "Apache-2.0" ]
null
null
null
example/rcnn/rcnn/dataset/__init__.py
SCDM/mxnet
2dcab02620798f3dd51d4282d566e0dfd5422f1c
[ "Apache-2.0" ]
null
null
null
example/rcnn/rcnn/dataset/__init__.py
SCDM/mxnet
2dcab02620798f3dd51d4282d566e0dfd5422f1c
[ "Apache-2.0" ]
null
null
null
from imdb import IMDB from pascal_voc import PascalVOC from coco import coco from table_detection_voc import TableDetectionVOC
25.4
49
0.874016
19
127
5.684211
0.526316
0.166667
0
0
0
0
0
0
0
0
0
0
0.125984
127
4
50
31.75
0.972973
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
c1c1aae8350e69b8b5d3218fda9498d6d8ef55d8
113
py
Python
packages/girder_worker/girder_worker/plugins/types/format/graph/networkx_to_networkx_json.py
ShenQianwithC/HistomicsTK
4ad7e72a7ebdabbdfc879254fad04ce7ca47e320
[ "Apache-2.0" ]
null
null
null
packages/girder_worker/girder_worker/plugins/types/format/graph/networkx_to_networkx_json.py
ShenQianwithC/HistomicsTK
4ad7e72a7ebdabbdfc879254fad04ce7ca47e320
[ "Apache-2.0" ]
null
null
null
packages/girder_worker/girder_worker/plugins/types/format/graph/networkx_to_networkx_json.py
ShenQianwithC/HistomicsTK
4ad7e72a7ebdabbdfc879254fad04ce7ca47e320
[ "Apache-2.0" ]
null
null
null
import json from networkx.readwrite.json_graph import node_link_data output = json.dumps(node_link_data(input))
22.6
56
0.840708
18
113
5
0.666667
0.177778
0.266667
0
0
0
0
0
0
0
0
0
0.088496
113
4
57
28.25
0.873786
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
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
c1e2abbf1372806c0723506500ec5f6cbe30c51b
141
py
Python
tests/blog/conftest.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
7
2018-01-17T20:26:59.000Z
2022-03-23T08:12:00.000Z
tests/blog/conftest.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
511
2017-10-21T17:59:50.000Z
2022-03-28T18:49:21.000Z
tests/blog/conftest.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
2
2018-05-02T08:27:42.000Z
2020-08-17T18:42:49.000Z
from pytest_factoryboy import register from wapps.blog import factories register(factories.BlogFactory) register(factories.BlogPostFactory)
23.5
38
0.87234
16
141
7.625
0.625
0.278689
0
0
0
0
0
0
0
0
0
0
0.078014
141
5
39
28.2
0.938462
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
c1ebe1cf9db48aca9c1ca69eb6b4729b56ade73e
575
py
Python
Variable/Var2.py
piccadimn/Python
4f382268e7956709e97fa62da642f9d684fac4a1
[ "Apache-2.0" ]
null
null
null
Variable/Var2.py
piccadimn/Python
4f382268e7956709e97fa62da642f9d684fac4a1
[ "Apache-2.0" ]
null
null
null
Variable/Var2.py
piccadimn/Python
4f382268e7956709e97fa62da642f9d684fac4a1
[ "Apache-2.0" ]
null
null
null
""" import sys import numpy # Transpose of a Matrix 1 m = [[1, 2], [3, 4], [5, 6]] for row in m: print(row) z = [[m[j][i] for j in range(len(m))] for i in range(len(m[0]))] print("\n") for row in z: print(row) print("\n") # Transpose of a Matrix 2 matrix = [(1, 2, 3), (4, 5, 6,), (7, 8, 9)] for row in matrix: print(row) print("\n") t_matrix = zip(*matrix) for row in t_matrix: print(row) # Transpose of a Matrix 3 matrix = [[1, 2, 3], [4, 5, 6] ] print(matrix) print("\n") print(numpy.transpose(matrix)) """ import sys # Taking matrix as a input
14.375
64
0.577391
110
575
3
0.3
0.072727
0.09697
0.163636
0.090909
0.090909
0.072727
0
0
0
0
0.055804
0.22087
575
39
65
14.74359
0.680804
0.953043
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a9bca49894765ff95904db088c5bd0a30a4c8d50
78
py
Python
__main__.py
jlirochon/python-sdk
9490ca1852c77eb1c710f7c8ce5c4c4e67c997ab
[ "MIT" ]
null
null
null
__main__.py
jlirochon/python-sdk
9490ca1852c77eb1c710f7c8ce5c4c4e67c997ab
[ "MIT" ]
null
null
null
__main__.py
jlirochon/python-sdk
9490ca1852c77eb1c710f7c8ce5c4c4e67c997ab
[ "MIT" ]
null
null
null
import sys from blackfire.utils import get_logger log = get_logger(__name__)
15.6
38
0.820513
12
78
4.833333
0.75
0.310345
0
0
0
0
0
0
0
0
0
0
0.128205
78
4
39
19.5
0.852941
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
a9bd49b59c19ec1315df0d6817b185e962bbe487
2,117
py
Python
autocopy.py
Moemu/img
b691c0fc15718bbea17da4a0b69e90b79a371fdd
[ "Apache-2.0" ]
null
null
null
autocopy.py
Moemu/img
b691c0fc15718bbea17da4a0b69e90b79a371fdd
[ "Apache-2.0" ]
null
null
null
autocopy.py
Moemu/img
b691c0fc15718bbea17da4a0b69e90b79a371fdd
[ "Apache-2.0" ]
null
null
null
backimg =[ 'https://img.muspace.top/img/E0.webp', 'https://img.muspace.top/img/A2.webp', 'https://img.muspace.top/img/A80.webp', 'https://img.muspace.top/img/A88.webp', 'https://img.muspace.top/img/A285.webp', 'https://img.muspace.top/img/735.webp', 'https://img.muspace.top/img/A319.webp', 'https://img.muspace.top/img/590.webp', 'https://img.muspace.top/img/506.webp', 'https://img.muspace.top/img/46.webp', 'https://img.muspace.top/img/362.webp', 'https://img.muspace.top/img/318.webp', 'https://img.muspace.top/img/145.webp', 'https://img.muspace.top/img/D2.webp', 'https://img.muspace.top/img/D1.webp', 'https://img.muspace.top/img/D0.webp', 'https://img.muspace.top/img/B0.webp', 'https://img.muspace.top/img/H18.webp', 'https://img.muspace.top/img/H1.webp', 'https://img.muspace.top/img/H2.webp', 'https://img.muspace.top/img/H7.webp', 'https://img.muspace.top/img/I0.webp', 'https://img.muspace.top/img/I6.webp', 'https://img.muspace.top/img/I17.webp', 'https://img.muspace.top/img/I60.webp', 'https://img.muspace.top/img/H4.webp', 'https://img.muspace.top/img/I13.webp', 'https://img.muspace.top/img/I62.webp', 'https://img.muspace.top/img/I193.webp', 'https://img.muspace.top/img/I234.webp', 'https://img.muspace.top/img/H12.webp', 'https://img.muspace.top/img/I147.webp', 'https://img.muspace.top/img/I231.webp', 'https://img.muspace.top/img/J010.webp', 'https://img.muspace.top/img/J10.webp', 'https://img.muspace.top/img/J75.webp', 'https://img.muspace.top/img/J22.webp', 'https://img.muspace.top/img/J40.webp', 'https://img.muspace.top/img/91810456.webp', 'https://img.muspace.top/img/wallhaven-dgv23j.webp', 'https://img.muspace.top/img/J4.webp', 'https://img.muspace.top/img/J62.web' ] def main(lists,to_path): import os,shutil paths=[] for a in lists: path=a.split('https://img.muspace.top/')[1].split(')')[0] paths.append(path) for path in paths: shutil.copy(path,to_path) os.remove(path) main(backimg,'Cover')
37.803571
66
0.639584
337
2,117
4.011869
0.204748
0.254438
0.477071
0.572485
0.773669
0.758136
0
0
0
0
0
0.049303
0.118564
2,117
56
67
37.803571
0.675241
0
0
0
0
0
0.752302
0
0
0
0
0
0
1
0.018519
false
0
0.018519
0
0.037037
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
a9d15c77a7d300cf16a0014068308c0979485754
120
py
Python
src/meetings/views/__init__.py
torakses/unicornis-challenge
d7d1ae57e9bec05b942b6eec469e45f449f3bcc4
[ "MIT" ]
null
null
null
src/meetings/views/__init__.py
torakses/unicornis-challenge
d7d1ae57e9bec05b942b6eec469e45f449f3bcc4
[ "MIT" ]
null
null
null
src/meetings/views/__init__.py
torakses/unicornis-challenge
d7d1ae57e9bec05b942b6eec469e45f449f3bcc4
[ "MIT" ]
null
null
null
from .home_views import home_view from .meeting_views import meeting_create __all__ = ("meeting_create", "home_view")
24
42
0.8
17
120
5.058824
0.470588
0.255814
0
0
0
0
0
0
0
0
0
0
0.116667
120
4
43
30
0.811321
0
0
0
0
0
0.191667
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
a9d96546762a79419975a3fdc7678652ed5ba014
153
py
Python
wsgi.py
LLLLLin/chat
147ed1747b3c80e4f60a004a2d9e3b18a973be09
[ "MIT" ]
null
null
null
wsgi.py
LLLLLin/chat
147ed1747b3c80e4f60a004a2d9e3b18a973be09
[ "MIT" ]
null
null
null
wsgi.py
LLLLLin/chat
147ed1747b3c80e4f60a004a2d9e3b18a973be09
[ "MIT" ]
null
null
null
import sys from os.path import abspath from os.path import dirname sys.path.insert(0,abspath(dirname(__file__))) import app application = app.socketio
17
45
0.797386
24
153
4.916667
0.541667
0.101695
0.169492
0.271186
0
0
0
0
0
0
0
0.007407
0.117647
153
9
46
17
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
e71762364a41b67402afccb3c3a2a32db2f175bd
23
py
Python
css_grid/models.py
raiderrobert/djang-css-grid
0187dc2d0b6d90eed380f577444665f2f7dcdf2b
[ "MIT" ]
4
2017-09-29T18:14:27.000Z
2021-08-21T17:40:15.000Z
css_grid/models.py
raiderrobert/djang-css-grid
0187dc2d0b6d90eed380f577444665f2f7dcdf2b
[ "MIT" ]
1
2018-07-20T12:47:33.000Z
2018-07-20T14:02:24.000Z
css_grid/models.py
raiderrobert/django-css-grid
0187dc2d0b6d90eed380f577444665f2f7dcdf2b
[ "MIT" ]
null
null
null
# left blank on purpose
23
23
0.782609
4
23
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
1
23
23
0.947368
0.913043
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
e73c242f8aad713f4c5908b05f195e995c79dfa9
42
py
Python
docs/tests/W0301.py
mrfyda/codacy-pylint-python3
e360f6c0407edebe274835d3a881d67e96adf8ba
[ "Apache-2.0" ]
17
2016-01-26T13:30:04.000Z
2022-03-06T21:11:42.000Z
docs/tests/W0301.py
mrfyda/codacy-pylint-python3
e360f6c0407edebe274835d3a881d67e96adf8ba
[ "Apache-2.0" ]
50
2019-08-14T16:14:45.000Z
2022-03-31T11:00:50.000Z
docs/tests/W0301.py
mrfyda/codacy-pylint-python3
e360f6c0407edebe274835d3a881d67e96adf8ba
[ "Apache-2.0" ]
15
2015-11-18T12:18:50.000Z
2021-01-17T22:21:41.000Z
##Patterns: W0301 ##Warn: W0301 a = 1;
10.5
18
0.571429
6
42
4
0.833333
0
0
0
0
0
0
0
0
0
0
0.28125
0.238095
42
3
19
14
0.46875
0.619048
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
e756441fa3922078fcb5a2b7f95c4ab898a7f9f6
84
py
Python
src/lumigo_tracer/libs/__init__.py
anniyanvr/python_tracer
f7d4fee043353b51d272d54fa30ed4aaa53ce0a8
[ "Apache-2.0" ]
47
2019-08-29T06:41:02.000Z
2022-01-18T10:54:09.000Z
src/lumigo_tracer/libs/__init__.py
anniyanvr/python_tracer
f7d4fee043353b51d272d54fa30ed4aaa53ce0a8
[ "Apache-2.0" ]
120
2019-08-11T10:36:20.000Z
2022-02-21T17:29:36.000Z
src/lumigo_tracer/libs/__init__.py
anniyanvr/python_tracer
f7d4fee043353b51d272d54fa30ed4aaa53ce0a8
[ "Apache-2.0" ]
8
2020-03-17T19:18:44.000Z
2022-01-30T14:47:52.000Z
# TODO - do we need to add to our license something that thanks those repositories?
42
83
0.77381
14
84
4.642857
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.190476
84
1
84
84
0.955882
0.964286
0
null
0
null
0
0
null
0
0
1
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
5
e77cc5c2fabeb21b0949efe874efe2d52622fab9
31
py
Python
src/vedirect/__init__.py
nznobody/vedirect
e93c7e6db67bedf1349cf554392afda841d5f31a
[ "MIT" ]
3
2021-09-14T16:49:12.000Z
2022-03-29T05:58:45.000Z
src/vedirect/__init__.py
nznobody/vedirect
e93c7e6db67bedf1349cf554392afda841d5f31a
[ "MIT" ]
null
null
null
src/vedirect/__init__.py
nznobody/vedirect
e93c7e6db67bedf1349cf554392afda841d5f31a
[ "MIT" ]
null
null
null
from .vedirect import VEDirect
15.5
30
0.83871
4
31
6.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
0.962963
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e77fde5f19ffec6827d863428860ce418893feee
325
py
Python
nujo/objective/__init__.py
VIVelev/nujo
56c3058b14c4e0b7ae86d0f22dbe4c4dc81e8e71
[ "MIT" ]
5
2020-03-02T22:14:38.000Z
2022-03-09T11:13:13.000Z
nujo/objective/__init__.py
VIVelev/nujo
56c3058b14c4e0b7ae86d0f22dbe4c4dc81e8e71
[ "MIT" ]
30
2020-03-09T10:43:54.000Z
2020-06-09T20:05:45.000Z
nujo/objective/__init__.py
VIVelev/nujo
56c3058b14c4e0b7ae86d0f22dbe4c4dc81e8e71
[ "MIT" ]
3
2020-03-20T13:54:23.000Z
2020-10-17T01:03:17.000Z
''' nujo's objective functions module All sorts of objective functions used in machine learning are defined here. More details here: https://ml-cheatsheet.readthedocs.io/en/latest/loss_functions.html ''' from nujo.objective.loss import * from nujo.objective.qualitative import * from nujo.objective.quantitative import *
25
75
0.796923
45
325
5.733333
0.666667
0.093023
0.197674
0.178295
0
0
0
0
0
0
0
0
0.116923
325
12
76
27.083333
0.898955
0.606154
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
e7899c4056e20b0d42b2d199422f0f8a1f44fe0d
54
py
Python
Godwit/__main__.py
pthorin/godwit
a80f3b3a2e113d5c5e8e3bec191c42158a4692ca
[ "MIT" ]
null
null
null
Godwit/__main__.py
pthorin/godwit
a80f3b3a2e113d5c5e8e3bec191c42158a4692ca
[ "MIT" ]
null
null
null
Godwit/__main__.py
pthorin/godwit
a80f3b3a2e113d5c5e8e3bec191c42158a4692ca
[ "MIT" ]
4
2016-01-08T13:10:32.000Z
2018-07-03T07:43:21.000Z
from sys import argv import Godwit Godwit.main(argv)
10.8
20
0.796296
9
54
4.777778
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.148148
54
4
21
13.5
0.934783
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
e79dac1c4cf4c21621999a17fc42bb439fa84567
54
py
Python
flask_app.py
tledoux/spar-mets-viewer
d2104d08ce13ba9c79c4e7f4323ccd967e397fe4
[ "MIT" ]
1
2020-04-05T15:21:58.000Z
2020-04-05T15:21:58.000Z
flask_app.py
tledoux/spar-mets-viewer
d2104d08ce13ba9c79c4e7f4323ccd967e397fe4
[ "MIT" ]
null
null
null
flask_app.py
tledoux/spar-mets-viewer
d2104d08ce13ba9c79c4e7f4323ccd967e397fe4
[ "MIT" ]
null
null
null
from flask import Flask from SPARMETSViewer import app
27
30
0.87037
8
54
5.875
0.625
0
0
0
0
0
0
0
0
0
0
0
0.12963
54
2
30
27
1
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
e7a5ec22997b05d6a160023b90d0410ebcb52106
37
py
Python
pysmashgg/__init__.py
JeremySkalla/SmashGGPythonWrapper
6a0d35be0fd1646cc599d731734798f04b6afe6f
[ "MIT" ]
10
2021-01-14T17:59:13.000Z
2022-03-01T18:20:12.000Z
pysmashgg/__init__.py
JeremySkalla/SmashGGPythonWrapper
6a0d35be0fd1646cc599d731734798f04b6afe6f
[ "MIT" ]
2
2022-03-01T12:44:00.000Z
2022-03-16T15:02:16.000Z
pysmashgg/__init__.py
JeremySkalla/SmashGGPythonWrapper
6a0d35be0fd1646cc599d731734798f04b6afe6f
[ "MIT" ]
4
2021-09-26T19:25:50.000Z
2022-03-16T11:43:47.000Z
from pysmashgg.smashgg import SmashGG
37
37
0.891892
5
37
6.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.081081
37
1
37
37
0.970588
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
99bd7a6ec4402d51007d557caafa6a986554637b
157
py
Python
compiled/construct/opaque_external_type.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/opaque_external_type.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/opaque_external_type.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * opaque_external_type = Struct( 'one' / LazyBound(lambda: term_strz), ) _schema = opaque_external_type
17.444444
38
0.770701
20
157
5.75
0.7
0.226087
0.313043
0
0
0
0
0
0
0
0
0
0.140127
157
8
39
19.625
0.851852
0
0
0
0
0
0.019108
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
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
99bee8322451223db66879a626418c2c1b88b4b8
24
py
Python
python/jsbeautifier/__version__.py
aswinkumar863/js-beautify
0b0400705101d48ec2aacbda7db6620308c8d71d
[ "MIT" ]
1
2021-11-25T14:29:54.000Z
2021-11-25T14:29:54.000Z
python/jsbeautifier/__version__.py
aswinkumar863/js-beautify
0b0400705101d48ec2aacbda7db6620308c8d71d
[ "MIT" ]
null
null
null
python/jsbeautifier/__version__.py
aswinkumar863/js-beautify
0b0400705101d48ec2aacbda7db6620308c8d71d
[ "MIT" ]
null
null
null
__version__ = "1.13.13"
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
99cc310c8901f2a3e5575ade32e1ce261324a8bd
42
py
Python
tests/__init__.py
nasifimtiazohi/depdive
eef4a59c0df26628905f9c536aff1df1bea07fff
[ "MIT" ]
4
2022-02-12T12:26:22.000Z
2022-03-17T00:14:23.000Z
tests/__init__.py
nasifimtiazohi/depdive
eef4a59c0df26628905f9c536aff1df1bea07fff
[ "MIT" ]
14
2021-12-13T12:10:06.000Z
2022-03-21T12:34:47.000Z
tests/__init__.py
nasifimtiazohi/depdive
eef4a59c0df26628905f9c536aff1df1bea07fff
[ "MIT" ]
null
null
null
"""Test suite for the depdive package."""
21
41
0.690476
6
42
4.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
42
1
42
42
0.805556
0.833333
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
99f32dbfde6feaa6dff13c961f4748ce54c5ba9d
2,952
py
Python
fdi/tests/test_performance_tabs.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
5
2016-09-12T12:52:45.000Z
2020-03-24T14:43:13.000Z
fdi/tests/test_performance_tabs.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
435
2016-10-18T12:51:39.000Z
2021-06-09T17:22:08.000Z
fdi/tests/test_performance_tabs.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
2
2016-12-06T10:37:21.000Z
2017-02-22T17:27:43.000Z
from django.urls import reverse from toolz import get_in from fdi.tests.base import FdiBaseTestCase class FDIOverviewTabsTestCase(FdiBaseTestCase): url = reverse('fdi:tab_overview', kwargs={'name': 'sector'}) def assert_response_zeros(self, api_response): for team in api_response: self.assertEqual(team['wins']['verify_win']['count'], 0) self.assertEqual(team['wins']['verify_win']['percent'], 0.0) self.assertEqual(team['wins']['won']['count'], 0) self.assertEqual(team['wins']['won']['percent'], 0) self.assertEqual(team['wins']['hvc']['count'], 0) self.assertEqual(team['wins']['hvc']['percent'], 0) self.assertEqual(team['wins']['non_hvc']['count'], 0) self.assertEqual(team['wins']['non_hvc']['percent'], 0) self.assertEqual(team['wins']['total'], 0) self.assertEqual(team['pipeline'], 0) self.assertEqual(team['jobs']['new'], 0) self.assertEqual(team['jobs']['safe'], 0) self.assertEqual(team['jobs']['total'], 0) self.assertTrue(team['target'] >= 0) def test_overview_sector_tab_no_wins_2017(self): self.url = reverse('fdi:tab_overview', kwargs={'name': 'sector'}) self.url = self.get_url_for_year(2017, self.url) api_response = self._api_response_data self.assertEqual(len(api_response), 21) self.assert_response_zeros(api_response) def test_overview_sector_tab_no_wins_2016(self): self.url = reverse('fdi:tab_overview', kwargs={'name': 'sector'}) self.url = self.get_url_for_year(2016, self.url) api_response = self._api_response_data self.assertEqual(len(api_response), 21) self.assert_response_zeros(api_response) def test_overview_os_region_tab_no_wins_2017(self): self.url = reverse('fdi:tab_overview', kwargs={'name': 'os_region'}) self.url = self.get_url_for_year(2017, self.url) api_response = self._api_response_data self.assert_response_zeros(api_response) def test_overview_os_region_tab_no_wins_2016(self): self.url = reverse('fdi:tab_overview', kwargs={'name': 'os_region'}) self.url = self.get_url_for_year(2016, self.url) api_response = self._api_response_data self.assert_response_zeros(api_response) def test_overview_uk_region_tab_no_wins_2017(self): self.url = reverse('fdi:tab_overview', kwargs={'name': 'uk_region'}) self.url = self.get_url_for_year(2017, self.url) api_response = self._api_response_data self.assert_response_zeros(api_response) def test_overview_uk_region_tab_no_wins_2016(self): self.url = reverse('fdi:tab_overview', kwargs={'name': 'uk_region'}) self.url = self.get_url_for_year(2016, self.url) api_response = self._api_response_data self.assert_response_zeros(api_response)
46.125
76
0.663618
394
2,952
4.662437
0.142132
0.131737
0.134458
0.130648
0.856832
0.817637
0.730539
0.640719
0.618944
0.618944
0
0.028187
0.194783
2,952
63
77
46.857143
0.744636
0
0
0.490566
0
0
0.124322
0
0
0
0
0
0.433962
1
0.132075
false
0
0.056604
0
0.226415
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
413b9190f79d7d3da2b048c23f75799a50095818
215
py
Python
ashd/__init__.py
johnnygreco/asas-sn-hd
1baf7ff6c0cb7c65caf7b2e07ed67b13049c92d9
[ "MIT" ]
null
null
null
ashd/__init__.py
johnnygreco/asas-sn-hd
1baf7ff6c0cb7c65caf7b2e07ed67b13049c92d9
[ "MIT" ]
null
null
null
ashd/__init__.py
johnnygreco/asas-sn-hd
1baf7ff6c0cb7c65caf7b2e07ed67b13049c92d9
[ "MIT" ]
null
null
null
from . import database from .butler import Butler #from .pipeline import ASHDPipe from .image import ASHDImage from .display import Display from .params import PipeParams from .imutils import * from .utils import *
23.888889
31
0.8
29
215
5.931034
0.448276
0
0
0
0
0
0
0
0
0
0
0
0.148837
215
8
32
26.875
0.939891
0.139535
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
4141107fbd801b3f330dec7ec42365d64b14fe32
58
py
Python
lib/yamddpp/yamddpp/Scattering/__init__.py
atomrq/simulab
886f2d613ecbac711b41026887f6d9f7ac94b25f
[ "BSD-3-Clause" ]
null
null
null
lib/yamddpp/yamddpp/Scattering/__init__.py
atomrq/simulab
886f2d613ecbac711b41026887f6d9f7ac94b25f
[ "BSD-3-Clause" ]
null
null
null
lib/yamddpp/yamddpp/Scattering/__init__.py
atomrq/simulab
886f2d613ecbac711b41026887f6d9f7ac94b25f
[ "BSD-3-Clause" ]
null
null
null
from ._rdf import rdf_xy from ._scatter import scatter_xy
19.333333
32
0.827586
10
58
4.4
0.5
0
0
0
0
0
0
0
0
0
0
0
0.137931
58
2
33
29
0.88
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
41513df9b84fec3648a9790aa0a66fca62de65f8
230
py
Python
xepmts/cli.py
jmosbacher/xepmts
b4cff16d8a1b29a16f1d966b69bb82dc417d7b69
[ "MIT" ]
null
null
null
xepmts/cli.py
jmosbacher/xepmts
b4cff16d8a1b29a16f1d966b69bb82dc417d7b69
[ "MIT" ]
66
2021-02-13T16:33:10.000Z
2022-03-30T18:32:55.000Z
xepmts/cli.py
jmosbacher/xepmts
b4cff16d8a1b29a16f1d966b69bb82dc417d7b69
[ "MIT" ]
null
null
null
"""Console script for xepmts.""" import sys import os import click import xepmts @click.group() def main(): """Console script for xepmts.""" return 0 if __name__ == "__main__": sys.exit(main()) # pragma: no cover
14.375
40
0.652174
31
230
4.580645
0.612903
0.183099
0.225352
0.309859
0
0
0
0
0
0
0
0.005464
0.204348
230
15
41
15.333333
0.770492
0.308696
0
0
0
0
0.054054
0
0
0
0
0
0
1
0.111111
true
0
0.444444
0
0.666667
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
41796c9a713f67588dc6747d04de82c802347d0f
2,214
py
Python
arm_prosthesis/external_communication/models/dto/gesture_action_dto.py
paulrozhkin/arm_prosthesis_raspberry
a643dc84109f1d516fa2ca50414f95f408d6da7d
[ "MIT" ]
2
2021-11-08T01:52:36.000Z
2021-11-08T01:52:38.000Z
arm_prosthesis/external_communication/models/dto/gesture_action_dto.py
paulrozhkin/arm_prosthesis_raspberry
a643dc84109f1d516fa2ca50414f95f408d6da7d
[ "MIT" ]
null
null
null
arm_prosthesis/external_communication/models/dto/gesture_action_dto.py
paulrozhkin/arm_prosthesis_raspberry
a643dc84109f1d516fa2ca50414f95f408d6da7d
[ "MIT" ]
1
2020-11-08T16:45:23.000Z
2020-11-08T16:45:23.000Z
from arm_prosthesis.external_communication.models.dto.entity_dto import EntityDto from gestures_pb2 import GestureAction class GestureActionDto(EntityDto): def __init__(self): self._little_finger_position = 0 self._ring_finger_position = 0 self._middle_finger_position = 0 self._index_finger_position = 0 self._thumb_finger_position = 0 self._delay = 0 @property def little_finger_position(self) -> int: return self._little_finger_position @property def ring_finger_position(self) -> int: return self._ring_finger_position @property def middle_finger_position(self) -> int: return self._middle_finger_position @property def index_finger_position(self) -> int: return self._index_finger_position @property def thumb_finger_position(self) -> int: return self._thumb_finger_position @property def delay(self) -> int: return self._delay def create_from_protobuf_action(self, action_proto: GestureAction): self._little_finger_position = action_proto.little_finger_position self._ring_finger_position = action_proto.ring_finger_position self._middle_finger_position = action_proto.middle_finger_position self._index_finger_position = action_proto.pointer_finger_position self._thumb_finger_position = action_proto.thumb_finger_position self._delay = action_proto.delay def convert_to_protobuf_action(self) -> GestureAction: action_proto = GestureAction() action_proto.little_finger_position = self.little_finger_position action_proto.ring_finger_position = self.ring_finger_position action_proto.middle_finger_position = self.middle_finger_position action_proto.pointer_finger_position = self.index_finger_position action_proto.thumb_finger_position = self.thumb_finger_position action_proto.delay = self._delay return action_proto def serialize(self) -> bytes: raise NotImplementedError def deserialize(self, byte_array: bytes): raise NotImplementedError
36.295082
82
0.719964
254
2,214
5.807087
0.173228
0.332203
0.183051
0.169492
0.48
0.48
0.319322
0.319322
0
0
0
0.004077
0.224481
2,214
60
83
36.9
0.85498
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.229167
false
0
0.041667
0.125
0.4375
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
1
0
0
0
5
41a1ba7c4349966aad660e484b87b29fcf6f0431
270
py
Python
pub_data_visualization/outages/tools/__init__.py
cre-os/pub-data-visualization
e5ec45e6397258646290836fc1a3b39ad69bf266
[ "MIT" ]
10
2020-10-08T11:35:49.000Z
2021-01-22T16:47:59.000Z
pub_data_visualization/outages/tools/__init__.py
l-leo/pub-data-visualization
68eea00491424581b057495a7f0f69cf74e16e7d
[ "MIT" ]
3
2021-03-15T14:26:43.000Z
2021-12-02T15:27:49.000Z
pub_data_visualization/outages/tools/__init__.py
cre-dev/pub-data-visualization
229bb7a543684be2cb06935299345ce3263da946
[ "MIT" ]
1
2021-01-22T16:47:10.000Z
2021-01-22T16:47:10.000Z
""" Module containing a set of tools to deal with the outages data. """ from .compute_all_programs import * from .compute_missing_energy import * from .cross_section_view import * from .extrapolate_programs import * from .sum_programs import *
20.769231
67
0.714815
35
270
5.285714
0.685714
0.216216
0.194595
0
0
0
0
0
0
0
0
0
0.222222
270
12
68
22.5
0.880952
0.233333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
68e55de4e48a074ad8a8f0f6f2a0425c03b22595
69
py
Python
pystripe/api/__init__.py
gbozee/pystripe
42ffef976bfec5ee0021c53dcd29676abdf78204
[ "MIT" ]
null
null
null
pystripe/api/__init__.py
gbozee/pystripe
42ffef976bfec5ee0021c53dcd29676abdf78204
[ "MIT" ]
null
null
null
pystripe/api/__init__.py
gbozee/pystripe
42ffef976bfec5ee0021c53dcd29676abdf78204
[ "MIT" ]
1
2019-11-05T18:51:00.000Z
2019-11-05T18:51:00.000Z
from .webhook import Webhook from .exceptions import StripeException
34.5
39
0.855072
8
69
7.375
0.625
0
0
0
0
0
0
0
0
0
0
0
0.115942
69
2
39
34.5
0.967213
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
ec261287e058c7537be25da16c4c1e6748e8f94f
66
py
Python
beth/ai/__init__.py
TheoLvs/beth
7331f899a020013ff3bcd0bbdf8b13f1ad173369
[ "MIT" ]
null
null
null
beth/ai/__init__.py
TheoLvs/beth
7331f899a020013ff3bcd0bbdf8b13f1ad173369
[ "MIT" ]
19
2020-12-29T20:39:08.000Z
2021-04-09T18:11:43.000Z
beth/ai/__init__.py
TheoLvs/beth
7331f899a020013ff3bcd0bbdf8b13f1ad173369
[ "MIT" ]
null
null
null
from .tree import TreeSearchAI from .stockfish import StockfishAI
22
34
0.848485
8
66
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.121212
66
2
35
33
0.965517
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
ec28e780afa6842f699dcd66b1561251ed60aa1f
611
py
Python
ST_DM/GenRegion/src/generate/__init__.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
ST_DM/GenRegion/src/generate/__init__.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
ST_DM/GenRegion/src/generate/__init__.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
# -*- coding: utf-8 -*- ######################################################################## # # Copyright (c) 2019 Baidu.com, Inc. All Rights Reserved # ######################################################################## from .gen.cluster import Cluster from .gen.algorithm import generate_regions from .gen.algorithm import rect_cluster from .gen.algorithm import rect_classify from .gen.algorithm import region_filter from .gen.algorithm import split_segs_by_segs from .gen.algorithm import splitedsegs_2_regions from .gen.algorithm import merge_regions from .gen.regionalg import RegionFinder
33.944444
72
0.610475
67
611
5.41791
0.462687
0.173554
0.30854
0.424242
0.341598
0
0
0
0
0
0
0.01087
0.096563
611
17
73
35.941176
0.646739
0.126023
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
6b8e47dbceb72760fd42f1ba87509bae4ae4cb67
116
py
Python
tests/test_objectset.py
mcclung/zfsp
37a25b83103aa67a269b31cd4413d3baaffcde56
[ "BSD-2-Clause" ]
600
2019-05-04T16:17:26.000Z
2022-03-31T20:04:56.000Z
tests/test_objectset.py
mcclung/zfsp
37a25b83103aa67a269b31cd4413d3baaffcde56
[ "BSD-2-Clause" ]
5
2019-05-04T19:12:41.000Z
2019-08-25T06:40:00.000Z
tests/test_objectset.py
mcclung/zfsp
37a25b83103aa67a269b31cd4413d3baaffcde56
[ "BSD-2-Clause" ]
27
2019-05-04T16:34:42.000Z
2020-09-27T14:03:20.000Z
from zfs import objectset from fixtures import zpool def test_objset(zpool): assert zpool.objset_for_vdev(0)
14.5
35
0.784483
18
116
4.888889
0.722222
0
0
0
0
0
0
0
0
0
0
0.010309
0.163793
116
7
36
16.571429
0.896907
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
6bb8e83497af6ba17d6e84a8ffed27833ac5a713
60
py
Python
mos/interface/__init__.py
Fuinn/mos-interface-py
5286e3ffab069938e374c6362f666e78d8d4cd06
[ "BSD-3-Clause" ]
1
2021-05-17T07:38:50.000Z
2021-05-17T07:38:50.000Z
mos/interface/__init__.py
Fuinn/mos-interface-py
5286e3ffab069938e374c6362f666e78d8d4cd06
[ "BSD-3-Clause" ]
null
null
null
mos/interface/__init__.py
Fuinn/mos-interface-py
5286e3ffab069938e374c6362f666e78d8d4cd06
[ "BSD-3-Clause" ]
null
null
null
from .model import Model from .interface import Interface
12
32
0.8
8
60
6
0.5
0
0
0
0
0
0
0
0
0
0
0
0.166667
60
4
33
15
0.96
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d431b4630f3d0323bee53689885d9f01f1ba4de4
162
py
Python
multi_armed_bandit/pymab/evaluation/__init__.py
smn-ailab/ysaito-qiita
8c5dd1496efa662cc636024cc49e2fd374a3daa5
[ "MIT" ]
14
2018-03-16T09:40:05.000Z
2021-08-16T16:38:57.000Z
multi_armed_bandit/pymab/evaluation/__init__.py
smn-ailab/ysaito-qiita
8c5dd1496efa662cc636024cc49e2fd374a3daa5
[ "MIT" ]
null
null
null
multi_armed_bandit/pymab/evaluation/__init__.py
smn-ailab/ysaito-qiita
8c5dd1496efa662cc636024cc49e2fd374a3daa5
[ "MIT" ]
6
2018-12-21T08:58:31.000Z
2021-12-08T10:05:06.000Z
from .data_generator import DataGenerator from .evaluators import (DirectMethod, DREstimator, IPSEstimator, MRDREstimator, ReplayMethod)
40.5
65
0.722222
13
162
8.923077
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.228395
162
3
66
54
0.928
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
2e5074354f0a6747e32cf531c085ad89a4f0c9b0
103
py
Python
rm.py
TutorialForPython/tool-chain
be48e28cd2987aa29dc5498a59c53258827b6dcb
[ "MIT" ]
null
null
null
rm.py
TutorialForPython/tool-chain
be48e28cd2987aa29dc5498a59c53258827b6dcb
[ "MIT" ]
null
null
null
rm.py
TutorialForPython/tool-chain
be48e28cd2987aa29dc5498a59c53258827b6dcb
[ "MIT" ]
null
null
null
import os import os.path def rm(filename): if os.path.isfile(filename): os.remove(filename)
20.6
32
0.68932
16
103
4.4375
0.5625
0.225352
0
0
0
0
0
0
0
0
0
0
0.194175
103
5
33
20.6
0.855422
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
2e85c3ce36cd05da2846863025326ab579440482
78
py
Python
scripts/quest/autogen_q61145s.py
pardovot/MS-private-server
ef7fde137a58ff71f83ba2229ac1f9c01d31bd6a
[ "MIT" ]
null
null
null
scripts/quest/autogen_q61145s.py
pardovot/MS-private-server
ef7fde137a58ff71f83ba2229ac1f9c01d31bd6a
[ "MIT" ]
null
null
null
scripts/quest/autogen_q61145s.py
pardovot/MS-private-server
ef7fde137a58ff71f83ba2229ac1f9c01d31bd6a
[ "MIT" ]
null
null
null
# ObjectID: 0 # ParentID: 61145 # Character field ID when accessed: 101050000
19.5
45
0.75641
10
78
5.9
1
0
0
0
0
0
0
0
0
0
0
0.230769
0.166667
78
3
46
26
0.676923
0.910256
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
cf0cd06f2babd81e098760b44baf3a0ebd8fd22a
183
py
Python
bower/commands/discover.py
benschwarz/sublime-bower
689d43b15dd99f206b1571891b96058573ca150f
[ "MIT" ]
49
2015-01-06T20:35:00.000Z
2021-11-21T02:52:20.000Z
bower/commands/discover.py
benschwarz/sublime-bower
689d43b15dd99f206b1571891b96058573ca150f
[ "MIT" ]
6
2015-01-30T15:05:44.000Z
2017-11-20T18:44:48.000Z
bower/commands/discover.py
benschwarz/sublime-bower
689d43b15dd99f206b1571891b96058573ca150f
[ "MIT" ]
7
2015-03-24T12:48:55.000Z
2016-12-31T18:55:20.000Z
import sublime_plugin class DiscoverPackageCommand(sublime_plugin.WindowCommand): def run(self): self.window.run_command('open_url', {'url': 'http://bower.io/search/'})
26.142857
79
0.726776
22
183
5.863636
0.772727
0.20155
0
0
0
0
0
0
0
0
0
0
0.125683
183
6
80
30.5
0.80625
0
0
0
0
0
0.185792
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
1
0
0
5
cf1257bf8f3fb57670ace761379a544730c1f9c8
181
py
Python
glesys/endpoints/__init__.py
pyglesys/pyglesys
e4ec4ef583e4e0e257ca6a2481209fba1dc043fc
[ "MIT" ]
null
null
null
glesys/endpoints/__init__.py
pyglesys/pyglesys
e4ec4ef583e4e0e257ca6a2481209fba1dc043fc
[ "MIT" ]
20
2018-11-04T08:48:28.000Z
2018-11-04T20:43:26.000Z
glesys/endpoints/__init__.py
pyglesys/pyglesys
e4ec4ef583e4e0e257ca6a2481209fba1dc043fc
[ "MIT" ]
null
null
null
from .base import ApiObject, Endpoint # noqa from .server import Server, ServerEndpoint # noqa from .user import UserEndpoint # noqa from .account import AccountEndpoint # noqa
36.2
50
0.779006
22
181
6.409091
0.545455
0.170213
0
0
0
0
0
0
0
0
0
0
0.165746
181
4
51
45.25
0.933775
0.104972
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
cf26a03047f0bfb415cc4d56edbfb30dd0b6ecf2
66
py
Python
dnfal/alignment/__init__.py
altest-com/dnfal
d1fb15508c5583aeaa0957fcc3e37634d36bf237
[ "MIT" ]
null
null
null
dnfal/alignment/__init__.py
altest-com/dnfal
d1fb15508c5583aeaa0957fcc3e37634d36bf237
[ "MIT" ]
1
2020-03-31T17:04:09.000Z
2020-03-31T17:04:09.000Z
dnfal/alignment/__init__.py
altest-com/dnfal
d1fb15508c5583aeaa0957fcc3e37634d36bf237
[ "MIT" ]
null
null
null
from ._aligner import FaceAligner from ._marker import FaceMarker
22
33
0.848485
8
66
6.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.121212
66
2
34
33
0.931034
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
cf2cc42421955c6f10fc8fbd2745744b7f965945
96
py
Python
lightning_transformers/callbacks/__init__.py
techthiyanes/lightning-transformers
4832f00ee26ad8d3d39e77d0d89f220bcc8de944
[ "Apache-2.0" ]
null
null
null
lightning_transformers/callbacks/__init__.py
techthiyanes/lightning-transformers
4832f00ee26ad8d3d39e77d0d89f220bcc8de944
[ "Apache-2.0" ]
null
null
null
lightning_transformers/callbacks/__init__.py
techthiyanes/lightning-transformers
4832f00ee26ad8d3d39e77d0d89f220bcc8de944
[ "Apache-2.0" ]
null
null
null
from lightning_transformers.callbacks.sparseml import TransformerSparseMLCallback # noqa: F401
48
95
0.875
9
96
9.222222
1
0
0
0
0
0
0
0
0
0
0
0.034091
0.083333
96
1
96
96
0.909091
0.104167
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
cf72a7fc48329319e6eaf545abce3dae284d87d0
36
py
Python
cc.py
acevedo-oscar/prueba1
101851b06506454fdefcb7fe7f77fd76b24c0ef2
[ "MIT" ]
null
null
null
cc.py
acevedo-oscar/prueba1
101851b06506454fdefcb7fe7f77fd76b24c0ef2
[ "MIT" ]
null
null
null
cc.py
acevedo-oscar/prueba1
101851b06506454fdefcb7fe7f77fd76b24c0ef2
[ "MIT" ]
null
null
null
print('CEC') print("Hola que hace")
12
22
0.666667
6
36
4
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.111111
36
2
23
18
0.75
0
0
0
0
0
0.444444
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
d84683d9647fe3af7ca585cfc9e4aa1f96afea4d
222
py
Python
main/PluginDemos/BoundaryPixelTrackerVis/Simulation/BoundaryPixelTrackerVis.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/BoundaryPixelTrackerVis/Simulation/BoundaryPixelTrackerVis.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/BoundaryPixelTrackerVis/Simulation/BoundaryPixelTrackerVis.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from .BoundaryPixelTrackerVisSteppables import BoundaryPixelTrackerSteppable CompuCellSetup.register_steppable(steppable=BoundaryPixelTrackerSteppable(frequency=10)) CompuCellSetup.run()
27.75
88
0.891892
17
222
11.588235
0.647059
0
0
0
0
0
0
0
0
0
0
0.014354
0.058559
222
7
89
31.714286
0.92823
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
d8ac87e0cd119342736d1abc9fb9d6b4f6bcb755
96
py
Python
venv/lib/python3.8/site-packages/lockfile/pidlockfile.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/lockfile/pidlockfile.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/lockfile/pidlockfile.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/ba/41/fd/ba4e8d16ec725661b94225b0e222aaddf4fb323a9482e5fde5abd83c86
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.364583
0
96
1
96
96
0.53125
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
2b12860143216e129460e703b43fb4d072d16b88
79
py
Python
newspaper/trash.py
andrewquirk/cs191w
0fc0c8996e7e8eb570a7e347ff7ead6f8b5bd4ce
[ "Apache-2.0", "MIT" ]
null
null
null
newspaper/trash.py
andrewquirk/cs191w
0fc0c8996e7e8eb570a7e347ff7ead6f8b5bd4ce
[ "Apache-2.0", "MIT" ]
null
null
null
newspaper/trash.py
andrewquirk/cs191w
0fc0c8996e7e8eb570a7e347ff7ead6f8b5bd4ce
[ "Apache-2.0", "MIT" ]
null
null
null
from newspaper import Article import newspaper print(newspaper.popular_urls())
19.75
31
0.848101
10
79
6.6
0.7
0
0
0
0
0
0
0
0
0
0
0
0.088608
79
4
31
19.75
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2b12f12d71a738b0c45965cfcedc0474e40099a8
144
py
Python
backend/linktree/admin.py
stanleyarmstrong/betterlinktree
456e3de8c647a9ee4e59683bb5f4a21375f11aa2
[ "MIT" ]
null
null
null
backend/linktree/admin.py
stanleyarmstrong/betterlinktree
456e3de8c647a9ee4e59683bb5f4a21375f11aa2
[ "MIT" ]
null
null
null
backend/linktree/admin.py
stanleyarmstrong/betterlinktree
456e3de8c647a9ee4e59683bb5f4a21375f11aa2
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import User, Link # Register your models here. admin.site.register(User) admin.site.register(Link)
28.8
32
0.805556
22
144
5.272727
0.545455
0.155172
0.293103
0
0
0
0
0
0
0
0
0
0.104167
144
5
33
28.8
0.899225
0.180556
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
2b506ebb010f3c2fd50458f3c4ce3be50fbcaa1b
46
py
Python
oh.py
yonradz/sirwalter
d71e2f10eeaf5fc08ea84f17719330d9ed613a6a
[ "Apache-2.0" ]
null
null
null
oh.py
yonradz/sirwalter
d71e2f10eeaf5fc08ea84f17719330d9ed613a6a
[ "Apache-2.0" ]
null
null
null
oh.py
yonradz/sirwalter
d71e2f10eeaf5fc08ea84f17719330d9ed613a6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python print "Oh Hello there!"
15.333333
23
0.695652
8
46
4
1
0
0
0
0
0
0
0
0
0
0
0
0.130435
46
2
24
23
0.8
0.434783
0
0
0
0
0.6
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
1
0
5
99354bdf661c8c6c05d204b266962df8e850ea4c
87
py
Python
poopbox/run/targets.py
denbeigh2000/poopbox
ca6f71fc1fd3c2a936ad115977586fbc73322224
[ "MIT" ]
null
null
null
poopbox/run/targets.py
denbeigh2000/poopbox
ca6f71fc1fd3c2a936ad115977586fbc73322224
[ "MIT" ]
2
2020-03-14T04:13:04.000Z
2020-03-14T04:26:34.000Z
poopbox/run/targets.py
denbeigh2000/poopbox
ca6f71fc1fd3c2a936ad115977586fbc73322224
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # pylint: disable=unused-import from .ssh import SSHRunTarget
14.5
31
0.758621
12
87
5.5
0.916667
0
0
0
0
0
0
0
0
0
0
0.013158
0.126437
87
5
32
17.4
0.855263
0.586207
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
998dacfbe1f0e86ee551a09a5695e6a12f12f43f
57,850
py
Python
dlkit/abstract_osid/grading/objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/abstract_osid/grading/objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/abstract_osid/grading/objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Implementations of grading abstract base class objects.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' and include no methods. # pylint: disable=too-many-public-methods # Number of methods are defined in specification # pylint: disable=too-many-ancestors # Inheritance defined in specification # pylint: disable=too-many-arguments # Argument signature defined in specification. # pylint: disable=duplicate-code # All apparent duplicates have been inspected. They aren't. import abc class Grade: """A ``Grade``. Grades represent qualified performance levels defined within some grading system. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_grade_system_id(self): """Gets the ``GradeSystem Id`` in which this grade belongs. :return: the grade system ``Id`` :rtype: ``osid.id.Id`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id grade_system_id = property(fget=get_grade_system_id) @abc.abstractmethod def get_grade_system(self): """Gets the ``GradeSystem`` in which this grade belongs. :return: the grade system :rtype: ``osid.grading.GradeSystem`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeSystem grade_system = property(fget=get_grade_system) @abc.abstractmethod def get_input_score_start_range(self): """Gets the low end of the input score range equivalent to this grade. :return: the start range :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal input_score_start_range = property(fget=get_input_score_start_range) @abc.abstractmethod def get_input_score_end_range(self): """Gets the high end of the input score range equivalent to this grade. :return: the end range :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal input_score_end_range = property(fget=get_input_score_end_range) @abc.abstractmethod def get_output_score(self): """Gets the output score for this grade used for calculating cumultives or performing articulation. :return: the output score :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal output_score = property(fget=get_output_score) @abc.abstractmethod def get_grade_record(self, grade_record_type): """Gets the grade record corresponding to the given ``Grade`` record ``Type``. This method is used to retrieve an object implementing the requested record. The ``grade_record_type`` may be the ``Type`` returned in ``get_record_types()`` or any of its parents in a ``Type`` hierarchy where ``has_record_type(grade_record_type)`` is ``true`` . :param grade_record_type: the type of the record to retrieve :type grade_record_type: ``osid.type.Type`` :return: the grade record :rtype: ``osid.grading.records.GradeRecord`` :raise: ``NullArgument`` -- ``grade_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(grade_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradeRecord class GradeForm: """This is the form for creating and updating ``Grades``. Like all ``OsidForm`` objects, various data elements may be set here for use in the create and update methods in the ``GradeAdminSession``. For each data element that may be set, metadata may be examined to provide display hints or data constraints. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_input_score_start_range_metadata(self): """Gets the metadata for the input score start range. :return: metadata for the input score start range :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata input_score_start_range_metadata = property(fget=get_input_score_start_range_metadata) @abc.abstractmethod def set_input_score_start_range(self, score): """Sets the input score start range. :param score: the new start range :type score: ``decimal`` :raise: ``InvalidArgument`` -- ``score`` is invalid :raise: ``NoAccess`` -- ``range`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_input_score_start_range(self): """Clears the input score start. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass input_score_start_range = property(fset=set_input_score_start_range, fdel=clear_input_score_start_range) @abc.abstractmethod def get_input_score_end_range_metadata(self): """Gets the metadata for the input score start range. :return: metadata for the input score start range :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata input_score_end_range_metadata = property(fget=get_input_score_end_range_metadata) @abc.abstractmethod def set_input_score_end_range(self, score): """Sets the input score start range. :param score: the new start range :type score: ``decimal`` :raise: ``InvalidArgument`` -- ``score`` is invalid :raise: ``NoAccess`` -- ``range`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_input_score_end_range(self): """Clears the input score start. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass input_score_end_range = property(fset=set_input_score_end_range, fdel=clear_input_score_end_range) @abc.abstractmethod def get_output_score_metadata(self): """Gets the metadata for the output score start range. :return: metadata for the output score start range :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata output_score_metadata = property(fget=get_output_score_metadata) @abc.abstractmethod def set_output_score(self, score): """Sets the output score. :param score: the new output score :type score: ``decimal`` :raise: ``InvalidArgument`` -- ``score`` is invalid :raise: ``NoAccess`` -- ``score`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_output_score(self): """Clears the output score. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass output_score = property(fset=set_output_score, fdel=clear_output_score) @abc.abstractmethod def get_grade_form_record(self, grade_record_type): """Gets the ``GradeFormRecord`` corresponding to the given grade record ``Type``. :param grade_record_type: the grade record type :type grade_record_type: ``osid.type.Type`` :return: the grade form record :rtype: ``osid.grading.records.GradeFormRecord`` :raise: ``NullArgument`` -- ``grade_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(grade_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradeFormRecord class GradeList: """Like all ``OsidLists,`` ``GradeList`` provides a means for accessing ``Grade`` elements sequentially either one at a time or many at a time. Examples: while (gl.hasNext()) { Grade grade = gl.getNextGrade(); } or while (gl.hasNext()) { Grade[] grades = gl.getNextGrades(gl.available()); } """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_next_grade(self): """Gets the next ``Grade`` in this list. :return: the next ``Grade`` in this list. The ``has_next()`` method should be used to test that a next ``Grade`` is available before calling this method. :rtype: ``osid.grading.Grade`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.Grade next_grade = property(fget=get_next_grade) @abc.abstractmethod def get_next_grades(self, n): """Gets the next set of ``Grade`` elements in this list which must be less than or equal to the return from ``available()``. :param n: the number of ``Grade`` elements requested which must be less than or equal to ``available()`` :type n: ``cardinal`` :return: an array of ``Grade`` elements.The length of the array is less than or equal to the number specified. :rtype: ``osid.grading.Grade`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.Grade class GradeSystem: """A ``GradeSystem`` represents a grading system. The system can be based on assigned Grades or based on a numeric scale. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def is_based_on_grades(self): """Tests if the grading system is based on grades. :return: true if the grading system is based on grades, ``false`` if the system is a numeric score :rtype: ``boolean`` *compliance: mandatory -- This method must be implemented.* """ return # boolean @abc.abstractmethod def get_grade_ids(self): """Gets the grade ``Ids`` in this system ranked from highest to lowest. :return: the list of grades ``Ids`` :rtype: ``osid.id.IdList`` :raise: ``IllegalState`` -- ``is_based_on_grades()`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.IdList grade_ids = property(fget=get_grade_ids) @abc.abstractmethod def get_grades(self): """Gets the grades in this system ranked from highest to lowest. :return: the list of grades :rtype: ``osid.grading.GradeList`` :raise: ``IllegalState`` -- ``is_based_on_grades()`` is ``false`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeList grades = property(fget=get_grades) @abc.abstractmethod def get_lowest_numeric_score(self): """Gets the lowest number in a numeric grading system. :return: the lowest number :rtype: ``decimal`` :raise: ``IllegalState`` -- ``is_based_on_grades()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ return # decimal lowest_numeric_score = property(fget=get_lowest_numeric_score) @abc.abstractmethod def get_numeric_score_increment(self): """Gets the incremental step. :return: the increment :rtype: ``decimal`` :raise: ``IllegalState`` -- ``is_based_on_grades()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ return # decimal numeric_score_increment = property(fget=get_numeric_score_increment) @abc.abstractmethod def get_highest_numeric_score(self): """Gets the highest number in a numeric grading system. :return: the highest number :rtype: ``decimal`` :raise: ``IllegalState`` -- ``is_based_on_grades()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ return # decimal highest_numeric_score = property(fget=get_highest_numeric_score) @abc.abstractmethod def get_grade_system_record(self, grade_system_record_type): """Gets the grade system record corresponding to the given ``GradeSystem`` record ``Type``. This method is used to retrieve an object implementing the requested record. The ``grade_system_record_type`` may be the ``Type`` returned in ``get_record_types()`` or any of its parents in a ``Type`` hierarchy where ``has_record_type(grade_system_record_type)`` is ``true`` . :param grade_system_record_type: the type of the record to retrieve :type grade_system_record_type: ``osid.type.Type`` :return: the grade system record :rtype: ``osid.grading.records.GradeSystemRecord`` :raise: ``NullArgument`` -- ``grade_system_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(grade_system_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradeSystemRecord class GradeSystemForm: """This is the form for creating and updating ``GradeSystems``. Like all ``OsidForm`` objects, various data elements may be set here for use in the create and update methods in the ``GradeSystemAdminSession``. For each data element that may be set, metadata may be examined to provide display hints or data constraints. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_based_on_grades_metadata(self): """Gets the metadata for a grade-based designation. :return: metadata for the grade-based designation :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata based_on_grades_metadata = property(fget=get_based_on_grades_metadata) @abc.abstractmethod def set_based_on_grades(self, grades): """Sets the grade-based designation. :param grades: the grade-based designation :type grades: ``boolean`` :raise: ``InvalidArgument`` -- ``grades`` is invalid :raise: ``NoAccess`` -- ``grades`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_based_on_grades(self): """Clears the based on grades designation. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass based_on_grades = property(fset=set_based_on_grades, fdel=clear_based_on_grades) @abc.abstractmethod def get_lowest_numeric_score_metadata(self): """Gets the metadata for the lowest numeric score. :return: metadata for the lowest numeric score :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata lowest_numeric_score_metadata = property(fget=get_lowest_numeric_score_metadata) @abc.abstractmethod def set_lowest_numeric_score(self, score): """Sets the lowest numeric score. :param score: the lowest numeric score :type score: ``decimal`` :raise: ``InvalidArgument`` -- ``score`` is invalid :raise: ``NoAccess`` -- ``score`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_lowest_numeric_score(self): """Clears the lowest score. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass lowest_numeric_score = property(fset=set_lowest_numeric_score, fdel=clear_lowest_numeric_score) @abc.abstractmethod def get_numeric_score_increment_metadata(self): """Gets the metadata for the lowest numeric score. :return: metadata for the lowest numeric score :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata numeric_score_increment_metadata = property(fget=get_numeric_score_increment_metadata) @abc.abstractmethod def set_numeric_score_increment(self, increment): """Sets the numeric score increment. :param increment: the numeric score increment :type increment: ``decimal`` :raise: ``InvalidArgument`` -- ``increment`` is invalid :raise: ``NoAccess`` -- ``increment`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_numeric_score_increment(self): """Clears the numeric score increment. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass numeric_score_increment = property(fset=set_numeric_score_increment, fdel=clear_numeric_score_increment) @abc.abstractmethod def get_highest_numeric_score_metadata(self): """Gets the metadata for the highest numeric score. :return: metadata for the highest numeric score :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata highest_numeric_score_metadata = property(fget=get_highest_numeric_score_metadata) @abc.abstractmethod def set_highest_numeric_score(self, score): """Sets the highest numeric score. :param score: the highest numeric score :type score: ``decimal`` :raise: ``InvalidArgument`` -- ``score`` is invalid :raise: ``NoAccess`` -- ``score`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_highest_numeric_score(self): """Clears the highest numeric score. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass highest_numeric_score = property(fset=set_highest_numeric_score, fdel=clear_highest_numeric_score) @abc.abstractmethod def get_grade_system_form_record(self, grade_system_record_type): """Gets the ``GradeSystemFormRecord`` corresponding to the given grade system record ``Type``. :param grade_system_record_type: the grade system record type :type grade_system_record_type: ``osid.type.Type`` :return: the grade system form record :rtype: ``osid.grading.records.GradeSystemFormRecord`` :raise: ``NullArgument`` -- ``grade_system_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(grade_system_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradeSystemFormRecord class GradeSystemList: """Like all ``OsidLists,`` ``GradeSystemList`` provides a means for accessing ``GradeSystem`` elements sequentially either one at a time or many at a time. Examples: while (gsl.hasNext()) { GradeSystem system = gsl.getNextGradeSystem(); } or while (gsl.hasNext()) { GradeSystem[] systems = gsl.getNextGradeSystems(gsl.available()); } """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_next_grade_system(self): """Gets the next ``GradeSystem`` in this list. :return: the next ``GradeSystem`` in this list. The ``has_next()`` method should be used to test that a next ``GradeSystem`` is available before calling this method. :rtype: ``osid.grading.GradeSystem`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeSystem next_grade_system = property(fget=get_next_grade_system) @abc.abstractmethod def get_next_grade_systems(self, n): """Gets the next set of ``GradeSystem`` elements in this list which must be less than or equal to the return from ``available()``. :param n: the number of ``GradeSystem`` elements requested which must be less than or equal to ``available()`` :type n: ``cardinal`` :return: an array of ``GradeSystem`` elements.The length of the array is less than or equal to the number specified. :rtype: ``osid.grading.GradeSystem`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeSystem class GradeEntry: """A ``GradeEntry`` represents an entry in a ``Gradebook``.""" __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_gradebook_column_id(self): """Gets the ``Id`` of the ``GradebookColumn``. :return: the ``Id`` of the ``GradebookColumn`` :rtype: ``osid.id.Id`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id gradebook_column_id = property(fget=get_gradebook_column_id) @abc.abstractmethod def get_gradebook_column(self): """Gets the ``GradebookColumn``. :return: the ``GradebookColumn`` :rtype: ``osid.grading.GradebookColumn`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookColumn gradebook_column = property(fget=get_gradebook_column) @abc.abstractmethod def get_key_resource_id(self): """Gets the ``Id`` of the key resource of this entry. The key resource may be a student or other applicable key to identify a row of grading entries. :return: ``Id`` of the key resource :rtype: ``osid.id.Id`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id key_resource_id = property(fget=get_key_resource_id) @abc.abstractmethod def get_key_resource(self): """Gets the key resource of this entry. The key resource may be a student or other applicable key to identify a row of grading entries. :return: the key resource :rtype: ``osid.resource.Resource`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.resource.Resource key_resource = property(fget=get_key_resource) @abc.abstractmethod def is_derived(self): """Tests if this is a calculated entry. :return: ``true`` if this entry is a calculated entry, ``false`` otherwise. If ``true,`` then ``overrides_calculated_entry()`` must be ``false``. :rtype: ``boolean`` *compliance: mandatory -- This method must be implemented.* """ return # boolean @abc.abstractmethod def overrides_calculated_entry(self): """Tests if this is a manual entry that overrides a calculated entry. :return: ``true`` if this entry overrides a calculated entry, ``false`` otherwise. If ``true,`` then ``is_derived()`` must be ``false``. :rtype: ``boolean`` *compliance: mandatory -- This method must be implemented.* """ return # boolean @abc.abstractmethod def get_overridden_calculated_entry_id(self): """Gets the calculated entry ``Id`` this entry overrides. :return: the calculated entry ``Id`` :rtype: ``osid.id.Id`` :raise: ``IllegalState`` -- ``overrides_derived_entry()`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id overridden_calculated_entry_id = property(fget=get_overridden_calculated_entry_id) @abc.abstractmethod def get_overridden_calculated_entry(self): """Gets the calculated entry this entry overrides. :return: the calculated entry :rtype: ``osid.grading.GradeEntry`` :raise: ``IllegalState`` -- ``overrides_calculated_entry()`` is ``false`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeEntry overridden_calculated_entry = property(fget=get_overridden_calculated_entry) @abc.abstractmethod def is_ignored_for_calculations(self): """Tests if this is entry should be ignored in any averaging, scaling or curve calculation. :return: ``true`` if this entry is ignored, ``false`` otherwise :rtype: ``boolean`` *compliance: mandatory -- This method must be implemented.* """ return # boolean @abc.abstractmethod def is_graded(self): """Tests if a grade or score has been assigned to this entry. Generally, an entry is created with a grade or score. :return: ``true`` if a grade has been assigned, ``false`` otherwise :rtype: ``boolean`` *compliance: mandatory -- This method must be implemented.* """ return # boolean @abc.abstractmethod def get_grade_id(self): """Gets the grade ``Id`` in this entry if the grading system is based on grades. :return: the grade ``Id`` :rtype: ``osid.id.Id`` :raise: ``IllegalState`` -- ``is_graded()`` is ``false`` or ``GradeSystem.isBasedOnGrades()`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id grade_id = property(fget=get_grade_id) @abc.abstractmethod def get_grade(self): """Gets the grade in this entry if the grading system is based on grades. :return: the grade :rtype: ``osid.grading.Grade`` :raise: ``IllegalState`` -- ``is_graded()`` is ``false`` or ``GradeSystem.isBasedOnGrades()`` is ``false`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.Grade grade = property(fget=get_grade) @abc.abstractmethod def get_score(self): """Gets the score in this entry if the grading system is not based on grades. :return: the score :rtype: ``decimal`` :raise: ``IllegalState`` -- ``is_graded()`` is ``false`` or ``GradeSystem.isBasedOnGrades()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ return # decimal score = property(fget=get_score) @abc.abstractmethod def get_time_graded(self): """Gets the time the gradeable object was graded. :return: the timestamp of the grading entry :rtype: ``osid.calendaring.DateTime`` :raise: ``IllegalState`` -- ``is_graded()`` is ``false`` or ``is_derived()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ return # osid.calendaring.DateTime time_graded = property(fget=get_time_graded) @abc.abstractmethod def get_grader_id(self): """Gets the ``Id`` of the ``Resource`` that created this entry. :return: the ``Id`` of the ``Resource`` :rtype: ``osid.id.Id`` :raise: ``IllegalState`` -- ``is_graded()`` is ``false`` or ``is_derived()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id grader_id = property(fget=get_grader_id) @abc.abstractmethod def get_grader(self): """Gets the ``Resource`` that created this entry. :return: the ``Resource`` :rtype: ``osid.resource.Resource`` :raise: ``IllegalState`` -- ``is_graded() is false or is_derived() is true`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.resource.Resource grader = property(fget=get_grader) @abc.abstractmethod def get_grading_agent_id(self): """Gets the ``Id`` of the ``Agent`` that created this entry. :return: the ``Id`` of the ``Agent`` :rtype: ``osid.id.Id`` :raise: ``IllegalState`` -- ``is_graded()`` is ``false`` or ``is_derived()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id grading_agent_id = property(fget=get_grading_agent_id) @abc.abstractmethod def get_grading_agent(self): """Gets the ``Agent`` that created this entry. :return: the ``Agent`` :rtype: ``osid.authentication.Agent`` :raise: ``IllegalState`` -- ``is_graded() is false or is_derived() is true`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.authentication.Agent grading_agent = property(fget=get_grading_agent) @abc.abstractmethod def get_grade_entry_record(self, grade_entry_record_type): """Gets the grade entry record corresponding to the given ``GradeEntry`` record ``Type``. This method is used to retrieve an object implementing the requested record. The ``grade_entry_record_type`` may be the ``Type`` returned in ``get_record_types()`` or any of its parents in a ``Type`` hierarchy where ``has_record_type(grade_entry_record_type)`` is ``true`` . :param grade_entry_record_type: the type of the record to retrieve :type grade_entry_record_type: ``osid.type.Type`` :return: the grade entry record :rtype: ``osid.grading.records.GradeEntryRecord`` :raise: ``NullArgument`` -- ``grade_entry_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(grade_entry_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradeEntryRecord class GradeEntryForm: """This is the form for creating and updating ``GradeEntries``. Like all ``OsidForm`` objects, various data elements may be set here for use in the create and update methods in the ``GradeEntryAdminSession``. For each data element that may be set, metadata may be examined to provide display hints or data constraints. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_ignored_for_calculations_metadata(self): """Gets the metadata for the ignore flag. :return: metadata for the ignore flag :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata ignored_for_calculations_metadata = property(fget=get_ignored_for_calculations_metadata) @abc.abstractmethod def set_ignored_for_calculations(self, ignore): """Sets the ignore for calculations flag. :param ignore: the new ignore flag :type ignore: ``boolean`` :raise: ``InvalidArgument`` -- ``ignore`` is invalid :raise: ``NoAccess`` -- ``ignore`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_ignored_for_calculations(self): """Clears the ignore for calculations flag. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass ignored_for_calculations = property(fset=set_ignored_for_calculations, fdel=clear_ignored_for_calculations) @abc.abstractmethod def get_grade_metadata(self): """Gets the metadata for a grade. :return: metadata for the grade :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata grade_metadata = property(fget=get_grade_metadata) @abc.abstractmethod def set_grade(self, grade_id): """Sets the grade. :param grade_id: the new grade :type grade_id: ``osid.id.Id`` :raise: ``InvalidArgument`` -- ``grade_id`` is invalid or ``GradebookColumn.getGradeSystem().isBasedOnGrades()`` is ``false`` :raise: ``NoAccess`` -- ``grade_id`` cannot be modified :raise: ``NullArgument`` -- ``grade_id`` is ``null`` *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_grade(self): """Clears the grade. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass grade = property(fset=set_grade, fdel=clear_grade) @abc.abstractmethod def get_score_metadata(self): """Gets the metadata for a score. :return: metadata for the score :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata score_metadata = property(fget=get_score_metadata) @abc.abstractmethod def set_score(self, score): """Sets the score. :param score: the new score :type score: ``decimal`` :raise: ``InvalidArgument`` -- ``score`` is invalid or ``GradebookColumn.getGradeSystem().isBasedOnGrades()`` is ``true`` :raise: ``NoAccess`` -- ``score`` cannot be modified *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_score(self): """Clears the score. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass score = property(fset=set_score, fdel=clear_score) @abc.abstractmethod def get_grade_entry_form_record(self, grade_entry_record_type): """Gets the ``GradeEntryFormRecord`` corresponding to the given grade entry record ``Type``. :param grade_entry_record_type: the grade entry record type :type grade_entry_record_type: ``osid.type.Type`` :return: the grade entry form record :rtype: ``osid.grading.records.GradeEntryFormRecord`` :raise: ``NullArgument`` -- ``grade_entry_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(grade_entry_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradeEntryFormRecord class GradeEntryList: """Like all ``OsidLists,`` ``GradeEntryList`` provides a means for accessing ``GradeEntry`` elements sequentially either one at a time or many at a time. Examples: while (gel.hasNext()) { GradeEntry entry = gel.getNextGradeEntry(); } or while (gel.hasNext()) { GradeEntry[] entries = gel.getNextGradeEntries(gel.available()); } """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_next_grade_entry(self): """Gets the next ``GradeEntry`` in this list. :return: the next ``GradeEntry`` in this list. The ``has_next()`` method should be used to test that a next ``GradeEntry`` is available before calling this method. :rtype: ``osid.grading.GradeEntry`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeEntry next_grade_entry = property(fget=get_next_grade_entry) @abc.abstractmethod def get_next_grade_entries(self, n): """Gets the next set of ``GradeEntry`` elements in this list which must be less than or equal to the number returned from ``available()``. :param n: the number of ``GradeEntry`` elements requested which should be less than or equal to ``available()`` :type n: ``cardinal`` :return: an array of ``GradeEntry`` elements.The length of the array is less than or equal to the number specified. :rtype: ``osid.grading.GradeEntry`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeEntry class GradebookColumn: """A ``GradebookColumn`` represents a series of grade entries in a gradebook. Each GradeEntry in a column share the same ``GradeSystem``. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_grade_system_id(self): """Gets the ``GradeSystem Id`` in which this grade belongs. :return: the grade system ``Id`` :rtype: ``osid.id.Id`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id grade_system_id = property(fget=get_grade_system_id) @abc.abstractmethod def get_grade_system(self): """Gets the ``GradeSystem`` in which this grade belongs. :return: the package grade system :rtype: ``osid.grading.GradeSystem`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradeSystem grade_system = property(fget=get_grade_system) @abc.abstractmethod def get_gradebook_column_record(self, gradebook_column_record_type): """Gets the gradebook column record corresponding to the given ``GradeBookColumn`` record ``Type``. This method ie used to retrieve an object implementing the requested record. The ``gradebook_column_record_type`` may be the ``Type`` returned in ``get_record_types()`` or any of its parents in a ``Type`` hierarchy where ``has_record_type(gradebook_column_record_type)`` is ``true`` . :param gradebook_column_record_type: the type of the record to retrieve :type gradebook_column_record_type: ``osid.type.Type`` :return: the gradebook column record :rtype: ``osid.grading.records.GradebookColumnRecord`` :raise: ``NullArgument`` -- ``gradebook_column_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(gradebook_column_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradebookColumnRecord class GradebookColumnForm: """This is the form for creating and updating ``GradebookColumns``. Like all ``OsidForm`` objects, various data elements may be set here for use in the create and update methods in the ``GradebookAdminSession``. For each data element that may be set, metadata may be examined to provide display hints or data constraints. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_grade_system_metadata(self): """Gets the metadata for a grade system. :return: metadata for the grade system :rtype: ``osid.Metadata`` *compliance: mandatory -- This method must be implemented.* """ return # osid.Metadata grade_system_metadata = property(fget=get_grade_system_metadata) @abc.abstractmethod def set_grade_system(self, grade_system_id): """Sets the grade system. :param grade_system_id: the new grade system :type grade_system_id: ``osid.id.Id`` :raise: ``InvalidArgument`` -- ``grade_system_id`` is invalid :raise: ``NoAccess`` -- ``grade_system_id`` cannot be modified :raise: ``NullArgument`` -- ``grade_system_id`` is ``null`` *compliance: mandatory -- This method must be implemented.* """ pass @abc.abstractmethod def clear_grade_system(self): """Clears the grade system. :raise: ``NoAccess`` -- ``Metadata.isRequired()`` or ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be implemented.* """ pass grade_system = property(fset=set_grade_system, fdel=clear_grade_system) @abc.abstractmethod def get_gradebook_column_form_record(self, gradebook_column_record_type): """Gets the ``GradebookColumnFormRecord`` corresponding to the given gradebook column record ``Type``. :param gradebook_column_record_type: a gradebook column record type :type gradebook_column_record_type: ``osid.type.Type`` :return: the gradebook column form record :rtype: ``osid.grading.records.GradebookColumnFormRecord`` :raise: ``NullArgument`` -- ``gradebook_column_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(gradebook_column_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradebookColumnFormRecord class GradebookColumnList: """Like all ``OsidLists,`` ``GradebookColumnList`` provides a means for accessing ``GradebookColumn`` elements sequentially either one at a time or many at a time. Examples: while (gcl.hasNext()) { GradebookColumn column = gcl.getNextGradebookColumn(); } or while (gcl.hasNext()) { GradebookColumn[] columns = gcl.getNextGradebookColumns(gcl.available()); } """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_next_gradebook_column(self): """Gets the next ``GradebookColumn`` in this list. :return: the next ``GradebookColumn`` in this list. The ``has_next()`` method should be used to test that a next ``GradebookColumn`` is available before calling this method. :rtype: ``osid.grading.GradebookColumn`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookColumn next_gradebook_column = property(fget=get_next_gradebook_column) @abc.abstractmethod def get_next_gradebook_columns(self, n): """Gets the next set of ``GradebookColumn`` elements in this list which must be less than or equal to the return from ``available()``. :param n: the number of ``GradebookColumn`` elements requested which must be less than or equal to ``available()`` :type n: ``cardinal`` :return: an array of ``GradebookColumn`` elements.The length of the array is less than or equal to the number specified. :rtype: ``osid.grading.GradebookColumn`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookColumn class GradebookColumnSummary: """A ``GradebookColumnSummary`` is a summary of all entries within a gradebook column.""" __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_gradebook_column_id(self): """Gets the ``Id`` of the ``GradebookColumn``. :return: the ``Id`` of the ``GradebookColumn`` :rtype: ``osid.id.Id`` *compliance: mandatory -- This method must be implemented.* """ return # osid.id.Id gradebook_column_id = property(fget=get_gradebook_column_id) @abc.abstractmethod def get_gradebook_column(self): """Gets the ``GradebookColumn``. :return: the ``GradebookColumn`` :rtype: ``osid.grading.GradebookColumn`` :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookColumn gradebook_column = property(fget=get_gradebook_column) @abc.abstractmethod def get_mean(self): """Gets the mean score. If this system is based on grades, the mean output score is returned. :return: the mean score :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal mean = property(fget=get_mean) @abc.abstractmethod def get_median(self): """Gets the median score. If this system is based on grades, the mean output score is returned. :return: the median score :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal median = property(fget=get_median) @abc.abstractmethod def get_mode(self): """Gets the mode of the score. If this system is based on grades, the mode of the output score is returned. :return: the median score :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal mode = property(fget=get_mode) @abc.abstractmethod def get_rms(self): """Gets the root mean square of the score. If this system is based on grades, the RMS of the output score is returned. :return: the median score :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal rms = property(fget=get_rms) @abc.abstractmethod def get_standard_deviation(self): """Gets the standard deviation. If this system is based on grades, the spread of the output scores is returned. :return: the standard deviation :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal standard_deviation = property(fget=get_standard_deviation) @abc.abstractmethod def get_sum(self): """Gets the sum of the scores. If this system is based on grades, the sum of the output scores is returned. :return: the median score :rtype: ``decimal`` *compliance: mandatory -- This method must be implemented.* """ return # decimal sum = property(fget=get_sum) @abc.abstractmethod def get_gradebook_column_summary_record(self, gradebook_column_summary_record_type): """Gets the gradebook column summary record corresponding to the given ``GradebookColumnSummary`` record ``Type``. This method is used to retrieve an object implementing the requested record. The ``gradebook_column_summary_record_type`` may be the ``Type`` returned in ``get_record_types()`` or any of its parents in a ``Type`` hierarchy where ``has_record_type(gradebook_column_summary_record_type)`` is ``true`` . :param gradebook_column_summary_record_type: the type of the record to retrieve :type gradebook_column_summary_record_type: ``osid.type.Type`` :return: the gradebook column summary record :rtype: ``osid.grading.records.GradebookColumnSummaryRecord`` :raise: ``NullArgument`` -- ``gradebook_column_summary_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(gradebook_column_summary_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradebookColumnSummaryRecord class Gradebook: """A gradebook defines a collection of grade entries.""" __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_gradebook_record(self, gradebook_record_type): """Gets the gradebook record corresponding to the given ``Gradebook`` record ``Type``. This method is used to retrieve an object implementing the requested record. The ``gradebook_record_type`` may be the ``Type`` returned in ``get_record_types()`` or any of its parents in a ``Type`` hierarchy where ``has_record_type(gradebook_record_type)`` is ``true`` . :param gradebook_record_type: a gradebook record type :type gradebook_record_type: ``osid.type.Type`` :return: the gradebook record :rtype: ``osid.grading.records.GradebookRecord`` :raise: ``NullArgument`` -- ``gradebook_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(gradebook_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradebookRecord class GradebookForm: """This is the form for creating and updating ``Gradebooks``. Like all ``OsidForm`` objects, various data elements may be set here for use in the create and update methods in the ``GradebookAdminSession``. For each data element that may be set, metadata may be examined to provide display hints or data constraints. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_gradebook_form_record(self, gradebook_record_type): """Gets the ``GradebookFormRecord`` corresponding to the given gradebook record ``Type``. :param gradebook_record_type: a gradebook record type :type gradebook_record_type: ``osid.type.Type`` :return: the gradebook form record :rtype: ``osid.grading.records.GradebookFormRecord`` :raise: ``NullArgument`` -- ``gradebook_record_type`` is ``null`` :raise: ``OperationFailed`` -- unable to complete request :raise: ``Unsupported`` -- ``has_record_type(gradebook_record_type)`` is ``false`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.records.GradebookFormRecord class GradebookList: """Like all ``OsidLists,`` ``GradebookList`` provides a means for accessing ``Gradebook`` elements sequentially either one at a time or many at a time. Examples: while (gl.hasNext()) { Gradebook gradebook = gl.getNextGradebook(); } or while (gl.hasNext()) { Gradebook[] gradebooks = gl.getNextGradebooks(gl.available()); } """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_next_gradebook(self): """Gets the next ``Gradebook`` in this list. :return: the next ``Gradebook`` in this list. The ``has_next()`` method should be used to test that a next ``Gradebook`` is available before calling this method. :rtype: ``osid.grading.Gradebook`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.Gradebook next_gradebook = property(fget=get_next_gradebook) @abc.abstractmethod def get_next_gradebooks(self, n): """Gets the next set of ``Gradebook`` elements in this list which must be less than or equal to the return from ``available()``. :param n: the number of ``Gradebook`` elements requested which must be less than or equal to ``available()`` :type n: ``cardinal`` :return: an array of ``Gradebook`` elements.The length of the array is less than or equal to the number specified. :rtype: ``osid.grading.Gradebook`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.Gradebook class GradebookNode: """This interface is a container for a partial hierarchy retrieval. The number of hierarchy levels traversable through this interface depend on the number of levels requested in the ``GradebookHierarchySession``. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_gradebook(self): """Gets the ``Gradebook`` at this node. :return: the gradebook represented by this node :rtype: ``osid.grading.Gradebook`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.Gradebook gradebook = property(fget=get_gradebook) @abc.abstractmethod def get_parent_gradebook_nodes(self): """Gets the parents of this gradebook. :return: the parents of the ``id`` :rtype: ``osid.grading.GradebookNodeList`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookNodeList parent_gradebook_nodes = property(fget=get_parent_gradebook_nodes) @abc.abstractmethod def get_child_gradebook_nodes(self): """Gets the children of this gradebook. :return: the children of this gradebook :rtype: ``osid.grading.GradebookNodeList`` *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookNodeList child_gradebook_nodes = property(fget=get_child_gradebook_nodes) class GradebookNodeList: """Like all ``OsidLists,`` ``GradebookNodeList`` provides a means for accessing ``GradebookNode`` elements sequentially either one at a time or many at a time. Examples: while (gnl.hasNext()) { GradebookNode node = gnl.getNextGradebookNode(); } or while (gnl.hasNext()) { GradebookNode[] nodes = gnl.getNextGradebookNodes(gnl.available()); } """ __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_next_gradebook_node(self): """Gets the next ``GradebookNode`` in this list. :return: the next ``GradebookNode`` in this list. The ``has_next()`` method should be used to test that a next ``GradebookNode`` is available before calling this method. :rtype: ``osid.grading.GradebookNode`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookNode next_gradebook_node = property(fget=get_next_gradebook_node) @abc.abstractmethod def get_next_gradebook_nodes(self, n): """Gets the next set of ``GradebookNode`` elements in this list which must be less than or equal to the return from ``available()``. :param n: the number of ``GradebookNode`` elements requested which must be less than or equal to ``available()`` :type n: ``cardinal`` :return: an array of ``GradebookNode`` elements.The length of the array is less than or equal to the number specified. :rtype: ``osid.grading.GradebookNode`` :raise: ``IllegalState`` -- no more elements available in this list :raise: ``OperationFailed`` -- unable to complete request *compliance: mandatory -- This method must be implemented.* """ return # osid.grading.GradebookNode
32.925441
181
0.649023
6,630
57,850
5.524284
0.052187
0.018184
0.053514
0.077595
0.802763
0.734697
0.680309
0.639764
0.597499
0.580708
0
0
0.241798
57,850
1,756
182
32.944191
0.835028
0.652481
0
0.580808
0
0
0
0
0
0
0
0
0
1
0.247475
false
0.055556
0.002525
0
0.69697
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
1
0
0
1
0
0
5
99a872c91fbba39ed381fea5459a6ce47060ebce
96
py
Python
detcon/datasets/__init__.py
isaaccorley/detcon-pytorch
a5e03faf0c27bdbe64b72625873c0b2d3a696f04
[ "MIT" ]
5
2021-10-30T05:10:42.000Z
2022-03-26T08:44:17.000Z
detcon/datasets/__init__.py
isaaccorley/detcon-pytorch
a5e03faf0c27bdbe64b72625873c0b2d3a696f04
[ "MIT" ]
2
2021-12-20T08:52:50.000Z
2021-12-28T15:14:48.000Z
detcon/datasets/__init__.py
isaaccorley/detcon-pytorch
a5e03faf0c27bdbe64b72625873c0b2d3a696f04
[ "MIT" ]
1
2022-02-01T11:02:40.000Z
2022-02-01T11:02:40.000Z
from .coco import CocoSegmentation from .voc import VOCSegmentationDataModule, VOCSSLDataModule
32
60
0.875
9
96
9.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.09375
96
2
61
48
0.965517
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
41de2fc485e5debc11e9dfb995772244f4263700
218
py
Python
src/torch_loader/__init__.py
AlexDuvalinho/AITextGenerator
02b96e40612209b5f7599674f9cd0e867f74fc59
[ "MIT" ]
36
2021-01-13T03:33:49.000Z
2022-03-31T00:37:16.000Z
src/torch_loader/__init__.py
bytjn1416124/AITextGenerator
01ff72ebf373018d0d708cdd2018229fd386f73b
[ "MIT" ]
5
2021-03-08T15:51:30.000Z
2021-08-16T11:56:56.000Z
src/torch_loader/__init__.py
bytjn1416124/AITextGenerator
01ff72ebf373018d0d708cdd2018229fd386f73b
[ "MIT" ]
16
2021-02-20T05:04:47.000Z
2022-03-22T01:56:27.000Z
from .dataset_from_json import DatasetFromJson from .dataset_from_repo import DatasetFromRepo from .vectorize_paragraph import VectorizeParagraph, VectorizeMode from .vectorize_input import TrainInput, GenerationInput
43.6
66
0.889908
24
218
7.833333
0.583333
0.117021
0.159574
0
0
0
0
0
0
0
0
0
0.082569
218
4
67
54.5
0.94
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
41ff157dc0b271e24340cbd49c75d69b94be2b73
128
py
Python
stardist_napari/__init__.py
JoOkuma/stardist-napari
e3b3cdaf598cc61237087406c439a70fb5bb5190
[ "BSD-3-Clause" ]
18
2021-05-13T07:34:23.000Z
2022-03-27T17:43:37.000Z
stardist_napari/__init__.py
JoOkuma/stardist-napari
e3b3cdaf598cc61237087406c439a70fb5bb5190
[ "BSD-3-Clause" ]
14
2021-08-02T14:32:46.000Z
2022-03-31T21:37:58.000Z
stardist_napari/__init__.py
JoOkuma/stardist-napari
e3b3cdaf598cc61237087406c439a70fb5bb5190
[ "BSD-3-Clause" ]
5
2021-06-10T15:17:15.000Z
2022-02-07T09:26:51.000Z
from ._version import __version__ from ._dock_widget import napari_experimental_provide_dock_widget, napari_provide_sample_data
42.666667
93
0.90625
17
128
6
0.588235
0.196078
0
0
0
0
0
0
0
0
0
0
0.070313
128
2
94
64
0.857143
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
510c84ab7f859356a0599029386f0a43064c3c19
31
py
Python
karp/infrastructure/jwt/__init__.py
spraakbanken/karp-backend-v6-tmp
e5b78157bd999df18c188973ae2a337015b6f35d
[ "MIT" ]
1
2021-12-08T15:33:42.000Z
2021-12-08T15:33:42.000Z
karp/infrastructure/jwt/__init__.py
spraakbanken/karp-backend-v6-tmp
e5b78157bd999df18c188973ae2a337015b6f35d
[ "MIT" ]
null
null
null
karp/infrastructure/jwt/__init__.py
spraakbanken/karp-backend-v6-tmp
e5b78157bd999df18c188973ae2a337015b6f35d
[ "MIT" ]
null
null
null
from . import jwt_auth_service
15.5
30
0.83871
5
31
4.8
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
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
513301de463c7665a45b94fdd175c1056d23c15b
2,360
py
Python
tests/tasks/test_python.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
12
2021-12-27T14:40:17.000Z
2022-03-22T20:14:42.000Z
tests/tasks/test_python.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
tests/tasks/test_python.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
from pathlib import PosixPath from unittest.mock import call, patch from dev.tasks.python import Python @patch('dev.tasks.python.run_command') @patch('dev.tasks.python.HomebrewHelper.install_formula') @patch('dev.tasks.python.ShadowenvHelper.configure_provider') def test_up(configure_provider_mock, install_formula_mock, run_command_mock): run_command_mock.return_value = '/dummy' Python('3.10.0', extra_args=[]) install_formula_mock.assert_called_once_with('pyenv') run_command_mock.assert_has_calls([ call('pyenv root', output=True, silent=True), call('pyenv install --skip-existing 3.10.0'), call('pyenv local 3.10.0'), call("pyenv exec python -m venv /dummy/versions/3.10.0/virtualenvs/dev"), ]) configure_provider_mock.assert_called_once_with( 'python', '3.10.0', PosixPath('/dummy/versions/3.10.0/virtualenvs/dev'), env_name='WORKON_HOME' ) @patch('dev.tasks.python.Python.python_already_installed') @patch('dev.tasks.python.Python.virtualenv_already_created') @patch('dev.tasks.python.run_command') @patch('dev.tasks.python.HomebrewHelper.install_formula') @patch('dev.tasks.python.ShadowenvHelper.configure_provider') def test_up_already_installed( configure_provider_mock, install_formula_mock, run_command_mock, virtualenv_already_created_mock, python_already_installed_mock ): run_command_mock.return_value = '/dummy' python_already_installed_mock.return_value = True virtualenv_already_created_mock.return_value = True Python('3.10.0', extra_args=[]) install_formula_mock.assert_called_once_with('pyenv') run_command_mock.assert_called_once_with('pyenv root', output=True, silent=True) configure_provider_mock.assert_called_once_with( 'python', '3.10.0', PosixPath('/dummy/versions/3.10.0/virtualenvs/dev'), env_name='WORKON_HOME' ) @patch('dev.tasks.python.Python.virtualenv_already_created') @patch('dev.tasks.python.run_command') def test_down(run_command_mock, virtualenv_already_created_mock): run_command_mock.return_value = '/dummy' virtualenv_already_created_mock.return_value = True Python('3.10.0', extra_args=[], direction='down') run_command_mock.assert_has_calls([ call('pyenv root', output=True, silent=True), call('rm -rf /dummy/versions/3.10.0/virtualenvs/dev'), ])
38.688525
103
0.755085
327
2,360
5.137615
0.186544
0.071429
0.091667
0.113095
0.84881
0.833333
0.807738
0.71131
0.669643
0.606548
0
0.021093
0.116102
2,360
60
104
39.333333
0.784276
0
0
0.595745
0
0
0.336017
0.245763
0
0
0
0
0.148936
1
0.06383
false
0
0.06383
0
0.12766
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5150ec07bf9ccbd020d651efb9119768706f7018
205
py
Python
gui_disp.py
shazelquist/MicVis
e7241884d07997dcf8f102edab6f66c4265a36bd
[ "MIT" ]
null
null
null
gui_disp.py
shazelquist/MicVis
e7241884d07997dcf8f102edab6f66c4265a36bd
[ "MIT" ]
null
null
null
gui_disp.py
shazelquist/MicVis
e7241884d07997dcf8f102edab6f66c4265a36bd
[ "MIT" ]
null
null
null
""" Creates generic objects for plots, and sets standard features. """ import matplotlib.pyplot as plt import matplotlib.animation as animation from datetime import datetime fig, ax1 = plt.subplots()
22.777778
66
0.770732
27
205
5.851852
0.740741
0.202532
0
0
0
0
0
0
0
0
0
0.00578
0.156098
205
8
67
25.625
0.907514
0.302439
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
5160d4d34277a96b81b89d0a72cbff545016278f
52
py
Python
src/vm/ml_api/data/communication.py
yourtrading-ai/py_yourtrading_ai
b69424f2afc40fe258c7ddae2fb47acc383ecbe5
[ "MIT" ]
null
null
null
src/vm/ml_api/data/communication.py
yourtrading-ai/py_yourtrading_ai
b69424f2afc40fe258c7ddae2fb47acc383ecbe5
[ "MIT" ]
null
null
null
src/vm/ml_api/data/communication.py
yourtrading-ai/py_yourtrading_ai
b69424f2afc40fe258c7ddae2fb47acc383ecbe5
[ "MIT" ]
null
null
null
from aleph_client.chains.remote import RemoteAccount
52
52
0.903846
7
52
6.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.057692
52
1
52
52
0.938776
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
5a9e47a21c064b24e749fa4001354de1fe02d7b1
105
py
Python
data/__init__.py
whwtraffic12306/12309
647372a055244741f399d05f113b8dc609393726
[ "MIT" ]
33
2019-07-31T14:34:53.000Z
2022-03-21T05:49:49.000Z
data/__init__.py
whwtraffic12306/12309
647372a055244741f399d05f113b8dc609393726
[ "MIT" ]
7
2019-09-20T11:48:31.000Z
2022-03-11T23:53:43.000Z
data/__init__.py
whwtraffic12306/12309
647372a055244741f399d05f113b8dc609393726
[ "MIT" ]
9
2019-10-30T00:03:39.000Z
2021-08-30T04:52:25.000Z
from .augment import ImageAugment from .config import * from .voc import VOCDetection, detection_collate
26.25
48
0.828571
13
105
6.615385
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.12381
105
3
49
35
0.934783
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
5aa5bbc3e46684583c6fb3b7aabf2fb47f66ec5d
271
py
Python
psqlextra/partitioning/range_strategy.py
MontyD/django-postgres-extra
9a79983c5e27510bf6dd60ef4a1441e7e2e4320d
[ "MIT" ]
null
null
null
psqlextra/partitioning/range_strategy.py
MontyD/django-postgres-extra
9a79983c5e27510bf6dd60ef4a1441e7e2e4320d
[ "MIT" ]
null
null
null
psqlextra/partitioning/range_strategy.py
MontyD/django-postgres-extra
9a79983c5e27510bf6dd60ef4a1441e7e2e4320d
[ "MIT" ]
null
null
null
from .strategy import PostgresPartitioningStrategy class PostgresRangePartitioningStrategy(PostgresPartitioningStrategy): """Base class for implementing a partitioning strategy for a range partitioned table.""" __all__ = ["PostgresRangePartitioningStrategy"]
27.1
70
0.819188
21
271
10.380952
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.121771
271
9
71
30.111111
0.915966
0.302583
0
0
0
0
0.184358
0.184358
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
0
0
1
0
1
0
0
5
5ad16068f2a2554cd2d975597fb58e59382b7b3b
42
py
Python
tests/components/denonavr/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/denonavr/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/denonavr/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the denonavr integration."""
21
41
0.714286
5
42
6
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
1
42
42
0.810811
0.833333
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
5af9afcff076e653e3da72117205b06cc97b0da1
173
py
Python
src/stackoverflow/59278328/code1.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/stackoverflow/59278328/code1.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/stackoverflow/59278328/code1.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
3
2020-02-19T08:02:04.000Z
2021-06-08T13:27:51.000Z
from code2 import Bar class Foo: bar_instance = Bar(init1='nothing', init2='nothing') @classmethod def foo_method(cls): Foo.bar_instance.bar_method()
17.3
56
0.676301
23
173
4.913043
0.608696
0.106195
0.247788
0.300885
0
0
0
0
0
0
0
0.022059
0.213873
173
9
57
19.222222
0.808824
0
0
0
0
0
0.080925
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
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
8501aeb4268faadba8c355af58a15168998e9d5c
95
py
Python
src/potential/d2/__init__.py
clark3493/aerodynamics
eb1f5c6b11f4f0a8ad6e9d7129a9403a835bb66c
[ "MIT" ]
null
null
null
src/potential/d2/__init__.py
clark3493/aerodynamics
eb1f5c6b11f4f0a8ad6e9d7129a9403a835bb66c
[ "MIT" ]
null
null
null
src/potential/d2/__init__.py
clark3493/aerodynamics
eb1f5c6b11f4f0a8ad6e9d7129a9403a835bb66c
[ "MIT" ]
null
null
null
from ._flow_field import FlowField2D from ._point import PointDoublet, PointSource, PointVortex
47.5
58
0.863158
11
95
7.181818
0.818182
0
0
0
0
0
0
0
0
0
0
0.011628
0.094737
95
2
58
47.5
0.906977
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
850759997cd70ce71779c10aa46d093fc0ef4dcd
41
py
Python
berglas/exceptions.py
maroux/berglas-python
94e87d236710bf67ec3ccb3350f800f2b144abda
[ "Apache-2.0" ]
4
2019-08-19T21:58:45.000Z
2020-07-02T11:37:21.000Z
berglas/exceptions.py
maroux/berglas-python
94e87d236710bf67ec3ccb3350f800f2b144abda
[ "Apache-2.0" ]
null
null
null
berglas/exceptions.py
maroux/berglas-python
94e87d236710bf67ec3ccb3350f800f2b144abda
[ "Apache-2.0" ]
1
2019-12-13T09:36:56.000Z
2019-12-13T09:36:56.000Z
class AutoException(Exception): pass
13.666667
31
0.756098
4
41
7.75
1
0
0
0
0
0
0
0
0
0
0
0
0.170732
41
2
32
20.5
0.911765
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
8524a8ee9560accbcac3b3704c3db2e284a5bbcf
57
py
Python
src/secml/ml/features/tests/__init__.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
63
2020-04-20T16:31:16.000Z
2022-03-29T01:05:35.000Z
src/secml/ml/features/tests/__init__.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
5
2020-04-21T11:31:39.000Z
2022-03-24T13:42:56.000Z
src/secml/ml/features/tests/__init__.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
8
2020-04-21T09:16:42.000Z
2022-02-23T16:28:43.000Z
from .c_preprocess_testcases import CPreProcessTestCases
28.5
56
0.912281
6
57
8.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.070175
57
1
57
57
0.943396
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
517a41001619edcc8e5667772477dcf07664b153
10,327
py
Python
app/tests/test_hash.py
CiteIt/CiteIt
ac2e85f4bcd82ca1a04c58b3104c7a5594a3cb56
[ "MIT" ]
null
null
null
app/tests/test_hash.py
CiteIt/CiteIt
ac2e85f4bcd82ca1a04c58b3104c7a5594a3cb56
[ "MIT" ]
25
2019-09-17T12:28:07.000Z
2022-03-12T01:11:04.000Z
app/tests/test_hash.py
CiteIt/CiteIt
ac2e85f4bcd82ca1a04c58b3104c7a5594a3cb56
[ "MIT" ]
1
2019-11-22T00:21:55.000Z
2019-11-22T00:21:55.000Z
-*- coding: utf-8 -*- # Copyright (C) 2015-2020 Tim Langeman and contributors # <see AUTHORS.txt file> # # This library is part of the CiteIt project: # http://www.citeit.net/ # The code for this server library is released under the MIT License: # http://www.opensource.org/licenses/mit-license from lib.citeit_quote_context.tests.quote_hash_match import QuoteHashTest from lib.citeit_quote_context.url import URL from lib.citeit_quote_context.text_convert import escape_text from lib.citeit_quote_context.text_convert import html_to_text from lib.citeit_quote_context.text_convert import levenshtein_distance from lib.citeit_quote_context.text_convert import show_diff import os import csv import requests __author__ = 'Tim Langeman' __email__ = "timlangeman@gmail.com" __copyright__ = "Copyright (C) 2015-2020 Tim Langeman" __license__ = "MIT" __version__ = "0.4" debug = True def testHash(citing_url, js_hash, js_hashkey, debug=True): u = URL(citing_url) citations = u.citations() for quote in citations: cited_url = quote['cited_url'] citing_quote = quote['citing_quote'] citing_quote = html_to_text(citing_quote) citing_quote = escape_text(citing_quote) q = QuoteHashTest( quote['citing_quote'], # excerpt from citing document citing_url, # url of the document that is doing the quoting cited_url, # url of document that is being quoted js_hash, js_hashkey ) computed_hashkey = citing_quote + "|" + citing_url + "|" + cited_url computed_hash = q.hash_computed() quote_diff = show_diff(computed_hashkey, js_hashkey) debug("\n\nURL: " + citing_url, debug) if (js_hash == computed_hash): debug("Match >> " + js_hash, debug) else: debug("Miss >> " + js_hash + " <> " + computed_hash, debug) debug("\n", debug) debug("JS: " + js_hashkey + "\n\n", debug) debug("Computed: " + computed_hashkey, debug) debug("\n", debug) debug(">> Diff: (" + str(len(quote_diff)) + ") " + str(quote_diff), debug) def debug(message, debug=False): if debug: print(message) citing_url = 'http://demo.citeit.net/index.php/2017/02/12/the-captive-aliens-who-remain-our-shame/' js_hashkey = "MenlikeJeffersonAdamsFranklinandWashingtonParkinsonwritesdevelopedamythaboutwhowasandwasnotapartoftheRevolutionarymovement;aboutwhohadaninterestandwhodidnotOtheresteemedadvocatesoftheRevolutionsuchasThomasPaineandtheMarquisdeLafayettejoinedtheeffortAccordingtoParkinsonthesemenchosetoprosecutetheAmericanwarforindependenceinawaythatputraceattheheartofthematterTheyusedactuallyhelpedfomentracialprejudiceastheprincipalmeansofcreatingunityacrossthethirteencoloniesinordertoprepareAmericanstodobattlewithGreatBritainThebasesentimentstheypromotedforpoliticalexpediencysurvivedthefightingandthenarrativethatdismissedblacksandNativepeoplesasalientoAmericaandconflatedwhiteandcitizenlivedattheheartoftherepublicithelpedcreatefordecadestocomeEffectivewarstoriesweredefinitelyrequiredbecausedespitethecolonistscomplaintsabouttyrannyandbeingreducedtoofallthingsslaverytheyweretheleasttaxedmostsociallymobilehighestlandowningarguablymostprosperouspeopleinthewesternworld|http://demo.citeit.net/index.php/2017/02/12/the-captive-aliens-who-remain-our-shame/|http://www.nybooks.com/articles/2017/01/19/american-revolution-captive-aliens-our-shame/" hashkey = 'MenlikeJeffersonAdamsFranklinandWashingtonParkinsonwritesdevelopedamythaboutwhowasandwasnotapartoftheRevolutionarymovement;aboutwhohadaninterestandwhodidnotOtheresteemedadvocatesoftheRevolutionsuchasThomasPaineandtheMarquisdeLafayettejoinedtheeffortAccordingtoParkinsonthesemenchosetoprosecutetheAmericanwarforindependenceinawaythatputraceattheheartofthematterTheyusedactuallyhelpedfomentracialprejudiceastheprincipalmeansofcreatingunityacrossthethirteencoloniesinordertoprepareAmericanstodobattlewithGreatBritainThebasesentimentstheypromotedforpoliticalexpediencysurvivedthefightingandthenarrativethatdismissedblacksandNativepeoplesasalientoAmericaandconflatedwhiteandcitizenlivedattheheartoftherepublicithelpedcreatefordecadestocomeEffectivewarstoriesweredefinitelyrequiredbecausedespitethecolonistscomplaintsabouttyrannyandbeingreducedtoofallthingsslaverytheyweretheleasttaxedmostsociallymobilehighestlandowningarguablymostprosperouspeopleinthewesternworld|http://demo.citeit.net/index.php/2017/02/12/the-captive-aliens-who-remain-our-shame/|http://www.nybooks.com/articles/2017/01/19/american-revolution-captive-aliens-our-shame/' js_hash = '41893361ac4313cfe17df4e6d29e5eb97ef48eb4c3e52ddf561c7a2dff987d7f' citing_url = 'http://demo.citeit.net/index.php/2017/02/12/mr-darcy-youre-no-colin-firth/' js_hashkey = "RathertherealMrDarcywouldhavebeenpaleandpointychinnedandwouldhavehadalongnoseonanovalbeardlessfaceHishairstrangelywouldhavebeenwhiteAndhewouldhavebeenslightlyundernourishedwithslopingshouldersmoreballetdancerthanbeefcakeaccordingtooneoftheauthorsofanewstudy|http://demo.citeit.net/index.php/2017/02/12/mr-darcy-youre-no-colin-firth/|https://www.nytimes.com/2017/02/09/books/colin-firth-mr-darcy.html" hashkey = "RathertherealMrDarcywouldhavebeenpaleandpointychinnedandwouldhavehadalongnoseonanovalbeardlessfaceHishairstrangelywouldhavebeenwhiteAndhewouldhavebeenslightlyundernourishedwithslopingshouldersmoreballetdancerthanbeefcakeaccordingtooneoftheauthorsofanewstudy|http://demo.citeit.net/index.php/2017/02/12/mr-darcy-youre-no-colin-firth/|https://www.nytimes.com/2017/02/09/books/colin-firth-mr-darcy.html" js_hash = 'be27e6f3396843ca50d566cbd966b4c8c9f3ad107db61eafc55e433fa63fdfa5' citing_url = 'http://demo.citeit.net/index.php/2017/02/12/the-captive-aliens-who-remain-our-shame/' js_hashkey = "MenlikeJeffersonAdamsFranklinandWashingtonParkinsonwritesdevelopedamythaboutwhowasandwasnotapartoftheRevolutionarymovement;aboutwhohadaninterestandwhodidnotOtheresteemedadvocatesoftheRevolutionsuchasThomasPaineandtheMarquisdeLafayettejoinedtheeffortAccordingtoParkinsonthesemenchosetoprosecutetheAmericanwarforindependenceinawaythatputraceattheheartofthematterTheyusedactuallyhelpedfomentracialprejudiceastheprincipalmeansofcreatingunityacrossthethirteencoloniesinordertoprepareAmericanstodobattlewithGreatBritainThebasesentimentstheypromotedforpoliticalexpediencysurvivedthefightingandthenarrativethatdismissedblacksandNativepeoplesasalientoAmericaandconflatedwhiteandcitizenlivedattheheartoftherepublicithelpedcreatefordecadestocomeEffectivewarstoriesweredefinitelyrequiredbecausedespitethecolonistscomplaintsabouttyrannyandbeingreducedtoofallthingsslaverytheyweretheleasttaxedmostsociallymobilehighestlandowningarguablymostprosperouspeopleinthewesternworld|http://demo.citeit.net/index.php/2017/02/12/the-captive-aliens-who-remain-our-shame/|http://www.nybooks.com/articles/2017/01/19/american-revolution-captive-aliens-our-shame/" hashkey = 'MenlikeJeffersonAdamsFranklinandWashingtonParkinsonwritesdevelopedamythaboutwhowasandwasnotapartoftheRevolutionarymovement;aboutwhohadaninterestandwhodidnotOtheresteemedadvocatesoftheRevolutionsuchasThomasPaineandtheMarquisdeLafayettejoinedtheeffortAccordingtoParkinsonthesemenchosetoprosecutetheAmericanwarforindependenceinawaythatputraceattheheartofthematterTheyusedactuallyhelpedfomentracialprejudiceastheprincipalmeansofcreatingunityacrossthethirteencoloniesinordertoprepareAmericanstodobattlewithGreatBritainThebasesentimentstheypromotedforpoliticalexpediencysurvivedthefightingandthenarrativethatdismissedblacksandNativepeoplesasalientoAmericaandconflatedwhiteandcitizenlivedattheheartoftherepublicithelpedcreatefordecadestocomeEffectivewarstoriesweredefinitelyrequiredbecausedespitethecolonistscomplaintsabouttyrannyandbeingreducedtoofallthingsslaverytheyweretheleasttaxedmostsociallymobilehighestlandowningarguablymostprosperouspeopleinthewesternworld|http://demo.citeit.net/index.php/2017/02/12/the-captive-aliens-who-remain-our-shame/|http://www.nybooks.com/articles/2017/01/19/american-revolution-captive-aliens-our-shame/' js_hash = '41893361ac4313cfe17df4e6d29e5eb97ef48eb4c3e52ddf561c7a2dff987d7f' testHash(citing_url, js_hash, js_hashkey, debug) URL: http://demo.citeit.net/2019/11/28/first-french-post/ CependantselonlesecrétairegénéraldeForceouvrièrecheminotsPhilippeHerbeckinterrogéparLExpress«lebutcenestévidemmentpasdallerjusquàNoël»Ilestimedailleursquela«situationdupouvoirdachatdesFrançaisfaitquelagrèvenepourrapasdurertroissemaines»Ilmisepoursapartsurunemobilisationmassivelespremières72heurespourinciterlegouvernementàretirersonprojetderéformedesretraitesMaisilannonce«Nousnelâcheronspasjusquauretrait»Lebrasd URL: http://demo.citeit.net/2019/11/27/deutshe-wolfe-german-test/ Quote: Überprüfen lässt sich das nicht, denn das Internet bleibt abgeschaltet. Der Sicherheit im Land werde alles geopfert, hieß es zur Begründung. Key: ÜberprüfenlässtsichdasnichtdenndasInternetbleibtabgeschaltetDerSicherheitimLandwerdeallesgeopferthießeszurBegründung URL: http://demo.citeit.net/2019/11/27/second-french-post/ Quote: D'autant que, depuis que la RATP a lancé son appel à une grève interprofessionnelle reconductible et illimitée, elle a été rejointe par de nombreuses organisations Key: DautantquedepuisquelaRATPalancésonappelàunegrèveinterprofessionnellereconductibleetillimitéeelleaétérejointepardenombreusesorganisations URL: http://demo.citeit.net/2017/02/14/power-doesnt-always-corrupt/ Quote: Power doesn't ­always corrupt, and you can see it in the case of, for example, Al Smith or Sam Rayburn. There, power cleanses. But what power always does is reveal, because when you're climbing, you have to conceal from people what it is you're really willing to do, what it is you want to do. But once you get enough power, once you're there, where you wanted to be all along, then you can see what the protagonist wanted to do all along, because now he's doing it. Key: Powerdoesnt­alwayscorruptandyoucanseeitinthecaseofforexampleAlSmithorSamRayburnTherepowercleansesButwhatpoweralwaysdoesisrevealbecausewhenyoureclimbingyouhavetoconcealfrompeoplewhatitisyourereallywillingtodowhatitisyouwanttodoButonceyougetenoughpoweronceyouretherewhereyouwantedtobeallalongthenyoucanseewhattheprotagonistwantedtodoallalongbecausenowhesdoingit Powerdoesnt­alwayscorrupt No newline at end of file
91.389381
1,148
0.872373
777
10,327
11.483912
0.323037
0.014121
0.020397
0.024767
0.679256
0.662109
0.655609
0.652695
0.628712
0.618402
0
0.029028
0.065944
10,327
112
1,149
92.205357
0.895086
0.035828
0
0.136986
0
0.164384
0.623768
0.021416
0
0
0
0
0
0
null
null
0
0.123288
null
null
0.013699
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
518369318c02c70e7f43ba353e3b7ad318183459
176
py
Python
smoosh/__main__.py
wcarhart/smoosh
85a61f5394456e4f045184dedacc81a1075a8a06
[ "MIT" ]
1
2018-12-24T08:09:02.000Z
2018-12-24T08:09:02.000Z
smoosh/__main__.py
wcarhart/smoosh
85a61f5394456e4f045184dedacc81a1075a8a06
[ "MIT" ]
12
2018-06-10T01:53:22.000Z
2020-10-29T07:04:02.000Z
smoosh/__main__.py
wcarhart/smoosh
85a61f5394456e4f045184dedacc81a1075a8a06
[ "MIT" ]
null
null
null
import os import sys if __name__ == '__main__': sys.path.insert(1, os.path.dirname(os.path.dirname( os.path.abspath(__file__) ))) from smoosh.smoosh import main main()
16
52
0.715909
27
176
4.222222
0.518519
0.157895
0.22807
0.263158
0.280702
0
0
0
0
0
0
0.006623
0.142045
176
10
53
17.6
0.748344
0
0
0
0
0
0.045455
0
0
0
0
0
0
1
0
true
0
0.375
0
0.375
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
51ebd28b3c5e66229a057c1fcace101f59f7d310
292
py
Python
server/src/repository/eventmongorep.py
rickie95/MTG-coordinator
fe3403a8a6b24d966b20ffb8261c60aadd0abde0
[ "MIT" ]
null
null
null
server/src/repository/eventmongorep.py
rickie95/MTG-coordinator
fe3403a8a6b24d966b20ffb8261c60aadd0abde0
[ "MIT" ]
null
null
null
server/src/repository/eventmongorep.py
rickie95/MTG-coordinator
fe3403a8a6b24d966b20ffb8261c60aadd0abde0
[ "MIT" ]
null
null
null
class EventMongoRepository: database_address = "localhost" def __init__(self): self.client = "Opens a connection with mongo" def add_event(self, event): pass def remove_event(self, event): pass def update_event(self, event): pass
17.176471
53
0.619863
33
292
5.242424
0.575758
0.156069
0.242775
0.312139
0.242775
0
0
0
0
0
0
0
0.30137
292
16
54
18.25
0.848039
0
0
0.3
0
0
0.130584
0
0
0
0
0
0
1
0.4
false
0.3
0
0
0.6
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
cfea826acd5845aaeca59b308eeffb2a7fc690b5
3,600
py
Python
setting.py
waaaaaaz/TestRelay2
220d85fb0f53e468c5216336147609d5337cfb1c
[ "MIT" ]
null
null
null
setting.py
waaaaaaz/TestRelay2
220d85fb0f53e468c5216336147609d5337cfb1c
[ "MIT" ]
1
2021-06-02T02:40:03.000Z
2021-06-02T02:40:03.000Z
setting.py
waaaaaaz/TestRelay2
220d85fb0f53e468c5216336147609d5337cfb1c
[ "MIT" ]
null
null
null
# coding: utf-8 import os """global setting for all projects""" PROJECT_PATH = os.path.abspath(os.path.join(os.path.abspath(__file__), os.pardir)) CSC_TEST_COOKIE = "eAHjYBR41TiVUWHV903bV-kaCSUXJzun5pWkFjnn56VlpoenJlkpmCQmpaaZmyYmGRmamySZmSSlpaRqpSVZJCUamiQZpVo6mSvM7Zrye42uBqMRQcUWIOs8un-t37VCN0rB2MzQNNXMxMg8WcvQxMDIODEp2cjAPDnNxDLFyMwixRQAJNY0iQ**eAEFwYEBwDAEBMCVaBDGeeX3HyF336Yf8cIhGLlqPioeFXWdVkkgjT0U61F2bmOV2z8uTB84axKA" MOSES_TEST_COOKIE = "_lxsdk_cuid=167c544d0c7c8-01530a8f6c716d-10346654-13c680-167c544d0c7c8; _lxsdk=167c544d0c7c8-01530a8f6c716d-10346654-13c680-167c544d0c7c8; _ga=GA1.2.607082750.1545407889; _jzqa=1.2601424622260569000.1545897650.1550214417.1550456797.3; mdbi.sid=1553739432747-VNzDX5ErPmU9f6VraerOZm9Ob7RLYR6O; mdbi.sid.sig=zbzmzmdIAxbJji2P1WUDj8vNL0c; UM_distinctid=169dccaf2761b1-01a1758a2cf05c-12356d56-1aeaa0-169dccaf278130; xingkong.sid=6ukYuKsSsmR1bMWDfq5kbBOVHnpsLDWG; xingkong.sid.sig=8fS1kGJ7FUXYACOAZ1Wo4IoZJ3M; dacs.sid=AhbcavLBjW07R-5ZQ2DoQaJmoqdgl267; dacs.sid.sig=xP1lz8w5HvBlpbbY9yuCBBSdNI4; skmtutc=/AXnM6TKJMA3A2Uvk1ic5Nu2QUpZbTaHdG7JT4/8GwXlGmqPbCmqVkbi1U1Zoz5+-cuv2jejbbHbfctbYTzMSU3GCldE=; deviceId=b5fb8170-b1b0-11e9-b035-55f676773c83; SSO_SID=eAHjYBR41TiVUWHx9uvHr-gacVkkmaSYWhomJppaKSSbGxiYGRunGZkbW5gYmAPFki21ElNNzAxSkixTLA2dLBXapx_quaGrwWhEULEFyBoHNo_fbfdOX9aNUkgxT0syNTJPSknWMjZJMUlJNDA0NDNJS7RMs0hJMzIxAgAz_C9C**eAEFwQcBACAIBMBKyBCJwzP6R_DOVlbToEGcwEFb8cF2T0Vcdcp7OdyaurafmwlhRlIfLeMDVnISPQ; _gid=GA1.2.1177157420.1569220424; 8505da03ac_ssoid=eAHjYBR41TiVUeH2xp6W67pGXBamBqYpiQbGiclWCqnmRiapqanmponGqSYpRikWSWbJWknm5sYppkZGqaYWTuYK8x41r72lq8FoRFCxBcgaj9ZL899c1Y1SMLc0MTO0MEyxSNRKNTEzTrIwSzFOSUwyNEoxNLdMSzEGACbeL08**eAEFwYEBwCAIA7CXpqxYzwEK_59gMr5Q7FaNXPBzVAFcWTWLEchhYRknJWXzt_3h2o6gOR53vRK7" MOSES_TEST_HTTP_HOST = "http://13616-xsifl-sl-moses.nlp.test.sankuai.com" MOSES_TEST_TENANT_ID = "31" MOSES_TEST_OFFICIAL_CATEGORY_ID = "2428" MOSES_TEST_OFFICIAL_CATEGORY_NAME = "闲聊勿删" MOSES_TEST_MYSQL_CONNECTION = "mysql+mysqlconnector://moses:dUGBqiuE4zkWn0@10.24.99.213:5002/moses" MOSES_PROD_COOKIE = '_lxsdk_cuid=167c544d0c7c8-01530a8f6c716d-10346654-13c680-167c544d0c7c8; _lxsdk=167c544d0c7c8-01530a8f6c716d-10346654-13c680-167c544d0c7c8; _ga=GA1.2.607082750.1545407889; uu=578b1c10-131b-11e9-a37a-15d68978cee1; cid=1; ai=1; _jzqa=1.2601424622260569000.1545897650.1550214417.1550456797.3; mdbi.sid=1553739432747-VNzDX5ErPmU9f6VraerOZm9Ob7RLYR6O; mdbi.sid.sig=zbzmzmdIAxbJji2P1WUDj8vNL0c; UM_distinctid=169dccaf2761b1-01a1758a2cf05c-12356d56-1aeaa0-169dccaf278130; xingkong.sid=6ukYuKsSsmR1bMWDfq5kbBOVHnpsLDWG; xingkong.sid.sig=8fS1kGJ7FUXYACOAZ1Wo4IoZJ3M; dacs.sid=AhbcavLBjW07R-5ZQ2DoQaJmoqdgl267; dacs.sid.sig=xP1lz8w5HvBlpbbY9yuCBBSdNI4; sso.saveRequest="http%3A%2F%2Fmoses.sankuai.com%2Fapi-wm%2Fimage%2Fvisible%3Fdeg%3D-20%26type%3D4"; skmtutc=/AXnM6TKJMA3A2Uvk1ic5Nu2QUpZbTaHdG7JT4/8GwXlGmqPbCmqVkbi1U1Zoz5+-cuv2jejbbHbfctbYTzMSU3GCldE=; deviceId=b5fb8170-b1b0-11e9-b035-55f676773c83; u=1080309368; al=onlgjjyjzbrzksslqfrxkflprxpdtlib; eb6f7fa99d_ssoid=eAHjYBR41TiVUeFu_4kDp3WNuFKTzNLM0xItLVOsFNKSEs1SkgxSDFNSjEzSTI0sDIxTtCxTTAwNDC2SzIzMnCwVNs9Z_fecrgajEUHFFiBrHFg8VvUc33NKN0rBPMky0cLQ3MTCXMvSJCUlOSnNwMQkzTwlMcXYxDDVwAAA0X0v-A**eAEFwYEBgDAIA7CXxEkp58Ao_59g4guT1_Myl4jIbOgEZ5s1GudcpPzzvF0mXijE7cEJL_sBRwwSTg; _lxsdk_s=16cb35ee1f9-635-d4f-872%7C%7C23' MOSES_PROD_HTTP_HOST = "https://moses.sankuai.com" MOSES_PROD_TENANT_ID = "9" MOSES_PROD_OFFICIAL_CATEGORY_ID = "3" MOSES_PROD_OFFICIAL_CATEGORY_NAME = "闲聊" ASSISTANT_PROD_URL = "http://10.22.74.157:8080/api/v2/dm/trigger" SQKB_DEV_HTTP_HOST = "http://dev.17gwx.com"
100
1,322
0.886389
326
3,600
9.555215
0.52454
0.017335
0.044944
0.052648
0.423114
0.423114
0.423114
0.423114
0.423114
0.423114
0
0.22795
0.03
3,600
35
1,323
102.857143
0.664089
0.003611
0
0
0
0.125
0.854566
0.795941
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5c6c93ceecde18ac19f0661dc9aa473989f5875b
25,469
py
Python
analysis/study_definition_ongoing_post_covid.py
GitWray1/OpenSAFELY
8a97f2774ecd55f6307da13ce665e6c3fbcb5978
[ "MIT" ]
null
null
null
analysis/study_definition_ongoing_post_covid.py
GitWray1/OpenSAFELY
8a97f2774ecd55f6307da13ce665e6c3fbcb5978
[ "MIT" ]
null
null
null
analysis/study_definition_ongoing_post_covid.py
GitWray1/OpenSAFELY
8a97f2774ecd55f6307da13ce665e6c3fbcb5978
[ "MIT" ]
null
null
null
from cohortextractor import ( StudyDefinition, codelist, codelist_from_csv, combine_codelists, filter_codes_by_category, patients, ) from codelists import * from health_inequalities_var import health_inequalities start_date = "2019-02-01" end_date = "2021-10-01" study = StudyDefinition( default_expectations={ "date": {"earliest": "1900-01-01", "latest": end_date}, "rate": "uniform", "incidence": 0.95, }, pc_or_oc_diag_dat = patients.with_these_clinical_events(ongoing_and_pc_diag_codes, find_first_match_in_period = True, returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"}, ), population = patients.with_these_clinical_events(ongoing_and_pc_diag_codes,on_or_before = end_date), age_at_diag=patients.age_as_of( "pc_or_oc_diag_dat", return_expectations={"int": {"distribution": "population_ages"}} ), prac_id = patients.registered_practice_as_of("pc_or_oc_diag_dat", returning="pseudo_id", return_expectations={"rate" : "universal", "int" : {"distribution":"normal", "mean":1500, "stddev":50}}), prac_msoa = patients.registered_practice_as_of("pc_or_oc_diag_dat", returning='msoa', return_expectations={"rate":"universal", "category": {"ratios" : {'msoa1':0.5, 'msoa2':0.5}}} ), #diagnosis variables diag_ongoing_covid = patients.with_these_clinical_events(ongoing_covid_code, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), diag_post_covid = patients.with_these_clinical_events(pc_code, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), #diagnostic dates diagnostic_bloods = patients.with_these_clinical_events(diagnostic_bloods, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), diagnostic_sit_stand = patients.with_these_clinical_events(diagnostic_sit_stand, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), #ARE THESE NUMERIC VALUES/CODE/CATEGORY? may need to revisit these diagnostic_bp_test = patients.with_these_clinical_events(diagnostic_bp_test, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "numeric_value", date_format = "YYYY-MM-DD", return_expectations = {"float": {"distribution":"normal", "mean":80, "stddev":20}, "incidence" : 0.7} ), diagnostic_chest_xray = patients.with_these_clinical_events(diagnostic_chest_xray, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), #referrals referral_paed = patients.with_these_clinical_events(referral_paed, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_psych = patients.with_these_clinical_events(referral_psych, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_psych_iapt = patients.with_these_clinical_events(referral_psych_iapt, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_respiratory = patients.with_these_clinical_events(referral_respiratory, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_cardiology = patients.with_these_clinical_events(referral_cardiology, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_pain = patients.with_these_clinical_events(referral_pain, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_gastro = patients.with_these_clinical_events(referral_gastro, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_endocrinology = patients.with_these_clinical_events(referral_endocrinology, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_neurology = patients.with_these_clinical_events(referral_neurology, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_rheumatology = patients.with_these_clinical_events(referral_rheumatology, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_dermatology = patients.with_these_clinical_events(referral_dermatology, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_ent = patients.with_these_clinical_events(referral_ent, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_inf_diseases = patients.with_these_clinical_events(referral_inf_diseases, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_pc_clinic = patients.with_these_clinical_events(referral_pc_clinic, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), referral_pc_clinic_counts = patients.with_these_clinical_events(referral_pc_clinic, between = ["pc_or_oc_diag_dat", end_date], returning = "number_of_matches_in_period", return_expectations = {"int": {"distribution": "normal", "mean":2, "stddev": 1}, "incidence":0.75}, ), referral_social_worker = patients.with_these_clinical_events(referral_social_worker, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), #risk of self harm/anxiety/depression risk_of_self_harm = patients.with_these_clinical_events(risk_of_self_harm, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), mild_anxiety_or_depression = patients.with_these_clinical_events(mild_anxiety_or_depression, find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), #psych referral variables psych_referral = patients.with_these_clinical_events(referral_psych, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), psych_referral_iapt = patients.with_these_clinical_events(referral_psych_iapt, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), #self-care, community or primary care management discussion_about_daily_living = patients.with_these_clinical_events(discussion_about_daily_living, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), self_care_advise_or_support = patients.with_these_clinical_events(self_care_codes, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), primary_care_managment = patients.with_these_clinical_events(primary_care_codes, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), community_care = patients.with_these_clinical_events(community_care_codes, #check find_first_match_in_period = True, between = ["pc_or_oc_diag_dat", end_date], returning = "date", date_format = "YYYY-MM-DD", return_expectations = {"date": {"earliest":start_date, "latest":end_date}, "rate": "uniform"} ), **health_inequalities )
78.608025
161
0.320272
1,489
25,469
5.04231
0.103425
0.057805
0.027171
0.045285
0.813133
0.783431
0.685269
0.67821
0.66569
0.647043
0
0.005119
0.616475
25,469
323
162
78.851393
0.763514
0.01064
0
0.76
0
0
0.08467
0.001072
0
0
0
0
0
1
0
false
0
0.010909
0
0.010909
0
0
0
0
null
0
0
0
1
1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5c854c5d970a4dddc9b80f9e7c78d22264692a51
129
py
Python
src/coutcatcher/__init__.py
realead/coutcatcher
d00b5799d5116564748ede6d06750234530c7f51
[ "MIT" ]
null
null
null
src/coutcatcher/__init__.py
realead/coutcatcher
d00b5799d5116564748ede6d06750234530c7f51
[ "MIT" ]
null
null
null
src/coutcatcher/__init__.py
realead/coutcatcher
d00b5799d5116564748ede6d06750234530c7f51
[ "MIT" ]
null
null
null
__version__ = (0,1,0) from .capture import capture from .ipythonmagic import load_ipython_extension, unload_ipython_extension
21.5
74
0.821705
17
129
5.764706
0.647059
0.326531
0
0
0
0
0
0
0
0
0
0.026316
0.116279
129
5
75
25.8
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
5ca46861dea2bc604951e04ca7c55f0c7988a6f1
169
py
Python
app/uploads/__init__.py
PsychedelicMonkey/Bloggy
b5178bab0522a85a8b725251c195807fb4322eda
[ "MIT" ]
null
null
null
app/uploads/__init__.py
PsychedelicMonkey/Bloggy
b5178bab0522a85a8b725251c195807fb4322eda
[ "MIT" ]
null
null
null
app/uploads/__init__.py
PsychedelicMonkey/Bloggy
b5178bab0522a85a8b725251c195807fb4322eda
[ "MIT" ]
null
null
null
from flask import Blueprint from app import app upload = Blueprint('upload', __name__, static_folder=app.config['UPLOAD_FOLDER']) from app.uploads import routes, forms
28.166667
81
0.798817
24
169
5.375
0.541667
0.108527
0
0
0
0
0
0
0
0
0
0
0.112426
169
6
82
28.166667
0.86
0
0
0
0
0
0.111765
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
5
5cb1f1c20b98d40f11e483b6d252524eff8711ba
4,619
py
Python
terrascript/resource/vmware/vcd.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/vmware/vcd.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/vmware/vcd.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/vmware/vcd.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:30:19 UTC) import terrascript class vcd_catalog(terrascript.Resource): pass class vcd_catalog_item(terrascript.Resource): pass class vcd_catalog_media(terrascript.Resource): pass class vcd_edgegateway(terrascript.Resource): pass class vcd_edgegateway_settings(terrascript.Resource): pass class vcd_edgegateway_vpn(terrascript.Resource): pass class vcd_external_network(terrascript.Resource): pass class vcd_external_network_v2(terrascript.Resource): pass class vcd_global_role(terrascript.Resource): pass class vcd_independent_disk(terrascript.Resource): pass class vcd_inserted_media(terrascript.Resource): pass class vcd_lb_app_profile(terrascript.Resource): pass class vcd_lb_app_rule(terrascript.Resource): pass class vcd_lb_server_pool(terrascript.Resource): pass class vcd_lb_service_monitor(terrascript.Resource): pass class vcd_lb_virtual_server(terrascript.Resource): pass class vcd_network_direct(terrascript.Resource): pass class vcd_network_isolated(terrascript.Resource): pass class vcd_network_isolated_v2(terrascript.Resource): pass class vcd_network_routed(terrascript.Resource): pass class vcd_network_routed_v2(terrascript.Resource): pass class vcd_nsxt_app_port_profile(terrascript.Resource): pass class vcd_nsxt_edgegateway(terrascript.Resource): pass class vcd_nsxt_firewall(terrascript.Resource): pass class vcd_nsxt_ip_set(terrascript.Resource): pass class vcd_nsxt_ipsec_vpn_tunnel(terrascript.Resource): pass class vcd_nsxt_nat_rule(terrascript.Resource): pass class vcd_nsxt_network_dhcp(terrascript.Resource): pass class vcd_nsxt_network_imported(terrascript.Resource): pass class vcd_nsxt_security_group(terrascript.Resource): pass class vcd_nsxv_dhcp_relay(terrascript.Resource): pass class vcd_nsxv_dnat(terrascript.Resource): pass class vcd_nsxv_firewall_rule(terrascript.Resource): pass class vcd_nsxv_ip_set(terrascript.Resource): pass class vcd_nsxv_snat(terrascript.Resource): pass class vcd_org(terrascript.Resource): pass class vcd_org_group(terrascript.Resource): pass class vcd_org_user(terrascript.Resource): pass class vcd_org_vdc(terrascript.Resource): pass class vcd_rights_bundle(terrascript.Resource): pass class vcd_role(terrascript.Resource): pass class vcd_vapp(terrascript.Resource): pass class vcd_vapp_access_control(terrascript.Resource): pass class vcd_vapp_firewall_rules(terrascript.Resource): pass class vcd_vapp_nat_rules(terrascript.Resource): pass class vcd_vapp_network(terrascript.Resource): pass class vcd_vapp_org_network(terrascript.Resource): pass class vcd_vapp_static_routing(terrascript.Resource): pass class vcd_vapp_vm(terrascript.Resource): pass class vcd_vm(terrascript.Resource): pass class vcd_vm_affinity_rule(terrascript.Resource): pass class vcd_vm_internal_disk(terrascript.Resource): pass class vcd_vm_sizing_policy(terrascript.Resource): pass __all__ = [ "vcd_catalog", "vcd_catalog_item", "vcd_catalog_media", "vcd_edgegateway", "vcd_edgegateway_settings", "vcd_edgegateway_vpn", "vcd_external_network", "vcd_external_network_v2", "vcd_global_role", "vcd_independent_disk", "vcd_inserted_media", "vcd_lb_app_profile", "vcd_lb_app_rule", "vcd_lb_server_pool", "vcd_lb_service_monitor", "vcd_lb_virtual_server", "vcd_network_direct", "vcd_network_isolated", "vcd_network_isolated_v2", "vcd_network_routed", "vcd_network_routed_v2", "vcd_nsxt_app_port_profile", "vcd_nsxt_edgegateway", "vcd_nsxt_firewall", "vcd_nsxt_ip_set", "vcd_nsxt_ipsec_vpn_tunnel", "vcd_nsxt_nat_rule", "vcd_nsxt_network_dhcp", "vcd_nsxt_network_imported", "vcd_nsxt_security_group", "vcd_nsxv_dhcp_relay", "vcd_nsxv_dnat", "vcd_nsxv_firewall_rule", "vcd_nsxv_ip_set", "vcd_nsxv_snat", "vcd_org", "vcd_org_group", "vcd_org_user", "vcd_org_vdc", "vcd_rights_bundle", "vcd_role", "vcd_vapp", "vcd_vapp_access_control", "vcd_vapp_firewall_rules", "vcd_vapp_nat_rules", "vcd_vapp_network", "vcd_vapp_org_network", "vcd_vapp_static_routing", "vcd_vapp_vm", "vcd_vm", "vcd_vm_affinity_rule", "vcd_vm_internal_disk", "vcd_vm_sizing_policy", ]
16.919414
73
0.751461
595
4,619
5.396639
0.132773
0.319527
0.379633
0.453441
0.645282
0.606353
0.227966
0
0
0
0
0.004664
0.164538
4,619
272
74
16.981618
0.827416
0.022949
0
0.32716
1
0
0.207982
0.076275
0
0
0
0
0
1
0
false
0.32716
0.018519
0
0.345679
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
5cb42baf929a1f30c4d3d27209b2a0f1f9d208ad
14,520
py
Python
neftpy/uconvert.py
unifloc/neftpy
63232f00badcdfb56d0186dc9c50e2707ddce004
[ "BSD-3-Clause" ]
1
2021-11-07T13:04:34.000Z
2021-11-07T13:04:34.000Z
neftpy/uconvert.py
unifloc/neftpy
63232f00badcdfb56d0186dc9c50e2707ddce004
[ "BSD-3-Clause" ]
null
null
null
neftpy/uconvert.py
unifloc/neftpy
63232f00badcdfb56d0186dc9c50e2707ddce004
[ "BSD-3-Clause" ]
null
null
null
""" Constant and units conversion functions for for petroleum engineering calculations """ import numpy as np import scipy.constants as const g = const.g # gravity pi = const.pi pressure_sc_bar = 1 # pressure standard condition temperature_sc_C = 15 # temperature standard condition const_at = 98066.5 # technical atmosphere in Pa, техническая атмосфера в Па air_density_sc_kgm3 = 1.225 # definition from https://en.wikipedia.org/wiki/Density_of_air rho_water_sc_kgm3 = 1000 # some default values default_z = 0.9 default_gamma_gas = 0.8 default_rsb_m3m3 = 100 # simple unit conversion functions # pressure def psi_2_Pa(value): """ converts pressure in psi (pound-force per square inch) to Pa (Pascal) :param value: pressure value in psi :return: pressure value in Pa """ return value * const.psi def Pa_2_psi(value): """ converts pressure in Pa (Pascal) to psi (pound-force per square inch) :param value: pressure value in Pa :return: pressure value in psi """ return value / const.psi def Pa_2_psig(value): """ converts pressure in abs Pa (Pascal) to gauged psig (pound-force per square inch) :param value: pressure value in Pa :return: pressure value in psi """ return value / const.psi - 14.7 def MPa_2_psi(value): """ converts pressure in MPa (Mega Pascal, 1e6 Pa) to psi (pound-force per square inch) :param value: pressure value in MPa :return: pressure value in Pa """ return value * const.mega / const.psi def MPa_2_psig(value): """ converts pressure in absolute MPa (Mega Pascal, 1e6 Pa) to measured psig (pound-force per square inch) :param value: pressure value in MPa :return: pressure value in Pa """ return value * const.mega / const.psi - 14.7 def bar_2_Pa(value): """ converts pressure in bar (1e5 Pa) to Pa :param value: pressure value in bar :return: pressure value in Pa """ return value * const.bar def bar_2_MPa(value): """ converts pressure in bar to Pa :param value: pressure value in bar :return: pressure value in Pa """ return value * const.bar / const.mega def Pa_2_bar(value): """ converts pressure in Pa to bar :param value: pressure value in Pa :return: pressure value in bar """ return value / const.bar def MPa_2_bar(value): """ converts pressure in MPa to bar :param value: pressure value in MPa :return: pressure value in bar """ return value * const.mega / const.bar def atm_2_Pa(value): """ converts pressure in atm (standard atmosphere) to Pa :param value: pressure value in atm :return: pressure value in Pa """ return value * const.atm def Pa_2_atm(value): """ converts pressure in Pa to atm (standard atmosphere) :param value: pressure value in Pa :return: pressure value in atm (standard atmosphere) """ return value / const.atm def at_2_Pa(value): """ converts pressure in at (technical atmosphere) to Pa :param value: pressure value in at (technical atmosphere) :return: pressure value in Pa """ return value * const_at def Pa_2_at(value): """ converts pressure in Pa (Pascal) to at (technical atmosphere) :param value: pressure value in Pa :return: pressure value in at (technical atmosphere) """ return value * const_at def bar_2_psi(value): """ converts pressure in bar to psi :param value: pressure value in bar :return: pressure value in psi """ return value * const.bar / const.psi def psi_2_bar(value): """ converts pressure in psi to bar :param value: pressure value in psi :return: pressure value in bar """ return value / const.bar * const.psi def bar_2_atm(value=1): """ converts pressure in bar to atm(standard atmosphere) :param value: pressure value in bar :return: pressure value in atm(standard atmosphere) """ return value * const.bar / const.atm def atm_2_bar(value=1): """ converts pressure in atm(standard atmosphere) to bar :param value: pressure value in atm(standard atmosphere) :return: pressure value in bar """ return value * const.atm / const.bar # temperature def C_2_F(value): """ converts temperature in C(degrees Celsius) to F(degrees Fahrenheit) :param value: temperature in C(degrees Celsius) :return: temperature in F(degrees Fahrenheit) """ return const.convert_temperature(value, 'C', 'F') def F_2_C(value): """ converts temperature in F(degrees Fahrenheit) to C(degrees Celsius) :param value: temperature in F(degrees Fahrenheit) :return: temperature in C(degrees Celsius) """ return const.convert_temperature(value, 'F', 'K') def C_2_K(value): """ converts temperature in C(degrees Celsius) to K(Kelvins) :param value: temperature in C(degrees Celsius) :return: temperature in K(Kelvins) """ return const.convert_temperature(value, 'C', 'K') def K_2_C(value): """ converts temperature in K(Kelvins) to C(degrees Celsius) :param value: temperature in K(Kelvins) :return: temperature in C(degrees Celsius) """ return const.convert_temperature(value, 'K', 'C') def K_2_F(value): """ converts temperature in F(degrees Fahrenheit) to K(Kelvins) :param value: temperature in F(degrees Fahrenheit) :return: temperature in K(Kelvins) """ return const.convert_temperature(value, 'K', 'F') def F_2_K(value): """ converts temperature in F(degrees Fahrenheit) to K(Kelvins) :param value: temperature in F(degrees Fahrenheit) :return: temperature in K(Kelvins) """ return const.convert_temperature(value, 'F', 'K') def F_2_R(value): """ converts temperature in F(degrees Fahrenheit) to R(degrees Rankine) :param value: temperature in F(degrees Fahrenheit) :return: temperature in R(degrees Rankine) """ return const.convert_temperature(value, 'F', 'R') def R_2_F(value): """ converts temperature in R(degrees Rankine) to F(degrees Fahrenheit) :param value: temperature in R(degrees Rankine) :return: temperature in F(degrees Fahrenheit) """ return const.convert_temperature(value, 'R', 'F') def C_2_R(value): """ converts temperature in C(degrees Celsius) to R(degrees Rankine) :param value: temperature in C(degrees Celsius) :return: temperature in R(degrees Rankine) """ return const.convert_temperature(value, 'C', 'R') def R_2_C(value): """ converts temperature in R(degrees Rankine) to C(degrees Celsius) :param value: temperature in C(degrees Celsius) :return: temperature in R(degrees Rankine) """ return const.convert_temperature(value, 'R', 'C') def K_2_R(value): """ converts temperature in K(Kelvins) to R(degrees Rankine) :param value: temperature in K(Kelvins) :return: temperature in R(degrees Rankine) """ return const.convert_temperature(value, 'K', 'R') def R_2_K(value): """ converts temperature in R(degrees Rankine) to K(Kelvins) :param value: temperature in R(degrees Rankine) :return: temperature in K(Kelvins) """ return const.convert_temperature(value, 'R', 'K') # length def m_2_in(value): """ converts length in m(meters) to in(inches) :param value: length in m(meters) :return: length in in(inches) """ return value / const.inch def in_2_m(value): """ converts length in in(inches) to m(meters) :param value: length in in(inches) :return: length in m(meters) """ return value * const.inch def m_2_ft(value): """ converts length in m(meters) to ft(feet) :param value: length in m(meters) :return: length in ft(feet) """ return value / const.foot def ft_2_m(value): """ converts length in ft(feet) to m(meters) :param value: length in ft(feet) :return: length in m(meters) """ return value * const.foot # volume def m3_2_bbl(value): """ converts volume in m3(cubic metres) to bbl(barrels) :param value: volume in m3(cubic metres) :return: volume in bbl(barrels) """ return value / const.barrel def bbl_2_m3(value): """ converts volume in m3(cubic metres) to bbl(barrels) :param value: volume in m3(cubic metres) :return: volume in bbl(barrels) """ return value * const.barrel # GOR def m3m3_2_m3t(value, gamma=1): """ converts Gas-Oil Ratio in m3/m3(cubic metres/cubic meter) to m3/t(cubic metres/ton) :param value: Gas-Oil Ratio in m3/m3(cubic metres/cubic meter); gamma=1: oil density(by air) :return: Gas-Oil Ratio in m3/t(cubic metres/ton) """ return value * gamma def m3t_2_m3m3(value, gamma=1): """ converts Gas-Oil Ratio in m3/t(cubic metres/ton) to m3/m3(cubic metres/cubic meter) :param value: Gas-Oil Ratio in m3/t(cubic metres/ton); gamma=1: oil density(by air) :return: Gas-Oil Ratio in m3/m3(cubic metres/cubic meter) """ return value / gamma def scfstb_2_m3m3(value): """ converts Gas-Oil Ratio in scf/stb(standard cubic feet/standard barrel) to m3/m3(cubic metres/cubic meter) :param value: Gas-Oil Ratio in scf/stb(standard cubic feet/standard barrel) :return: Gas-Oil Ratio in m3/m3(cubic metres/cubic meter) """ return value * (const.foot ** 3 / const.bbl) def m3m3_2_scfstb(value): """ converts Gas-Oil Ratio in m3/m3(cubic metres/cubic meter) to scf/stb(standard cubic feet/standard barrel) :param value: Gas-Oil Ratio in m3/m3(cubic metres/cubic meter) :return: Gas-Oil Ratio in scf/stb(standard cubic feet/standard barrel) """ return value / (const.foot ** 3 / const.bbl) # density def api_2_gamma_oil(value): """ converts density in API(American Petroleum Institute gravity) to gamma_oil (oil relative density by water) :param value: density in API(American Petroleum Institute gravity) :return: oil relative density by water """ return (value + 131.5) / 141.5 def gamma_oil_2_api(value): """ converts density in API(American Petroleum Institute gravity) to gamma_oil (oil relative density by water) :param value: oil relative density by water :return: density in API(American Petroleum Institute gravity) """ return 141.5 / value - 131.5 def kgm3_2_lbft3(value): """ converts density in kg/m3(kilogrammes/cubic meter) to lb/ft3(pounds/cubic feet) :param value: density in kgm3(kilogrammes/cubic meter) :return: density in lb/ft3(pounds/cubic feet) """ return value * (const.foot ** 3 / const.lb) def lbft3_2_kgm3(value): """ converts density in lb/ft3(pounds/cubic feet) to kgm3(kilogrammes/cubic meter) :param value: density in lb/ft3(pounds/cubic feet) :return: density in kgm3(kilogrammes/cubic meter) """ return value / (const.foot ** 3 / const.lb) # compressibility def compr_1pa_2_1psi(value): """ converts compressibility in 1/pa to 1/psi :param value: compressibility in 1/pa :return: compressibility in 1/psi """ return value * const.psi def compr_1psi_2_1Pa(value): """ converts compressibility in 1/psi to 1/pa :param value: compressibility in 1/psi :return: compressibility in 1/pa """ return value / const.psi def compr_1psi_2_1MPa(value): """ converts compressibility in 1/psi to 1/pa :param value: compressibility in 1/psi :return: compressibility in 1/pa """ return value / const.psi * const.mega def compr_1pa_2_1bar(value): """ converts compressibility in 1/pa to 1/bar :param value: compressibility in 1/pa :return: compressibility in 1/bar """ return value * const.bar def compr_1bar_2_1pa(value): """ converts compressibility in 1/bar to 1/pa :param value: compressibility in 1/bar :return: compressibility in 1/pa """ return value / const.bar def compr_1mpa_2_1bar(value): """ converts compressibility in 1/mpa to 1/bar :param value: compressibility in 1/mpa :return: compressibility in 1/bar """ return value * const.bar / const.mega def compr_1bar_2_1mpa(value): """ converts compressibility in 1/bar to 1/mpa :param value: compressibility in 1/bar :return: compressibility in 1/mpa """ return value * const.mega / const.bar # heat capacity def btulbmF_2_kJkgK(value): """ converts heat capacity from FIELD to SI :param value: heat capacity in Btu/lbm F :return: heat capacity in kJ/kgK equal to kJ/kgC """ return value * 4.186 # surface tension def dyncm_2_Nm(value): """ converts surface tension :param value: surface tension in dyn / cm :return: surface tension in N / m """ return value / 1000 def Nm_2_dyncm(value): """ converts surface tension :param value: surface tension in dyn / cm :return: surface tension in N / m """ return value * 1000 # volumetric rates def m3day_2_m3sec(value): """ comverts volumetric flow rates from m3 per day to m3 per second :param value: flow volume in m3 / day :return: flow volume in m3 / sec """ return value / 86400 def m3sec_2_m3day(value): """ comverts volumetric flow rates from m3 per second to m3 per day :param value: flow volume in m3 / day :return: flow volume in m3 / sec """ return value * 86400 def m3day_2_bblday(value): """ comverts volumetric flow rates from m3 per day to barrel per day :param value: flow volume in m3 / day :return: flow volume in barrel / day """ return value / const.barrel def bblday_2_m3day(value): """ comverts volumetric flow rates from barrel per day to m3 per day :param value: flow volume in m3 / day :return: flow volume in barrel / day """ return value * const.barrel # viscosity def cP_2_Pasec(value): """ converts viscosity :param value: viscosity in cP :return: viscosity in pa * sec """ return value / 1000 # angles def grad_2_rad(value): """ converts angle from degrees to radians :param value: angle in grad :return: angle in rad """ return value * pi / 180
25.208333
111
0.658471
2,075
14,520
4.53012
0.090602
0.062766
0.061277
0.041596
0.831277
0.806596
0.739362
0.660106
0.513723
0.473298
0
0.023816
0.242355
14,520
575
112
25.252174
0.830652
0.598898
0
0.169231
0
0
0.005584
0
0
0
0
0
0
1
0.453846
false
0
0.015385
0
0.923077
0
0
0
0
null
0
0
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
0
0
1
0
0
0
0
1
0
0
5
5cbe63386f4766f7812f488efc1736ee6a529385
69
py
Python
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/interfaces/kvaser/__init__.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
2
2020-04-04T21:09:56.000Z
2020-04-08T17:00:58.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/interfaces/kvaser/__init__.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
13
2020-04-11T21:50:57.000Z
2020-04-19T03:19:48.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/interfaces/kvaser/__init__.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ """ from can.interfaces.kvaser.canlib import *
9.857143
42
0.652174
9
69
5
1
0
0
0
0
0
0
0
0
0
0
0.017241
0.15942
69
6
43
11.5
0.758621
0.188406
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
7a23bb6a3cc12ed4f379bafcd1d06aca951ef1db
46
py
Python
run.py
atharva-2001/wiki-nearby-articles
4520a27f50e80a2a8f58950996e5138fe34e7f7a
[ "MIT" ]
12
2020-12-31T16:07:07.000Z
2022-01-17T18:55:54.000Z
run.py
atharva-2001/wiki-nearby-articles
4520a27f50e80a2a8f58950996e5138fe34e7f7a
[ "MIT" ]
10
2021-01-12T13:07:31.000Z
2022-01-18T15:03:12.000Z
run.py
atharva-2001/wiki-nearby-articles
4520a27f50e80a2a8f58950996e5138fe34e7f7a
[ "MIT" ]
3
2021-03-01T12:58:52.000Z
2022-01-22T06:53:01.000Z
from wikinearbyarticles import app app.run()
11.5
34
0.804348
6
46
6.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.130435
46
3
35
15.333333
0.925
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
7a33ef1daf399970455e15c6ba2c5091f967d0f6
83
py
Python
deepctr/__init__.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
6,192
2017-12-05T03:02:35.000Z
2022-03-31T20:59:30.000Z
deepctr/__init__.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
362
2018-04-15T06:53:20.000Z
2022-03-21T15:03:02.000Z
deepctr/__init__.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
1,960
2017-12-05T03:16:04.000Z
2022-03-31T06:37:00.000Z
from .utils import check_version __version__ = '0.9.0' check_version(__version__)
16.6
32
0.795181
12
83
4.666667
0.583333
0.428571
0.678571
0
0
0
0
0
0
0
0
0.040541
0.108434
83
4
33
20.75
0.716216
0
0
0
0
0
0.060241
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
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
7a4611be2efcf7c27663e1fab615f7f4e58ef0e4
100
py
Python
Python/CodingBat/near_ten.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
1
2018-05-24T11:30:05.000Z
2018-05-24T11:30:05.000Z
Python/CodingBat/near_ten.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
null
null
null
Python/CodingBat/near_ten.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
2
2017-08-11T06:53:30.000Z
2017-08-29T12:07:52.000Z
# http://codingbat.com/prob/p165321 def near_ten(num): return (num % 10 <= 2) or (num % 10 >= 8)
20
43
0.61
17
100
3.529412
0.823529
0.166667
0
0
0
0
0
0
0
0
0
0.148148
0.19
100
4
44
25
0.592593
0.33
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
7a517ca9525d6e38037a75f49dd89305cddf2a01
96
py
Python
venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/serialization/__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/cryptography/hazmat/primitives/serialization/__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/cryptography/hazmat/primitives/serialization/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/44/02/c4/b6117bc118e53324ef4aad3d5e62907b2ef8b6c49d0c20ac0da0fac905
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
7a740fcec350c109b948f40f494b1cc292628277
20,268
py
Python
strangeflix/provider/models.py
samsoldeinstein/webster2020
9795635e806caa261bb33d629f3d1f2bd603638c
[ "MIT" ]
6
2020-11-02T16:40:56.000Z
2020-11-07T06:59:00.000Z
strangeflix/provider/models.py
samsoldeinstein/webster2020
9795635e806caa261bb33d629f3d1f2bd603638c
[ "MIT" ]
null
null
null
strangeflix/provider/models.py
samsoldeinstein/webster2020
9795635e806caa261bb33d629f3d1f2bd603638c
[ "MIT" ]
2
2020-11-03T05:20:25.000Z
2020-11-03T05:38:47.000Z
from django.db import models from accounts.models import CustomUser as User # NAME OF ALL MODELS PRESENT IN THIS FILE # Videos, SeriesDetails, SeriesSubCategories, SeriesSeasonDetails, SeriesVideos, # SeriesVideosTags, MovieDetails, MovieSubCategories, MovieVideoTags, MovieVideo, # FreeSeriesVideosTags, FreeSeriesVideos, FreeMovieVideoTags, FreeMovieVideo # NAME OF COMMENTED TABLES # SeriesVideosSubCategories, MoviesVideoSubCategories, FreeSeriesVideosSubCategories, FreeMovieVideoSubCategories SUB_CATEGORY_TYPES = ( # TYPES OF SUBCATEGORIES (1, 'cricket'), (2, 'football'), (3, 'tennis'), (4, 'martial arts'), (5, 'esports'), (6, 'hockey'), (7, 'badminton'), (8, 'wrestling'), (9, 'kabaddi'), (10, 'table tennis'), (11, 'action'), (12, 'adventure'), (13, 'animation'), (14, 'comedy'), (15, 'crime'), (16, 'drama'), (17, 'horror'), (18, 'romance'), (19, 'thriller') ) VERIFICATION_STATUS_TYPES = ( # TYPES OF VERIFICATION STATUS (1, 'pending'), (2, 'verified'), (3, 'rejected'), (4, 'not submitted') ) VIDEO_EXTENSION_TYPES = ( # TYPES OF VIDEO EXTENSIONS (1, 'mp4'), (2, 'mkv'), (3, 'flv'), (4, 'webm'), (5, 'ogg'), ) VIDEO_QUALITY_TYPES = ( # TYPES OF VIDEO QUALITY (1, '144'), (2, '240'), (3, '360'), (4, '480'), (5, '720'), (6, '1080') ) LANGUAGES_TYPES = ( # TYPES OF LANGUAGES (1, 'english'), (2, 'hindi'), (3, 'bengali'), (4, 'kannada'), (5, 'malayalam'), (6, 'marathi'), (7, 'tamil'), (8, 'telugu') ) # function returning save location for series thumbnail image def series_thumbnail_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT / series_<id>/<filename> return 'series_{0}/{1}'.format(instance.series_id, filename) # function returning save location for series season thumbnail image def series_season_thumbnail_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT / series_<id>/<filename> return 'series_season_{0}/{1}'.format(instance.series_season_id, filename) # function returning save location for movie thumbnail image def movie_thumbnail_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT / series_<id>/<filename> return 'movie_{0}/{1}'.format(instance.movie_id, filename) # function returning save location for video or episode thumbnail image def video_thumbnail_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT / series_<id>/<filename> return 'video_{0}/{1}'.format(instance.video_id, filename) # model for storing reference to video file and the type of video class Videos(models.Model): VIDEO_TYPES = ( # TYPES OF VIDEOS (1, 'free'), (2, 'series'), (3, 'movie') ) video_id = models.AutoField(primary_key=True) video_type = models.PositiveSmallIntegerField(choices=VIDEO_TYPES) class Meta: verbose_name_plural = "Videos" def __str__(self): return str('Video_id--') + str(self.video_id) + str(' || Video_type--') + str(self.video_type) # model for storing series video tags class VideoRejectionComment(models.Model): video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) comment = models.TextField() class Meta: verbose_name_plural = "Video Rejection Comment" def __str__(self): return str('Video_id--') + str(self.video_id.video_id) + str(' || comment--') + str(self.comment) # model for storing series details class SeriesDetails(models.Model): CATEGORY_TYPES = ( # TYPES OF CATEGORY (1, 'sports'), (2, 'entertainment'), ) series_id = models.AutoField(primary_key=True) provider_id = models.ForeignKey(User, on_delete=models.PROTECT) series_name = models.CharField(max_length=100) description = models.TextField() language = models.PositiveSmallIntegerField(choices=LANGUAGES_TYPES) category = models.PositiveSmallIntegerField(choices=CATEGORY_TYPES) date_of_creation = models.DateTimeField() thumbnail_image = models.ImageField(upload_to=series_thumbnail_directory_path) class Meta: verbose_name_plural = "Series Details" def __str__(self): return str('Series_id--') + str(self.series_id) + str(' || Series--') + str(self.series_name) + str(' || Provider--') + str(self.provider_id.username) # model for storing series sub categories class SeriesSubCategories(models.Model): series_id = models.ForeignKey(SeriesDetails, on_delete=models.PROTECT) sub_category = models.PositiveSmallIntegerField(choices=SUB_CATEGORY_TYPES) class Meta: verbose_name_plural = "Series Sub Categories" def __str__(self): return str('Series_id--') + str(self.series_id.series_id) + str(' || Series--') + str(self.series_id.series_name) + str(' || Subcategory--') + str(SUB_CATEGORY_TYPES[self.sub_category-1][1]) # model for storing series season details class SeriesSeasonDetails(models.Model): series_season_id = models.AutoField(primary_key=True) series_id = models.ForeignKey(SeriesDetails, on_delete=models.PROTECT) season_no = models.PositiveSmallIntegerField() description = models.TextField() date_of_creation = models.DateTimeField() thumbnail_image = models.ImageField(upload_to=series_season_thumbnail_directory_path) verification_status = models.PositiveSmallIntegerField(choices=VERIFICATION_STATUS_TYPES) class Meta: verbose_name_plural = "Series Season Details" def __str__(self): return str('Series--') + str(self.series_id.series_name) + str(' || Series_season_id--') + str(self.series_season_id) + str(' || Season_no--') + str(self.season_no) + str(' || Status--') + str(self.verification_status) # model for storing series videos class SeriesVideos(models.Model): series_season_id = models.ForeignKey(SeriesSeasonDetails, on_delete=models.PROTECT) video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) video_name = models.CharField(max_length=100) firebase_save_name = models.CharField(max_length=50) firebase_token = models.CharField(max_length=50) description = models.TextField() thumbnail_image = models.ImageField(upload_to=video_thumbnail_directory_path) date_of_upload = models.DateTimeField() date_of_release = models.DateTimeField() episode_no = models.PositiveSmallIntegerField() duration_of_video = models.IntegerField() quality_of_video = models.PositiveSmallIntegerField(choices=VIDEO_QUALITY_TYPES) extension = models.PositiveSmallIntegerField(choices=VIDEO_EXTENSION_TYPES, default=1) verification_status = models.PositiveSmallIntegerField(choices=VERIFICATION_STATUS_TYPES) cost_of_video = models.PositiveSmallIntegerField() class Meta: verbose_name_plural = "Series Videos" def __str__(self): return str('Series_id--') + str(self.series_season_id.series_id.series_id) + str(' || Series--') + str(self.series_season_id.series_id.series_name) + str(' || Season_no--') + str(self.series_season_id.season_no) + str(' || Episode_no--') + str(self.episode_no) + str(' || video_id--') + str(self.video_id.video_id) + str(' || Video_name--') + str(self.video_name) + str(' || Status--') + str(self.verification_status) # class SeriesVideosSubCategories(models.Model): # video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) # episode_no = models.PositiveSmallIntegerField() # sub_category = models.PositiveSmallIntegerField(choices=SUB_CATEGORY_TYPES) # class Meta: # verbose_name_plural = "Series Videos Sub Categories" # model for storing series video tags class SeriesVideosTags(models.Model): video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) episode_no = models.PositiveSmallIntegerField() tag_word = models.CharField(max_length=50) class Meta: verbose_name_plural = "Series Videos Tags" def __str__(self): return str('video_id--') + str(self.video_id.video_id) + str(' || Episode_no--') + str(self.episode_no) + str(' || tag--') + str(self.tag_word) # model for storing movie details class MovieDetails(models.Model): movie_id = models.AutoField(primary_key=True) provider_id = models.ForeignKey(User, on_delete=models.PROTECT) movie_name = models.CharField(max_length=100) description = models.TextField() language = models.PositiveSmallIntegerField(choices=LANGUAGES_TYPES) date_of_creation = models.DateTimeField() thumbnail_image = models.ImageField(upload_to=movie_thumbnail_directory_path) class Meta: verbose_name_plural = "Movie Details" def __str__(self): return str('Movie_id--') + str(self.movie_id) + str(' || Movie--') + str(self.movie_name) + str(' || Provider--') + str(self.provider_id.username) # model for storing movie sub categories class MovieSubCategories(models.Model): movie_id = models.ForeignKey(MovieDetails, on_delete=models.PROTECT) sub_category = models.PositiveSmallIntegerField(choices=SUB_CATEGORY_TYPES) class Meta: verbose_name_plural = "Movie Sub Categories" def __str__(self): return str('Movie_id--') + str(self.movie_id.movie_id) + str(' || Movie--') + str(self.movie_id.movie_name) + str(' || Subcategory--') + str(SUB_CATEGORY_TYPES[self.sub_category-1][1]) # model for storing movie video tags class MovieVideoTags(models.Model): video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) tag_word = models.CharField(max_length=50) class Meta: verbose_name_plural = "Movie Video Tags" def __str__(self): return str('video_id--') + str(self.video_id.video_id) + str(' || tag--') + str(self.tag_word) # class MoviesVideoSubCategories(models.Model): # video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) # sub_category = models.PositiveSmallIntegerField(choices=SUB_CATEGORY_TYPES) # class Meta: # verbose_name_plural = "Movie Video Sub Categories" # model for storing movie video class MovieVideo(models.Model): movie_id = models.ForeignKey(MovieDetails, on_delete=models.PROTECT) video_name = models.CharField(max_length=100) description = models.TextField() video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) firebase_save_name = models.CharField(max_length=50) firebase_token = models.CharField(max_length=50) thumbnail_image = models.ImageField(upload_to=video_thumbnail_directory_path) date_of_upload = models.DateTimeField() date_of_release = models.DateTimeField() duration_of_video = models.IntegerField() quality_of_video = models.PositiveSmallIntegerField(choices=VIDEO_QUALITY_TYPES) extension = models.PositiveSmallIntegerField(choices=VIDEO_EXTENSION_TYPES, default=1) verification_status = models.PositiveSmallIntegerField(choices=VERIFICATION_STATUS_TYPES) cost_of_video = models.PositiveSmallIntegerField() class Meta: verbose_name_plural = "Movie Video" def __str__(self): return str('Movie_id--') + str(self.movie_id.movie_id) + str(' || Movie--') + str(self.movie_id.movie_name) + str(' || video_id--') + str(self.video_id.video_id) + str(' || Video_name--') + str(self.video_name) + str(' || Status--') + str(self.verification_status) # class FreeSeriesVideosSubCategories(models.Model): # video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) # sub_category = models.PositiveSmallIntegerField(choices=SUB_CATEGORY_TYPES) # class Meta: # verbose_name_plural = "Free Series Videos Sub Categories" # model for storing series free video tags class FreeSeriesVideosTags(models.Model): video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) tag_word = models.CharField(max_length=50) class Meta: verbose_name_plural = "Free Series Videos Tags" def __str__(self): return str('video_id--') + str(self.video_id.video_id) + str(' || tag--') + str(self.tag_word) # model for storing series free video class FreeSeriesVideos(models.Model): series_season_id = models.ForeignKey(SeriesSeasonDetails, on_delete=models.PROTECT) video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) video_name = models.CharField(max_length=100) firebase_save_name = models.CharField(max_length=50) firebase_token = models.CharField(max_length=50) description = models.TextField() thumbnail_image = models.ImageField(upload_to=video_thumbnail_directory_path) date_of_upload = models.DateTimeField() date_of_release = models.DateTimeField() duration_of_video = models.IntegerField() quality_of_video = models.PositiveSmallIntegerField(choices=VIDEO_QUALITY_TYPES) extension = models.PositiveSmallIntegerField(choices=VIDEO_EXTENSION_TYPES, default=1) verification_status = models.PositiveSmallIntegerField(choices=VERIFICATION_STATUS_TYPES) class Meta: verbose_name_plural = "Free Series Videos" def __str__(self): return str('Series_id--') + str(self.series_season_id.series_id.series_id) + str(' || Series--') + str(self.series_season_id.series_id.series_name) + str(' || Season_no--') + str(self.series_season_id.season_no) + str(' || video_id--') + str(self.video_id.video_id) + str(' || Video_name--') + str(self.video_name) + str(' || Status--') + str(self.verification_status) # class FreeMovieVideoSubCategories(models.Model): # video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) # sub_category = models.PositiveSmallIntegerField(choices=SUB_CATEGORY_TYPES) # class Meta: # verbose_name_plural = "Free Movie Video Sub Categories" # model for storing movie free video tags class FreeMovieVideoTags(models.Model): video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) tag_word = models.CharField(max_length=50) class Meta: verbose_name_plural = "Free Movie Video Tags" def __str__(self): return str('video_id--') + str(self.video_id.video_id) + str(' || tag--') + str(self.tag_word) # model for storing movie free video class FreeMovieVideo(models.Model): movie_id = models.ForeignKey(MovieDetails, on_delete=models.PROTECT) video_name = models.CharField(max_length=100) description = models.TextField() video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) firebase_save_name = models.CharField(max_length=50) firebase_token = models.CharField(max_length=50) thumbnail_image = models.ImageField(upload_to=video_thumbnail_directory_path) date_of_upload = models.DateTimeField() date_of_release = models.DateTimeField() duration_of_video = models.IntegerField() quality_of_video = models.PositiveSmallIntegerField(choices=VIDEO_QUALITY_TYPES) extension = models.PositiveSmallIntegerField(choices=VIDEO_EXTENSION_TYPES, default=1) verification_status = models.PositiveSmallIntegerField(choices=VERIFICATION_STATUS_TYPES) class Meta: verbose_name_plural = "Free Movie Video" def __str__(self): return str('Movie_id--') + str(self.movie_id.movie_id) + str(' || Movie--') + str(self.movie_id.movie_name) + str(' || video_id--') + str(self.video_id.video_id) + str(' || Video_name--') + str(self.video_name) + str(' || Status--') + str(self.verification_status) # model for storing series rating given by user class SeriesRating(models.Model): series_id = models.ForeignKey(SeriesDetails, on_delete=models.PROTECT) user_id = models.ForeignKey(User, on_delete=models.PROTECT) rating = models.PositiveSmallIntegerField() class Meta: verbose_name_plural = "Series Rating" def __str__(self): return str('Series_id--') + str(self.series_id.series_id) + str(' || Series--') + str(self.series_id.series_name) + str(' || User--') + str(self.user_id.username) + str(' || rating--') + str(self.rating) # model for storing movie rating given by user class MovieRating(models.Model): movie_id = models.ForeignKey(MovieDetails, on_delete=models.PROTECT) user_id = models.ForeignKey(User, on_delete=models.PROTECT) rating = models.PositiveSmallIntegerField() class Meta: verbose_name_plural = "Movie Rating" def __str__(self): return str('Movie_id--') + str(self.movie_id.movie_id) + str(' || Movie--') + str(self.movie_id.movie_name) + str(' || User--') + str(self.user_id.username) + str(' || rating--') + str(self.rating) # model for storing user History class History(models.Model): user_id = models.ForeignKey(User, on_delete=models.PROTECT) video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) video_watched = models.PositiveSmallIntegerField() timestamp = models.DateTimeField() class Meta: verbose_name_plural = "History" def __str__(self): return str('User--') + str(self.user_id.username) + str(' || video_id--') + str(self.video_id.video_id) + str(' || watch_time--') + str(self.video_watched) # model for storing video comments on videos class VideoComment(models.Model): COMMENT_TYPES = ( # TYPES OF COMMENTS (1, 'positive'), (2, 'negative'), (3, 'neutral'), ) comment_id = models.AutoField(primary_key=True) user_id = models.ForeignKey(User, on_delete=models.PROTECT) video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) comment = models.TextField() comment_type = models.PositiveSmallIntegerField(choices=COMMENT_TYPES, default=1) timestamp = models.DateTimeField() class Meta: verbose_name_plural = "Video Comment" def __str__(self): return str('comment_id--') + str(self.comment_id) + str(' || User--') + str(self.user_id.username) + str(' || video_id--') + str(self.video_id.video_id) + str(' || comment--') + str(self.comment) + str(' || comment_type--') + str(self.comment_type) # model for storing reports on comments class ReportComment(models.Model): REPORT_COMMENT_TYPES = ( # TYPES OF COMMENT REPORTING (1, 'Unwanted commercial content or spam'), (2, 'Sexually explicit material'), (3, 'Child abuse'), (4, 'Hate speech or graphic violence'), (5, 'Harassment or bullying'), ) comment_id = models.ForeignKey(VideoComment, on_delete=models.PROTECT) user_id = models.ForeignKey(User, on_delete=models.PROTECT) flag_val = models.PositiveSmallIntegerField(choices=REPORT_COMMENT_TYPES, default=1) class Meta: verbose_name_plural = "Report Comment" def __str__(self): return str('User--') + str(self.user_id.username) + str(' || comment_id--') + str(self.comment_id.pk) + str(' || flag_val--') + str(self.flag_val) # model for storing reports on videos class ReportVideo(models.Model): REPORT_VIDEO_TYPES = ( # TYPES OF VIDEO REPORTING (1, 'Violent or repulsive content'), (2, 'Hateful or abusive content'), (3, 'Harmful or dangerous act'), (4, 'Sexual content'), (5, 'Child abuse'), (6, 'Promotes terrorism'), (7, 'Spam or misleading'), (8, 'Infringes my rights'), (9, 'Captions issue'), ) video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) user_id = models.ForeignKey(User, on_delete=models.PROTECT) flag_val = models.PositiveSmallIntegerField(choices=REPORT_VIDEO_TYPES, default=1) class Meta: verbose_name_plural = "Report Video" def __str__(self): return str('User--') + str(self.user_id.username) + str(' || video_id--') + str(self.video_id.video_id) + str(' || flag_val--') + str(self.flag_val) # model for storing user faviurites class Favourites(models.Model): video_id = models.ForeignKey(Videos, on_delete=models.PROTECT) users = models.ManyToManyField(User, related_name='favourites') class Meta: verbose_name_plural = "Favourites" def __str__(self): return str('video_id--') + str(self.video_id.video_id)
30.802432
425
0.703473
2,443
20,268
5.584118
0.103561
0.048747
0.046181
0.053878
0.778112
0.760812
0.73369
0.709353
0.679446
0.662146
0
0.009245
0.172834
20,268
657
426
30.849315
0.804474
0.154085
0
0.459627
0
0
0.11413
0.00123
0
0
0
0
0
1
0.080745
false
0
0.006211
0.080745
0.686335
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
7a83a9692e595cfdc6bbda3e379d82035f088f8b
44
py
Python
Aula01/teste_balde/balde.py
felipemamore/SalaGreen-Felipe
73664b77fdd09400e9129364308dded0fc15234d
[ "Apache-2.0" ]
null
null
null
Aula01/teste_balde/balde.py
felipemamore/SalaGreen-Felipe
73664b77fdd09400e9129364308dded0fc15234d
[ "Apache-2.0" ]
null
null
null
Aula01/teste_balde/balde.py
felipemamore/SalaGreen-Felipe
73664b77fdd09400e9129364308dded0fc15234d
[ "Apache-2.0" ]
null
null
null
from random import randint class Balde:
6.285714
26
0.75
6
44
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.227273
44
6
27
7.333333
0.970588
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
5
7a9236f78d7ba10e9a5a4e09b396ead749ec18d2
6,301
py
Python
api/tests/test_import_assets_endpoint.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
null
null
null
api/tests/test_import_assets_endpoint.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
null
null
null
api/tests/test_import_assets_endpoint.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
null
null
null
# Standard Library import os from unittest.mock import patch # Third-Party Imports from django.contrib.auth import get_user_model from rest_framework.test import APIClient # App Imports from api.tests import APIBaseTestCase from core.models import Asset, AssetModelNumber User = get_user_model() client = APIClient() class AssetsUploadTestCase(APIBaseTestCase): def test_non_authenticated_user_view_assets(self): response = client.get(self.asset_uploads_url) self.assertEqual( response.data, {"detail": "Authentication credentials were not provided."} ) @patch("api.authentication.auth.verify_id_token") def test_authenticated_user_can_upload_csv_file_to_save_assets( self, mock_verify_id_token ): mock_verify_id_token.return_value = {"email": self.admin_user.email} data = {} count = Asset.objects.count() file_location = os.path.join(os.path.dirname(__file__), "sample.csv") with open(file_location) as csv: data["file"] = csv response = client.post( self.asset_uploads_url, data=data, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) self.assertGreater(Asset.objects.count(), count) self.assertEqual(200, response.status_code) skipped = client.get( self.skipped_assets_url, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) filename = "{}.csv".format(self.admin_user.email.split("@")[0]) self.assertEqual(skipped.filename, filename) @patch("api.authentication.auth.verify_id_token") def test_upload_csv_file_with_minimum_required_fields(self, mock_verify_id_token): mock_verify_id_token.return_value = {"email": self.admin_user.email} data = {} count = Asset.objects.count() AssetModelNumber.objects.create(name="HP 27ES", asset_make=self.asset_make) file_location = os.path.join(os.path.dirname(__file__), "sample_limited.csv") with open(file_location) as csv: data["file"] = csv response = client.post( self.asset_uploads_url, data=data, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) self.assertGreater(Asset.objects.count(), count) self.assertEqual(200, response.status_code) @patch("api.authentication.auth.verify_id_token") def test_authenticated_user_cannot_upload_empty_csv_file_to_save_assets( self, mock_verify_id_token ): mock_verify_id_token.return_value = {"email": self.admin_user.email} data = {} count = Asset.objects.count() file_location = os.path.join(os.path.dirname(__file__), "empty_csv.csv") with open(file_location) as csv: data["file"] = csv response = client.post( self.asset_uploads_url, data=data, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) self.assertEqual(Asset.objects.count(), count) self.assertEqual(400, response.status_code) @patch("api.authentication.auth.verify_id_token") def test_authenticated_user_cannot_upload_csv_file_containing_only_headings_to_save_assets( self, mock_verify_id_token ): mock_verify_id_token.return_value = {"email": self.admin_user.email} data = {} count = Asset.objects.count() file_location = os.path.join(os.path.dirname(__file__), "heading_csv.csv") with open(file_location) as csv: data["file"] = csv response = client.post( self.asset_uploads_url, data=data, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) self.assertEqual(Asset.objects.count(), count) self.assertEqual(400, response.status_code) @patch("api.authentication.auth.verify_id_token") def test_authenticated_user_cannot_upload_non_csv_file_type_to_save_assets( self, mock_verify_id_token ): mock_verify_id_token.return_value = {"email": self.admin_user.email} data = {} count = Asset.objects.count() file_location = os.path.join(os.path.dirname(__file__), "text_file.txt") with open(file_location) as csv: data["file"] = csv response = client.post( self.asset_uploads_url, data=data, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) self.assertEqual(Asset.objects.count(), count) self.assertEqual(400, response.status_code) @patch("api.authentication.auth.verify_id_token") def test_authenticated_user_cannot_upload_csv_file_with_missing_required_headings_to_save_assets( self, mock_verify_id_token ): mock_verify_id_token.return_value = {"email": self.admin_user.email} data = {} count = Asset.objects.count() file_location = os.path.join(os.path.dirname(__file__), "missing_headings.csv") with open(file_location) as csv: data["file"] = csv response = client.post( self.asset_uploads_url, data=data, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) self.assertEqual(Asset.objects.count(), count) self.assertEqual(400, response.status_code) @patch("api.authentication.auth.verify_id_token") def test_uploading_assets_already_in_the_database_skips_saving_them( self, mock_verify_id_token ): mock_verify_id_token.return_value = {"email": self.admin_user.email} data = {} count = Asset.objects.count() file_location = os.path.join( os.path.dirname(__file__), "sample_with_duplicates.csv" ) with open(file_location) as csv: data["file"] = csv response = client.post( self.asset_uploads_url, data=data, HTTP_AUTHORIZATION="Token {}".format(self.token_admin), ) self.assertIn("fail", response.data) self.assertEqual(Asset.objects.count(), count + 1)
38.656442
101
0.641962
736
6,301
5.165761
0.157609
0.044187
0.071804
0.062599
0.774855
0.774855
0.765124
0.754077
0.754077
0.741978
0
0.004675
0.253134
6,301
162
102
38.895062
0.80323
0.007618
0
0.678571
0
0
0.093455
0.047848
0
0
0
0
0.114286
1
0.057143
false
0
0.042857
0
0.107143
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
7abaa56c995c5acf9906bcc0ee9c9aae866f1c4c
32
py
Python
Aulas/a07/a07.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
Aulas/a07/a07.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
Aulas/a07/a07.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
# Coleta de informações externas
32
32
0.84375
4
32
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.125
32
1
32
32
0.964286
0.9375
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
8f9e53b6310ecad575964160a33d5a9d42968e02
58
py
Python
ptr2tools/__init__.py
jmkd3v/ptr2tools-python
0e54185f2c374880424c4c86c04eb7c70f083e14
[ "MIT" ]
null
null
null
ptr2tools/__init__.py
jmkd3v/ptr2tools-python
0e54185f2c374880424c4c86c04eb7c70f083e14
[ "MIT" ]
null
null
null
ptr2tools/__init__.py
jmkd3v/ptr2tools-python
0e54185f2c374880424c4c86c04eb7c70f083e14
[ "MIT" ]
null
null
null
from typing import BinaryIO from .int import IntContainer
19.333333
29
0.844828
8
58
6.125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.137931
58
2
30
29
0.98
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
8ff756fdf4e8812c85a4489c75f905b0833b3ae9
179
py
Python
dbt/adapters/snowflake/__init__.py
cpdean/dbt
c19a42625a3e1dcb42f2bf865541c75f3595503c
[ "Apache-2.0" ]
1
2018-06-20T17:51:20.000Z
2018-06-20T17:51:20.000Z
dbt/adapters/snowflake/__init__.py
cpdean/dbt
c19a42625a3e1dcb42f2bf865541c75f3595503c
[ "Apache-2.0" ]
null
null
null
dbt/adapters/snowflake/__init__.py
cpdean/dbt
c19a42625a3e1dcb42f2bf865541c75f3595503c
[ "Apache-2.0" ]
1
2018-10-18T18:45:38.000Z
2018-10-18T18:45:38.000Z
from dbt.adapters.snowflake.impl import SnowflakeAdapter from dbt.adapters.snowflake.relation import SnowflakeRelation __all__ = [ SnowflakeAdapter, SnowflakeRelation, ]
22.375
61
0.810056
17
179
8.294118
0.588235
0.099291
0.212766
0.340426
0
0
0
0
0
0
0
0
0.128492
179
7
62
25.571429
0.903846
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
8908ff1cebe1418bb8d50c71a5b6b54f7e4c9b7c
81
py
Python
pythonModuleMap/Dept.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
1
2019-11-12T13:38:54.000Z
2019-11-12T13:38:54.000Z
pythonModuleMap/Dept.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
null
null
null
pythonModuleMap/Dept.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
null
null
null
class Dept: def showDeptName(self): return self.name name = "部门1"
20.25
27
0.604938
10
81
4.9
0.8
0
0
0
0
0
0
0
0
0
0
0.017544
0.296296
81
4
28
20.25
0.842105
0
0
0
0
0
0.036585
0
0
0
0
0
0
1
0.25
false
0
0
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
890abe0dc2ed061c4a9d2bd0d65e6d4357388f6e
23
py
Python
wingedsheep/carcassonne/objects/actions/action.py
SuryaVikram/CarcassonneMaster
cc0201638dfea05b254833097329729e9b8a410c
[ "MIT" ]
11
2020-05-19T17:29:18.000Z
2022-03-24T06:22:50.000Z
wingedsheep/carcassonne/objects/actions/action.py
SuryaVikram/CarcassonneMaster
cc0201638dfea05b254833097329729e9b8a410c
[ "MIT" ]
63
2019-08-25T07:48:54.000Z
2019-10-18T01:52:29.000Z
wingedsheep/carcassonne/objects/actions/action.py
SuryaVikram/CarcassonneMaster
cc0201638dfea05b254833097329729e9b8a410c
[ "MIT" ]
5
2021-09-16T11:53:26.000Z
2022-03-30T12:08:56.000Z
class Action: pass
7.666667
13
0.652174
3
23
5
1
0
0
0
0
0
0
0
0
0
0
0
0.304348
23
2
14
11.5
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
891b943988eedd6b3a64c418cdf60939ece5a174
687
py
Python
poroto/platform.py
TANGO-Project/poroto
380c0ab9f33bead70ed71c78493e682924d7f997
[ "BSD-3-Clause" ]
1
2018-05-22T22:53:31.000Z
2018-05-22T22:53:31.000Z
poroto/platform.py
TANGO-Project/poroto
380c0ab9f33bead70ed71c78493e682924d7f997
[ "BSD-3-Clause" ]
null
null
null
poroto/platform.py
TANGO-Project/poroto
380c0ab9f33bead70ed71c78493e682924d7f997
[ "BSD-3-Clause" ]
null
null
null
class Platform: def __init__(self, designer, debug): self.designer = designer self.debug = debug def generate_wrappers(self): raise Exception("Method not implemented") def create_mem(self, mem_type, name, data_type, size, init): raise Exception("Method not implemented") def create_mem_from(self, mem_type, memory): return self.create_mem(mem_type, memory.name, memory.data_type, memory.size, memory.init) def create_fifo(self): raise Exception("Method not implemented") def add_intrinsic(self, designer, intrinsic): raise Exception("Method not implemented") def get_keys(self): return {}
29.869565
97
0.678311
86
687
5.22093
0.325581
0.124722
0.178174
0.2049
0.387528
0.387528
0.305122
0.2049
0
0
0
0
0.225619
687
22
98
31.227273
0.843985
0
0
0.25
1
0
0.128093
0
0
0
0
0
0
1
0.4375
false
0
0
0.125
0.625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
64e12fab65175b02e73657008fd26b9ff4532fba
42
py
Python
tests/docs/packetdiag/conf.py
tk0miya/sphinxcontrib-nwdiag
14c31c07e643d0402ba048bfb0bd445f07775abd
[ "BSD-2-Clause" ]
4
2018-03-12T18:59:41.000Z
2020-03-06T02:37:54.000Z
tests/docs/packetdiag/conf.py
tk0miya/sphinxcontrib-nwdiag
14c31c07e643d0402ba048bfb0bd445f07775abd
[ "BSD-2-Clause" ]
4
2018-02-14T21:22:43.000Z
2019-12-10T17:03:10.000Z
tests/docs/packetdiag/conf.py
tk0miya/sphinxcontrib-nwdiag
14c31c07e643d0402ba048bfb0bd445f07775abd
[ "BSD-2-Clause" ]
3
2017-05-26T05:45:30.000Z
2019-08-21T05:53:32.000Z
extensions = ['sphinxcontrib.packetdiag']
21
41
0.785714
3
42
11
1
0
0
0
0
0
0
0
0
0
0
0
0.071429
42
1
42
42
0.846154
0
0
0
0
0
0.571429
0.571429
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
64f73971e56467a8320b0733df9f5f3920798779
114
py
Python
algoneer/dataset/__init__.py
algoneer/algoneer-py
5f300543116278c91a9cf8c9ef5a1375e3f1e75d
[ "MIT" ]
10
2019-08-05T16:06:12.000Z
2020-12-19T16:40:48.000Z
algoneer/dataset/__init__.py
algoneer/algoneer-py
5f300543116278c91a9cf8c9ef5a1375e3f1e75d
[ "MIT" ]
null
null
null
algoneer/dataset/__init__.py
algoneer/algoneer-py
5f300543116278c91a9cf8c9ef5a1375e3f1e75d
[ "MIT" ]
1
2020-04-27T08:50:14.000Z
2020-04-27T08:50:14.000Z
from .dataset import Dataset, DatasetDataSchema from .attribute import Attribute from .datapoint import Datapoint
28.5
47
0.850877
13
114
7.461538
0.461538
0
0
0
0
0
0
0
0
0
0
0
0.114035
114
3
48
38
0.960396
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