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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d1b3f3860740634ed8379f56d1165cff373fb15
| 11,393
|
py
|
Python
|
qa327_test/frontend/test_buy.py
|
emilygibbons/CISC-CMPE-327
|
bb28b2bac099286df4a42e3baf380032dfcb85d5
|
[
"MIT"
] | null | null | null |
qa327_test/frontend/test_buy.py
|
emilygibbons/CISC-CMPE-327
|
bb28b2bac099286df4a42e3baf380032dfcb85d5
|
[
"MIT"
] | null | null | null |
qa327_test/frontend/test_buy.py
|
emilygibbons/CISC-CMPE-327
|
bb28b2bac099286df4a42e3baf380032dfcb85d5
|
[
"MIT"
] | null | null | null |
import pytest
from seleniumbase import BaseCase
from qa327_test.conftest import base_url
from unittest.mock import patch
from qa327.models import db, User
from werkzeug.security import generate_password_hash, check_password_hash
"""
This file defines all unit tests for the frontend buy section.
The tests will only test the frontend portion of the program, by patching the backend to return
specfic values. For example:
@patch('qa327.backend.get_user', return_value=test_user)
Will patch the backend get_user function (within the scope of the current test case)
so that it return 'test_user' instance below rather than reading
the user from the database.
Annotate @patch before unit tests can mock backend methods (for that testing function)
"""
# Mock a sample user
test_user = User(
email='test_frontend@test.com',
name='test_frontend',
password=generate_password_hash('Testfrontend123!'),
balance=5000
)
# Mock another sample user
test_user2 = User(
email='test_frontend2@test.com',
name='test_frontend2',
password=generate_password_hash('Testfrontend123!'),
balance=1
)
# Mock some sample tickets
test_tickets = [
{'name': 'ticket1', 'price': 100, 'email': 'test_frontend@test.com', 'date': '20210901'}
]
class FrontEndBuyTesting(BaseCase):
#login user 1
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
def login(self, *_):
self.open(base_url + '/login')
self.type("#email", "test_frontend@test.com")
self.type("#password", "Testfrontend123!")
self.click('input[type="submit"]')
# open home page
self.open(base_url)
#login user 2
@patch('qa327.backend.get_user', return_value=test_user2)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
def login2(self, *_):
self.open(base_url + '/login')
self.type("#email", "test_frontend2@test.com")
self.type("#password", "Testfrontend123!")
self.click('input[type="submit"]')
# open home page
self.open(base_url)
# Test Case R6.1 - The name of the ticket has to be alphanumeric-only, and space allowed only if it is not the first or the last character.
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
@patch('qa327.backend.ticketExists', return_value= True)
def test_ticketname(self,*_):
# login as test user
self.login()
# Positive case covered in R6.6
# NEGATIVE: IF IT HAS A SYMBOL
# fill in ticket information
self.type("#buy-name","ticket1!")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The name has to alphanumeric, have no spaces in the beginning or end and be between 6 and 60 characters.", "#buyMessage")
# NEGATIVE: IF IT STARTS WITH A SPACE
# fill in ticket information
self.type("#buy-name"," ticket1")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The name has to alphanumeric, have no spaces in the beginning or end and be between 6 and 60 characters.", "#buyMessage")
# NEGATIVE: IF IT ENDS WITH A SPACE
# fill in ticket information
self.type("#buy-name","ticket1 ")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The name has to alphanumeric, have no spaces in the beginning or end and be between 6 and 60 characters.", "#buyMessage")
# Test Case R6.2 - The name of the ticket is no longer than 60 characters and more than 6 characters.
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
@patch('qa327.backend.ticketExists', return_value= True)
def test_ticketlength(self,*_):
# login as test user
self.login()
# Positive case is already covered under the positive case of R6.6
# NEGATIVE: MORE THAN 60 CHARACTERS
# fill in ticket information
self.type("#buy-name","qqqwwweeerrrtttyyyuuuiiiooopppaaasssdddfffggghhhjjjkkkllzzzxxxx")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The name has to alphanumeric, have no spaces in the beginning or end and be between 6 and 60 characters.", "#buyMessage")
# NEGATIVE: LESS THAN 6 CHARACTERS
# fill in ticket information
self.type("#buy-name","t2")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The name has to alphanumeric, have no spaces in the beginning or end and be between 6 and 60 characters.", "#buyMessage")
# Test Case R6.3 - The quantity of the tickets has to be more than 0, and less than or equal to 100.
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
@patch('qa327.backend.ticketExists', return_value= True)
def test_ticketquantity(self, *_):
# login as test user
self.login()
# Positive case is already covered under the positive case of R6.6
# NEGATIVE: ZERO QUANTITY
# fill in ticket information
self.type("#buy-name","ticket1")
self.type("#buy-quantity","0")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The quantity of the tickets has to be between 1 and 100.", "#buyMessage")
# NEGATIVE: QUANTITY GREATER THAN 100
# fill in ticket information
self.type("#buy-name","ticket1")
self.type("#buy-quantity","101")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The quantity of the tickets has to be between 1 and 100.", "#buyMessage")
# Test Case R6.4(a) - The ticket name exists in the database and the quantity is more than the quantity requested to buy
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
def test_ticketdoesnotexist(self, *_):
# login as test user
self.login()
# Positive case is already covered under the positive case of R6.6
#NEGATIVE : NAME DOES NOT EXIST
# fill in ticket information
self.type("#buy-name","ticketdoesnotexist")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("Ticket does not exist.", "#buyMessage")
# Test Case R6.4(b) - The ticket name exists in the database and the quantity is more than the quantity requested to buy
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
@patch('qa327.backend.ticketExists', return_value= True)
def test_notenoughtickets(self, *_):
# login as test user
self.login()
#NEGATIVE : Quantity requested is more than in stock
# fill in ticket information
self.type("#buy-name","ticket1")
self.type("#buy-quantity","50")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("The specified quantity of tickets not available.", "#buyMessage")
# Test Case R6.5 POSITIVE - The user has MORE balance than the ticket price * quantity + service fee (35%) + tax (5%)
#Positive case is already covered under the positive case of R6.6(b)
# Test Case R6.5 NEGATIVE - The user has LESS balance than the ticket price * quantity + service fee (35%) + tax (5%)
@patch('qa327.backend.get_user', return_value=test_user2)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
@patch('qa327.backend.ticketExists', return_value= True)
@patch('qa327.backend.isEnoughTickets', return_value= True)
@patch('qa327.backend.getTicketsPrice', return_value= 100)
def test_notenoughbalance(self, *_):
# login as test user 2
self.login2()
# fill in ticket information
self.type("#buy-name","ticket1")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper error message
self.assert_element("#buyMessage")
self.assert_text("Your balance is too low!", "#buyMessage")
# Test Case R6.6(a) - For any errors, redirect back to / and show an error message
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
@patch('qa327.backend.ticketExists', return_value= True)
def test_ticketredirect(self, *_):
# login as test user
self.login()
# Create error
self.type("#buy-name","t1")
self.type("#buy-quantity","1")
# click sell button
self.click('input[id="btn-buy-submit"]')
# make sure an error message occurs
self.assert_element("#buyMessage")
self.assert_text("Error:", "#buyMessage")
# ensure it redirects to home page (/)
self.assert_element("#welcome-header")
self.assert_text("Welcome test_frontend", "#welcome-header")
# Test Case R6.6(b)- For any errors, redirect back to / and show an error message
@patch('qa327.backend.get_user', return_value=test_user)
@patch('qa327.backend.get_all_tickets', return_value=test_tickets)
@patch('qa327.backend.ticketExists', return_value= True)
@patch('qa327.backend.isEnoughTickets', return_value= True)
@patch('qa327.backend.buy_ticket', return_value= True)
@patch('qa327.backend.getTicketsPrice', return_value= 100)
# Negative: no errors
def test_ticketsuccess(self, *_):
# login as test user
self.login()
# fill in ticket information
self.type("#buy-name","ticket1")
self.type("#buy-quantity","1")
# click buy button
self.click('input[id="btn-buy-submit"]')
# make sure it gives proper success message
self.assert_element("#buyMessage")
self.assert_text("Purchase successful", "#buyMessage")
| 41.732601
| 147
| 0.666111
| 1,531
| 11,393
| 4.854344
| 0.136512
| 0.044403
| 0.075484
| 0.056512
| 0.763321
| 0.738832
| 0.722013
| 0.705194
| 0.689586
| 0.665501
| 0
| 0.027681
| 0.21996
| 11,393
| 272
| 148
| 41.886029
| 0.808597
| 0.25384
| 0
| 0.659722
| 1
| 0.034722
| 0.373497
| 0.166941
| 0
| 0
| 0
| 0
| 0.180556
| 1
| 0.069444
| false
| 0.034722
| 0.041667
| 0
| 0.118056
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9d59e7bfc3c035967a383f3bd8b1017571d9a967
| 143
|
py
|
Python
|
douyinspider/utils/__init__.py
|
MisterZhouZhou/pythonThreeSpider
|
0e120350402f690158c89b7431f243cb462ae12f
|
[
"Apache-2.0"
] | 3
|
2019-11-05T01:00:05.000Z
|
2021-03-16T03:56:46.000Z
|
douyinspider/utils/__init__.py
|
bingwin/pythonThreeSpider
|
0e120350402f690158c89b7431f243cb462ae12f
|
[
"Apache-2.0"
] | null | null | null |
douyinspider/utils/__init__.py
|
bingwin/pythonThreeSpider
|
0e120350402f690158c89b7431f243cb462ae12f
|
[
"Apache-2.0"
] | 1
|
2020-05-16T12:45:36.000Z
|
2020-05-16T12:45:36.000Z
|
import urllib3
# 忽略SSL认证移除警告⚠️
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
from douyinspider.utils.fetch import fetch
| 23.833333
| 67
| 0.86014
| 16
| 143
| 7.75
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022556
| 0.06993
| 143
| 5
| 68
| 28.6
| 0.894737
| 0.090909
| 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
|
19bde78e584c6eccc5dd9b4db9cce5e1afc66280
| 322
|
py
|
Python
|
todoapp/WebClient/views.py
|
ClementCastel/Django_ToDoApp
|
3bb6910f99a2d8e0166dd246e08b3f6e584ee1e4
|
[
"MIT"
] | null | null | null |
todoapp/WebClient/views.py
|
ClementCastel/Django_ToDoApp
|
3bb6910f99a2d8e0166dd246e08b3f6e584ee1e4
|
[
"MIT"
] | 6
|
2021-03-19T02:51:50.000Z
|
2022-02-10T09:33:18.000Z
|
todoapp/WebClient/views.py
|
Th3Sword290/Django_ToDoApp
|
3bb6910f99a2d8e0166dd246e08b3f6e584ee1e4
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
# Create your views here.
def login (request):
return render(request, 'webclient/login.html', {})
def tasks (request):
return render(request, 'webclient/add.html', {})
def static (request, file):
print(file)
return render(request, 'webclient/'+file, {}, content_type="text/css")
| 24.769231
| 71
| 0.720497
| 42
| 322
| 5.5
| 0.571429
| 0.155844
| 0.246753
| 0.363636
| 0.30303
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124224
| 322
| 13
| 71
| 24.769231
| 0.819149
| 0.071429
| 0
| 0
| 0
| 0
| 0.187919
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0.125
| 0.25
| 0.875
| 0.125
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
19d284013862f7768cd08bc54ab545890f66a78d
| 23
|
py
|
Python
|
chapter-1-introduction/example1.py
|
harshith199/springcis-5755
|
443cf03e390bcf0c5dbe777c5c33cd827c3e3fb7
|
[
"MIT"
] | null | null | null |
chapter-1-introduction/example1.py
|
harshith199/springcis-5755
|
443cf03e390bcf0c5dbe777c5c33cd827c3e3fb7
|
[
"MIT"
] | null | null | null |
chapter-1-introduction/example1.py
|
harshith199/springcis-5755
|
443cf03e390bcf0c5dbe777c5c33cd827c3e3fb7
|
[
"MIT"
] | null | null | null |
print("hello harshith")
| 23
| 23
| 0.782609
| 3
| 23
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 23
| 1
| 23
| 23
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0.583333
| 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
|
19d7aa63ce022483d15acd70aff809bfaaeab9fd
| 442
|
py
|
Python
|
realML/kernel/__init__.py
|
gittea-rpi/realML
|
77d713bbe00da02f2c80d5f8b486f041de650253
|
[
"Apache-2.0"
] | 3
|
2019-02-07T09:00:32.000Z
|
2019-12-09T13:28:57.000Z
|
realML/kernel/__init__.py
|
gittea-rpi/realML
|
77d713bbe00da02f2c80d5f8b486f041de650253
|
[
"Apache-2.0"
] | 2
|
2022-03-01T00:08:56.000Z
|
2022-03-14T21:30:03.000Z
|
realML/kernel/__init__.py
|
gittea-rpi/realML
|
77d713bbe00da02f2c80d5f8b486f041de650253
|
[
"Apache-2.0"
] | null | null | null |
from pkg_resources import get_distribution
__author__ = 'ICSI'
__version__ = get_distribution('realML').version
from .TensorMachinesBinaryClassification import TensorMachinesBinaryClassification
from .RFMPreconditionedPolynomialKRRSolver import RFMPreconditionedPolynomialKRR
from .TensorMachinesRegularizedLeastSquares import TensorMachinesRegularizedLeastSquares
from .RFMPreconditionedGaussianKRRSolver import RFMPreconditionedGaussianKRR
| 55.25
| 88
| 0.911765
| 29
| 442
| 13.517241
| 0.551724
| 0.076531
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 442
| 7
| 89
| 63.142857
| 0.942308
| 0
| 0
| 0
| 0
| 0
| 0.022624
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.714286
| 0
| 0.714286
| 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
|
19e4ff8025a1aa09e9acf7cec29e08df040e6011
| 186
|
py
|
Python
|
front_edit/apps.py
|
hwms/django-front-edit
|
f8eed7607e13334448c4ac7c5c0504018763cf8e
|
[
"BSD-3-Clause"
] | null | null | null |
front_edit/apps.py
|
hwms/django-front-edit
|
f8eed7607e13334448c4ac7c5c0504018763cf8e
|
[
"BSD-3-Clause"
] | null | null | null |
front_edit/apps.py
|
hwms/django-front-edit
|
f8eed7607e13334448c4ac7c5c0504018763cf8e
|
[
"BSD-3-Clause"
] | null | null | null |
from django.apps import AppConfig
class FrontEditBackendConfig(AppConfig):
name = 'front_edit'
verbose_name = "Front Edit"
def ready(self):
from . import settings
| 18.6
| 40
| 0.698925
| 21
| 186
| 6.095238
| 0.714286
| 0.140625
| 0.203125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225806
| 186
| 9
| 41
| 20.666667
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0.107527
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
c239376032cc119e7f88c1060e47f8668894ed26
| 789
|
py
|
Python
|
nuploader1/tests/test_models.py
|
naritotakizawa/nuploader1
|
21e3a9893b2b379e63b928ebc04db51b53442a9b
|
[
"MIT"
] | 3
|
2020-03-16T20:50:14.000Z
|
2020-12-19T23:12:41.000Z
|
nuploader1/tests/test_models.py
|
naritotakizawa/nuploader1
|
21e3a9893b2b379e63b928ebc04db51b53442a9b
|
[
"MIT"
] | 5
|
2021-03-30T13:10:23.000Z
|
2021-09-22T18:48:10.000Z
|
nuploader1/tests/test_models.py
|
naritotakizawa/nuploader1
|
21e3a9893b2b379e63b928ebc04db51b53442a9b
|
[
"MIT"
] | 2
|
2020-03-27T01:55:27.000Z
|
2020-12-07T13:51:39.000Z
|
from django.test import TestCase
from nuploader1.models import Composite
class TestComposite(TestCase):
def test_str_if_dir(self):
composite = Composite.objects.create(name='hello', is_dir=True)
self.assertEqual(str(composite), '1 - hello/')
def test_str_if_file(self):
composite = Composite.objects.create(name='hello', is_dir=False)
self.assertEqual(str(composite), '1 - hello')
def test_get_display_name_if_dir(self):
composite = Composite.objects.create(name='hello', is_dir=True)
self.assertEqual(composite.get_display_name(), 'hello/')
def test_get_display_name_if_file(self):
composite = Composite.objects.create(name='hello', is_dir=False)
self.assertEqual(composite.get_display_name(), 'hello')
| 37.571429
| 72
| 0.713561
| 103
| 789
| 5.23301
| 0.262136
| 0.100186
| 0.163265
| 0.215213
| 0.810761
| 0.810761
| 0.810761
| 0.64193
| 0.549165
| 0.549165
| 0
| 0.004559
| 0.166033
| 789
| 21
| 73
| 37.571429
| 0.81459
| 0
| 0
| 0.266667
| 0
| 0
| 0.063291
| 0
| 0
| 0
| 0
| 0
| 0.266667
| 1
| 0.266667
| false
| 0
| 0.133333
| 0
| 0.466667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 0
| 0
|
0
| 5
|
dfe8fa68044c990bc30d8844661ab8094d95de79
| 52
|
py
|
Python
|
services/game/db/__init__.py
|
chiselko6/xogame
|
1e6a2dc0d61baed55fcf8787bace8d6e21809fbc
|
[
"MIT"
] | null | null | null |
services/game/db/__init__.py
|
chiselko6/xogame
|
1e6a2dc0d61baed55fcf8787bace8d6e21809fbc
|
[
"MIT"
] | null | null | null |
services/game/db/__init__.py
|
chiselko6/xogame
|
1e6a2dc0d61baed55fcf8787bace8d6e21809fbc
|
[
"MIT"
] | null | null | null |
from .base import Base
from .models import Eventlog
| 17.333333
| 28
| 0.807692
| 8
| 52
| 5.25
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 2
| 29
| 26
| 0.954545
| 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
|
5f12baeeeffda1ec0cc4a41d3b4dc389dbbb5622
| 85
|
py
|
Python
|
latestInstance/apps/latestInstance_claim/admin.py
|
sam-moshenko/Latest-Instance
|
d41091386c13f05969a0bcde2dc2b53344b00b8a
|
[
"Apache-2.0"
] | null | null | null |
latestInstance/apps/latestInstance_claim/admin.py
|
sam-moshenko/Latest-Instance
|
d41091386c13f05969a0bcde2dc2b53344b00b8a
|
[
"Apache-2.0"
] | null | null | null |
latestInstance/apps/latestInstance_claim/admin.py
|
sam-moshenko/Latest-Instance
|
d41091386c13f05969a0bcde2dc2b53344b00b8a
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from .models import Node
admin.site.register(Node)
| 17
| 32
| 0.811765
| 13
| 85
| 5.307692
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 85
| 4
| 33
| 21.25
| 0.92
| 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
|
a06ebe87dfa9f6493f215161731fdc9198233a7f
| 126
|
py
|
Python
|
mmic_pdb/models/__init__.py
|
MolSSI/mmic_pdb
|
09d8c2cb13448d33bfd533d244a5e730da4acffb
|
[
"BSD-3-Clause"
] | null | null | null |
mmic_pdb/models/__init__.py
|
MolSSI/mmic_pdb
|
09d8c2cb13448d33bfd533d244a5e730da4acffb
|
[
"BSD-3-Clause"
] | null | null | null |
mmic_pdb/models/__init__.py
|
MolSSI/mmic_pdb
|
09d8c2cb13448d33bfd533d244a5e730da4acffb
|
[
"BSD-3-Clause"
] | null | null | null |
from . import input
from . import output
from .input import *
from .output import *
__all__ = input.__all__ + output.__all__
| 18
| 40
| 0.746032
| 17
| 126
| 4.823529
| 0.294118
| 0.243902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174603
| 126
| 6
| 41
| 21
| 0.788462
| 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
|
a08326c6d45f8bada82c1310e36770bf1cd40a7f
| 100
|
py
|
Python
|
image_generator/process_pcba.py
|
amarschn/component_classifier_microservice
|
26c7901e500089c77243015288bf73dbf15a8be1
|
[
"MIT"
] | null | null | null |
image_generator/process_pcba.py
|
amarschn/component_classifier_microservice
|
26c7901e500089c77243015288bf73dbf15a8be1
|
[
"MIT"
] | 3
|
2021-06-08T21:31:32.000Z
|
2022-01-13T01:40:54.000Z
|
image_generator/process_pcba.py
|
amarschn/component_classifier_microservice
|
26c7901e500089c77243015288bf73dbf15a8be1
|
[
"MIT"
] | null | null | null |
"""
Playing around with processing a PCBA STEP files.
"""
from step_to_image import create_images
| 14.285714
| 49
| 0.77
| 15
| 100
| 4.933333
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 100
| 6
| 50
| 16.666667
| 0.880952
| 0.49
| 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
|
a0a1c15a192b01b87cbe6cf479c906369cdcefe6
| 39
|
py
|
Python
|
complaint/__init__.py
|
PrynsTag/oneBarangay
|
6a8d56003d85b8385e91f5c5d81208619023c1ee
|
[
"Apache-2.0"
] | null | null | null |
complaint/__init__.py
|
PrynsTag/oneBarangay
|
6a8d56003d85b8385e91f5c5d81208619023c1ee
|
[
"Apache-2.0"
] | 96
|
2021-08-28T12:37:02.000Z
|
2022-03-23T04:25:12.000Z
|
complaint/__init__.py
|
PrynsTag/oneBarangay
|
6a8d56003d85b8385e91f5c5d81208619023c1ee
|
[
"Apache-2.0"
] | null | null | null |
"""This is init file for complaint."""
| 19.5
| 38
| 0.666667
| 6
| 39
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 39
| 1
| 39
| 39
| 0.787879
| 0.820513
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
262da5d73256a41fded78bf021bdd68b134b4284
| 75
|
py
|
Python
|
cap8/ex4.py
|
felipesch92/livroPython
|
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
|
[
"MIT"
] | null | null | null |
cap8/ex4.py
|
felipesch92/livroPython
|
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
|
[
"MIT"
] | null | null | null |
cap8/ex4.py
|
felipesch92/livroPython
|
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
|
[
"MIT"
] | null | null | null |
def area(a, b):
return (a * b) / 2
print(area(6, 9))
print(area(5, 8))
| 15
| 22
| 0.533333
| 16
| 75
| 2.5
| 0.6875
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086207
| 0.226667
| 75
| 4
| 23
| 18.75
| 0.603448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
|
0
| 5
|
262f94f7100518128b65290d4a5b391f2875680a
| 103
|
py
|
Python
|
app/util/__init__.py
|
kirimemail/spam-classifier
|
47f23b869c5bfe463b17fe2559c66f5256b079bc
|
[
"MIT"
] | 4
|
2018-08-14T02:06:15.000Z
|
2020-09-18T10:53:19.000Z
|
app/util/__init__.py
|
kirimemail/spam-classifier
|
47f23b869c5bfe463b17fe2559c66f5256b079bc
|
[
"MIT"
] | null | null | null |
app/util/__init__.py
|
kirimemail/spam-classifier
|
47f23b869c5bfe463b17fe2559c66f5256b079bc
|
[
"MIT"
] | null | null | null |
from .enum import TaskStatus, LabelSwitcher, AvailableMethod
from .encoder import JsonEncoder, as_enum
| 34.333333
| 60
| 0.84466
| 12
| 103
| 7.166667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106796
| 103
| 2
| 61
| 51.5
| 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
|
264d02e297c229e6167214eb108781a1ff5798a3
| 5,507
|
py
|
Python
|
src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/_help.py
|
openapi-env-test/cli-extension-az
|
f398750226924d878ca80ea1c1865f57c4a907be
|
[
"MIT"
] | null | null | null |
src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/_help.py
|
openapi-env-test/cli-extension-az
|
f398750226924d878ca80ea1c1865f57c4a907be
|
[
"MIT"
] | null | null | null |
src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/_help.py
|
openapi-env-test/cli-extension-az
|
f398750226924d878ca80ea1c1865f57c4a907be
|
[
"MIT"
] | null | null | null |
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=too-many-lines
# pylint: disable=line-too-long
from knack.help_files import helps # pylint: disable=unused-import
helps['managed-network managed-networks'] = """
type: group
short-summary: managed-network managed-networks
"""
helps['managed-network managed-networks list'] = """
type: command
short-summary: The ListBySubscription ManagedNetwork operation retrieves all the Managed Network Resources in the current subscription in a paginated format.
"""
helps['managed-network managed-networks show'] = """
type: command
short-summary: The Get ManagedNetworks operation gets a Managed Network Resource, specified by the resource group and Managed Network name
"""
helps['managed-network managed-networks create'] = """
type: command
short-summary: The Put ManagedNetworks operation creates/updates a Managed Network Resource, specified by resource group and Managed Network name
"""
helps['managed-network managed-networks update'] = """
type: command
short-summary: Updates the specified Managed Network resource tags.
"""
helps['managed-network managed-networks delete'] = """
type: command
short-summary: The Delete ManagedNetworks operation deletes a Managed Network Resource, specified by the resource group and Managed Network name
"""
helps['managed-network scope-assignments'] = """
type: group
short-summary: managed-network scope-assignments
"""
helps['managed-network scope-assignments list'] = """
type: command
short-summary: Get the specified scope assignment.
"""
helps['managed-network scope-assignments show'] = """
type: command
short-summary: Get the specified scope assignment.
"""
helps['managed-network scope-assignments create'] = """
type: command
short-summary: Creates a scope assignment.
"""
helps['managed-network scope-assignments update'] = """
type: command
short-summary: Creates a scope assignment.
"""
helps['managed-network scope-assignments delete'] = """
type: command
short-summary: Deletes a scope assignment.
"""
helps['managed-network managed-network-groups'] = """
type: group
short-summary: managed-network managed-network-groups
"""
helps['managed-network managed-network-groups list'] = """
type: command
short-summary: The ListByManagedNetwork ManagedNetworkGroup operation retrieves all the Managed Network Groups in a specified Managed Networks in a paginated format.
"""
helps['managed-network managed-network-groups show'] = """
type: command
short-summary: The Get ManagedNetworkGroups operation gets a Managed Network Group specified by the resource group, Managed Network name, and group name
"""
helps['managed-network managed-network-groups create'] = """
type: command
short-summary: The Put ManagedNetworkGroups operation creates or updates a Managed Network Group resource
"""
helps['managed-network managed-network-groups update'] = """
type: command
short-summary: The Put ManagedNetworkGroups operation creates or updates a Managed Network Group resource
"""
helps['managed-network managed-network-groups delete'] = """
type: command
short-summary: The Delete ManagedNetworkGroups operation deletes a Managed Network Group specified by the resource group, Managed Network name, and group name
"""
helps['managed-network managed-network-peering-policies'] = """
type: group
short-summary: managed-network managed-network-peering-policies
"""
helps['managed-network managed-network-peering-policies list'] = """
type: command
short-summary: The ListByManagedNetwork PeeringPolicies operation retrieves all the Managed Network Peering Policies in a specified Managed Network, in a paginated format.
"""
helps['managed-network managed-network-peering-policies show'] = """
type: command
short-summary: The Get ManagedNetworkPeeringPolicies operation gets a Managed Network Peering Policy resource, specified by the resource group, Managed Network name, and peering policy name
"""
helps['managed-network managed-network-peering-policies create'] = """
type: command
short-summary: The Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy
"""
helps['managed-network managed-network-peering-policies update'] = """
type: command
short-summary: The Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy
"""
helps['managed-network managed-network-peering-policies delete'] = """
type: command
short-summary: The Delete ManagedNetworkPeeringPolicies operation deletes a Managed Network Peering Policy, specified by the resource group, Managed Network name, and peering policy name
"""
helps['managed-network operations'] = """
type: group
short-summary: managed-network operations
"""
helps['managed-network operations list'] = """
type: command
short-summary: Lists all of the available MNC operations.
"""
| 39.056738
| 195
| 0.705284
| 618
| 5,507
| 6.283172
| 0.147249
| 0.245171
| 0.127221
| 0.124388
| 0.810713
| 0.703837
| 0.606747
| 0.483904
| 0.436003
| 0.409735
| 0
| 0.000219
| 0.17051
| 5,507
| 140
| 196
| 39.335714
| 0.849825
| 0.079898
| 0
| 0.571429
| 0
| 0.095238
| 0.884913
| 0.100447
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.009524
| 0
| 0.009524
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2661babea326cfdf3e67f19f5ab7b09dd088af11
| 55
|
py
|
Python
|
ALLCools/mcds/__init__.py
|
lhqing/ALLCools
|
8f3708697a5ce57a53f3540b953079ba7fbef278
|
[
"MIT"
] | 5
|
2019-07-16T17:27:15.000Z
|
2022-01-14T19:12:27.000Z
|
ALLCools/mcds/__init__.py
|
lhqing/ALLCools
|
8f3708697a5ce57a53f3540b953079ba7fbef278
|
[
"MIT"
] | 12
|
2019-10-17T19:34:43.000Z
|
2022-03-23T16:04:18.000Z
|
ALLCools/mcds/__init__.py
|
lhqing/ALLCools
|
8f3708697a5ce57a53f3540b953079ba7fbef278
|
[
"MIT"
] | 4
|
2019-10-18T23:43:48.000Z
|
2022-02-12T04:12:26.000Z
|
from .mcds import MCDS
from .region_ds import RegionDS
| 18.333333
| 31
| 0.818182
| 9
| 55
| 4.888889
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 55
| 2
| 32
| 27.5
| 0.93617
| 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
|
26638b6d14f65d7c0f10fd45631fd29117026a10
| 20
|
py
|
Python
|
prototype/test/pythonvm_book/test_in.py
|
zoloypzuo/ZeloPy
|
43d9242a509737fe1bb66deba73aa9e749b53c62
|
[
"MIT"
] | null | null | null |
prototype/test/pythonvm_book/test_in.py
|
zoloypzuo/ZeloPy
|
43d9242a509737fe1bb66deba73aa9e749b53c62
|
[
"MIT"
] | null | null | null |
prototype/test/pythonvm_book/test_in.py
|
zoloypzuo/ZeloPy
|
43d9242a509737fe1bb66deba73aa9e749b53c62
|
[
"MIT"
] | null | null | null |
l = []
print 1 in l
| 6.666667
| 12
| 0.5
| 5
| 20
| 2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.35
| 20
| 2
| 13
| 10
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
268541d45d548aa719aba69a4adac5780242e178
| 52
|
py
|
Python
|
clean_data.py
|
dkcira/usctest1
|
196250a31768392edf4558963cc379339caa7a6c
|
[
"MIT"
] | null | null | null |
clean_data.py
|
dkcira/usctest1
|
196250a31768392edf4558963cc379339caa7a6c
|
[
"MIT"
] | null | null | null |
clean_data.py
|
dkcira/usctest1
|
196250a31768392edf4558963cc379339caa7a6c
|
[
"MIT"
] | null | null | null |
print("clean up")
print("export clean data as csv")
| 17.333333
| 33
| 0.711538
| 9
| 52
| 4.111111
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134615
| 52
| 2
| 34
| 26
| 0.822222
| 0
| 0
| 0
| 0
| 0
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
cd0546c6cb261035326b8d140cffcfed773de01f
| 242
|
py
|
Python
|
overcooked_ai_py/data/layouts/__init__.py
|
ShortFox/overcooked_ai
|
50eb7d5bb25f61ac4c0621b76c9f7888c9e68f20
|
[
"MIT"
] | 4
|
2021-07-05T15:06:53.000Z
|
2021-07-05T15:17:31.000Z
|
overcooked_ai_py/data/layouts/__init__.py
|
wwxFromTju/overcooked_ai
|
644cadbe1f90eb8ef1c6a20e7fc34988ea1d7902
|
[
"MIT"
] | null | null | null |
overcooked_ai_py/data/layouts/__init__.py
|
wwxFromTju/overcooked_ai
|
644cadbe1f90eb8ef1c6a20e7fc34988ea1d7902
|
[
"MIT"
] | null | null | null |
import os
from overcooked_ai_py.utils import load_dict_from_file
LAYOUTS_DIR = os.path.dirname(os.path.abspath(__file__))
def read_layout_dict(layout_name):
return load_dict_from_file(os.path.join(LAYOUTS_DIR, layout_name + ".layout"))
| 30.25
| 82
| 0.809917
| 40
| 242
| 4.45
| 0.525
| 0.101124
| 0.134831
| 0.179775
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 242
| 7
| 83
| 34.571429
| 0.809091
| 0
| 0
| 0
| 0
| 0
| 0.028926
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0.2
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
cd22768e1cbf5b4c20771249b83bdb1ec62afa83
| 4,190
|
py
|
Python
|
Main.py
|
AgraDev101/Indian-PC-Price-scraping
|
512682512c513c6418096ddb978df5461cc71680
|
[
"MIT"
] | 10
|
2020-05-14T13:35:10.000Z
|
2021-09-29T13:01:17.000Z
|
Main.py
|
AgraDev101/Indian-PC-Price-scraping
|
512682512c513c6418096ddb978df5461cc71680
|
[
"MIT"
] | null | null | null |
Main.py
|
AgraDev101/Indian-PC-Price-scraping
|
512682512c513c6418096ddb978df5461cc71680
|
[
"MIT"
] | 3
|
2020-05-14T14:26:11.000Z
|
2020-05-23T08:34:07.000Z
|
from bs4 import BeautifulSoup
import requests
import io
import pandas as pd
from fake_useragent import UserAgent
from mdcomputers_data import MD_CPU
from mdcomputers_data import MD_GPU
from mdcomputers_data import MD_RAM
from prime_data import Prime_CPU
from prime_data import Prime_GPU
from prime_data import Prime_RAM
def prime_gpu(page_from, page_to):
print("\nscraping...")
Prime_GPU(page_from, page_to)
def prime_cpu(page_from, page_to):
print("\nscraping...")
Prime_CPU(page_from, page_to)
def prime_ram(page_from, page_to):
print("\nscraping...")
Prime_RAM(page_from, page_to)
def md_gpu(page_from, page_to):
print("\nscraping...")
MD_GPU(page_from, page_to)
def md_cpu(page_from, page_to):
print("\nscraping...")
MD_CPU(page_from, page_to)
def md_ram(page_from, page_to):
print("\nscraping...")
MD_RAM(page_from, page_to)
while True:
try:
site = int(input("Enter {} for MD Computer or {} for PrimeABGB: ".format("'1'", "'2'")))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
comp = int(input("Enter {} for CPU or {} for GPU or {} for RAM price list: ".format("'1'", "'2'", "'3'")))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
if (site == 1 and comp == 1):
print("\nMD Computer and CPU price selected")
while True:
try:
page_from = int(input("\nStarting page(e.g., 1 or 2 etc): "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
page_to = int(input("Upto page(e.g., 1 or 2 etc): "))
page_to += 1
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
md_cpu(page_from, page_to)
elif (site == 1 and comp == 2):
print("\nMD Computer and GPU price selected")
while True:
try:
page_from = int(input("\nStarting page(e.g., 1 or 2 etc): "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
page_to = int(input("Upto page(e.g., 1 or 2 etc): "))
page_to += 1
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
md_gpu(page_from, page_to)
elif (site == 1 and comp == 3):
print("\nMD Computer and RAM price selected")
while True:
try:
page_from = int(input("\nStarting page(e.g., 1 or 2 etc): "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
page_to = int(input("Upto page(e.g., 1 or 2 etc): "))
page_to += 1
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
md_ram(page_from, page_to)
elif (site == 2 and comp == 1):
print("\nPrimeABGB and CPU price selected")
while True:
try:
page_from = int(input("\nStarting page(e.g., 1 or 2 etc): "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
page_to = int(input("Upto page(e.g., 1 or 2 etc): "))
page_to += 1
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
prime_cpu(page_from, page_to)
elif (site == 2 and comp == 2):
print("\nPrimeABGB and GPU price selected")
while True:
try:
page_from = int(input("\nStarting page(e.g., 1 or 2 etc): "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
page_to = int(input("Upto page(e.g., 1 or 2 etc): "))
page_to += 1
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
prime_gpu(page_from, page_to)
elif (site == 2 and comp == 3):
print("\nPrimeABGB and RAM price selected")
while True:
try:
page_from = int(input("\nStarting page(e.g., 1 or 2 etc): "))
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
while True:
try:
page_to = int(input("Upto page(e.g., 1 or 2 etc): "))
page_to += 1
except ValueError:
print("Sorry, I didn't understand that.")
continue
else:
break
prime_ram(page_from, page_to)
else:
print("Nothing selected")
| 22.896175
| 108
| 0.660859
| 661
| 4,190
| 4.060514
| 0.096823
| 0.067064
| 0.080477
| 0.09389
| 0.860283
| 0.803279
| 0.744411
| 0.662817
| 0.662817
| 0.60693
| 0
| 0.014384
| 0.20358
| 4,190
| 183
| 109
| 22.896175
| 0.789931
| 0
| 0
| 0.736527
| 0
| 0
| 0.299213
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035928
| false
| 0
| 0.065868
| 0
| 0.101796
| 0.161677
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
cd364c0d77ce55fa9dd8cddd17c69f73c2219aae
| 326
|
py
|
Python
|
cartoview_project/cartoview_project/pre_settings.py
|
Amira-Mohiey/Sample_Map_viewer
|
fec63a2e246f6e41a5f5072628d7184078125dda
|
[
"BSD-2-Clause"
] | null | null | null |
cartoview_project/cartoview_project/pre_settings.py
|
Amira-Mohiey/Sample_Map_viewer
|
fec63a2e246f6e41a5f5072628d7184078125dda
|
[
"BSD-2-Clause"
] | 14
|
2017-10-25T13:03:26.000Z
|
2017-11-07T09:58:20.000Z
|
cartoview_project/cartoview_project/pre_settings.py
|
Amira-Mohiey/Sample_Map_viewer
|
fec63a2e246f6e41a5f5072628d7184078125dda
|
[
"BSD-2-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
# uncomment the following in windows and set the GEDAL_DIR
# GDAL_DIR = "path/to/gdal"
# os.environ["Path"] = GDAL_DIR + ";" + os.environ["Path"]
# os.environ["GEOS_LIBRARY_PATH"] = os.path.join(GDAL_DIR, "geos_c.dll")
# os.environ["GDAL_LIBRARY_PATH"] = os.path.join(GDAL_DIR, "gdal111.dll")
| 46.571429
| 73
| 0.690184
| 53
| 326
| 4.056604
| 0.45283
| 0.130233
| 0.12093
| 0.15814
| 0.260465
| 0.260465
| 0.260465
| 0
| 0
| 0
| 0
| 0.013889
| 0.116564
| 326
| 7
| 73
| 46.571429
| 0.732639
| 0.932515
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
cd96a26fde3f0aa594ce4db361d9c6e92b48607a
| 58
|
py
|
Python
|
scripts/batched_experiment/_util.py
|
alniniclas/junit-to-jmh-experiment
|
7351ce7aa172da6d1bb047b46667b027044593a4
|
[
"Apache-2.0"
] | null | null | null |
scripts/batched_experiment/_util.py
|
alniniclas/junit-to-jmh-experiment
|
7351ce7aa172da6d1bb047b46667b027044593a4
|
[
"Apache-2.0"
] | null | null | null |
scripts/batched_experiment/_util.py
|
alniniclas/junit-to-jmh-experiment
|
7351ce7aa172da6d1bb047b46667b027044593a4
|
[
"Apache-2.0"
] | null | null | null |
def clear_console_line():
print('\033[F\033[K', end='')
| 19.333333
| 31
| 0.637931
| 10
| 58
| 3.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 0.103448
| 58
| 2
| 32
| 29
| 0.557692
| 0
| 0
| 0
| 0
| 0
| 0.206897
| 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
|
f843706ae2cfc7b562d6e4d574c75b8bdbd19195
| 100
|
py
|
Python
|
ref/listcomprehension/evennumbers.py
|
skrymets/python-core-and-advanced
|
7cb486e9b9413d4cbb7fa67929d492094b2a3abb
|
[
"Apache-2.0"
] | 2
|
2019-04-13T14:10:38.000Z
|
2021-01-17T00:57:51.000Z
|
ref/listcomprehension/evennumbers.py
|
skrymets/python-core-and-advanced
|
7cb486e9b9413d4cbb7fa67929d492094b2a3abb
|
[
"Apache-2.0"
] | null | null | null |
ref/listcomprehension/evennumbers.py
|
skrymets/python-core-and-advanced
|
7cb486e9b9413d4cbb7fa67929d492094b2a3abb
|
[
"Apache-2.0"
] | 1
|
2020-02-20T15:44:36.000Z
|
2020-02-20T15:44:36.000Z
|
'''lst=[x for x in range(2,21,2)]
print(lst)'''
lst=[x for x in range(1,21) if x%2==0]
print(lst)
| 14.285714
| 38
| 0.58
| 25
| 100
| 2.32
| 0.44
| 0.137931
| 0.241379
| 0.275862
| 0.517241
| 0.517241
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 0.16
| 100
| 7
| 39
| 14.285714
| 0.583333
| 0.41
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 0
| 1
|
0
| 5
|
f88f18d3c0faea53df9b79aae619313b94ccfd5c
| 224
|
py
|
Python
|
ws/handler/event/appliance/thermostat/keep/setpoint.py
|
fabaff/automate-ws
|
a9442f287692787e3f253e1ff23758bec8f3902e
|
[
"MIT"
] | null | null | null |
ws/handler/event/appliance/thermostat/keep/setpoint.py
|
fabaff/automate-ws
|
a9442f287692787e3f253e1ff23758bec8f3902e
|
[
"MIT"
] | 1
|
2021-12-21T11:34:47.000Z
|
2021-12-21T11:34:47.000Z
|
ws/handler/event/appliance/thermostat/keep/setpoint.py
|
fabaff/automate-ws
|
a9442f287692787e3f253e1ff23758bec8f3902e
|
[
"MIT"
] | 1
|
2021-12-21T10:10:13.000Z
|
2021-12-21T10:10:13.000Z
|
import home
from ws.handler.event.appliance.thermostat.setpoint import Handler as Parent
class Handler(Parent):
KLASS = home.appliance.thermostat.presence.event.keep.setpoint.Event
LABEL = "Setpoint maintenance"
| 22.4
| 76
| 0.785714
| 28
| 224
| 6.285714
| 0.607143
| 0.215909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129464
| 224
| 9
| 77
| 24.888889
| 0.902564
| 0
| 0
| 0
| 0
| 0
| 0.089286
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f8a3d98d3617b8c775964cc81f28feaf0d420ddf
| 56
|
py
|
Python
|
hello_world.py
|
Calvinwen10/learning-python
|
79dfea74ac8a0ba87b099ad2b3fef3de1bc38699
|
[
"CC0-1.0"
] | null | null | null |
hello_world.py
|
Calvinwen10/learning-python
|
79dfea74ac8a0ba87b099ad2b3fef3de1bc38699
|
[
"CC0-1.0"
] | null | null | null |
hello_world.py
|
Calvinwen10/learning-python
|
79dfea74ac8a0ba87b099ad2b3fef3de1bc38699
|
[
"CC0-1.0"
] | null | null | null |
print("Hello World using Pyhton programming Language !")
| 56
| 56
| 0.803571
| 7
| 56
| 6.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 56
| 1
| 56
| 56
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0.824561
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
f8d274e8cad81b0b722dc039926823240a976cc0
| 2,680
|
py
|
Python
|
cesiumpy/widget.py
|
cksammons7/cesiumpy
|
0ffa7509fdac03644f0e2fb91385106c40284aa1
|
[
"Apache-2.0"
] | 62
|
2015-12-30T04:17:25.000Z
|
2022-02-09T04:26:24.000Z
|
cesiumpy/widget.py
|
cksammons7/cesiumpy
|
0ffa7509fdac03644f0e2fb91385106c40284aa1
|
[
"Apache-2.0"
] | 20
|
2016-01-19T10:07:21.000Z
|
2021-11-15T18:36:45.000Z
|
cesiumpy/widget.py
|
cksammons7/cesiumpy
|
0ffa7509fdac03644f0e2fb91385106c40284aa1
|
[
"Apache-2.0"
] | 33
|
2016-02-03T13:28:29.000Z
|
2022-02-26T13:14:41.000Z
|
#!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
from cesiumpy.base import _CesiumBase
class CesiumWidget(_CesiumBase):
"""
CesiumWidget
Parameters
----------
divid : str
id string used in div tag
width : str
width of div tag, should be provided as css format like "100%" or "100px"
height : str
height of div tag, should be provided as css format like "100%" or "100px"
clock : Clock, default new Clock()
The clock to use to control current time.
imageryProvider : ImageryProvider, default new BingMapsImageryProvider()
The imagery provider to serve as the base layer. If set to false, no imagery provider will be added.
terrainProvider : TerrainProvider, default new EllipsoidTerrainProvider()
The terrain provider.
skyBox : SkyBox
The skybox used to render the stars. When undefined, the default stars are used. If set to false, no skyBox, Sun, or Moon will be added.
skyAtmosphere : SkyAtmosphere
Blue sky, and the glow around the Earth's limb. Set to false to turn it off.
sceneMode : SceneMode, default SceneMode.SCENE3D
The initial scene mode.
scene3DOnly : bool, default False
When true, each geometry instance will only be rendered in 3D to save GPU memory.
orderIndependentTranslucency : bool, default True
If true and the configuration supports it, use order independent translucency.
mapProjection : MapProjection, default new GeographicProjection()
The map projection to use in 2D and Columbus View modesself.
globe : Globe, default new Globe(mapProjection.ellipsoid)
The globe to use in the scene. If set to false, no globe will be added.
useDefaultRenderLoop : bool, default True
True if this widget should control the render loop, false otherwise.
targetFrameRate : int
The target frame rate when using the default render loop.
showRenderLoopErrors : bool, default True
If true, this widget will automatically display an HTML panel to the user containing the error, if a render loop error occurs.
contextOptions : Object
Context and WebGL creation properties corresponding to options passed to Scene.
creditContainer : Element or str
The DOM element or ID that will contain the CreditDisplay. If not specified, the credits are added to the bottom of the widget itself.
terrainExaggeration : float, default 1.
A scalar used to exaggerate the terrain. Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
"""
pass
| 47.017544
| 165
| 0.719403
| 360
| 2,680
| 5.336111
| 0.480556
| 0.026028
| 0.020822
| 0.01874
| 0.094742
| 0.051015
| 0.051015
| 0.051015
| 0.051015
| 0.051015
| 0
| 0.008789
| 0.235821
| 2,680
| 56
| 166
| 47.857143
| 0.929199
| 0.884701
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
3e2821161c00ac74ae976524f3be83965ac6b0a7
| 128
|
py
|
Python
|
quantel/exceptions.py
|
RatherBland/Quantel-py
|
abb4ec3c1f72a7409aea3eb0a5e0f1ad5c6dbbe1
|
[
"MIT"
] | 37
|
2021-08-13T09:23:17.000Z
|
2021-12-15T17:25:05.000Z
|
quantel/exceptions.py
|
RatherBland/Quantel-py
|
abb4ec3c1f72a7409aea3eb0a5e0f1ad5c6dbbe1
|
[
"MIT"
] | 1
|
2021-08-24T05:51:08.000Z
|
2021-09-27T05:15:50.000Z
|
quantel/exceptions.py
|
RatherBland/Quantel-py
|
abb4ec3c1f72a7409aea3eb0a5e0f1ad5c6dbbe1
|
[
"MIT"
] | 2
|
2021-09-19T09:50:00.000Z
|
2021-10-31T18:21:09.000Z
|
class InvalidAPIKey(Exception):
pass
class GatewayError(Exception):
pass
class TooManyRequests(Exception):
pass
| 11.636364
| 33
| 0.734375
| 12
| 128
| 7.833333
| 0.5
| 0.414894
| 0.382979
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195313
| 128
| 10
| 34
| 12.8
| 0.912621
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
3e2e56c3cd52f2f81bd24b03c529b317f36e6fe5
| 95
|
py
|
Python
|
speakerbot/db/simpledb.py
|
akatrevorjay/speakerbot
|
a210d27a2752c5424924b02e917a46a7beb31edc
|
[
"MIT"
] | 2
|
2015-02-17T03:29:09.000Z
|
2015-05-06T16:41:08.000Z
|
speakerbot/db/simpledb.py
|
akatrevorjay/speakerbot
|
a210d27a2752c5424924b02e917a46a7beb31edc
|
[
"MIT"
] | 2
|
2016-06-24T13:03:41.000Z
|
2018-04-02T19:59:19.000Z
|
speakerbot/db/simpledb.py
|
akatrevorjay/speakerbot
|
a210d27a2752c5424924b02e917a46a7beb31edc
|
[
"MIT"
] | 4
|
2015-02-13T19:01:17.000Z
|
2018-08-31T18:33:52.000Z
|
def db_field(**options):
def _exec(client, *args, **kwargs):
pass
return _exec
| 11.875
| 39
| 0.6
| 12
| 95
| 4.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.263158
| 95
| 7
| 40
| 13.571429
| 0.771429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.25
| 0
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
3e5770e9107358c4cd553507bfeca4c53323aa48
| 105
|
py
|
Python
|
webviz_config/common_cache.py
|
AlexanderSemenyak/webviz-config
|
3602901f215033bddd484ea1c13013a8addaf012
|
[
"MIT"
] | 44
|
2019-04-07T18:46:00.000Z
|
2022-03-28T02:35:58.000Z
|
webviz_config/common_cache.py
|
AlexanderSemenyak/webviz-config
|
3602901f215033bddd484ea1c13013a8addaf012
|
[
"MIT"
] | 312
|
2019-03-29T11:49:53.000Z
|
2022-03-07T12:06:34.000Z
|
webviz_config/common_cache.py
|
AlexanderSemenyak/webviz-config
|
3602901f215033bddd484ea1c13013a8addaf012
|
[
"MIT"
] | 46
|
2019-03-29T07:23:16.000Z
|
2022-03-28T02:35:59.000Z
|
import flask_caching
CACHE = flask_caching.Cache(config={"CACHE_TYPE": "simple"})
CACHE.TIMEOUT = 3600
| 17.5
| 60
| 0.761905
| 14
| 105
| 5.5
| 0.642857
| 0.311688
| 0.441558
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042553
| 0.104762
| 105
| 5
| 61
| 21
| 0.776596
| 0
| 0
| 0
| 0
| 0
| 0.152381
| 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
|
e467979c741f3c8a15378a0d251e83470c4c203c
| 37
|
py
|
Python
|
tests/test_dataset.py
|
pofatu/pypofatu
|
6400183e2b44e626a40bcb27b5a66cdaf9b95963
|
[
"Apache-2.0"
] | null | null | null |
tests/test_dataset.py
|
pofatu/pypofatu
|
6400183e2b44e626a40bcb27b5a66cdaf9b95963
|
[
"Apache-2.0"
] | null | null | null |
tests/test_dataset.py
|
pofatu/pypofatu
|
6400183e2b44e626a40bcb27b5a66cdaf9b95963
|
[
"Apache-2.0"
] | null | null | null |
def test_Dataset(mocker):
pass
| 7.4
| 25
| 0.675676
| 5
| 37
| 4.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.243243
| 37
| 4
| 26
| 9.25
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
e46eb651f622e91dfddf57a51265eff8aff8959a
| 38
|
py
|
Python
|
tests/__init__.py
|
Yonimdo/rain_api
|
ca1a1ad656fa80e3c42baf2ad975ca71a5eed5f5
|
[
"BSD-3-Clause"
] | null | null | null |
tests/__init__.py
|
Yonimdo/rain_api
|
ca1a1ad656fa80e3c42baf2ad975ca71a5eed5f5
|
[
"BSD-3-Clause"
] | 2
|
2021-06-08T21:24:38.000Z
|
2021-09-08T01:58:42.000Z
|
tests/__init__.py
|
Yonimdo/rain_api
|
ca1a1ad656fa80e3c42baf2ad975ca71a5eed5f5
|
[
"BSD-3-Clause"
] | null | null | null |
"""Unit test package for rain_api."""
| 19
| 37
| 0.684211
| 6
| 38
| 4.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 38
| 1
| 38
| 38
| 0.757576
| 0.815789
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e4bb876c87056b9c5700a4b57cce023f6cfdd5b0
| 228
|
py
|
Python
|
tests/test-import.py
|
amrutha-p/pkwrap
|
9f474122d9eb8c5d7b8b074b29235b5f837da30d
|
[
"Apache-2.0"
] | 66
|
2020-08-04T13:51:53.000Z
|
2021-12-13T14:43:41.000Z
|
tests/test-import.py
|
amrutha-p/pkwrap
|
9f474122d9eb8c5d7b8b074b29235b5f837da30d
|
[
"Apache-2.0"
] | 21
|
2020-11-21T12:40:02.000Z
|
2022-03-17T09:20:11.000Z
|
tests/test-import.py
|
amrutha-p/pkwrap
|
9f474122d9eb8c5d7b8b074b29235b5f837da30d
|
[
"Apache-2.0"
] | 10
|
2020-08-19T01:50:32.000Z
|
2021-09-14T06:57:35.000Z
|
#!/usr/bin/env python3
# Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
# Written by Srikanth Madikeri <srikanth.madikeri@idiap.ch>
import torch
import pkwrap
print(dir(pkwrap))
print("Import successfull")
| 22.8
| 67
| 0.758772
| 32
| 228
| 5.40625
| 0.71875
| 0.080925
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024752
| 0.114035
| 228
| 9
| 68
| 25.333333
| 0.831683
| 0.640351
| 0
| 0
| 0
| 0
| 0.227848
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0.5
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 5
|
e4c1e9f46729ab899c90267e54f48f0723da77e3
| 65
|
py
|
Python
|
my_lambdata/test_function.py
|
vjmiyagi/lambdata-vjmiyagi
|
c59dcdd949081edc0163969530a207a632847e5c
|
[
"MIT"
] | null | null | null |
my_lambdata/test_function.py
|
vjmiyagi/lambdata-vjmiyagi
|
c59dcdd949081edc0163969530a207a632847e5c
|
[
"MIT"
] | null | null | null |
my_lambdata/test_function.py
|
vjmiyagi/lambdata-vjmiyagi
|
c59dcdd949081edc0163969530a207a632847e5c
|
[
"MIT"
] | null | null | null |
from my_lambdata.ds_utilities import enlarge
print(enlarge(9))
| 13
| 44
| 0.815385
| 10
| 65
| 5.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017241
| 0.107692
| 65
| 4
| 45
| 16.25
| 0.862069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 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
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
e4d01c2b53c90800fb0e91edc8266529ae040153
| 201
|
py
|
Python
|
arclet/edoves/builtin/event/network.py
|
ArcletProject/Edoves
|
b28423057ab765796d5299b5d8f98a0e8ce494dd
|
[
"MIT"
] | 2
|
2022-01-25T16:05:30.000Z
|
2022-02-12T18:33:39.000Z
|
arclet/edoves/builtin/event/network.py
|
ArcletProject/Edoves
|
b28423057ab765796d5299b5d8f98a0e8ce494dd
|
[
"MIT"
] | 4
|
2022-03-04T08:24:53.000Z
|
2022-03-23T15:22:26.000Z
|
arclet/edoves/builtin/event/network.py
|
ArcletProject/Edoves
|
b28423057ab765796d5299b5d8f98a0e8ce494dd
|
[
"MIT"
] | null | null | null |
from ...main.event import EdovesBasicEvent
from ..medium import DictMedium
class DockerOperate(EdovesBasicEvent):
medium: DictMedium
class DockerStart(EdovesBasicEvent):
medium: DictMedium
| 18.272727
| 42
| 0.791045
| 19
| 201
| 8.368421
| 0.526316
| 0.188679
| 0.402516
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139303
| 201
| 10
| 43
| 20.1
| 0.919075
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e4fbc3a6a853f02c66eacb8690224b240038e1cf
| 142
|
py
|
Python
|
server/events/exceptions.py
|
dragorhast/server
|
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
|
[
"MIT"
] | 5
|
2018-11-28T11:33:25.000Z
|
2022-03-27T12:50:02.000Z
|
server/events/exceptions.py
|
dragorhast/server
|
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
|
[
"MIT"
] | 124
|
2018-10-07T21:31:02.000Z
|
2019-03-26T11:51:00.000Z
|
server/events/exceptions.py
|
dragorhast/server
|
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
|
[
"MIT"
] | null | null | null |
class NoSuchListenerError(Exception):
pass
class NoSuchEventError(Exception):
pass
class InvalidHandlerError(Exception):
pass
| 12.909091
| 37
| 0.760563
| 12
| 142
| 9
| 0.5
| 0.361111
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176056
| 142
| 10
| 38
| 14.2
| 0.923077
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
90024e730fdb27328dbbabc4a31d8235f4c9761e
| 47,891
|
py
|
Python
|
src/idl/CosNotifyFilter/__init__.py
|
mguijarr/hapPyTango
|
2506c8e83d93fbd2c0a0115983489d59c74caa2f
|
[
"MIT"
] | 1
|
2020-10-28T16:57:36.000Z
|
2020-10-28T16:57:36.000Z
|
src/idl/CosNotifyFilter/__init__.py
|
mguijarr/hapPyTango
|
2506c8e83d93fbd2c0a0115983489d59c74caa2f
|
[
"MIT"
] | null | null | null |
src/idl/CosNotifyFilter/__init__.py
|
mguijarr/hapPyTango
|
2506c8e83d93fbd2c0a0115983489d59c74caa2f
|
[
"MIT"
] | null | null | null |
""" Module: IDL:omg.org/CosNotifyFilter:1.0
Automagically generated by:-
The ORB called Fnorb v1.1.Return.of.Fnorb
"""
_FNORB_ID = "IDL:omg.org/CosNotifyFilter:1.0"
# Fnorb modules.
import Fnorb.orb.CORBA
import Fnorb.orb.TypeManager
import Fnorb.orb.Util
# Alias: IDL:omg.org/CosNotifyFilter/ConstraintID:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/ConstraintID:1.0", "0000000000000003", None)
class ConstraintExp:
""" Struct: IDL:omg.org/CosNotifyFilter/ConstraintExp:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/ConstraintExp:1.0"
def __init__(self, _event_types, _constraint_expr):
""" Constructor. """
self.event_types = _event_types
self.constraint_expr = _constraint_expr
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.event_types, self.constraint_expr)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/ConstraintExp:1.0", "000000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F65787072000000001200000000", ConstraintExp)
# Alias: IDL:omg.org/CosNotifyFilter/ConstraintIDSeq:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/ConstraintIDSeq:1.0", "000000000000001300000060000000000000001500000050000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E7449443A312E30000000000000000D436F6E73747261696E744944000000000000000300000000", None)
# Alias: IDL:omg.org/CosNotifyFilter/ConstraintExpSeq:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/ConstraintExpSeq:1.0", "000000000000001300000170000000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F6578707200000000120000000000000000", None)
class ConstraintInfo:
""" Struct: IDL:omg.org/CosNotifyFilter/ConstraintInfo:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/ConstraintInfo:1.0"
def __init__(self, _constraint_expression, _constraint_id):
""" Constructor. """
self.constraint_expression = _constraint_expression
self.constraint_id = _constraint_id
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.constraint_expression, self.constraint_id)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/ConstraintInfo:1.0", "000000000000000F00000240000000000000002F49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E74496E666F3A312E3000000000000F436F6E73747261696E74496E666F00000000000200000016636F6E73747261696E745F65787072657373696F6E0000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F657870720000000012000000000000000E636F6E73747261696E745F69640000000000001500000050000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E7449443A312E30000000000000000D436F6E73747261696E7449440000000000000003", ConstraintInfo)
# Alias: IDL:omg.org/CosNotifyFilter/ConstraintInfoSeq:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/ConstraintInfoSeq:1.0", "000000000000001300000250000000000000000F00000240000000000000002F49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E74496E666F3A312E3000000000000F436F6E73747261696E74496E666F00000000000200000016636F6E73747261696E745F65787072657373696F6E0000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F657870720000000012000000000000000E636F6E73747261696E745F69640000000000001500000050000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E7449443A312E30000000000000000D436F6E73747261696E744944000000000000000300000000", None)
class MappingConstraintPair:
""" Struct: IDL:omg.org/CosNotifyFilter/MappingConstraintPair:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/MappingConstraintPair:1.0"
def __init__(self, _constraint_expression, _result_to_set):
""" Constructor. """
self.constraint_expression = _constraint_expression
self.result_to_set = _result_to_set
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.constraint_expression, self.result_to_set)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/MappingConstraintPair:1.0", "000000000000000F000001FC000000000000003649444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F4D617070696E67436F6E73747261696E74506169723A312E30000000000000164D617070696E67436F6E73747261696E74506169720000000000000200000016636F6E73747261696E745F65787072657373696F6E0000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F657870720000000012000000000000000E726573756C745F746F5F7365740000000000000B", MappingConstraintPair)
# Alias: IDL:omg.org/CosNotifyFilter/MappingConstraintPairSeq:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/MappingConstraintPairSeq:1.0", "00000000000000130000020C000000000000000F000001FC000000000000003649444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F4D617070696E67436F6E73747261696E74506169723A312E30000000000000164D617070696E67436F6E73747261696E74506169720000000000000200000016636F6E73747261696E745F65787072657373696F6E0000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F657870720000000012000000000000000E726573756C745F746F5F7365740000000000000B00000000", None)
class MappingConstraintInfo:
""" Struct: IDL:omg.org/CosNotifyFilter/MappingConstraintInfo:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/MappingConstraintInfo:1.0"
def __init__(self, _constraint_expression, _constraint_id, _value):
""" Constructor. """
self.constraint_expression = _constraint_expression
self.constraint_id = _constraint_id
self.value = _value
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.constraint_expression, self.constraint_id, self.value)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/MappingConstraintInfo:1.0", "000000000000000F00000260000000000000003649444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F4D617070696E67436F6E73747261696E74496E666F3A312E30000000000000164D617070696E67436F6E73747261696E74496E666F0000000000000300000016636F6E73747261696E745F65787072657373696F6E0000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F657870720000000012000000000000000E636F6E73747261696E745F69640000000000001500000050000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E7449443A312E30000000000000000D436F6E73747261696E74494400000000000000030000000676616C75650000000000000B", MappingConstraintInfo)
# Alias: IDL:omg.org/CosNotifyFilter/MappingConstraintInfoSeq:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/MappingConstraintInfoSeq:1.0", "000000000000001300000270000000000000000F00000260000000000000003649444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F4D617070696E67436F6E73747261696E74496E666F3A312E30000000000000164D617070696E67436F6E73747261696E74496E666F0000000000000300000016636F6E73747261696E745F65787072657373696F6E0000000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F657870720000000012000000000000000E636F6E73747261696E745F69640000000000001500000050000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E7449443A312E30000000000000000D436F6E73747261696E74494400000000000000030000000676616C75650000000000000B00000000", None)
# Alias: IDL:omg.org/CosNotifyFilter/CallbackID:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/CallbackID:1.0", "0000000000000003", None)
# Alias: IDL:omg.org/CosNotifyFilter/CallbackIDSeq:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/CallbackIDSeq:1.0", "000000000000001300000058000000000000001500000048000000000000002B49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F43616C6C6261636B49443A312E3000000000000B43616C6C6261636B494400000000000300000000", None)
class UnsupportedFilterableData(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0"
def __init__(self):
""" Constructor. """
return
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0", "000000000000001600000068000000000000003A49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F556E737570706F7274656446696C74657261626C65446174613A312E300000000000001A556E737570706F7274656446696C74657261626C654461746100000000000000", UnsupportedFilterableData)
class InvalidGrammar(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/InvalidGrammar:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/InvalidGrammar:1.0"
def __init__(self):
""" Constructor. """
return
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/InvalidGrammar:1.0", "000000000000001600000050000000000000002F49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F496E76616C69644772616D6D61723A312E3000000000000F496E76616C69644772616D6D6172000000000000", InvalidGrammar)
class InvalidConstraint(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/InvalidConstraint:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/InvalidConstraint:1.0"
def __init__(self, _constr):
""" Constructor. """
self.constr = _constr
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.constr,)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/InvalidConstraint:1.0", "0000000000000016000001CC000000000000003249444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F496E76616C6964436F6E73747261696E743A312E3000000000000012496E76616C6964436F6E73747261696E740000000000000100000007636F6E73747200000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F65787072000000001200000000", InvalidConstraint)
class DuplicateConstraintID(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/DuplicateConstraintID:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/DuplicateConstraintID:1.0"
def __init__(self, _id):
""" Constructor. """
self.id = _id
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.id,)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/DuplicateConstraintID:1.0", "0000000000000016000000C0000000000000003649444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F4475706C6963617465436F6E73747261696E7449443A312E30000000000000164475706C6963617465436F6E73747261696E7449440000000000000100000003696400000000001500000050000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E7449443A312E30000000000000000D436F6E73747261696E7449440000000000000003", DuplicateConstraintID)
class ConstraintNotFound(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/ConstraintNotFound:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/ConstraintNotFound:1.0"
def __init__(self, _id):
""" Constructor. """
self.id = _id
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.id,)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/ConstraintNotFound:1.0", "0000000000000016000000B8000000000000003349444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744E6F74466F756E643A312E30000000000013436F6E73747261696E744E6F74466F756E6400000000000100000003696400000000001500000050000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E7449443A312E30000000000000000D436F6E73747261696E7449440000000000000003", ConstraintNotFound)
class CallbackNotFound(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/CallbackNotFound:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/CallbackNotFound:1.0"
def __init__(self):
""" Constructor. """
return
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/CallbackNotFound:1.0", "000000000000001600000058000000000000003149444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F43616C6C6261636B4E6F74466F756E643A312E30000000000000001143616C6C6261636B4E6F74466F756E640000000000000000", CallbackNotFound)
class InvalidValue(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/InvalidValue:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/InvalidValue:1.0"
def __init__(self, _constr, _value):
""" Constructor. """
self.constr = _constr
self.value = _value
return
def __getinitargs__(self):
""" Return the constructor arguments for unpickling. """
return (self.constr, self.value)
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/InvalidValue:1.0", "0000000000000016000001D4000000000000002D49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F496E76616C696456616C75653A312E30000000000000000D496E76616C696456616C7565000000000000000200000007636F6E73747200000000000F00000160000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F436F6E73747261696E744578703A312E300000000000000E436F6E73747261696E74457870000000000000020000000C6576656E745F74797065730000000015000000DC000000000000002D49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970655365713A312E30000000000000000D4576656E7454797065536571000000000000001300000088000000000000000F00000078000000000000002A49444C3A6F6D672E6F72672F436F734E6F74696669636174696F6E2F4576656E74547970653A312E300000000000000A4576656E7454797065000000000000020000000C646F6D61696E5F6E616D650000000012000000000000000A747970655F6E616D6500000000000012000000000000000000000010636F6E73747261696E745F657870720000000012000000000000000676616C75650000000000000B", InvalidValue)
class Filter(Fnorb.orb.CORBA.Object):
""" Interface: IDL:omg.org/CosNotifyFilter/Filter:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/Filter:1.0"
def _get_constraint_grammar(self):
""" Attribute: IDL:omg.org/CosNotifyFilter/Filter/constraint_grammar:1.0 """
# Typecode for the attribute value.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_string)
# Create a request object.
request = self._create_request("_get_constraint_grammar", [], outputs, [])
# Make the request!
request.invoke()
# Return the attribute value.
return request.results()
def add_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/add_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintExpSeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintInfoSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidConstraint:1.0"))
# Create a request object.
request = self._create_request("add_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def modify_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/modify_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintIDSeq:1.0"))
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintInfoSeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidConstraint:1.0"))
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintNotFound:1.0"))
# Create a request object.
request = self._create_request("modify_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def get_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/get_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintIDSeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintInfoSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintNotFound:1.0"))
# Create a request object.
request = self._create_request("get_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def get_all_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/get_all_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintInfoSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("get_all_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def remove_all_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/remove_all_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("remove_all_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def destroy(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/destroy:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("destroy", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def match(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/match:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.TC_any)
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_boolean)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0"))
# Create a request object.
request = self._create_request("match", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def match_structured(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/match_structured:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotification/StructuredEvent:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_boolean)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0"))
# Create a request object.
request = self._create_request("match_structured", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def match_typed(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/match_typed:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotification/PropertySeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_boolean)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0"))
# Create a request object.
request = self._create_request("match_typed", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def attach_callback(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/attach_callback:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.TC_Object)
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/CallbackID:1.0"))
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("attach_callback", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def detach_callback(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/detach_callback:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/CallbackID:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/CallbackNotFound:1.0"))
# Create a request object.
request = self._create_request("detach_callback", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def get_callbacks(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/Filter/get_callbacks:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/CallbackIDSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("get_callbacks", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/Filter:1.0", "000000000000000E0000003B000000000000002749444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F46696C7465723A312E3000000000000746696C74657200", Filter)
class MappingFilter(Fnorb.orb.CORBA.Object):
""" Interface: IDL:omg.org/CosNotifyFilter/MappingFilter:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/MappingFilter:1.0"
def _get_constraint_grammar(self):
""" Attribute: IDL:omg.org/CosNotifyFilter/MappingFilter/constraint_grammar:1.0 """
# Typecode for the attribute value.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_string)
# Create a request object.
request = self._create_request("_get_constraint_grammar", [], outputs, [])
# Make the request!
request.invoke()
# Return the attribute value.
return request.results()
def _get_value_type(self):
""" Attribute: IDL:omg.org/CosNotifyFilter/MappingFilter/value_type:1.0 """
# Typecode for the attribute value.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_TypeCode)
# Create a request object.
request = self._create_request("_get_value_type", [], outputs, [])
# Make the request!
request.invoke()
# Return the attribute value.
return request.results()
def _get_default_value(self):
""" Attribute: IDL:omg.org/CosNotifyFilter/MappingFilter/default_value:1.0 """
# Typecode for the attribute value.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_any)
# Create a request object.
request = self._create_request("_get_default_value", [], outputs, [])
# Make the request!
request.invoke()
# Return the attribute value.
return request.results()
def add_mapping_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/add_mapping_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/MappingConstraintPairSeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/MappingConstraintInfoSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidConstraint:1.0"))
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidValue:1.0"))
# Create a request object.
request = self._create_request("add_mapping_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def modify_mapping_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/modify_mapping_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintIDSeq:1.0"))
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/MappingConstraintInfoSeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidConstraint:1.0"))
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidValue:1.0"))
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintNotFound:1.0"))
# Create a request object.
request = self._create_request("modify_mapping_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def get_mapping_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/get_mapping_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintIDSeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/MappingConstraintInfoSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/ConstraintNotFound:1.0"))
# Create a request object.
request = self._create_request("get_mapping_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def get_all_mapping_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/get_all_mapping_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/MappingConstraintInfoSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("get_all_mapping_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def remove_all_mapping_constraints(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/remove_all_mapping_constraints:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("remove_all_mapping_constraints", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def destroy(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/destroy:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("destroy", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def match(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/match:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.TC_any)
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_boolean)
outputs.append(Fnorb.orb.CORBA.TC_any)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0"))
# Create a request object.
request = self._create_request("match", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def match_structured(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/match_structured:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotification/StructuredEvent:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_boolean)
outputs.append(Fnorb.orb.CORBA.TC_any)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0"))
# Create a request object.
request = self._create_request("match_structured", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def match_typed(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/MappingFilter/match_typed:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotification/PropertySeq:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_boolean)
outputs.append(Fnorb.orb.CORBA.TC_any)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/UnsupportedFilterableData:1.0"))
# Create a request object.
request = self._create_request("match_typed", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/MappingFilter:1.0", "000000000000000E0000004A000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F4D617070696E6746696C7465723A312E300000000000000E4D617070696E6746696C74657200", MappingFilter)
class FilterFactory(Fnorb.orb.CORBA.Object):
""" Interface: IDL:omg.org/CosNotifyFilter/FilterFactory:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/FilterFactory:1.0"
def create_filter(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/FilterFactory/create_filter:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.TC_string)
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_Object)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidGrammar:1.0"))
# Create a request object.
request = self._create_request("create_filter", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def create_mapping_filter(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/FilterFactory/create_mapping_filter:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.TC_string)
inputs.append(Fnorb.orb.CORBA.TC_any)
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_Object)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/InvalidGrammar:1.0"))
# Create a request object.
request = self._create_request("create_mapping_filter", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/FilterFactory:1.0", "000000000000000E0000004A000000000000002E49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F46696C746572466163746F72793A312E300000000000000E46696C746572466163746F727900", FilterFactory)
# Alias: IDL:omg.org/CosNotifyFilter/FilterID:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/FilterID:1.0", "0000000000000003", None)
# Alias: IDL:omg.org/CosNotifyFilter/FilterIDSeq:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/FilterIDSeq:1.0", "000000000000001300000058000000000000001500000048000000000000002949444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F46696C74657249443A312E30000000000000000946696C7465724944000000000000000300000000", None)
class FilterNotFound(Fnorb.orb.CORBA.UserException):
""" Exception: IDL:omg.org/CosNotifyFilter/FilterNotFound:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/FilterNotFound:1.0"
def __init__(self):
""" Constructor. """
return
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/FilterNotFound:1.0", "000000000000001600000050000000000000002F49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F46696C7465724E6F74466F756E643A312E3000000000000F46696C7465724E6F74466F756E64000000000000", FilterNotFound)
class FilterAdmin(Fnorb.orb.CORBA.Object):
""" Interface: IDL:omg.org/CosNotifyFilter/FilterAdmin:1.0 """
_FNORB_ID = "IDL:omg.org/CosNotifyFilter/FilterAdmin:1.0"
def add_filter(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/FilterAdmin/add_filter:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.TC_Object)
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/FilterID:1.0"))
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("add_filter", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def remove_filter(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/FilterAdmin/remove_filter:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/FilterID:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/FilterNotFound:1.0"))
# Create a request object.
request = self._create_request("remove_filter", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def get_filter(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/FilterAdmin/get_filter:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/FilterID:1.0"))
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.TC_Object)
# Typecodes for user exceptions.
exceptions = []
exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/FilterNotFound:1.0"))
# Create a request object.
request = self._create_request("get_filter", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def get_all_filters(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/FilterAdmin/get_all_filters:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNotifyFilter/FilterIDSeq:1.0"))
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("get_all_filters", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
def remove_all_filters(self, *args, **kw):
""" Operation: IDL:omg.org/CosNotifyFilter/FilterAdmin/remove_all_filters:1.0 """
# Typecodes for 'in' and 'inout' parameters.
inputs = []
# Typecodes for the result, 'inout' and 'out' parameters.
outputs = []
# Typecodes for user exceptions.
exceptions = []
# Create a request object.
request = self._create_request("remove_all_filters", inputs, outputs, exceptions)
# Make the request!
apply(request.invoke, args, kw)
# Return the results.
return request.results()
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNotifyFilter/FilterAdmin:1.0", "000000000000000E00000044000000000000002C49444C3A6F6D672E6F72672F436F734E6F7469667946696C7465722F46696C74657241646D696E3A312E30000000000C46696C74657241646D696E00", FilterAdmin)
#############################################################################
| 48.374747
| 1,391
| 0.755319
| 3,904
| 47,891
| 9.14959
| 0.03791
| 0.02486
| 0.03729
| 0.096753
| 0.597564
| 0.594009
| 0.590286
| 0.543225
| 0.528443
| 0.500616
| 0
| 0.297164
| 0.152513
| 47,891
| 989
| 1,392
| 48.42366
| 0.582921
| 0.215322
| 0
| 0.670823
| 1
| 0
| 0.490445
| 0.481012
| 0
| 1
| 0
| 0
| 0
| 1
| 0.129676
| false
| 0
| 0.007481
| 0
| 0.346633
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
901a52d0ab238b42d2010712b624335410953da8
| 71
|
py
|
Python
|
tests/package1/subpackage1/module3.py
|
sizrailev/py2reqs
|
f09f8b808b310c27860a273660dedd50d3c7bea3
|
[
"MIT"
] | null | null | null |
tests/package1/subpackage1/module3.py
|
sizrailev/py2reqs
|
f09f8b808b310c27860a273660dedd50d3c7bea3
|
[
"MIT"
] | null | null | null |
tests/package1/subpackage1/module3.py
|
sizrailev/py2reqs
|
f09f8b808b310c27860a273660dedd50d3c7bea3
|
[
"MIT"
] | null | null | null |
# imported by module2 and subpackage1/__init__.py
def foo3():
pass
| 17.75
| 49
| 0.732394
| 10
| 71
| 4.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051724
| 0.183099
| 71
| 3
| 50
| 23.666667
| 0.775862
| 0.661972
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
9025970fae9a85feff6752feaaa088ee7e84fac7
| 64
|
py
|
Python
|
calculate.py
|
cu-swe4s-fall-2019/version-control-chzh1418
|
73a4692978813372624f2f548df2d0e175637cff
|
[
"MIT"
] | null | null | null |
calculate.py
|
cu-swe4s-fall-2019/version-control-chzh1418
|
73a4692978813372624f2f548df2d0e175637cff
|
[
"MIT"
] | null | null | null |
calculate.py
|
cu-swe4s-fall-2019/version-control-chzh1418
|
73a4692978813372624f2f548df2d0e175637cff
|
[
"MIT"
] | null | null | null |
from math_lib import div, add
print(div(9, 3))
print(add(9, 3))
| 16
| 29
| 0.6875
| 14
| 64
| 3.071429
| 0.642857
| 0.093023
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 0.140625
| 64
| 3
| 30
| 21.333333
| 0.709091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
9036b81e5ac16c3c3bdb4fa3e74f4503aa73e8ae
| 163
|
py
|
Python
|
language_features/data_types/type_conversion.py
|
PrasadHonrao/python-samples
|
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
|
[
"MIT"
] | 3
|
2018-08-20T13:00:01.000Z
|
2021-09-18T04:19:46.000Z
|
language_features/data_types/type_conversion.py
|
PrasadHonrao/python-samples
|
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
|
[
"MIT"
] | 1
|
2021-06-25T20:25:02.000Z
|
2021-08-19T22:44:31.000Z
|
language_features/data_types/type_conversion.py
|
PrasadHonrao/python-samples
|
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
|
[
"MIT"
] | 1
|
2021-09-18T23:51:20.000Z
|
2021-09-18T23:51:20.000Z
|
two_digit_number = input('Enter two digit number')
first_digit = two_digit_number[0]
second_digit = two_digit_number[1]
print(int(first_digit) + int(second_digit))
| 40.75
| 50
| 0.803681
| 27
| 163
| 4.481481
| 0.407407
| 0.264463
| 0.46281
| 0.31405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013423
| 0.08589
| 163
| 4
| 51
| 40.75
| 0.798658
| 0
| 0
| 0
| 0
| 0
| 0.134146
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5fb75c7053639b04532c683d4d9908b66700e60f
| 2,044
|
py
|
Python
|
django_project/sunlumo_mapserver/tests/test_SunlumoProjectRenderer.py
|
icrni/sunlumo
|
69f730d5adc42b71a24bcf27f1b8494b8d5dcec0
|
[
"MIT"
] | null | null | null |
django_project/sunlumo_mapserver/tests/test_SunlumoProjectRenderer.py
|
icrni/sunlumo
|
69f730d5adc42b71a24bcf27f1b8494b8d5dcec0
|
[
"MIT"
] | null | null | null |
django_project/sunlumo_mapserver/tests/test_SunlumoProjectRenderer.py
|
icrni/sunlumo
|
69f730d5adc42b71a24bcf27f1b8494b8d5dcec0
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from django.test import TestCase
from ..renderer import Renderer
class TestSunlumoProjectRenderer(TestCase):
def test_render_png(self):
sl_prj = Renderer('./sunlumo_mapserver/test_data/test_sunlumo.qgs')
image = sl_prj.render({
'bbox': [-1.5, -1.5, 1.5, 1.5], 'image_size': [512, 512],
'srs': 4326, 'image_format': 'png', 'bgcolor': [255, 255, 255],
'transparent': True,
'layers': ['polygons', 'lines', 'points', 'raster'],
'transparencies': [50, 0, 0, 25]
})
# might not be the best approach, but at least it's not a blank image
self.assertEqual(image.size(), 42426)
def test_render_png8(self):
sl_prj = Renderer('./sunlumo_mapserver/test_data/test_sunlumo.qgs')
image = sl_prj.render({
'bbox': [-1.5, -1.5, 1.5, 1.5], 'image_size': [512, 512],
'srs': 4326, 'image_format': 'png8', 'bgcolor': [255, 255, 255],
'transparent': True,
'layers': ['polygons', 'lines', 'points', 'raster'],
'transparencies': [50, 0, 0, 25]
})
# might not be the best approach, but at least it's not a blank image
self.assertEqual(image.size(), 13045)
def test_render_jpeg(self):
sl_prj = Renderer('./sunlumo_mapserver/test_data/test_sunlumo.qgs')
image = sl_prj.render({
'bbox': [-1.5, -1.5, 1.5, 1.5], 'image_size': [512, 512],
'srs': 4326, 'image_format': 'jpeg', 'bgcolor': [255, 255, 255],
'transparent': True,
'layers': ['polygons', 'lines', 'points', 'raster'],
'transparencies': [50, 0, 0, 25]
})
# might not be the best approach, but at least it's not a blank image
self.assertEqual(image.size(), 11547)
def test_render_missing_required_params(self):
sl_prj = Renderer('./sunlumo_mapserver/test_data/test_sunlumo.qgs')
with self.assertRaises(RuntimeError):
sl_prj.render({})
| 35.859649
| 77
| 0.571918
| 258
| 2,044
| 4.391473
| 0.263566
| 0.021183
| 0.023831
| 0.031774
| 0.774051
| 0.774051
| 0.774051
| 0.774051
| 0.774051
| 0.774051
| 0
| 0.078
| 0.266145
| 2,044
| 56
| 78
| 36.5
| 0.677333
| 0.110078
| 0
| 0.594595
| 0
| 0
| 0.259647
| 0.101433
| 0
| 0
| 0
| 0
| 0.108108
| 1
| 0.108108
| false
| 0
| 0.054054
| 0
| 0.189189
| 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
|
3984d5039f603fe7469f60e8bf7eda5b5b568a8f
| 65
|
py
|
Python
|
ch3/ricolisp/__init__.py
|
unoti/rico-lisp
|
367f625dcd086e207515bdeb5561763754a3531c
|
[
"MIT"
] | null | null | null |
ch3/ricolisp/__init__.py
|
unoti/rico-lisp
|
367f625dcd086e207515bdeb5561763754a3531c
|
[
"MIT"
] | null | null | null |
ch3/ricolisp/__init__.py
|
unoti/rico-lisp
|
367f625dcd086e207515bdeb5561763754a3531c
|
[
"MIT"
] | null | null | null |
from .token import Token
from .interpreter import LispInterpreter
| 32.5
| 40
| 0.861538
| 8
| 65
| 7
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107692
| 65
| 2
| 40
| 32.5
| 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
|
3986b51d81af5bbb1e2e219f2f88fe12280b8642
| 62
|
py
|
Python
|
Dinos/Spider-Large/SpiderL_Character_BP.SpiderL_Character_BP.py
|
cutec-chris/sce-PrimalEarth
|
4e7a45acffc57a455a7668af1a954004668c3085
|
[
"MIT"
] | null | null | null |
Dinos/Spider-Large/SpiderL_Character_BP.SpiderL_Character_BP.py
|
cutec-chris/sce-PrimalEarth
|
4e7a45acffc57a455a7668af1a954004668c3085
|
[
"MIT"
] | null | null | null |
Dinos/Spider-Large/SpiderL_Character_BP.SpiderL_Character_BP.py
|
cutec-chris/sce-PrimalEarth
|
4e7a45acffc57a455a7668af1a954004668c3085
|
[
"MIT"
] | null | null | null |
import sys,sce
class SpiderL_Character_BP(sce.Bosses):
pass
| 20.666667
| 39
| 0.806452
| 10
| 62
| 4.8
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112903
| 62
| 3
| 40
| 20.666667
| 0.872727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
3988888a18afdc8ac7c340fd2d4b8cdb49eaa6f3
| 76
|
py
|
Python
|
ivr_recording/settings/local.py
|
zevwl/ivr-recording-django
|
6b0528c9b3f992005df9391ac20c1ada8b86670b
|
[
"MIT"
] | 4
|
2021-01-30T03:37:40.000Z
|
2021-12-22T06:48:42.000Z
|
ivr_recording/settings/local.py
|
zevwl/ivr-recording-django
|
6b0528c9b3f992005df9391ac20c1ada8b86670b
|
[
"MIT"
] | 1
|
2022-01-12T15:11:27.000Z
|
2022-01-12T15:11:27.000Z
|
ivr_recording/settings/local.py
|
zevwl/ivr-recording-django
|
6b0528c9b3f992005df9391ac20c1ada8b86670b
|
[
"MIT"
] | 2
|
2020-11-02T15:05:56.000Z
|
2021-01-30T03:37:45.000Z
|
import environ
environ.Env.read_env('.env')
from .common import * # noqa
| 12.666667
| 29
| 0.710526
| 11
| 76
| 4.818182
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 76
| 5
| 30
| 15.2
| 0.828125
| 0.052632
| 0
| 0
| 0
| 0
| 0.057143
| 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
|
39ba141caaaf7cf1d2a4a21165ba9cb458b30f1a
| 185
|
py
|
Python
|
PycharmProjects/pythonexercicios/aulas anteriores/ex008.py
|
zmixtv1/cev-Python
|
edce04f86d943d9af070bf3c5e89575ff796ec9e
|
[
"MIT"
] | null | null | null |
PycharmProjects/pythonexercicios/aulas anteriores/ex008.py
|
zmixtv1/cev-Python
|
edce04f86d943d9af070bf3c5e89575ff796ec9e
|
[
"MIT"
] | null | null | null |
PycharmProjects/pythonexercicios/aulas anteriores/ex008.py
|
zmixtv1/cev-Python
|
edce04f86d943d9af070bf3c5e89575ff796ec9e
|
[
"MIT"
] | null | null | null |
n1 = float(input('Escreva um valor em metros:'))
cm = n1 * 100
mm = n1 * 1000
print(f'o valor em centimetro é: {cm} e o valor em milímetros é: {mm}')
print(f'o valor em metros é:{n1}')
| 30.833333
| 71
| 0.654054
| 37
| 185
| 3.27027
| 0.513514
| 0.231405
| 0.198347
| 0.198347
| 0.231405
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073333
| 0.189189
| 185
| 5
| 72
| 37
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0.605405
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.4
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
39cd43b03d87839de06d856fe113a3ee859205b3
| 166
|
py
|
Python
|
code_examples/tensorflow/ipuestimator/conftest.py
|
xihuaiwen/chinese_bert
|
631afbc76c40b0ac033be2186e717885246f446c
|
[
"MIT"
] | null | null | null |
code_examples/tensorflow/ipuestimator/conftest.py
|
xihuaiwen/chinese_bert
|
631afbc76c40b0ac033be2186e717885246f446c
|
[
"MIT"
] | null | null | null |
code_examples/tensorflow/ipuestimator/conftest.py
|
xihuaiwen/chinese_bert
|
631afbc76c40b0ac033be2186e717885246f446c
|
[
"MIT"
] | null | null | null |
from tensorflow.keras.datasets import cifar10
def pytest_sessionstart(session):
"""Load the cifar10 data at the start of the session"""
cifar10.load_data()
| 23.714286
| 59
| 0.753012
| 23
| 166
| 5.347826
| 0.695652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043165
| 0.162651
| 166
| 6
| 60
| 27.666667
| 0.841727
| 0.295181
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
39cf0becad3b31920117a43ac1ba0c638f5f9e07
| 26
|
py
|
Python
|
moviepy/version.py
|
jianbingchong/moviepy
|
a254bde9b7b86099e08e8c4b2465875afb63c5f7
|
[
"MIT"
] | null | null | null |
moviepy/version.py
|
jianbingchong/moviepy
|
a254bde9b7b86099e08e8c4b2465875afb63c5f7
|
[
"MIT"
] | null | null | null |
moviepy/version.py
|
jianbingchong/moviepy
|
a254bde9b7b86099e08e8c4b2465875afb63c5f7
|
[
"MIT"
] | 1
|
2019-09-19T12:26:50.000Z
|
2019-09-19T12:26:50.000Z
|
__version__ = "0.2.3.6.1"
| 13
| 25
| 0.615385
| 6
| 26
| 2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217391
| 0.115385
| 26
| 1
| 26
| 26
| 0.304348
| 0
| 0
| 0
| 0
| 0
| 0.346154
| 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
|
39d6a4141529bbab8ce714ef8067e282c3e37529
| 92
|
py
|
Python
|
utils/__init__.py
|
briansoule/ungoogled-chromium
|
7fc5d1a8d064c95f9895bf4ba8f6e1dddb028bc8
|
[
"BSD-3-Clause"
] | 3
|
2019-08-30T08:14:15.000Z
|
2019-08-30T08:14:59.000Z
|
utils/__init__.py
|
briansoule/ungoogled-chromium
|
7fc5d1a8d064c95f9895bf4ba8f6e1dddb028bc8
|
[
"BSD-3-Clause"
] | null | null | null |
utils/__init__.py
|
briansoule/ungoogled-chromium
|
7fc5d1a8d064c95f9895bf4ba8f6e1dddb028bc8
|
[
"BSD-3-Clause"
] | 1
|
2020-12-16T15:45:38.000Z
|
2020-12-16T15:45:38.000Z
|
# TODO: Figure out why this file is needed for Pylint to work when devutils doesn't need it
| 46
| 91
| 0.771739
| 18
| 92
| 3.944444
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195652
| 92
| 1
| 92
| 92
| 0.959459
| 0.967391
| 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
|
39dca16ee5f73cf097fc8c3d7dad59844c5e338c
| 110
|
py
|
Python
|
Modulo_3/semana 3/mensaje/practica4.py
|
AutodidactaMx/cocid_python
|
11628f465ff362807a692c79ede26bf30dd8e26a
|
[
"MIT"
] | null | null | null |
Modulo_3/semana 3/mensaje/practica4.py
|
AutodidactaMx/cocid_python
|
11628f465ff362807a692c79ede26bf30dd8e26a
|
[
"MIT"
] | null | null | null |
Modulo_3/semana 3/mensaje/practica4.py
|
AutodidactaMx/cocid_python
|
11628f465ff362807a692c79ede26bf30dd8e26a
|
[
"MIT"
] | 1
|
2022-03-04T00:57:18.000Z
|
2022-03-04T00:57:18.000Z
|
from tkinter import messagebox
print(messagebox.askyesnocancel(message="¿Desea continuar?", title="Título"))
| 27.5
| 77
| 0.8
| 13
| 110
| 6.846154
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 110
| 3
| 78
| 36.666667
| 0.862745
| 0
| 0
| 0
| 0
| 0
| 0.209091
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 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
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
39dd3bdabc5febad03da0ba00dcde1373cb4a5b5
| 82
|
py
|
Python
|
app/view/__init__.py
|
ishine/nlp-dialogue
|
d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c
|
[
"Apache-2.0"
] | 59
|
2021-02-15T09:15:12.000Z
|
2022-03-29T01:48:24.000Z
|
app/view/__init__.py
|
ishine/nlp-dialogue
|
d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c
|
[
"Apache-2.0"
] | null | null | null |
app/view/__init__.py
|
ishine/nlp-dialogue
|
d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c
|
[
"Apache-2.0"
] | 15
|
2021-02-15T09:16:04.000Z
|
2022-02-21T07:18:02.000Z
|
from flask import Blueprint
views = Blueprint("views", __name__, url_prefix="/")
| 20.5
| 52
| 0.743902
| 10
| 82
| 5.6
| 0.8
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121951
| 82
| 3
| 53
| 27.333333
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.073171
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
39ed136d6fb5dac9ccd505591922752091c6c6ec
| 80
|
py
|
Python
|
sevenseconds/__main__.py
|
jonathanbeber/sevenseconds
|
a8ba8f5fc5f7e658a928f807ab7905b56498f12e
|
[
"Apache-2.0"
] | 71
|
2015-03-23T11:01:55.000Z
|
2021-10-15T00:29:33.000Z
|
sevenseconds/__main__.py
|
jonathanbeber/sevenseconds
|
a8ba8f5fc5f7e658a928f807ab7905b56498f12e
|
[
"Apache-2.0"
] | 108
|
2015-04-13T13:42:53.000Z
|
2021-07-07T15:16:13.000Z
|
sevenseconds/__main__.py
|
jonathanbeber/sevenseconds
|
a8ba8f5fc5f7e658a928f807ab7905b56498f12e
|
[
"Apache-2.0"
] | 19
|
2015-04-23T11:52:31.000Z
|
2021-06-17T16:31:20.000Z
|
import sevenseconds.cli
if __name__ == '__main__':
sevenseconds.cli.main()
| 16
| 27
| 0.725
| 9
| 80
| 5.555556
| 0.666667
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 80
| 4
| 28
| 20
| 0.735294
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
39f25f8310f68252d425cab74f416410d891fe0b
| 37
|
py
|
Python
|
i2/scrap/__init__.py
|
i2mint/py2mint
|
f4dbf4d72eed3018e7c68cf04df2c9bb03e75bf7
|
[
"Apache-2.0"
] | null | null | null |
i2/scrap/__init__.py
|
i2mint/py2mint
|
f4dbf4d72eed3018e7c68cf04df2c9bb03e75bf7
|
[
"Apache-2.0"
] | null | null | null |
i2/scrap/__init__.py
|
i2mint/py2mint
|
f4dbf4d72eed3018e7c68cf04df2c9bb03e75bf7
|
[
"Apache-2.0"
] | 2
|
2019-08-10T19:20:43.000Z
|
2019-08-11T16:26:35.000Z
|
"""Just a place to jot down ideas"""
| 18.5
| 36
| 0.648649
| 7
| 37
| 3.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189189
| 37
| 1
| 37
| 37
| 0.8
| 0.810811
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
844aa772ff27174bace583d328d248c46d42c3c5
| 1,267
|
py
|
Python
|
tests/test_send_money_queries_services.py
|
MainaKamau92/JengaAPIPythonWrapper
|
b48682fc045e74c19d674ea83f905f7c5d55230b
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_send_money_queries_services.py
|
MainaKamau92/JengaAPIPythonWrapper
|
b48682fc045e74c19d674ea83f905f7c5d55230b
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_send_money_queries_services.py
|
MainaKamau92/JengaAPIPythonWrapper
|
b48682fc045e74c19d674ea83f905f7c5d55230b
|
[
"BSD-2-Clause"
] | null | null | null |
from unittest import mock
from src.jengaapi.send_money_queries_services import SendMoneyQueriesServices
instance = SendMoneyQueriesServices(token="Bearer xxxxx")
@mock.patch('src.jengaapi.send_money_queries_services.requests.post')
def test_account_inquiry(mock_post):
mock_response = {
"banks": [
{
"bankCode": "11",
"bankName": "CO-OPERATIVE BANK",
"customerName": "A N Other"
}
]
}
mock_post.return_value.json.return_value = mock_response
response = instance.account_inquiry(mobile_number="0763000000")
assert response is not None
assert response == mock_response
# Confirm response object first
# @mock.patch('src.jengaapi.send_money_queries_services.requests.post')
# def test_transaction_status(mock_post):
# mock_response = {
# "banks": [
# {
# "bankCode": "11",
# "bankName": "CO-OPERATIVE BANK",
# "customerName": "A N Other"
# }
# ]
# }
# mock_post.return_value.json.return_value = mock_response
# response = instance.account_inquiry(mobile_number="0763000000")
# assert response is not None
# assert response == mock_response
| 30.902439
| 77
| 0.632202
| 130
| 1,267
| 5.923077
| 0.376923
| 0.093506
| 0.058442
| 0.077922
| 0.790909
| 0.790909
| 0.745455
| 0.745455
| 0.745455
| 0.745455
| 0
| 0.025723
| 0.263615
| 1,267
| 40
| 78
| 31.675
| 0.799571
| 0.433307
| 0
| 0
| 0
| 0
| 0.195435
| 0.077033
| 0
| 0
| 0
| 0
| 0.111111
| 1
| 0.055556
| false
| 0
| 0.111111
| 0
| 0.166667
| 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
|
ffc11f9d1be2ba1ba992322bc6ec6937fa731858
| 139
|
py
|
Python
|
bin/file_creator.py
|
pjs902/GCfit
|
f26f004bb9caf7429cbae23a6ca559fad42f3498
|
[
"MIT"
] | 1
|
2022-01-22T17:54:07.000Z
|
2022-01-22T17:54:07.000Z
|
bin/file_creator.py
|
pjs902/GCfit
|
f26f004bb9caf7429cbae23a6ca559fad42f3498
|
[
"MIT"
] | 3
|
2022-02-09T16:04:32.000Z
|
2022-03-29T17:44:09.000Z
|
bin/file_creator.py
|
pjs902/GCfit
|
f26f004bb9caf7429cbae23a6ca559fad42f3498
|
[
"MIT"
] | 1
|
2022-02-07T21:21:24.000Z
|
2022-02-07T21:21:24.000Z
|
'''
1) Create a Clusterfile
2) Add metadata to created Clusterfile
3) Create a bunch of Datasets
- Add them to created Clusterfile
'''
| 19.857143
| 38
| 0.726619
| 21
| 139
| 4.809524
| 0.666667
| 0.138614
| 0.39604
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.027027
| 0.201439
| 139
| 6
| 39
| 23.166667
| 0.882883
| 0.935252
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 1
| 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
|
ffe81cef6eae5ee199f867dc57879d8950c7d31d
| 130
|
py
|
Python
|
schedules/admin.py
|
danielpomas/church_site
|
69d33f3908e4e8b0fdbde9ebb8c14f72050f9efe
|
[
"MIT"
] | null | null | null |
schedules/admin.py
|
danielpomas/church_site
|
69d33f3908e4e8b0fdbde9ebb8c14f72050f9efe
|
[
"MIT"
] | 44
|
2020-05-13T20:15:26.000Z
|
2022-03-04T02:58:58.000Z
|
schedules/admin.py
|
danielpomas/church_site
|
69d33f3908e4e8b0fdbde9ebb8c14f72050f9efe
|
[
"MIT"
] | 4
|
2020-06-05T17:59:52.000Z
|
2021-02-06T19:09:43.000Z
|
from django.contrib import admin
from .models import Event, Attendant
admin.site.register(Event)
admin.site.register(Attendant)
| 18.571429
| 36
| 0.815385
| 18
| 130
| 5.888889
| 0.555556
| 0.169811
| 0.320755
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 130
| 6
| 37
| 21.666667
| 0.905983
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ffeac2a80febccd558f9622bfcbad43fd9c168cc
| 378
|
py
|
Python
|
apps/shipments/serializers/__init__.py
|
kevingduck/transmission
|
c29ae529c02c885cdb0e64a35d7d4750ab1b8001
|
[
"Apache-2.0"
] | 19
|
2018-09-04T14:49:01.000Z
|
2020-06-09T22:13:10.000Z
|
apps/shipments/serializers/__init__.py
|
kevingduck/transmission
|
c29ae529c02c885cdb0e64a35d7d4750ab1b8001
|
[
"Apache-2.0"
] | 50
|
2018-09-18T17:28:57.000Z
|
2021-01-09T16:18:45.000Z
|
apps/shipments/serializers/__init__.py
|
kevingduck/transmission
|
c29ae529c02c885cdb0e64a35d7d4750ab1b8001
|
[
"Apache-2.0"
] | 4
|
2019-12-15T13:44:18.000Z
|
2021-06-09T20:39:54.000Z
|
from .note import *
from .permission_link import *
from .shipment_action import *
from .shipment import *
from .shipment_overview import *
from .shipment_history import *
from .tags import *
from .tracking_data import *
from .telemetry_data import TelemetryDataToDbSerializer, TelemetryResponseSerializer,\
TelemetryResponseAggregateSerializer
from .access_request import *
| 31.5
| 86
| 0.820106
| 40
| 378
| 7.575
| 0.45
| 0.264026
| 0.237624
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121693
| 378
| 11
| 87
| 34.363636
| 0.912651
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.909091
| 0
| 0.909091
| 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
|
0814e3c4f02983f4eef3066bf31b88251b14d618
| 134
|
py
|
Python
|
docarray/score/mixins/__init__.py
|
fastflair/docarray
|
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
|
[
"Apache-2.0"
] | 591
|
2022-01-09T14:39:59.000Z
|
2022-03-31T13:19:39.000Z
|
docarray/score/mixins/__init__.py
|
fastflair/docarray
|
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
|
[
"Apache-2.0"
] | 210
|
2022-01-10T07:59:29.000Z
|
2022-03-31T14:49:18.000Z
|
docarray/score/mixins/__init__.py
|
fastflair/docarray
|
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
|
[
"Apache-2.0"
] | 40
|
2022-01-09T14:52:20.000Z
|
2022-03-31T07:59:45.000Z
|
from .property import PropertyMixin
from .representer import RepresentMixin
class AllMixins(RepresentMixin, PropertyMixin):
...
| 19.142857
| 47
| 0.798507
| 12
| 134
| 8.916667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134328
| 134
| 6
| 48
| 22.333333
| 0.922414
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0816e8816e821f4229c57c4ecb425e1934dde8f8
| 82
|
py
|
Python
|
examples/sellar/server/sub_analysis_proxy.py
|
OneraHub/WhatsOpt-Tutorial
|
12d14e04defa1d44e43c47486801af4bf1284987
|
[
"MIT"
] | 4
|
2019-03-29T20:36:27.000Z
|
2021-09-14T23:34:30.000Z
|
examples/sellar/server/sub_analysis_proxy.py
|
OneraHub/WhatsOpt-Tutorial
|
12d14e04defa1d44e43c47486801af4bf1284987
|
[
"MIT"
] | null | null | null |
examples/sellar/server/sub_analysis_proxy.py
|
OneraHub/WhatsOpt-Tutorial
|
12d14e04defa1d44e43c47486801af4bf1284987
|
[
"MIT"
] | 1
|
2021-07-01T09:10:56.000Z
|
2021-07-01T09:10:56.000Z
|
# -*- coding: utf-8 -*-
"""
sub_analysis_proxy.py generated by WhatsOpt.
"""
| 11.714286
| 47
| 0.597561
| 10
| 82
| 4.7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015152
| 0.195122
| 82
| 6
| 48
| 13.666667
| 0.69697
| 0.829268
| 0
| null | 1
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
082098b1de58bbeb8dbddcf86c50c8244f515514
| 664
|
py
|
Python
|
api/serializers.py
|
martwozniak/DjangoIssueTracker
|
bfa67cc4864cc310a45dd1eb9a98b849b59fd0a8
|
[
"MIT"
] | null | null | null |
api/serializers.py
|
martwozniak/DjangoIssueTracker
|
bfa67cc4864cc310a45dd1eb9a98b849b59fd0a8
|
[
"MIT"
] | null | null | null |
api/serializers.py
|
martwozniak/DjangoIssueTracker
|
bfa67cc4864cc310a45dd1eb9a98b849b59fd0a8
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import Issue, User
# Issue
class IssueSerializer(serializers.ModelSerializer):
class Meta:
model = Issue
fields = ('id', 'issue_title', 'issue_body')
class CreateIssueSerializer(serializers.ModelSerializer):
class Meta:
model = Issue
fields = ('issue_title', 'issue_body')
# User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'login', 'password', 'email', 'is_active')
class LoginUserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('login', 'password')
| 25.538462
| 66
| 0.671687
| 65
| 664
| 6.769231
| 0.384615
| 0.236364
| 0.281818
| 0.318182
| 0.459091
| 0.459091
| 0.459091
| 0
| 0
| 0
| 0
| 0
| 0.21988
| 664
| 25
| 67
| 26.56
| 0.849421
| 0.01506
| 0
| 0.444444
| 0
| 0
| 0.132104
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.111111
| 0.111111
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
08281e2af2327a0f177089b6f4572a2fae346bad
| 199
|
py
|
Python
|
app/handlers/handler_health.py
|
sebastianschramm/calendar_api
|
88e2f59ed23b48d7b270bba50c0cdc6ea3b1f412
|
[
"Apache-2.0"
] | null | null | null |
app/handlers/handler_health.py
|
sebastianschramm/calendar_api
|
88e2f59ed23b48d7b270bba50c0cdc6ea3b1f412
|
[
"Apache-2.0"
] | null | null | null |
app/handlers/handler_health.py
|
sebastianschramm/calendar_api
|
88e2f59ed23b48d7b270bba50c0cdc6ea3b1f412
|
[
"Apache-2.0"
] | null | null | null |
from aiohttp import web
from http import HTTPStatus
async def handler_health_check(request):
"""
Returns "200" if it's responsive
"""
return web.json_response(status=HTTPStatus.OK)
| 19.9
| 50
| 0.723618
| 27
| 199
| 5.222222
| 0.851852
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018634
| 0.190955
| 199
| 9
| 51
| 22.111111
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f288c2e948501e7a38d7d168645373362b24a781
| 64
|
py
|
Python
|
psi/token/__init__.py
|
NCRAR/psiexperiment
|
c3f8580b2b155ce42ebb936019d862c4343b545c
|
[
"MIT"
] | 5
|
2016-05-26T13:46:00.000Z
|
2020-03-03T13:07:47.000Z
|
psi/token/__init__.py
|
NCRAR/psiexperiment
|
c3f8580b2b155ce42ebb936019d862c4343b545c
|
[
"MIT"
] | 2
|
2018-04-17T15:06:35.000Z
|
2019-03-25T18:13:10.000Z
|
psi/token/__init__.py
|
NCRAR/psiexperiment
|
c3f8580b2b155ce42ebb936019d862c4343b545c
|
[
"MIT"
] | 3
|
2020-04-17T15:03:36.000Z
|
2022-01-14T23:19:29.000Z
|
import enaml
with enaml.imports():
from . import primitives
| 16
| 28
| 0.734375
| 8
| 64
| 5.875
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 64
| 3
| 29
| 21.333333
| 0.903846
| 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
|
4b6ff72a22952b86a1b35f4fd860eab5c9fd6afb
| 234
|
py
|
Python
|
broom/__init__.py
|
banzhang/broom
|
5f71cd0c5faf815849b5b88f6b0ad5f37939606c
|
[
"MIT"
] | 2
|
2016-03-08T08:57:58.000Z
|
2017-02-23T07:10:03.000Z
|
broom/__init__.py
|
banzhang/broom
|
5f71cd0c5faf815849b5b88f6b0ad5f37939606c
|
[
"MIT"
] | null | null | null |
broom/__init__.py
|
banzhang/broom
|
5f71cd0c5faf815849b5b88f6b0ad5f37939606c
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
from Broom import Broom
from Broomd import Broomd
import setproctitle
def main():
setproctitle.setproctitle('broom')
Broom.run()
def server():
setprocetitle.setproctitle('broomd')
Broomd.run()
| 16.714286
| 40
| 0.717949
| 28
| 234
| 6
| 0.5
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 234
| 13
| 41
| 18
| 0.861538
| 0.08547
| 0
| 0
| 0
| 0
| 0.051643
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| true
| 0
| 0.333333
| 0
| 0.555556
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4b728504000d4b789cacd4ba2134c2816550972b
| 42
|
py
|
Python
|
custom_components/solarman/__init__.py
|
rpooley/home_assistant_solarman
|
f8f3354ac65cfa770b903c26f886a0077f2480d0
|
[
"Apache-2.0"
] | null | null | null |
custom_components/solarman/__init__.py
|
rpooley/home_assistant_solarman
|
f8f3354ac65cfa770b903c26f886a0077f2480d0
|
[
"Apache-2.0"
] | null | null | null |
custom_components/solarman/__init__.py
|
rpooley/home_assistant_solarman
|
f8f3354ac65cfa770b903c26f886a0077f2480d0
|
[
"Apache-2.0"
] | null | null | null |
"""The Solarman Collector integration."""
| 21
| 41
| 0.738095
| 4
| 42
| 7.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 42
| 1
| 42
| 42
| 0.815789
| 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
|
4b76b0bf6c3cb0c9d8d700f8189c3b771311d503
| 346
|
py
|
Python
|
src/python/WMComponent/DBS3Buffer/Oracle/CountFilesByStatus.py
|
khurtado/WMCore
|
f74e252412e49189a92962945a94f93bec81cd1e
|
[
"Apache-2.0"
] | 21
|
2015-11-19T16:18:45.000Z
|
2021-12-02T18:20:39.000Z
|
src/python/WMComponent/DBS3Buffer/Oracle/CountFilesByStatus.py
|
khurtado/WMCore
|
f74e252412e49189a92962945a94f93bec81cd1e
|
[
"Apache-2.0"
] | 5,671
|
2015-01-06T14:38:52.000Z
|
2022-03-31T22:11:14.000Z
|
src/python/WMComponent/DBS3Buffer/Oracle/CountFilesByStatus.py
|
khurtado/WMCore
|
f74e252412e49189a92962945a94f93bec81cd1e
|
[
"Apache-2.0"
] | 67
|
2015-01-21T15:55:38.000Z
|
2022-02-03T19:53:13.000Z
|
#!/usr/bin/env python
"""
_CountFilesByStatus_
Oracle implementation of DBSBuffer.CountFilesByStatus
"""
from __future__ import division
from WMComponent.DBS3Buffer.MySQL.CountFilesByStatus import CountFilesByStatus as MySQLCountFilesByStatus
class CountFilesByStatus(MySQLCountFilesByStatus):
"""
CountFilesByStatus
"""
pass
| 20.352941
| 105
| 0.800578
| 28
| 346
| 9.678571
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003322
| 0.130058
| 346
| 16
| 106
| 21.625
| 0.89701
| 0.33237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
4b96655ba9456d92490d229924872def0a7e40c3
| 156
|
py
|
Python
|
gerenciador/anuncios/admin.py
|
diogo-alves/gerenciador_anuncios
|
fc62a818d803594ba0c31c755cbb83c165c1488f
|
[
"MIT"
] | null | null | null |
gerenciador/anuncios/admin.py
|
diogo-alves/gerenciador_anuncios
|
fc62a818d803594ba0c31c755cbb83c165c1488f
|
[
"MIT"
] | null | null | null |
gerenciador/anuncios/admin.py
|
diogo-alves/gerenciador_anuncios
|
fc62a818d803594ba0c31c755cbb83c165c1488f
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Anuncio
class AnuncioAdmin(admin.ModelAdmin):
pass
admin.site.register(Anuncio, AnuncioAdmin)
| 14.181818
| 42
| 0.788462
| 19
| 156
| 6.473684
| 0.684211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141026
| 156
| 10
| 43
| 15.6
| 0.91791
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.2
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
4b971ab4ddc6b357f2bf5e10a9f4747f245f100a
| 3,086
|
py
|
Python
|
moiza/opinion/views.py
|
LikeLion-CAU-9th/MOIZA
|
2464b92c29df9bf272e345c5f0d153bbd8fa7e1e
|
[
"MIT"
] | 3
|
2021-06-24T18:27:20.000Z
|
2021-07-08T10:30:12.000Z
|
moiza/opinion/views.py
|
LikeLion-CAU-9th/MOIZA
|
2464b92c29df9bf272e345c5f0d153bbd8fa7e1e
|
[
"MIT"
] | 4
|
2021-06-01T04:25:45.000Z
|
2021-07-13T05:55:46.000Z
|
moiza/opinion/views.py
|
LikeLion-CAU-9th/MOIZA
|
2464b92c29df9bf272e345c5f0d153bbd8fa7e1e
|
[
"MIT"
] | 4
|
2021-06-01T03:49:46.000Z
|
2021-08-17T09:11:42.000Z
|
from django.shortcuts import get_object_or_404, render,redirect
from opinion.models import Suggestion, Selection
# Create your views here.
def mainpage_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'mainpage.html')
def grouppage_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'grouppage.html')
def listpage_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'listpage.html')
def suggestion_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'suggestion.html')
def topic_complete_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'topic_complete.html')
def decision_complete_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'decision_complete.html')
def decision_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'decision.html')
def selection_write(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
if request.method == "POST":
selection = Selection()
selection.suggestion = get_object_or_404(Suggestion)
selection.selection_contents = request.POST.get('content')
selection.save()
return redirect('/decision-complete/')
def decision_reason(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'decision_reason.html')
def other_opinion(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'other_opinion.html')
def disagree_reason(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'disagree_reason.html')
def result_view(request):
# authorize_action(request)
session_existence = authorization(request)
if not session_existence:
return redirect('login')
return render(request, 'result.html')
def authorization(request):
return ('user_email' in request.session)
def authorize_action(request):
session_existence = authorization(request)
print("sess", session_existence)
if not session_existence:
return redirect('login')
| 27.070175
| 63
| 0.765392
| 352
| 3,086
| 6.519886
| 0.147727
| 0.188235
| 0.124619
| 0.16427
| 0.71939
| 0.71939
| 0.71939
| 0.676688
| 0.676688
| 0.676688
| 0
| 0.002257
| 0.138691
| 3,086
| 114
| 64
| 27.070175
| 0.861174
| 0.108555
| 0
| 0.527027
| 0
| 0
| 0.104821
| 0.008035
| 0
| 0
| 0
| 0
| 0
| 1
| 0.189189
| false
| 0
| 0.027027
| 0.013514
| 0.567568
| 0.013514
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
4bb51fc53c792aaa8e7c78c0a506677bcc6305a4
| 263
|
py
|
Python
|
plugins/flytekit-aws-athena/flytekitplugins/athena/__init__.py
|
bstadlbauer/flytekit
|
12ef34d7b6d777088ab87f9cf0d5c32355895852
|
[
"Apache-2.0"
] | null | null | null |
plugins/flytekit-aws-athena/flytekitplugins/athena/__init__.py
|
bstadlbauer/flytekit
|
12ef34d7b6d777088ab87f9cf0d5c32355895852
|
[
"Apache-2.0"
] | null | null | null |
plugins/flytekit-aws-athena/flytekitplugins/athena/__init__.py
|
bstadlbauer/flytekit
|
12ef34d7b6d777088ab87f9cf0d5c32355895852
|
[
"Apache-2.0"
] | null | null | null |
"""
.. currentmodule:: flytekitplugins.athena
This package contains things that are useful when extending Flytekit.
.. autosummary::
:template: custom.rst
:toctree: generated/
AthenaConfig
AthenaTask
"""
from .task import AthenaConfig, AthenaTask
| 17.533333
| 69
| 0.741445
| 26
| 263
| 7.5
| 0.923077
| 0.225641
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1673
| 263
| 14
| 70
| 18.785714
| 0.890411
| 0.798479
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4bb7602b32c8a6c5ced93956a694e7d93063deee
| 242
|
py
|
Python
|
paths/__init__.py
|
berkette/CampaignDex
|
b017ffa1e18d96826ee620578e392d9fa794fb4e
|
[
"MIT"
] | null | null | null |
paths/__init__.py
|
berkette/CampaignDex
|
b017ffa1e18d96826ee620578e392d9fa794fb4e
|
[
"MIT"
] | null | null | null |
paths/__init__.py
|
berkette/CampaignDex
|
b017ffa1e18d96826ee620578e392d9fa794fb4e
|
[
"MIT"
] | null | null | null |
from paths.response_data import get_response_data, post_action
from paths.post_actions import open_campaign, save_new_campaign
from paths.post_actions import save_update_campaign
from paths.post_actions import save_new_page, save_update_page
| 48.4
| 63
| 0.892562
| 39
| 242
| 5.128205
| 0.384615
| 0.18
| 0.195
| 0.3
| 0.51
| 0.38
| 0.38
| 0
| 0
| 0
| 0
| 0
| 0.078512
| 242
| 4
| 64
| 60.5
| 0.896861
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4bbc3b364473112b313b5c66739610c04a6d35e1
| 42
|
py
|
Python
|
safe_grid_agents/common/agents/policy.py
|
alok/safe-grid-agents
|
6cc12db29d2209f11144fc082b6cb8f81457c0d4
|
[
"Apache-2.0"
] | null | null | null |
safe_grid_agents/common/agents/policy.py
|
alok/safe-grid-agents
|
6cc12db29d2209f11144fc082b6cb8f81457c0d4
|
[
"Apache-2.0"
] | null | null | null |
safe_grid_agents/common/agents/policy.py
|
alok/safe-grid-agents
|
6cc12db29d2209f11144fc082b6cb8f81457c0d4
|
[
"Apache-2.0"
] | null | null | null |
# Policy gradient and actor-critic agents
| 21
| 41
| 0.809524
| 6
| 42
| 5.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 42
| 1
| 42
| 42
| 0.944444
| 0.928571
| 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
|
29e60888dce7d980b3cee706ee52dd017f7bc061
| 47
|
py
|
Python
|
com/tml/pyutil/TestAAA.py
|
tianmlin19/FirstPython
|
e95e74787e333231d2993b8956098535225d09e1
|
[
"Apache-2.0"
] | null | null | null |
com/tml/pyutil/TestAAA.py
|
tianmlin19/FirstPython
|
e95e74787e333231d2993b8956098535225d09e1
|
[
"Apache-2.0"
] | null | null | null |
com/tml/pyutil/TestAAA.py
|
tianmlin19/FirstPython
|
e95e74787e333231d2993b8956098535225d09e1
|
[
"Apache-2.0"
] | null | null | null |
print("Hello World!")
input("请输入任意字符,继续....")
| 11.75
| 23
| 0.617021
| 6
| 47
| 4.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 47
| 3
| 24
| 15.666667
| 0.674419
| 0
| 0
| 0
| 0
| 0
| 0.565217
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
29eac657b50b1c2d2f64f78cf5a48dc9507ca891
| 143
|
py
|
Python
|
models/fiblat/__init__.py
|
rickardomc/setvae
|
45c13a6dcb5379de6cf7ce12a94e879a62304386
|
[
"MIT"
] | 45
|
2021-03-13T11:10:47.000Z
|
2022-03-30T03:49:29.000Z
|
models/fiblat/__init__.py
|
rickardomc/setvae
|
45c13a6dcb5379de6cf7ce12a94e879a62304386
|
[
"MIT"
] | 4
|
2021-08-08T16:54:57.000Z
|
2022-01-24T01:41:36.000Z
|
models/fiblat/__init__.py
|
rickardomc/setvae
|
45c13a6dcb5379de6cf7ce12a94e879a62304386
|
[
"MIT"
] | 8
|
2021-04-12T13:40:29.000Z
|
2022-01-10T21:12:07.000Z
|
# fiblat package
# author: https://github.com/erikbrinkman
from ._cube_lattice import cube_lattice
from ._sphere_lattice import sphere_lattice
| 28.6
| 43
| 0.832168
| 19
| 143
| 5.947368
| 0.631579
| 0.19469
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097902
| 143
| 4
| 44
| 35.75
| 0.875969
| 0.377622
| 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
|
29ed3f406dd59e453e0812466742b902f964b04d
| 100
|
py
|
Python
|
kattis/Modulo.py
|
jaredliw/python-question-bank
|
9c8c246623d8d171f875700b57772df0afcbdcdf
|
[
"MIT"
] | 1
|
2021-04-08T07:49:15.000Z
|
2021-04-08T07:49:15.000Z
|
kattis/Modulo.py
|
jaredliw/leetcode-solutions
|
9c8c246623d8d171f875700b57772df0afcbdcdf
|
[
"MIT"
] | null | null | null |
kattis/Modulo.py
|
jaredliw/leetcode-solutions
|
9c8c246623d8d171f875700b57772df0afcbdcdf
|
[
"MIT"
] | 1
|
2022-01-23T02:12:24.000Z
|
2022-01-23T02:12:24.000Z
|
# CPU: 0.05 s
from sys import stdin
print(len(set(map(lambda x: int(x) % 42, stdin.readlines()))))
| 20
| 62
| 0.66
| 19
| 100
| 3.473684
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0.15
| 100
| 4
| 63
| 25
| 0.717647
| 0.11
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 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
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
29f416e054df073ed11decd2fd275565386fc3b2
| 53
|
py
|
Python
|
__main__.py
|
t73fde/pynullweb
|
7836b2b51165001782699a0cff7e1fa7332c0a11
|
[
"Apache-2.0"
] | null | null | null |
__main__.py
|
t73fde/pynullweb
|
7836b2b51165001782699a0cff7e1fa7332c0a11
|
[
"Apache-2.0"
] | null | null | null |
__main__.py
|
t73fde/pynullweb
|
7836b2b51165001782699a0cff7e1fa7332c0a11
|
[
"Apache-2.0"
] | null | null | null |
import pynullweb.__main__
pynullweb.__main__.main()
| 13.25
| 25
| 0.830189
| 6
| 53
| 6
| 0.5
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 53
| 3
| 26
| 17.666667
| 0.734694
| 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
|
d9b71de161578a67c055862ad8ae3ccec7d2bac4
| 213
|
py
|
Python
|
check_run.py
|
rindhane/stock_options
|
8dcf324c9203102cd53549945740d213ce3bbfcf
|
[
"MIT"
] | null | null | null |
check_run.py
|
rindhane/stock_options
|
8dcf324c9203102cd53549945740d213ce3bbfcf
|
[
"MIT"
] | null | null | null |
check_run.py
|
rindhane/stock_options
|
8dcf324c9203102cd53549945740d213ce3bbfcf
|
[
"MIT"
] | null | null | null |
from tests.test_main import test_stocksDataConnector
from tests.test_predictor import TestPredictor
import unittest
from database.db_populate import db
from analysis_liveTrade.analysis import *
unittest.main()
| 21.3
| 52
| 0.859155
| 28
| 213
| 6.357143
| 0.5
| 0.101124
| 0.146067
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103286
| 213
| 9
| 53
| 23.666667
| 0.931937
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d9cd2f3870a7a47a931c333b70099434f87b9a49
| 3,481
|
py
|
Python
|
isi_sdk_8_2_0/isi_sdk_8_2_0/api/__init__.py
|
mohitjain97/isilon_sdk_python
|
a371f438f542568edb8cda35e929e6b300b1177c
|
[
"Unlicense"
] | 24
|
2018-06-22T14:13:23.000Z
|
2022-03-23T01:21:26.000Z
|
isi_sdk_8_2_0/isi_sdk_8_2_0/api/__init__.py
|
mohitjain97/isilon_sdk_python
|
a371f438f542568edb8cda35e929e6b300b1177c
|
[
"Unlicense"
] | 46
|
2018-04-30T13:28:22.000Z
|
2022-03-21T21:11:07.000Z
|
isi_sdk_8_2_0/isi_sdk_8_2_0/api/__init__.py
|
mohitjain97/isilon_sdk_python
|
a371f438f542568edb8cda35e929e6b300b1177c
|
[
"Unlicense"
] | 29
|
2018-06-19T00:14:04.000Z
|
2022-02-08T17:51:19.000Z
|
from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from isi_sdk_8_2_0.api.antivirus_api import AntivirusApi
from isi_sdk_8_2_0.api.audit_api import AuditApi
from isi_sdk_8_2_0.api.auth_api import AuthApi
from isi_sdk_8_2_0.api.auth_groups_api import AuthGroupsApi
from isi_sdk_8_2_0.api.auth_providers_api import AuthProvidersApi
from isi_sdk_8_2_0.api.auth_roles_api import AuthRolesApi
from isi_sdk_8_2_0.api.auth_users_api import AuthUsersApi
from isi_sdk_8_2_0.api.certificate_api import CertificateApi
from isi_sdk_8_2_0.api.cloud_api import CloudApi
from isi_sdk_8_2_0.api.cluster_api import ClusterApi
from isi_sdk_8_2_0.api.cluster_nodes_api import ClusterNodesApi
from isi_sdk_8_2_0.api.debug_api import DebugApi
from isi_sdk_8_2_0.api.dedupe_api import DedupeApi
from isi_sdk_8_2_0.api.event_api import EventApi
from isi_sdk_8_2_0.api.file_filter_api import FileFilterApi
from isi_sdk_8_2_0.api.filepool_api import FilepoolApi
from isi_sdk_8_2_0.api.filesystem_api import FilesystemApi
from isi_sdk_8_2_0.api.fsa_api import FsaApi
from isi_sdk_8_2_0.api.fsa_results_api import FsaResultsApi
from isi_sdk_8_2_0.api.groupnets_summary_api import GroupnetsSummaryApi
from isi_sdk_8_2_0.api.hardening_api import HardeningApi
from isi_sdk_8_2_0.api.hardware_api import HardwareApi
from isi_sdk_8_2_0.api.healthcheck_api import HealthcheckApi
from isi_sdk_8_2_0.api.id_resolution_api import IdResolutionApi
from isi_sdk_8_2_0.api.id_resolution_zones_api import IdResolutionZonesApi
from isi_sdk_8_2_0.api.job_api import JobApi
from isi_sdk_8_2_0.api.license_api import LicenseApi
from isi_sdk_8_2_0.api.local_api import LocalApi
from isi_sdk_8_2_0.api.local_cluster_api import LocalClusterApi
from isi_sdk_8_2_0.api.namespace_api import NamespaceApi
from isi_sdk_8_2_0.api.network_api import NetworkApi
from isi_sdk_8_2_0.api.network_groupnets_api import NetworkGroupnetsApi
from isi_sdk_8_2_0.api.network_groupnets_subnets_api import NetworkGroupnetsSubnetsApi
from isi_sdk_8_2_0.api.performance_api import PerformanceApi
from isi_sdk_8_2_0.api.performance_datasets_api import PerformanceDatasetsApi
from isi_sdk_8_2_0.api.protocols_api import ProtocolsApi
from isi_sdk_8_2_0.api.protocols_hdfs_api import ProtocolsHdfsApi
from isi_sdk_8_2_0.api.quota_api import QuotaApi
from isi_sdk_8_2_0.api.quota_quotas_api import QuotaQuotasApi
from isi_sdk_8_2_0.api.quota_reports_api import QuotaReportsApi
from isi_sdk_8_2_0.api.remotesupport_api import RemotesupportApi
from isi_sdk_8_2_0.api.snapshot_api import SnapshotApi
from isi_sdk_8_2_0.api.snapshot_changelists_api import SnapshotChangelistsApi
from isi_sdk_8_2_0.api.snapshot_snapshots_api import SnapshotSnapshotsApi
from isi_sdk_8_2_0.api.statistics_api import StatisticsApi
from isi_sdk_8_2_0.api.storagepool_api import StoragepoolApi
from isi_sdk_8_2_0.api.sync_api import SyncApi
from isi_sdk_8_2_0.api.sync_policies_api import SyncPoliciesApi
from isi_sdk_8_2_0.api.sync_reports_api import SyncReportsApi
from isi_sdk_8_2_0.api.sync_service_api import SyncServiceApi
from isi_sdk_8_2_0.api.sync_service_target_api import SyncServiceTargetApi
from isi_sdk_8_2_0.api.sync_target_api import SyncTargetApi
from isi_sdk_8_2_0.api.upgrade_api import UpgradeApi
from isi_sdk_8_2_0.api.upgrade_cluster_api import UpgradeClusterApi
from isi_sdk_8_2_0.api.worm_api import WormApi
from isi_sdk_8_2_0.api.zones_api import ZonesApi
from isi_sdk_8_2_0.api.zones_summary_api import ZonesSummaryApi
| 55.253968
| 86
| 0.896581
| 668
| 3,481
| 4.194611
| 0.187126
| 0.142398
| 0.203426
| 0.223769
| 0.416131
| 0.416131
| 0.416131
| 0.296217
| 0.062099
| 0
| 0
| 0.053119
| 0.069808
| 3,481
| 62
| 87
| 56.145161
| 0.81223
| 0.011778
| 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
|
8a4305308e5d666c7d49a8b1313ca426e2b74a1f
| 107
|
py
|
Python
|
tsts/cfg/__init__.py
|
TakuyaShintate/tsts
|
483db1edc2f765a5449137446a77acaf17684ce9
|
[
"MIT"
] | 16
|
2021-08-28T16:15:41.000Z
|
2022-02-25T09:47:01.000Z
|
tsts/cfg/__init__.py
|
TakuyaShintate/tsts
|
483db1edc2f765a5449137446a77acaf17684ce9
|
[
"MIT"
] | null | null | null |
tsts/cfg/__init__.py
|
TakuyaShintate/tsts
|
483db1edc2f765a5449137446a77acaf17684ce9
|
[
"MIT"
] | 1
|
2021-12-05T20:35:38.000Z
|
2021-12-05T20:35:38.000Z
|
from .cfg import CfgNode
from .defaults import get_cfg_defaults
__all__ = ["CfgNode", "get_cfg_defaults"]
| 21.4
| 41
| 0.785047
| 15
| 107
| 5.066667
| 0.466667
| 0.157895
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121495
| 107
| 4
| 42
| 26.75
| 0.808511
| 0
| 0
| 0
| 0
| 0
| 0.214953
| 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
|
8a516a8a7265aba4ac09c7f6693a780a70ffc0c0
| 92
|
py
|
Python
|
ormar_casbin_adapter/__init__.py
|
shepilov-vladislav/ormar-casbin-adapter
|
c3bbbfcaf9525f575982f9659fbef46887333cd7
|
[
"Apache-2.0"
] | 1
|
2022-02-20T00:09:52.000Z
|
2022-02-20T00:09:52.000Z
|
ormar_casbin_adapter/__init__.py
|
shepilov-vladislav/ormar-casbin-adapter
|
c3bbbfcaf9525f575982f9659fbef46887333cd7
|
[
"Apache-2.0"
] | null | null | null |
ormar_casbin_adapter/__init__.py
|
shepilov-vladislav/ormar-casbin-adapter
|
c3bbbfcaf9525f575982f9659fbef46887333cd7
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Localfolder:
from .adapter import DatabasesAdapter # noqa: F401
| 18.4
| 51
| 0.673913
| 10
| 92
| 6.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 0.173913
| 92
| 4
| 52
| 23
| 0.763158
| 0.48913
| 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
|
8a94f621cad326bf57ba3c2404fabdc8ad2d4664
| 100
|
py
|
Python
|
src/related_links/admin.py
|
pfskiev/lisbon
|
c756d0cd2f8fd2405c7123dab029748da75b6e5b
|
[
"MIT"
] | null | null | null |
src/related_links/admin.py
|
pfskiev/lisbon
|
c756d0cd2f8fd2405c7123dab029748da75b6e5b
|
[
"MIT"
] | 1
|
2017-11-07T09:09:28.000Z
|
2017-11-07T09:09:28.000Z
|
src/related_links/admin.py
|
pfskiev/lisbon
|
c756d0cd2f8fd2405c7123dab029748da75b6e5b
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import RelatedLink
admin.site.register(RelatedLink)
| 16.666667
| 32
| 0.83
| 13
| 100
| 6.384615
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11
| 100
| 5
| 33
| 20
| 0.932584
| 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
|
8a98d0ff04c378bb7e90d70aff573a79e179d576
| 14,325
|
py
|
Python
|
skimage/transform/tests/test_hough_transform.py
|
EnjoyLifeFund/macHighSierra-py36-pkgs
|
5668b5785296b314ea1321057420bcd077dba9ea
|
[
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 4
|
2018-08-23T14:45:14.000Z
|
2021-05-22T16:12:33.000Z
|
skimage/transform/tests/test_hough_transform.py
|
EnjoyLifeFund/macHighSierra-py36-pkgs
|
5668b5785296b314ea1321057420bcd077dba9ea
|
[
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null |
skimage/transform/tests/test_hough_transform.py
|
EnjoyLifeFund/macHighSierra-py36-pkgs
|
5668b5785296b314ea1321057420bcd077dba9ea
|
[
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1
|
2018-08-23T14:45:15.000Z
|
2018-08-23T14:45:15.000Z
|
import numpy as np
from numpy.testing import assert_almost_equal, assert_equal, assert_raises
import skimage.transform as tf
from skimage.draw import line, circle_perimeter, ellipse_perimeter
from skimage._shared._warnings import expected_warnings
from skimage._shared.testing import test_parallel
@test_parallel()
def test_hough_line():
# Generate a test image
img = np.zeros((100, 150), dtype=int)
rr, cc = line(60, 130, 80, 10)
img[rr, cc] = 1
out, angles, d = tf.hough_line(img)
y, x = np.where(out == out.max())
dist = d[y[0]]
theta = angles[x[0]]
assert_almost_equal(dist, 80.723, 1)
assert_almost_equal(theta, 1.41, 1)
def test_hough_line_angles():
img = np.zeros((10, 10))
img[0, 0] = 1
out, angles, d = tf.hough_line(img, np.linspace(0, 360, 10))
assert_equal(len(angles), 10)
def test_hough_line_bad_input():
img = np.zeros(100)
img[10] = 1
# Expected error, img must be 2D
assert_raises(ValueError, tf.hough_line, img, np.linspace(0, 360, 10))
def test_probabilistic_hough():
# Generate a test image
img = np.zeros((100, 100), dtype=int)
for i in range(25, 75):
img[100 - i, i] = 100
img[i, i] = 100
# decrease default theta sampling because similar orientations may confuse
# as mentioned in article of Galambos et al
theta = np.linspace(0, np.pi, 45)
lines = tf.probabilistic_hough_line(img, threshold=10, line_length=10,
line_gap=1, theta=theta)
# sort the lines according to the x-axis
sorted_lines = []
for line in lines:
line = list(line)
line.sort(key=lambda x: x[0])
sorted_lines.append(line)
assert([(25, 75), (74, 26)] in sorted_lines)
assert([(25, 25), (74, 74)] in sorted_lines)
# Execute with default theta
tf.probabilistic_hough_line(img, line_length=10, line_gap=3)
def test_probabilistic_hough_bad_input():
img = np.zeros(100)
img[10] = 1
# Expected error, img must be 2D
assert_raises(ValueError, tf.probabilistic_hough_line, img)
def test_hough_line_peaks():
img = np.zeros((100, 150), dtype=int)
rr, cc = line(60, 130, 80, 10)
img[rr, cc] = 1
out, angles, d = tf.hough_line(img)
out, theta, dist = tf.hough_line_peaks(out, angles, d)
assert_equal(len(dist), 1)
assert_almost_equal(dist[0], 80.723, 1)
assert_almost_equal(theta[0], 1.41, 1)
def test_hough_line_peaks_ordered():
# Regression test per PR #1421
testim = np.zeros((256, 64), dtype=np.bool)
testim[50:100, 20] = True
testim[85:200, 25] = True
testim[15:35, 50] = True
testim[1:-1, 58] = True
hough_space, angles, dists = tf.hough_line(testim)
hspace, _, _ = tf.hough_line_peaks(hough_space, angles, dists)
assert hspace[0] > hspace[1]
def test_hough_line_peaks_dist():
img = np.zeros((100, 100), dtype=np.bool_)
img[:, 30] = True
img[:, 40] = True
hspace, angles, dists = tf.hough_line(img)
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_distance=5)[0]) == 2
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_distance=15)[0]) == 1
def test_hough_line_peaks_angle():
check_hough_line_peaks_angle()
def check_hough_line_peaks_angle():
img = np.zeros((100, 100), dtype=np.bool_)
img[:, 0] = True
img[0, :] = True
hspace, angles, dists = tf.hough_line(img)
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_angle=45)[0]) == 2
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_angle=90)[0]) == 1
theta = np.linspace(0, np.pi, 100)
hspace, angles, dists = tf.hough_line(img, theta)
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_angle=45)[0]) == 2
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_angle=90)[0]) == 1
theta = np.linspace(np.pi / 3, 4. / 3 * np.pi, 100)
hspace, angles, dists = tf.hough_line(img, theta)
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_angle=45)[0]) == 2
assert len(tf.hough_line_peaks(hspace, angles, dists,
min_angle=90)[0]) == 1
def test_hough_line_peaks_num():
img = np.zeros((100, 100), dtype=np.bool_)
img[:, 30] = True
img[:, 40] = True
hspace, angles, dists = tf.hough_line(img)
assert len(tf.hough_line_peaks(hspace, angles, dists, min_distance=0,
min_angle=0, num_peaks=1)[0]) == 1
@test_parallel()
def test_hough_circle():
# Prepare picture
img = np.zeros((120, 100), dtype=int)
radius = 20
x_0, y_0 = (99, 50)
y, x = circle_perimeter(y_0, x_0, radius)
img[x, y] = 1
out1 = tf.hough_circle(img, radius)
out2 = tf.hough_circle(img, [radius])
assert_equal(out1, out2)
out = tf.hough_circle(img, np.array([radius], dtype=np.intp))
assert_equal(out, out1)
x, y = np.where(out[0] == out[0].max())
assert_equal(x[0], x_0)
assert_equal(y[0], y_0)
def test_hough_circle_extended():
# Prepare picture
# The circle center is outside the image
img = np.zeros((100, 100), dtype=int)
radius = 20
x_0, y_0 = (-5, 50)
y, x = circle_perimeter(y_0, x_0, radius)
img[x[np.where(x > 0)], y[np.where(x > 0)]] = 1
out = tf.hough_circle(img, np.array([radius], dtype=np.intp),
full_output=True)
x, y = np.where(out[0] == out[0].max())
# Offset for x_0, y_0
assert_equal(x[0], x_0 + radius)
assert_equal(y[0], y_0 + radius)
def test_hough_circle_peaks():
x_0, y_0, rad_0 = (99, 50, 20)
img = np.zeros((120, 100), dtype=int)
y, x = circle_perimeter(y_0, x_0, rad_0)
img[x, y] = 1
x_1, y_1, rad_1 = (49, 60, 30)
y, x = circle_perimeter(y_1, x_1, rad_1)
img[x, y] = 1
radii = [rad_0, rad_1]
hspaces = tf.hough_circle(img, radii)
out = tf.hough_circle_peaks(hspaces, radii, min_xdistance=1, min_ydistance=1,
threshold=None, num_peaks=np.inf, total_num_peaks=np.inf)
s = np.argsort(out[3]) # sort by radii
assert_equal(out[1][s], np.array([y_0, y_1]))
assert_equal(out[2][s], np.array([x_0, x_1]))
assert_equal(out[3][s], np.array([rad_0, rad_1]))
def test_hough_circle_peaks_total_peak():
img = np.zeros((120, 100), dtype=int)
x_0, y_0, rad_0 = (99, 50, 20)
y, x = circle_perimeter(y_0, x_0, rad_0)
img[x, y] = 1
x_1, y_1, rad_1 = (49, 60, 30)
y, x = circle_perimeter(y_1, x_1, rad_1)
img[x, y] = 1
radii = [rad_0, rad_1]
hspaces = tf.hough_circle(img, radii)
out = tf.hough_circle_peaks(hspaces, radii, min_xdistance=1, min_ydistance=1,
threshold=None, num_peaks=np.inf, total_num_peaks=1)
assert_equal(out[1][0], np.array([y_1,]))
assert_equal(out[2][0], np.array([x_1,]))
assert_equal(out[3][0], np.array([rad_1,]))
def test_hough_ellipse_zero_angle():
img = np.zeros((25, 25), dtype=int)
rx = 6
ry = 8
x0 = 12
y0 = 15
angle = 0
rr, cc = ellipse_perimeter(y0, x0, ry, rx)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=9)
best = result[-1]
assert_equal(best[1], y0)
assert_equal(best[2], x0)
assert_almost_equal(best[3], ry, decimal=1)
assert_almost_equal(best[4], rx, decimal=1)
assert_equal(best[5], angle)
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_posangle1():
# ry > rx, angle in [0:pi/2]
img = np.zeros((30, 24), dtype=int)
rx = 6
ry = 12
x0 = 10
y0 = 15
angle = np.pi / 1.35
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
assert_almost_equal(best[1] / 100., y0 / 100., decimal=1)
assert_almost_equal(best[2] / 100., x0 / 100., decimal=1)
assert_almost_equal(best[3] / 10., ry / 10., decimal=1)
assert_almost_equal(best[4] / 100., rx / 100., decimal=1)
assert_almost_equal(best[5], angle, decimal=1)
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_posangle2():
# ry < rx, angle in [0:pi/2]
img = np.zeros((30, 24), dtype=int)
rx = 12
ry = 6
x0 = 10
y0 = 15
angle = np.pi / 1.35
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
assert_almost_equal(best[1] / 100., y0 / 100., decimal=1)
assert_almost_equal(best[2] / 100., x0 / 100., decimal=1)
assert_almost_equal(best[3] / 10., ry / 10., decimal=1)
assert_almost_equal(best[4] / 100., rx / 100., decimal=1)
assert_almost_equal(best[5], angle, decimal=1)
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_posangle3():
# ry < rx, angle in [pi/2:pi]
img = np.zeros((30, 24), dtype=int)
rx = 12
ry = 6
x0 = 10
y0 = 15
angle = np.pi / 1.35 + np.pi / 2.
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_posangle4():
# ry < rx, angle in [pi:3pi/4]
img = np.zeros((30, 24), dtype=int)
rx = 12
ry = 6
x0 = 10
y0 = 15
angle = np.pi / 1.35 + np.pi
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_negangle1():
# ry > rx, angle in [0:-pi/2]
img = np.zeros((30, 24), dtype=int)
rx = 6
ry = 12
x0 = 10
y0 = 15
angle = - np.pi / 1.35
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_negangle2():
# ry < rx, angle in [0:-pi/2]
img = np.zeros((30, 24), dtype=int)
rx = 12
ry = 6
x0 = 10
y0 = 15
angle = - np.pi / 1.35
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_negangle3():
# ry < rx, angle in [-pi/2:-pi]
img = np.zeros((30, 24), dtype=int)
rx = 12
ry = 6
x0 = 10
y0 = 15
angle = - np.pi / 1.35 - np.pi / 2.
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
def test_hough_ellipse_non_zero_negangle4():
# ry < rx, angle in [-pi:-3pi/4]
img = np.zeros((30, 24), dtype=int)
rx = 12
ry = 6
x0 = 10
y0 = 15
angle = - np.pi / 1.35 - np.pi
rr, cc = ellipse_perimeter(y0, x0, ry, rx, orientation=angle)
img[rr, cc] = 1
result = tf.hough_ellipse(img, threshold=15, accuracy=3)
result.sort(order='accumulator')
best = result[-1]
# Check if I re-draw the ellipse, points are the same!
# ie check API compatibility between hough_ellipse and ellipse_perimeter
rr2, cc2 = ellipse_perimeter(y0, x0, int(best[3]), int(best[4]),
orientation=best[5])
assert_equal(rr, rr2)
assert_equal(cc, cc2)
if __name__ == "__main__":
np.testing.run_module_suite()
| 32.705479
| 89
| 0.611588
| 2,239
| 14,325
| 3.744082
| 0.093792
| 0.031731
| 0.026244
| 0.042944
| 0.801861
| 0.754026
| 0.733031
| 0.705475
| 0.691519
| 0.667422
| 0
| 0.072751
| 0.253473
| 14,325
| 437
| 90
| 32.78032
| 0.711146
| 0.123072
| 0
| 0.6375
| 0
| 0
| 0.007668
| 0
| 0
| 0
| 0
| 0
| 0.20625
| 1
| 0.075
| false
| 0
| 0.01875
| 0
| 0.09375
| 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
|
8aca83f327314d62bc5602e9d1d41f64591bc9f5
| 217
|
py
|
Python
|
app/algorithms/__init__.py
|
niezhichaos/nantesmetropoleh
|
bc7a7784772c56362f6bcb0d6d398bf9a554ab1e
|
[
"MIT"
] | 6
|
2020-12-15T09:31:02.000Z
|
2021-12-12T09:42:05.000Z
|
app/algorithms/__init__.py
|
fBedecarrats/school_meal_forecast_xgboost
|
ebb10a8395b9b8158685953b030e664337cf20e0
|
[
"MIT"
] | 2
|
2021-12-12T09:57:38.000Z
|
2022-01-27T22:01:22.000Z
|
app/algorithms/__init__.py
|
fBedecarrats/school_meal_forecast_xgboost
|
ebb10a8395b9b8158685953b030e664337cf20e0
|
[
"MIT"
] | 3
|
2021-02-25T07:49:31.000Z
|
2022-01-10T09:57:39.000Z
|
"""
Import all calc methods and constants
"""
from .benchmark_model import benchmark_train_and_predict
from .xgb_model import xgb_train_and_predict
from .xgb_interval_prediction import xgb_interval_train_and_predict
| 27.125
| 67
| 0.861751
| 32
| 217
| 5.40625
| 0.4375
| 0.138728
| 0.260116
| 0.219653
| 0.254335
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 217
| 7
| 68
| 31
| 0.882653
| 0.170507
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
76db0b61cc96d8782acc89d5768b395cb9f1a4b6
| 34
|
py
|
Python
|
course-content/Examples/error_example3.py
|
ati-ozgur/course-python
|
38237d120043c07230658b56dc3aeb01c3364933
|
[
"Apache-2.0"
] | 1
|
2021-02-04T16:59:11.000Z
|
2021-02-04T16:59:11.000Z
|
course-content/Examples/error_example3.py
|
ati-ozgur/course-python
|
38237d120043c07230658b56dc3aeb01c3364933
|
[
"Apache-2.0"
] | null | null | null |
course-content/Examples/error_example3.py
|
ati-ozgur/course-python
|
38237d120043c07230658b56dc3aeb01c3364933
|
[
"Apache-2.0"
] | 1
|
2019-10-30T14:37:48.000Z
|
2019-10-30T14:37:48.000Z
|
while True:
print('Hello world)
| 11.333333
| 21
| 0.705882
| 5
| 34
| 4.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 34
| 2
| 22
| 17
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
76eb7ff711a116b320445d5727354044e7ba1b5f
| 48
|
py
|
Python
|
acme_instruments_service/program/run/__init__.py
|
atilag/AcmeInstrumentsService
|
ccaecd3b666d15ec8ffb67e836ef90d58d848ef4
|
[
"MIT"
] | null | null | null |
acme_instruments_service/program/run/__init__.py
|
atilag/AcmeInstrumentsService
|
ccaecd3b666d15ec8ffb67e836ef90d58d848ef4
|
[
"MIT"
] | null | null | null |
acme_instruments_service/program/run/__init__.py
|
atilag/AcmeInstrumentsService
|
ccaecd3b666d15ec8ffb67e836ef90d58d848ef4
|
[
"MIT"
] | 1
|
2022-03-31T07:55:37.000Z
|
2022-03-31T07:55:37.000Z
|
"""Component related to running of programs."""
| 24
| 47
| 0.729167
| 6
| 48
| 5.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 48
| 1
| 48
| 48
| 0.833333
| 0.854167
| 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
|
76f17458a545c6e48ffb181f19d2a8fdf727917b
| 3,664
|
py
|
Python
|
tensorflow_probability/python/internal/backend/numpy/__init__.py
|
jakee417/probability-1
|
ae7117f37ac441bc7a888167ea23e5e620c5bcde
|
[
"Apache-2.0"
] | 3,670
|
2018-02-14T03:29:40.000Z
|
2022-03-30T01:19:52.000Z
|
tensorflow_probability/python/internal/backend/numpy/__init__.py
|
jakee417/probability-1
|
ae7117f37ac441bc7a888167ea23e5e620c5bcde
|
[
"Apache-2.0"
] | 1,395
|
2018-02-24T02:28:49.000Z
|
2022-03-31T16:12:06.000Z
|
tensorflow_probability/python/internal/backend/numpy/__init__.py
|
jakee417/probability-1
|
ae7117f37ac441bc7a888167ea23e5e620c5bcde
|
[
"Apache-2.0"
] | 1,135
|
2018-02-14T01:51:10.000Z
|
2022-03-28T02:24:11.000Z
|
# Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
"""Experimental Numpy backend."""
from tensorflow_probability.python.internal.backend.numpy import __internal__
from tensorflow_probability.python.internal.backend.numpy import bitwise
from tensorflow_probability.python.internal.backend.numpy import compat
from tensorflow_probability.python.internal.backend.numpy import config
from tensorflow_probability.python.internal.backend.numpy import debugging
from tensorflow_probability.python.internal.backend.numpy import dtype as dtypes
from tensorflow_probability.python.internal.backend.numpy import errors
from tensorflow_probability.python.internal.backend.numpy import linalg
from tensorflow_probability.python.internal.backend.numpy import nest
from tensorflow_probability.python.internal.backend.numpy import nn
from tensorflow_probability.python.internal.backend.numpy import numpy_array as array
from tensorflow_probability.python.internal.backend.numpy import numpy_keras as keras
from tensorflow_probability.python.internal.backend.numpy import numpy_logging as logging
from tensorflow_probability.python.internal.backend.numpy import numpy_math as math
from tensorflow_probability.python.internal.backend.numpy import numpy_signal as signal
from tensorflow_probability.python.internal.backend.numpy import random_generators as random
from tensorflow_probability.python.internal.backend.numpy import raw_ops
from tensorflow_probability.python.internal.backend.numpy import sets_lib as sets
from tensorflow_probability.python.internal.backend.numpy import sparse_lib as sparse
from tensorflow_probability.python.internal.backend.numpy import test_lib as test
from tensorflow_probability.python.internal.backend.numpy.control_flow import * # pylint: disable=wildcard-import
from tensorflow_probability.python.internal.backend.numpy.dtype import * # pylint: disable=wildcard-import
from tensorflow_probability.python.internal.backend.numpy.functional_ops import * # pylint: disable=wildcard-import
from tensorflow_probability.python.internal.backend.numpy.gen.tensor_shape import TensorShape
from tensorflow_probability.python.internal.backend.numpy.misc import * # pylint: disable=wildcard-import
from tensorflow_probability.python.internal.backend.numpy.numpy_array import * # pylint: disable=wildcard-import
from tensorflow_probability.python.internal.backend.numpy.numpy_math import * # pylint: disable=wildcard-import
from tensorflow_probability.python.internal.backend.numpy.ops import * # pylint: disable=wildcard-import
from tensorflow_probability.python.internal.backend.numpy.tensor_spec import TensorSpec
from tensorflow_probability.python.internal.backend.numpy.type_spec import BatchableTypeSpec
from tensorflow_probability.python.internal.backend.numpy.type_spec import TypeSpec
Assert = debugging.Assert
Module = compat.v2.Module
TensorArray = compat.v2.TensorArray
Variable = compat.v2.Variable
check_numerics = debugging.check_numerics
eye = linalg.eye
function = compat.function
matmul = linalg.matmul
| 63.172414
| 116
| 0.831605
| 474
| 3,664
| 6.312236
| 0.253165
| 0.224599
| 0.259024
| 0.32119
| 0.668783
| 0.668783
| 0.668783
| 0.634693
| 0.34893
| 0.245321
| 0
| 0.003275
| 0.083242
| 3,664
| 57
| 117
| 64.280702
| 0.887467
| 0.246179
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 1
| 0
| false
| 0
| 0.794872
| 0
| 0.794872
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
76f4474076567d65bc6b2054209b98bafb8fe44e
| 81
|
py
|
Python
|
medspacy/pipeline.py
|
tnguyen-cohere/medspacy
|
5d820a492d02440e4e902398397052daadb0e4ce
|
[
"MIT"
] | null | null | null |
medspacy/pipeline.py
|
tnguyen-cohere/medspacy
|
5d820a492d02440e4e902398397052daadb0e4ce
|
[
"MIT"
] | null | null | null |
medspacy/pipeline.py
|
tnguyen-cohere/medspacy
|
5d820a492d02440e4e902398397052daadb0e4ce
|
[
"MIT"
] | null | null | null |
from cycontext import ConTextComponent
from nlp_preprocessor import Preprocessor
| 27
| 41
| 0.901235
| 9
| 81
| 8
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098765
| 81
| 2
| 42
| 40.5
| 0.986301
| 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
|
0a0f2c47422e661b960c80641cded2ae9d28b27f
| 30
|
py
|
Python
|
modules/2.79/bpy/types/UI_UL_list.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
modules/2.79/bpy/types/UI_UL_list.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
modules/2.79/bpy/types/UI_UL_list.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
class UI_UL_list:
pass
| 5
| 17
| 0.633333
| 5
| 30
| 3.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 30
| 5
| 18
| 6
| 0.85
| 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
|
0a3f322fa949564e2a2eeb2f47c92b6b990021f7
| 24,969
|
py
|
Python
|
tests/unit/manager/default/test_background_job.py
|
coolyuvee/poppy
|
49c8ad0973798eb98bfadb7d6a5c73744f334413
|
[
"Apache-2.0"
] | 3
|
2017-07-05T20:09:59.000Z
|
2018-11-27T22:02:57.000Z
|
tests/unit/manager/default/test_background_job.py
|
coolyuvee/poppy
|
49c8ad0973798eb98bfadb7d6a5c73744f334413
|
[
"Apache-2.0"
] | 24
|
2017-04-18T15:14:04.000Z
|
2019-03-20T19:09:07.000Z
|
tests/unit/manager/default/test_background_job.py
|
coolyuvee/poppy
|
49c8ad0973798eb98bfadb7d6a5c73744f334413
|
[
"Apache-2.0"
] | 8
|
2017-04-03T13:24:27.000Z
|
2021-11-08T20:28:10.000Z
|
# Copyright (c) 2016 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import ddt
import json
import mock
from oslo_config import cfg
from poppy.manager.default import background_job
from poppy.manager.default import driver
from poppy.model.helpers import domain
from poppy.model import service
from poppy.notification.mailgun import driver as n_driver
from poppy.provider.akamai import driver as aka_driver
from tests.unit import base
@ddt.ddt
class DefaultSSLCertificateControllerTests(base.TestCase):
@mock.patch('poppy.bootstrap.Bootstrap')
@mock.patch('poppy.notification.base.driver.NotificationDriverBase')
@mock.patch('poppy.dns.base.driver.DNSDriverBase')
@mock.patch('poppy.storage.base.driver.StorageDriverBase')
@mock.patch('poppy.distributed_task.base.driver.DistributedTaskDriverBase')
@mock.patch('poppy.metrics.base.driver.MetricsDriverBase')
def setUp(self, mock_metrics, mock_distributed_task, mock_storage,
mock_dns, mock_notification, mock_bootstrap):
super(DefaultSSLCertificateControllerTests, self).setUp()
conf = cfg.ConfigOpts()
conf.register_opts(aka_driver.AKAMAI_OPTIONS, aka_driver.AKAMAI_GROUP)
conf.register_opts(n_driver.MAIL_NOTIFICATION_OPTIONS,
n_driver.MAIL_NOTIFICATION_GROUP)
conf.set_override(
'san_cert_cnames',
[
"san.example.com", "san2.example.com"
],
group=aka_driver.AKAMAI_GROUP
)
self.addCleanup(
conf.clear_override,
'san_cert_cnames',
group=aka_driver.AKAMAI_GROUP
)
conf.set_override(
'sni_cert_cnames',
[
"sni.example.com", "sni2.example.com"
],
group=aka_driver.AKAMAI_GROUP
)
self.addCleanup(
conf.clear_override,
'sni_cert_cnames',
group=aka_driver.AKAMAI_GROUP
)
conf.set_override(
'akamai_https_access_url_suffix',
'edge.key.net',
group=aka_driver.AKAMAI_GROUP
)
self.addCleanup(
conf.clear_override,
'akamai_https_access_url_suffix',
group=aka_driver.AKAMAI_GROUP
)
self.provider_mocks = {
'akamai': mock.Mock(provider_name="Akamai"),
'maxcdn': mock.Mock(provider_name='MaxCDN'),
'cloudfront': mock.Mock(provider_name='CloudFront'),
'fastly': mock.Mock(provider_name='Fastly'),
'mock': mock.Mock(provider_name='Mock')
}
# mock a stevedore provider extension
def get_provider_by_name(name):
obj_mock = self.provider_mocks[name]
obj_mock.san_cert_cnames = ["san.example.com", "san2.example.com"]
obj_mock.akamai_sps_api_base_url = 'akamai_base_url/{spsId}'
provider = mock.Mock(obj=obj_mock)
return provider
def provider_membership(key):
return True if key in self.provider_mocks else False
self.mock_storage = mock_storage
self.mock_providers = mock.MagicMock()
self.mock_providers.__getitem__.side_effect = get_provider_by_name
self.mock_providers.__contains__.side_effect = provider_membership
self.manager_driver = driver.DefaultManagerDriver(
conf,
mock_storage,
self.mock_providers,
mock_dns,
mock_distributed_task,
mock_notification,
mock_metrics
)
self.bgc = background_job.BackgroundJobController(
self.manager_driver
)
def test_get_san_mapping_list_positive(self):
self.manager_driver.providers[
'akamai'].obj.san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": "san",
"cert_details": {
"Akamai": {
"extra_info": {
"san cert": "san.example.com",
"akamai_spsId": 1
}
}
}
})
]
self.assertEqual(1, len(self.bgc.get_san_mapping_list()))
def test_get_san_mapping_list_no_akamai_provider(self):
del self.provider_mocks['akamai']
self.assertEqual(0, len(self.bgc.get_san_mapping_list()))
def test_put_san_mapping_list_no_akamai_provider(self):
del self.provider_mocks['akamai']
new_queue_data = [
{
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": "san",
"cert_details": {
"Akamai": {
"extra_info": {
"san cert": "san.example.com",
"akamai_spsId": 1
}
}
}
}
]
res, deleted = self.bgc.put_san_mapping_list(new_queue_data)
self.assertEqual(0, len(res))
self.assertEqual(0, len(deleted))
def test_put_san_mapping_list(self):
original_queue_data = [{
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": "san",
"cert_details": {
"Akamai": {
"extra_info": {
"san cert": "san.example.com",
"akamai_spsId": 1
}
}
}
}]
akamai_driver = self.manager_driver.providers[
'akamai'].obj
akamai_driver.san_mapping_queue.traverse_queue.return_value = [
json.dumps(original_queue_data)
]
akamai_driver.san_mapping_queue.put_queue_data.side_effect = lambda \
value: value
new_queue_data = [{
"domain_name": "new.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": "san",
"cert_details": {
"Akamai": {
"extra_info": {
"san cert": "san.example.com",
"akamai_spsId": 1
}
}
}
}]
res, deleted = self.bgc.put_san_mapping_list(new_queue_data)
self.assertEqual(new_queue_data, res)
self.assertTrue(
akamai_driver.san_mapping_queue.traverse_queue.called
)
self.assertTrue(
akamai_driver.san_mapping_queue.put_queue_data.called
)
@ddt.data(
"akamai_check_and_update_cert_status",
"akamai_update_papi_property_for_mod_san",
"akamai_update_papi_property_for_mod_sni"
)
def test_post_job_no_akamai_driver(self, job_type):
del self.provider_mocks['akamai']
run_list, ignore_list = self.bgc.post_job(job_type, {})
self.assertEqual(0, len(run_list))
self.assertEqual(0, len(ignore_list))
@ddt.data(
("akamai_check_and_update_cert_status", "san"),
("akamai_update_papi_property_for_mod_san", "san"),
("akamai_update_papi_property_for_mod_sni", "sni")
)
def test_post_job_positive(self, job_tuple):
job_type, cert_type = job_tuple
# mock ssl storage returning a cert
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = [
mock.Mock()
]
# mock service storage returning a service with domain with
# correct protocol + cert
self.mock_storage.services_controller. \
get_service_details_by_domain_name.return_value = service.Service(
'service_id',
'name',
[
domain.Domain(
"www.example.com",
protocol='https',
certificate=cert_type
)
],
[],
'flavor_id',
project_id='project_id'
)
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
cert_key = ('san cert' if cert_type == 'san' else 'sni_cert')
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": cert_type,
"cert_details": {
"Akamai": {
"extra_info": {
cert_key: "{0}.example.com".format(cert_type),
"akamai_spsId": 1
}
}
},
'property_activated': (
True
if job_type == "akamai_check_and_update_cert_status"
else False)
})
]
run_list, ignore_list = self.bgc.post_job(
job_type,
{'project_id': 'project_id'}
)
self.assertEqual(1, len(run_list))
self.assertEqual(0, len(ignore_list))
self.assertTrue(
self.bgc.distributed_task_controller.submit_task.called
)
@ddt.data(
("akamai_update_papi_property_for_mod_san", "san"),
("akamai_update_papi_property_for_mod_sni", "sni")
)
def test_post_job_skip_activated(self, job_tuple):
job_type, cert_type = job_tuple
# mock ssl storage returning a cert
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = [
mock.Mock()
]
# mock service storage returning a service with domain with
# correct protocol + cert
self.mock_storage.services_controller. \
get_service_details_by_domain_name.return_value = service.Service(
'service_id',
'name',
[
domain.Domain(
"www.example.com",
protocol='https',
certificate=cert_type
)
],
[],
'flavor_id',
project_id='project_id'
)
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
cert_key = ('san cert' if cert_type == 'san' else 'sni_cert')
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": cert_type,
"cert_details": {
"Akamai": {
"extra_info": {
cert_key: "{0}.example.com".format(cert_type),
"akamai_spsId": 1
}
}
},
# This item will be skipped if repeated attempts
# to activate the same domain_name are made.
"property_activated": True
})
]
run_list, ignore_list = self.bgc.post_job(
job_type,
{'project_id': 'project_id'}
)
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertFalse(
self.bgc.distributed_task_controller.submit_task.called
)
@ddt.data("san", "sni")
def test_post_job_ignored_cert_no_longer_exists(self, cert_type):
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = []
cert_key = ('san cert' if cert_type == 'san' else 'sni_cert')
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": cert_type,
"cert_details": {
"Akamai": {
"extra_info": {
cert_key: "san.example.com",
"akamai_spsId": 1
}
}
},
'property_activated': True
})
]
run_list, ignore_list = self.bgc.post_job(
"akamai_update_papi_property_for_mod_{0}".format(cert_type),
{'project_id': 'project_id'}
)
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertEqual(
False,
self.bgc.distributed_task_controller.submit_task.called
)
@ddt.data("san", "sni")
def test_post_job_domain_type_modified_on_service(self, cert_type):
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = [
mock.Mock()
]
# simulate domain being changed from https+san to http
self.mock_storage.services_controller. \
get_service_details_by_domain_name.return_value = service.Service(
'service_id',
'name',
[
domain.Domain(
"www.example.com",
protocol='http',
)
],
[],
'flavor_id',
project_id='project_id'
)
cert_key = ('san cert' if cert_type == 'san' else 'sni_cert')
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": cert_type,
"cert_details": {
"Akamai": {
"extra_info": {
cert_key: "san.example.com",
"akamai_spsId": 1
}
}
},
'property_activated': True
})
]
run_list, ignore_list = self.bgc.post_job(
"akamai_update_papi_property_for_mod_{0}".format(cert_type),
{'project_id': 'project_id'}
)
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertEqual(
False,
self.bgc.distributed_task_controller.submit_task.called
)
@ddt.data("san", "sni")
def test_post_job_service_no_longer_exists(self, cert_type):
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = [
mock.Mock()
]
# simulate domain being changed from https+san to http
self.mock_storage.services_controller. \
get_service_details_by_domain_name.return_value = None
cert_key = ('san cert' if cert_type == 'san' else 'sni_cert')
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": cert_type,
"cert_details": {
"Akamai": {
"extra_info": {
cert_key: "san.example.com",
"akamai_spsId": 1
}
}
},
'property_activated': True
})
]
run_list, ignore_list = self.bgc.post_job(
"akamai_update_papi_property_for_mod_{0}".format(cert_type),
{'project_id': 'project_id'}
)
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertEqual(
False,
self.bgc.distributed_task_controller.submit_task.called
)
@ddt.data(
("akamai_update_papi_property_for_mod_san", "san"),
("akamai_update_papi_property_for_mod_sni", "sni"),
)
def test_post_job_invalid_cert_cname(self, job_tuple):
job_type, cert_type = job_tuple
# mock ssl storage returning a cert
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = [
mock.Mock()
]
# mock service storage returning a service with domain with
# correct protocol + cert
self.mock_storage.services_controller. \
get_service_details_by_domain_name.return_value = service.Service(
'service_id',
'name',
[
domain.Domain(
"www.example.com",
protocol='https',
certificate=cert_type
)
],
[],
'flavor_id',
project_id='project_id'
)
cert_key = ('san cert' if cert_type == 'san' else 'sni_cert')
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": cert_type,
"cert_details": {
"Akamai": {
"extra_info": {
cert_key: "not.exist.com",
"akamai_spsId": 1
}
}
}
})
]
run_list, ignore_list = self.bgc.post_job(
job_type,
{'project_id': 'project_id'}
)
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertEqual(
False,
self.bgc.distributed_task_controller.submit_task.called
)
@ddt.data("akamai_check_and_update_cert_status")
def test_post_job_submit_task_exception(self, job_type):
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": "san",
"cert_details": {
"Akamai": {
"extra_info": {
"san cert": "san.example.com",
"akamai_spsId": 1
}
}
}
})
]
self.bgc.distributed_task_controller.submit_task.side_effect = (
Exception('Mock -- Something went wrong submit_task()!')
)
run_list, ignore_list = self.bgc.post_job(
job_type,
{'project_id': 'project_id'}
)
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertEqual(
True,
san_mapping_queue.enqueue_san_mapping.called
)
@ddt.data("akamai_check_and_update_cert_status")
def test_post_job_submit_task_exception_enqueue_retry(self, job_type):
san_mapping_queue = self.manager_driver.providers[
'akamai'].obj.san_mapping_queue
san_mapping_queue.traverse_queue.return_value = [
json.dumps({
"domain_name": "www.example.com",
"flavor_id": "flavor_id",
"project_id": "project_id",
"cert_type": "san",
"cert_details": {
"Akamai": {
"extra_info": {
"san cert": "san.example.com",
"akamai_spsId": 1
}
}
},
'property_activated': True
})
]
self.bgc.distributed_task_controller.submit_task.side_effect = (
Exception('Mock -- Something went wrong submit_task()!')
)
san_mapping_queue.enqueue_san_mapping.side_effect = [
Exception('Mock -- First enqueue attempt failed!'),
None # successful call on second attempt
]
run_list, ignore_list = self.bgc.post_job(
job_type,
{'project_id': 'project_id'}
)
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertEqual(
True,
san_mapping_queue.enqueue_san_mapping.called
)
def test_delete_http_policy_positive(self):
cert_mock = mock.Mock()
cert_mock.get_cert_status.return_value = 'deployed'
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = cert_mock
http_policy_queue = self.manager_driver.providers[
'akamai'].obj.http_policy_queue
http_policy_queue.traverse_queue.return_value = [
json.dumps({
'policy_name': 'www.example.com',
'project_id': 'project_id',
'configuration_number': 12345
})
]
run_list, ignore_list = self.bgc.delete_http_policy()
self.assertEqual(1, len(run_list))
self.assertEqual(0, len(ignore_list))
self.assertTrue(
self.bgc.distributed_task_controller.submit_task.called
)
def test_delete_http_policy_cert_not_deployed(self):
cert_mock = mock.Mock()
cert_mock.get_cert_status.return_value = 'create_in_progress'
self.mock_storage.certificates_controller.\
get_certs_by_domain.return_value = cert_mock
http_policy_queue = self.manager_driver.providers[
'akamai'].obj.http_policy_queue
http_policy_queue.traverse_queue.return_value = [
json.dumps({
'policy_name': 'www.example.com',
'project_id': 'project_id',
'configuration_number': 12345
})
]
run_list, ignore_list = self.bgc.delete_http_policy()
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertFalse(
self.bgc.distributed_task_controller.submit_task.called
)
def test_delete_http_policy_cert_doesnt_exist(self):
self.mock_storage.certificates_controller.\
get_certs_by_domain.side_effect = ValueError
http_policy_queue = self.manager_driver.providers[
'akamai'].obj.http_policy_queue
http_policy_queue.traverse_queue.return_value = [
json.dumps({
'policy_name': 'www.example.com',
'project_id': 'project_id',
'configuration_number': 12345
})
]
run_list, ignore_list = self.bgc.delete_http_policy()
self.assertEqual(0, len(run_list))
self.assertEqual(1, len(ignore_list))
self.assertFalse(
self.bgc.distributed_task_controller.submit_task.called
)
def test_delete_http_policy_no_akamai_provider(self):
del self.provider_mocks['akamai']
run_list, ignore_list = self.bgc.delete_http_policy()
self.assertEqual(0, len(run_list))
self.assertEqual(0, len(ignore_list))
| 35.417021
| 79
| 0.54047
| 2,535
| 24,969
| 4.968047
| 0.101775
| 0.03859
| 0.037558
| 0.03859
| 0.791091
| 0.781483
| 0.754486
| 0.745514
| 0.733524
| 0.705098
| 0
| 0.004601
| 0.364612
| 24,969
| 704
| 80
| 35.46733
| 0.789222
| 0.046818
| 0
| 0.636066
| 0
| 0
| 0.162221
| 0.039798
| 0
| 0
| 0
| 0
| 0.072131
| 1
| 0.032787
| false
| 0
| 0.018033
| 0.001639
| 0.055738
| 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
|
6a6e1b904620159386b6237378955247bfd9a30f
| 56
|
py
|
Python
|
mapry/cpp/__init__.py
|
Parquery/mapry
|
93515307f9eba8447fe64b0ac7cc68b2d07205a7
|
[
"MIT"
] | 11
|
2019-06-26T05:56:41.000Z
|
2021-03-28T16:44:16.000Z
|
mapry/cpp/__init__.py
|
Parquery/mapry
|
93515307f9eba8447fe64b0ac7cc68b2d07205a7
|
[
"MIT"
] | 4
|
2019-10-18T14:43:59.000Z
|
2020-04-02T19:12:07.000Z
|
mapry/cpp/__init__.py
|
Parquery/mapry
|
93515307f9eba8447fe64b0ac7cc68b2d07205a7
|
[
"MIT"
] | 3
|
2019-06-17T07:39:03.000Z
|
2020-04-01T14:01:23.000Z
|
"""Generate the C++ code for handling mapry schemas."""
| 28
| 55
| 0.696429
| 8
| 56
| 4.875
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 56
| 1
| 56
| 56
| 0.8125
| 0.875
| 0
| null | 1
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6a87c55550ae5078617f75f7b854689379d401f3
| 34
|
py
|
Python
|
python/interpret_text/experimental/common/base_text_tokenizer.py
|
imatiach-msft/interpret-text
|
7629b78f425459a84a40fe0acf370de5b5b27bd1
|
[
"MIT"
] | 277
|
2020-05-12T10:14:02.000Z
|
2022-03-31T07:09:06.000Z
|
python/interpret_text/experimental/common/base_text_tokenizer.py
|
nehalecky/interpret-text
|
62a5e7406bf5c7d2df69648a278082d602e88dd6
|
[
"MIT"
] | 49
|
2020-04-30T18:15:30.000Z
|
2022-02-27T01:03:04.000Z
|
python/interpret_text/experimental/common/base_text_tokenizer.py
|
nehalecky/interpret-text
|
62a5e7406bf5c7d2df69648a278082d602e88dd6
|
[
"MIT"
] | 48
|
2020-05-08T16:07:32.000Z
|
2022-03-06T21:34:18.000Z
|
class BaseTextTokenizer:
pass
| 11.333333
| 24
| 0.764706
| 3
| 34
| 8.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.205882
| 34
| 2
| 25
| 17
| 0.962963
| 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
|
6aac5b3247ea0afb6f000bfec6e0b03f07c63254
| 167
|
py
|
Python
|
utils/__init__.py
|
huangkaiyikatherine/nexperia_new
|
b9b5c35d989883f8b29280726bfbb0fc84e62b10
|
[
"MIT"
] | 3
|
2020-11-09T13:45:51.000Z
|
2021-03-25T12:00:11.000Z
|
utils/__init__.py
|
huangkaiyikatherine/nexperia_new
|
b9b5c35d989883f8b29280726bfbb0fc84e62b10
|
[
"MIT"
] | null | null | null |
utils/__init__.py
|
huangkaiyikatherine/nexperia_new
|
b9b5c35d989883f8b29280726bfbb0fc84e62b10
|
[
"MIT"
] | 3
|
2020-12-27T03:44:53.000Z
|
2021-02-16T04:24:12.000Z
|
from __future__ import absolute_import
from .utils import accuracy, save_checkpoint, AverageMeter, AUCMeter, Timeline
from .optim import get_scheduler, get_optimizer
| 33.4
| 78
| 0.850299
| 21
| 167
| 6.380952
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107784
| 167
| 4
| 79
| 41.75
| 0.899329
| 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
|
6ad427bd5640c3c94b096ef50801034bb83ea25b
| 5,245
|
py
|
Python
|
backend/tests_communities.py
|
WilliamOrringe/uthos
|
e59430f277677158d957ae91226198bd7a43301d
|
[
"MIT"
] | 1
|
2021-03-04T11:51:43.000Z
|
2021-03-04T11:51:43.000Z
|
backend/tests_communities.py
|
WilliamOrringe/uthos
|
e59430f277677158d957ae91226198bd7a43301d
|
[
"MIT"
] | 23
|
2021-03-04T16:18:45.000Z
|
2021-03-11T10:36:38.000Z
|
backend/tests_communities.py
|
WilliamOrringe/uthos
|
e59430f277677158d957ae91226198bd7a43301d
|
[
"MIT"
] | null | null | null |
import json
from django.test import TestCase
from backend.models import User, Community, CommunityMember
class CommunityListEndpointTest(TestCase):
"""
Test community get endpoints.
"""
def setUp(self):
self.user = User.objects.create_superuser(
username="testy", email="test@4ums.co.uk", password="abc"
)
success = self.client.login(username="test@4ums.co.uk", password="abc")
assert success
def test_auth_401(self):
"""Test that the endpoint requires login."""
self.client.logout() # setUp includes login
response = self.client.get("/api/communities")
self.assertEqual(401, response.status_code)
def test_get_400(self):
"""Test that the endpoint requires "type" in the body."""
response = self.client.get("/api/communities")
self.assertEqual(400, response.status_code)
def test_get_invalid_400(self):
"""Test that the endpoint requires "type" to be a specific value."""
response = self.client.get("/api/communities", {"type": "banana"})
self.assertEqual(400, response.status_code)
def test_get_valid_other(self):
"""Test that the endpoint returns the expected list."""
Community.objects.create(
user=self.user, name="lorem", description="lorem ipsum ..."
)
other_user = User.objects.create(
username="bob", email="bob@4ums.co.uk", password="opensaysame"
)
Community.objects.create(
user=other_user,
name="bobgang",
description="Bob's gang (cool kids only)",
)
response = self.client.get("/api/communities", {"type": "other"})
self.assertEqual(200, response.status_code)
result = json.loads(response.content.decode())
expected = [
{
"id": 2,
"name": "bobgang",
"description": "Bob's gang (cool kids only)",
"colour": None,
},
{
"id": 1,
"name": "lorem",
"description": "lorem ipsum ...",
"colour": None,
},
]
self.assertEqual(2, len(result["data"]))
self.assertEqual(expected, result["data"])
def test_get_valid_created(self):
"""Test that the endpoint returns the expected list."""
Community.objects.create(
user=self.user, name="lorem", description="lorem ipsum ..."
)
other_user = User.objects.create(
username="bob", email="bob@4ums.co.uk", password="opensaysame"
)
Community.objects.create(
user=other_user,
name="bobgang",
description="Bob's gang (cool kids only)",
)
response = self.client.get("/api/communities", {"type": "created"})
self.assertEqual(200, response.status_code)
result = json.loads(response.content.decode())
expected = {
"id": 1,
"name": "lorem",
"description": "lorem ipsum ...",
"colour": None,
}
self.assertEqual(1, len(result["data"]))
self.assertEqual(expected, result["data"][0])
def test_get_valid_member(self):
"""Test that the endpoint returns the expected list."""
comm_instance1 = Community.objects.create(
user=self.user, name="lorem", description="lorem ipsum ..."
)
CommunityMember.objects.create(user=self.user, community=comm_instance1)
other_user = User.objects.create(
username="bob", email="bob@4ums.co.uk", password="opensaysame"
)
comm_instance2 = Community.objects.create(
user=other_user,
name="bobgang",
description="Bob's gang (cool kids only)",
)
# check that only one community (lorem) is returned
response = self.client.get("/api/communities", {"type": "memberof"})
self.assertEqual(200, response.status_code)
result = json.loads(response.content.decode())
expected = {
"id": 1,
"name": "lorem",
"description": "lorem ipsum ...",
"colour": None,
}
self.assertEqual(1, len(result["data"]))
self.assertEqual(expected, result["data"][0])
# add the user as a member of the other community (bobgang)
CommunityMember.objects.create(user=self.user, community=comm_instance2)
# check that both are returned
response = self.client.get("/api/communities", {"type": "memberof"})
self.assertEqual(200, response.status_code)
result = json.loads(response.content.decode())
expected = [
{
"id": 2,
"name": "bobgang",
"description": "Bob's gang (cool kids only)",
"colour": None,
},
{
"id": 1,
"name": "lorem",
"description": "lorem ipsum ...",
"colour": None,
},
]
self.assertEqual(2, len(result["data"]))
self.assertEqual(expected, result["data"])
| 32.177914
| 80
| 0.554433
| 538
| 5,245
| 5.342007
| 0.19145
| 0.078288
| 0.047321
| 0.051148
| 0.806193
| 0.806193
| 0.769659
| 0.756089
| 0.663187
| 0.615518
| 0
| 0.014085
| 0.309628
| 5,245
| 162
| 81
| 32.376543
| 0.779619
| 0.093804
| 0
| 0.610169
| 0
| 0
| 0.163903
| 0
| 0
| 0
| 0
| 0
| 0.135593
| 1
| 0.059322
| false
| 0.042373
| 0.025424
| 0
| 0.09322
| 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
|
0a91f0594c5c94c40320608b2902d9fe3ecf3227
| 86
|
py
|
Python
|
ci-files/cat-env.py
|
tosuke/sea
|
8585bf214519691c496b2c485e7f299ab89d764a
|
[
"MIT"
] | 30
|
2019-04-21T10:03:12.000Z
|
2021-11-12T12:04:02.000Z
|
ci-files/cat-env.py
|
tosuke/sea
|
8585bf214519691c496b2c485e7f299ab89d764a
|
[
"MIT"
] | 1,329
|
2019-05-02T07:37:58.000Z
|
2022-03-26T12:20:53.000Z
|
ci-files/cat-env.py
|
tosuke/sea
|
8585bf214519691c496b2c485e7f299ab89d764a
|
[
"MIT"
] | 10
|
2019-05-01T17:58:09.000Z
|
2020-02-26T05:33:45.000Z
|
#!/usr/bin/env python3
import os
import sys
print(os.environ.get(sys.argv[1]), end="")
| 21.5
| 42
| 0.709302
| 16
| 86
| 3.8125
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025316
| 0.081395
| 86
| 4
| 42
| 21.5
| 0.746835
| 0.244186
| 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
|
0adcb664f793750c5fb4f3fba6e29d1cf6b0c4a6
| 183
|
py
|
Python
|
src/psion/oauth2/grants/__init__.py
|
revensky/psion
|
dfe38a1a4f4d6a5029d0973dbe1326415df6d512
|
[
"MIT"
] | 2
|
2021-02-22T22:12:23.000Z
|
2021-02-22T22:48:33.000Z
|
src/psion/oauth2/grants/__init__.py
|
revensky/psion
|
dfe38a1a4f4d6a5029d0973dbe1326415df6d512
|
[
"MIT"
] | null | null | null |
src/psion/oauth2/grants/__init__.py
|
revensky/psion
|
dfe38a1a4f4d6a5029d0973dbe1326415df6d512
|
[
"MIT"
] | null | null | null |
from .authorization_code import AuthorizationCodeGrant
from .base import BaseGrant
from .client_credentials import ClientCredentialsGrant
from .refresh_token import RefreshTokenGrant
| 36.6
| 54
| 0.89071
| 19
| 183
| 8.421053
| 0.684211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087432
| 183
| 4
| 55
| 45.75
| 0.958084
| 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
|
7c1c1000441a38b9eeaca3cefd70a83d80ce0ea4
| 19
|
py
|
Python
|
Spider/zhihu/__init__.py
|
xu6148152/Binea_Python_Project
|
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
|
[
"MIT"
] | null | null | null |
Spider/zhihu/__init__.py
|
xu6148152/Binea_Python_Project
|
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
|
[
"MIT"
] | null | null | null |
Spider/zhihu/__init__.py
|
xu6148152/Binea_Python_Project
|
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
|
[
"MIT"
] | null | null | null |
# -*-coding:utf8-*-
| 19
| 19
| 0.526316
| 2
| 19
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0.052632
| 19
| 1
| 19
| 19
| 0.5
| 0.894737
| 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
|
7c218b5cd69a836c2075ebae47d51b9ca88212fe
| 8,362
|
py
|
Python
|
flair/datasets/__init__.py
|
hebecked/flair
|
bf0820291cd07914c8c31bee345921f65c604d95
|
[
"MIT"
] | null | null | null |
flair/datasets/__init__.py
|
hebecked/flair
|
bf0820291cd07914c8c31bee345921f65c604d95
|
[
"MIT"
] | null | null | null |
flair/datasets/__init__.py
|
hebecked/flair
|
bf0820291cd07914c8c31bee345921f65c604d95
|
[
"MIT"
] | null | null | null |
# Expose base classses
from .base import DataLoader
from .base import SentenceDataset
from .base import StringDataset
from .base import MongoDataset
# Expose all sequence labeling datasets
from .sequence_labeling import ColumnCorpus
from .sequence_labeling import ColumnDataset
from .sequence_labeling import BIOFID
from .sequence_labeling import BIOSCOPE
from .sequence_labeling import CONLL_03
from .sequence_labeling import CONLL_03_GERMAN
from .sequence_labeling import CONLL_03_DUTCH
from .sequence_labeling import CONLL_03_SPANISH
from .sequence_labeling import CONLL_2000
from .sequence_labeling import TWITTER_NER
from .sequence_labeling import DANE
from .sequence_labeling import EUROPARL_NER_GERMAN
from .sequence_labeling import GERMEVAL_14
from .sequence_labeling import INSPEC
from .sequence_labeling import LER_GERMAN
from .sequence_labeling import NER_BASQUE
from .sequence_labeling import NER_FINNISH
from .sequence_labeling import NER_SWEDISH
from .sequence_labeling import SEMEVAL2010
from .sequence_labeling import SEMEVAL2017
from .sequence_labeling import WIKIANN
from .sequence_labeling import XTREME
from .sequence_labeling import WIKIGOLD_NER
from .sequence_labeling import WIKINER_ENGLISH
from .sequence_labeling import WIKINER_GERMAN
from .sequence_labeling import WIKINER_DUTCH
from .sequence_labeling import WIKINER_FRENCH
from .sequence_labeling import WIKINER_ITALIAN
from .sequence_labeling import WIKINER_SPANISH
from .sequence_labeling import WIKINER_PORTUGUESE
from .sequence_labeling import WIKINER_POLISH
from .sequence_labeling import WIKINER_RUSSIAN
from .sequence_labeling import WNUT_17
from .sequence_labeling import WEIBO_NER
from .sequence_labeling import MIT_RESTAURANTS
from .sequence_labeling import UP_CHINESE
from .sequence_labeling import UP_ENGLISH
from .sequence_labeling import UP_FINNISH
from .sequence_labeling import UP_FRENCH
from .sequence_labeling import UP_GERMAN
from .sequence_labeling import UP_ITALIAN
from .sequence_labeling import UP_SPANISH
from .sequence_labeling import UP_SPANISH_ANCORA
from .sequence_labeling import ANER_CORP
from .sequence_labeling import MITMovieNERSimple
from .sequence_labeling import MITMovieNERComplex
from .sequence_labeling import TURKU_NER
# Expose all document classification datasets
from .document_classification import ClassificationCorpus
from .document_classification import ClassificationDataset
from .document_classification import CSVClassificationCorpus
from .document_classification import CSVClassificationDataset
from .document_classification import AMAZON_REVIEWS
from .document_classification import IMDB
from .document_classification import NEWSGROUPS
from .document_classification import SENTIMENT_140
from .document_classification import SENTEVAL_CR
from .document_classification import SENTEVAL_MR
from .document_classification import SENTEVAL_MPQA
from .document_classification import SENTEVAL_SUBJ
from .document_classification import SENTEVAL_SST_BINARY
from .document_classification import SENTEVAL_SST_GRANULAR
from .document_classification import TREC_50
from .document_classification import TREC_6
from .document_classification import COMMUNICATIVE_FUNCTIONS
from .document_classification import WASSA_ANGER
from .document_classification import WASSA_FEAR
from .document_classification import WASSA_JOY
from .document_classification import WASSA_SADNESS
from .document_classification import GO_EMOTIONS
# Expose all treebanks
from .treebanks import UniversalDependenciesCorpus
from .treebanks import UniversalDependenciesDataset
from .treebanks import UD_ENGLISH
from .treebanks import UD_GERMAN
from .treebanks import UD_GERMAN_HDT
from .treebanks import UD_DUTCH
from .treebanks import UD_FRENCH
from .treebanks import UD_ITALIAN
from .treebanks import UD_SPANISH
from .treebanks import UD_PORTUGUESE
from .treebanks import UD_ROMANIAN
from .treebanks import UD_CATALAN
from .treebanks import UD_POLISH
from .treebanks import UD_CZECH
from .treebanks import UD_SLOVAK
from .treebanks import UD_SWEDISH
from .treebanks import UD_DANISH
from .treebanks import UD_NORWEGIAN
from .treebanks import UD_FINNISH
from .treebanks import UD_SLOVENIAN
from .treebanks import UD_CROATIAN
from .treebanks import UD_SERBIAN
from .treebanks import UD_BULGARIAN
from .treebanks import UD_ARABIC
from .treebanks import UD_HEBREW
from .treebanks import UD_TURKISH
from .treebanks import UD_PERSIAN
from .treebanks import UD_RUSSIAN
from .treebanks import UD_HINDI
from .treebanks import UD_INDONESIAN
from .treebanks import UD_JAPANESE
from .treebanks import UD_CHINESE
from .treebanks import UD_KOREAN
from .treebanks import UD_BASQUE
from .treebanks import UD_GREEK
from .treebanks import UD_LIVVI
# Expose all text-text datasets
from .text_text import ParallelTextCorpus
from .text_text import ParallelTextDataset
from .text_text import OpusParallelCorpus
# Expose all text-image datasets
from .text_image import FeideggerCorpus
from .text_image import FeideggerDataset
# Expose all biomedical data sets
from .biomedical import ANAT_EM
from .biomedical import AZDZ
from .biomedical import BIONLP2013_PC
from .biomedical import BIONLP2013_CG
from .biomedical import BIO_INFER
from .biomedical import BIOSEMANTICS
from .biomedical import BC2GM
from .biomedical import CELL_FINDER
from .biomedical import CEMP
from .biomedical import CDR
from .biomedical import CHEMDNER
from .biomedical import CRAFT
from .biomedical import CRAFT_V4
from .biomedical import CLL
from .biomedical import DECA
from .biomedical import FSU
from .biomedical import GELLUS
from .biomedical import GPRO
from .biomedical import IEPA
from .biomedical import JNLPBA
from .biomedical import LOCTEXT
from .biomedical import LINNEAUS
from .biomedical import NCBI_DISEASE
from .biomedical import MIRNA
from .biomedical import OSIRIS
from .biomedical import PDR
from .biomedical import S800
from .biomedical import SCAI_CHEMICALS
from .biomedical import SCAI_DISEASE
from .biomedical import VARIOME
# Expose all biomedical data sets using the HUNER splits
from .biomedical import HUNER_CHEMICAL
from .biomedical import HUNER_CHEMICAL_CHEBI
from .biomedical import HUNER_CHEMICAL_CHEMDNER
from .biomedical import HUNER_CHEMICAL_CDR
from .biomedical import HUNER_CHEMICAL_CEMP
from .biomedical import HUNER_CHEMICAL_SCAI
from .biomedical import HUNER_CHEMICAL_CRAFT_V4
# -
from .biomedical import HUNER_CELL_LINE
from .biomedical import HUNER_CELL_LINE_CLL
from .biomedical import HUNER_CELL_LINE_CELL_FINDER
from .biomedical import HUNER_CELL_LINE_GELLUS
from .biomedical import HUNER_CELL_LINE_JNLPBA
# -
from .biomedical import HUNER_DISEASE
from .biomedical import HUNER_DISEASE_CDR
from .biomedical import HUNER_DISEASE_MIRNA
from .biomedical import HUNER_DISEASE_NCBI
from .biomedical import HUNER_DISEASE_SCAI
from .biomedical import HUNER_DISEASE_VARIOME
from .biomedical import HUNER_DISEASE_PDR
# -
from .biomedical import HUNER_GENE
from .biomedical import HUNER_GENE_BIO_INFER
from .biomedical import HUNER_GENE_BC2GM
from .biomedical import HUNER_GENE_CHEBI
from .biomedical import HUNER_GENE_CRAFT_V4
from .biomedical import HUNER_GENE_CELL_FINDER
from .biomedical import HUNER_GENE_DECA
from .biomedical import HUNER_GENE_FSU
from .biomedical import HUNER_GENE_GPRO
from .biomedical import HUNER_GENE_IEPA
from .biomedical import HUNER_GENE_JNLPBA
from .biomedical import HUNER_GENE_LOCTEXT
from .biomedical import HUNER_GENE_MIRNA
from .biomedical import HUNER_GENE_OSIRIS
from .biomedical import HUNER_GENE_VARIOME
# -
from .biomedical import HUNER_SPECIES
from .biomedical import HUNER_SPECIES_CELL_FINDER
from .biomedical import HUNER_SPECIES_CHEBI
from .biomedical import HUNER_SPECIES_CRAFT_V4
from .biomedical import HUNER_SPECIES_LOCTEXT
from .biomedical import HUNER_SPECIES_LINNEAUS
from .biomedical import HUNER_SPECIES_MIRNA
from .biomedical import HUNER_SPECIES_S800
from .biomedical import HUNER_SPECIES_VARIOME
# Expose all biomedical data sets used for the evaluation of BioBERT
from .biomedical import BIOBERT_CHEMICAL_BC4CHEMD
from .biomedical import BIOBERT_CHEMICAL_BC5CDR
from .biomedical import BIOBERT_DISEASE_NCBI
from .biomedical import BIOBERT_DISEASE_BC5CDR
from .biomedical import BIOBERT_SPECIES_LINNAEUS
from .biomedical import BIOBERT_SPECIES_S800
from .biomedical import BIOBERT_GENE_BC2GM
from .biomedical import BIOBERT_GENE_JNLPBA
| 38.534562
| 68
| 0.872279
| 1,116
| 8,362
| 6.280466
| 0.159498
| 0.161792
| 0.231131
| 0.174347
| 0.495363
| 0.095877
| 0
| 0
| 0
| 0
| 0
| 0.007592
| 0.102129
| 8,362
| 216
| 69
| 38.712963
| 0.925946
| 0.041378
| 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
|
7c3b03f409aa64a5520a6cb11a03cff6f7edfc65
| 41
|
py
|
Python
|
Challenges/modules/lifeguard_budget.py
|
NalinPlad/PiE-Robotics-Coding-Challenges
|
2c060f0aa352b64845018cd4b166bd0dc8514afe
|
[
"MIT"
] | null | null | null |
Challenges/modules/lifeguard_budget.py
|
NalinPlad/PiE-Robotics-Coding-Challenges
|
2c060f0aa352b64845018cd4b166bd0dc8514afe
|
[
"MIT"
] | null | null | null |
Challenges/modules/lifeguard_budget.py
|
NalinPlad/PiE-Robotics-Coding-Challenges
|
2c060f0aa352b64845018cd4b166bd0dc8514afe
|
[
"MIT"
] | 1
|
2022-03-24T22:52:50.000Z
|
2022-03-24T22:52:50.000Z
|
def lifeguard_budget(intervals):
pass
| 20.5
| 32
| 0.780488
| 5
| 41
| 6.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146341
| 41
| 2
| 33
| 20.5
| 0.885714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
7c814c93d638aaa39a4bcdd475f001257a29e53d
| 871
|
py
|
Python
|
provisioning/roles/foldatlas/files/foldatlas/structure.py
|
threadmapper/foldatlas
|
6532e3b781cfbcd80cc92c076c9548564a574fe5
|
[
"MIT"
] | 2
|
2018-06-11T07:30:42.000Z
|
2019-07-29T17:52:16.000Z
|
provisioning/roles/foldatlas/files/foldatlas/structure.py
|
threadmapper/foldatlas
|
6532e3b781cfbcd80cc92c076c9548564a574fe5
|
[
"MIT"
] | null | null | null |
provisioning/roles/foldatlas/files/foldatlas/structure.py
|
threadmapper/foldatlas
|
6532e3b781cfbcd80cc92c076c9548564a574fe5
|
[
"MIT"
] | 1
|
2021-07-17T08:13:09.000Z
|
2021-07-17T08:13:09.000Z
|
# Contains code for analysing RNA structure predictions.
from sklearn import decomposition
data = [
[ 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1 ],
[ 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ],
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ],
[ 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1 ],
[ 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1 ],
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1 ],
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1 ],
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ],
[ 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1 ],
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1 ]
]
def do_pca( data ):
# Results are listed in the order that they were added.
pca = decomposition.PCA( n_components=2 )
pca.fit( data )
results = pca.transform( data )
print( results )
do_pca( data )
# from sklearn import datasets
# iris = datasets.load_iris()
# do_pca(iris.data);
# print(iris.target)
| 24.885714
| 59
| 0.481056
| 179
| 871
| 2.312849
| 0.206704
| 0.289855
| 0.347826
| 0.357488
| 0.289855
| 0.280193
| 0.275362
| 0.275362
| 0.26087
| 0.26087
| 0
| 0.202003
| 0.312285
| 871
| 34
| 60
| 25.617647
| 0.489149
| 0.233065
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.052632
| false
| 0
| 0.052632
| 0
| 0.105263
| 0.052632
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7c88f104fd7bda6a991923364443facd2acc6d1c
| 22
|
py
|
Python
|
vesselregistration/__init__.py
|
mjirik/vesselregistration
|
ed0686625560ebb69a7f2fdf527b8d1ab21ae503
|
[
"MIT"
] | null | null | null |
vesselregistration/__init__.py
|
mjirik/vesselregistration
|
ed0686625560ebb69a7f2fdf527b8d1ab21ae503
|
[
"MIT"
] | null | null | null |
vesselregistration/__init__.py
|
mjirik/vesselregistration
|
ed0686625560ebb69a7f2fdf527b8d1ab21ae503
|
[
"MIT"
] | null | null | null |
__version__ = "0.0.0"
| 11
| 21
| 0.636364
| 4
| 22
| 2.5
| 0.5
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.136364
| 22
| 2
| 21
| 11
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7c8f7874bf6d4064dfda3f3f1770e3792f9a3c24
| 72
|
py
|
Python
|
helpers.py
|
mrsaicharan1/ward-discovery
|
f9e2ca31f7414353a2dd9aa32dceb79903fc8764
|
[
"Apache-2.0"
] | null | null | null |
helpers.py
|
mrsaicharan1/ward-discovery
|
f9e2ca31f7414353a2dd9aa32dceb79903fc8764
|
[
"Apache-2.0"
] | 7
|
2020-04-05T02:16:20.000Z
|
2020-04-06T17:44:00.000Z
|
helpers.py
|
mrsaicharan1/ward-discovery
|
f9e2ca31f7414353a2dd9aa32dceb79903fc8764
|
[
"Apache-2.0"
] | null | null | null |
import uuid
def generate_uuid():
x = uuid.uuid4()
return str(x)
| 14.4
| 20
| 0.638889
| 11
| 72
| 4.090909
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018182
| 0.236111
| 72
| 5
| 21
| 14.4
| 0.8
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
7c93ef2ba1602e84fc453c2dc8b87376512ecad6
| 12,250
|
py
|
Python
|
sdk/python/pulumi_azure/automation/schedule.py
|
adnang/pulumi-azure
|
32360d2f1e41e27d7fdd6522cb26d65e531f279f
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/automation/schedule.py
|
adnang/pulumi-azure
|
32360d2f1e41e27d7fdd6522cb26d65e531f279f
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/automation/schedule.py
|
adnang/pulumi-azure
|
32360d2f1e41e27d7fdd6522cb26d65e531f279f
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Schedule(pulumi.CustomResource):
automation_account_name: pulumi.Output[str]
"""
The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
"""
description: pulumi.Output[str]
"""
A description for this Schedule.
"""
expiry_time: pulumi.Output[str]
"""
The end time of the schedule.
"""
frequency: pulumi.Output[str]
"""
The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`.
"""
interval: pulumi.Output[float]
"""
The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
"""
month_days: pulumi.Output[list]
"""
List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`.
"""
monthly_occurrences: pulumi.Output[list]
"""
List of occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.
* `day` (`str`) - Day of the occurrence. Must be one of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`.
* `occurrence` (`float`) - Occurrence of the week within the month. Must be between `1` and `5`. `-1` for last week within the month.
"""
name: pulumi.Output[str]
"""
Specifies the name of the Schedule. Changing this forces a new resource to be created.
"""
resource_group_name: pulumi.Output[str]
"""
The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
"""
start_time: pulumi.Output[str]
"""
Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
"""
timezone: pulumi.Output[str]
"""
The timezone of the start time. Defaults to `UTC`. For possible values see: https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx
"""
week_days: pulumi.Output[list]
"""
List of days of the week that the job should execute on. Only valid when frequency is `Week`.
"""
def __init__(__self__, resource_name, opts=None, automation_account_name=None, description=None, expiry_time=None, frequency=None, interval=None, month_days=None, monthly_occurrences=None, name=None, resource_group_name=None, start_time=None, timezone=None, week_days=None, __props__=None, __name__=None, __opts__=None):
"""
Manages a Automation Schedule.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.automation.Account("exampleAccount",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku=[{
"name": "Basic",
}])
example_schedule = azure.automation.Schedule("exampleSchedule",
resource_group_name=example_resource_group.name,
automation_account_name=example_account.name,
frequency="Week",
interval=1,
timezone="Central Europe Standard Time",
start_time="2014-04-15T18:00:15+02:00",
description="This is an example schedule",
week_days=["Friday"])
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] automation_account_name: The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] description: A description for this Schedule.
:param pulumi.Input[str] expiry_time: The end time of the schedule.
:param pulumi.Input[str] frequency: The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`.
:param pulumi.Input[float] interval: The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
:param pulumi.Input[list] month_days: List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`.
:param pulumi.Input[list] monthly_occurrences: List of occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.
:param pulumi.Input[str] name: Specifies the name of the Schedule. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] start_time: Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
:param pulumi.Input[str] timezone: The timezone of the start time. Defaults to `UTC`. For possible values see: https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx
:param pulumi.Input[list] week_days: List of days of the week that the job should execute on. Only valid when frequency is `Week`.
The **monthly_occurrences** object supports the following:
* `day` (`pulumi.Input[str]`) - Day of the occurrence. Must be one of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`.
* `occurrence` (`pulumi.Input[float]`) - Occurrence of the week within the month. Must be between `1` and `5`. `-1` for last week within the month.
"""
if __name__ is not None:
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
resource_name = __name__
if __opts__ is not None:
warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
opts = __opts__
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = dict()
if automation_account_name is None:
raise TypeError("Missing required property 'automation_account_name'")
__props__['automation_account_name'] = automation_account_name
__props__['description'] = description
__props__['expiry_time'] = expiry_time
if frequency is None:
raise TypeError("Missing required property 'frequency'")
__props__['frequency'] = frequency
__props__['interval'] = interval
__props__['month_days'] = month_days
__props__['monthly_occurrences'] = monthly_occurrences
__props__['name'] = name
if resource_group_name is None:
raise TypeError("Missing required property 'resource_group_name'")
__props__['resource_group_name'] = resource_group_name
__props__['start_time'] = start_time
__props__['timezone'] = timezone
__props__['week_days'] = week_days
super(Schedule, __self__).__init__(
'azure:automation/schedule:Schedule',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name, id, opts=None, automation_account_name=None, description=None, expiry_time=None, frequency=None, interval=None, month_days=None, monthly_occurrences=None, name=None, resource_group_name=None, start_time=None, timezone=None, week_days=None):
"""
Get an existing Schedule resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param str id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] automation_account_name: The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] description: A description for this Schedule.
:param pulumi.Input[str] expiry_time: The end time of the schedule.
:param pulumi.Input[str] frequency: The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`.
:param pulumi.Input[float] interval: The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
:param pulumi.Input[list] month_days: List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`.
:param pulumi.Input[list] monthly_occurrences: List of occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.
:param pulumi.Input[str] name: Specifies the name of the Schedule. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] start_time: Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
:param pulumi.Input[str] timezone: The timezone of the start time. Defaults to `UTC`. For possible values see: https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx
:param pulumi.Input[list] week_days: List of days of the week that the job should execute on. Only valid when frequency is `Week`.
The **monthly_occurrences** object supports the following:
* `day` (`pulumi.Input[str]`) - Day of the occurrence. Must be one of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`.
* `occurrence` (`pulumi.Input[float]`) - Occurrence of the week within the month. Must be between `1` and `5`. `-1` for last week within the month.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["automation_account_name"] = automation_account_name
__props__["description"] = description
__props__["expiry_time"] = expiry_time
__props__["frequency"] = frequency
__props__["interval"] = interval
__props__["month_days"] = month_days
__props__["monthly_occurrences"] = monthly_occurrences
__props__["name"] = name
__props__["resource_group_name"] = resource_group_name
__props__["start_time"] = start_time
__props__["timezone"] = timezone
__props__["week_days"] = week_days
return Schedule(resource_name, opts=opts, __props__=__props__)
def translate_output_property(self, prop):
return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
def translate_input_property(self, prop):
return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
| 59.466019
| 324
| 0.68449
| 1,625
| 12,250
| 4.968
| 0.133538
| 0.024155
| 0.047566
| 0.037656
| 0.751889
| 0.734795
| 0.723523
| 0.708039
| 0.683265
| 0.67831
| 0
| 0.007147
| 0.223265
| 12,250
| 205
| 325
| 59.756098
| 0.841303
| 0.462449
| 0
| 0.025
| 1
| 0
| 0.16319
| 0.029207
| 0
| 0
| 0
| 0
| 0
| 1
| 0.05
| false
| 0.0125
| 0.075
| 0.025
| 0.325
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7ca9fffbf1c12885ee8708edf74e385881bb1747
| 8,228
|
py
|
Python
|
third_party/p7zip/Utils/file_7z_so.py
|
VirtualLib/juice
|
3d5912059f3a80ec1fef5c5031a395578904fe9c
|
[
"MIT"
] | null | null | null |
third_party/p7zip/Utils/file_7z_so.py
|
VirtualLib/juice
|
3d5912059f3a80ec1fef5c5031a395578904fe9c
|
[
"MIT"
] | null | null | null |
third_party/p7zip/Utils/file_7z_so.py
|
VirtualLib/juice
|
3d5912059f3a80ec1fef5c5031a395578904fe9c
|
[
"MIT"
] | null | null | null |
files_c=[
'C/7zBuf2.c',
'C/7zCrc.c',
'C/7zCrcOpt.c',
'C/7zStream.c',
'C/Aes.c',
'C/Alloc.c',
'C/Bcj2.c',
'C/Bcj2Enc.c',
'C/Blake2s.c',
'C/Bra.c',
'C/Bra86.c',
'C/BraIA64.c',
'C/BwtSort.c',
'C/CpuArch.c',
'C/Delta.c',
'C/HuffEnc.c',
'C/LzFind.c',
'C/LzFindMt.c',
'C/Lzma2Dec.c',
'C/Lzma2Enc.c',
'C/LzmaDec.c',
'C/LzmaEnc.c',
'C/MtCoder.c',
'C/Ppmd7.c',
'C/Ppmd7Dec.c',
'C/Ppmd7Enc.c',
'C/Ppmd8.c',
'C/Ppmd8Dec.c',
'C/Ppmd8Enc.c',
'C/Sha1.c',
'C/Sha256.c',
'C/Sort.c',
'C/Threads.c',
'C/Xz.c',
'C/XzCrc64.c',
'C/XzCrc64Opt.c',
'C/XzDec.c',
'C/XzEnc.c',
'C/XzIn.c',
]
files_cpp=[
'CPP/7zip/Archive/7z/7zCompressionMode.cpp',
'CPP/7zip/Archive/7z/7zDecode.cpp',
'CPP/7zip/Archive/7z/7zEncode.cpp',
'CPP/7zip/Archive/7z/7zExtract.cpp',
'CPP/7zip/Archive/7z/7zFolderInStream.cpp',
'CPP/7zip/Archive/7z/7zHandler.cpp',
'CPP/7zip/Archive/7z/7zHandlerOut.cpp',
'CPP/7zip/Archive/7z/7zHeader.cpp',
'CPP/7zip/Archive/7z/7zIn.cpp',
'CPP/7zip/Archive/7z/7zOut.cpp',
'CPP/7zip/Archive/7z/7zProperties.cpp',
'CPP/7zip/Archive/7z/7zRegister.cpp',
'CPP/7zip/Archive/7z/7zSpecStream.cpp',
'CPP/7zip/Archive/7z/7zUpdate.cpp',
'CPP/7zip/Archive/ApmHandler.cpp',
'CPP/7zip/Archive/ArHandler.cpp',
'CPP/7zip/Archive/ArchiveExports.cpp',
'CPP/7zip/Archive/ArjHandler.cpp',
'CPP/7zip/Archive/Bz2Handler.cpp',
'CPP/7zip/Archive/Cab/CabBlockInStream.cpp',
'CPP/7zip/Archive/Cab/CabHandler.cpp',
'CPP/7zip/Archive/Cab/CabHeader.cpp',
'CPP/7zip/Archive/Cab/CabIn.cpp',
'CPP/7zip/Archive/Cab/CabRegister.cpp',
'CPP/7zip/Archive/Chm/ChmHandler.cpp',
'CPP/7zip/Archive/Chm/ChmIn.cpp',
'CPP/7zip/Archive/ComHandler.cpp',
'CPP/7zip/Archive/Common/CoderMixer2.cpp',
'CPP/7zip/Archive/Common/DummyOutStream.cpp',
'CPP/7zip/Archive/Common/FindSignature.cpp',
'CPP/7zip/Archive/Common/HandlerOut.cpp',
'CPP/7zip/Archive/Common/InStreamWithCRC.cpp',
'CPP/7zip/Archive/Common/ItemNameUtils.cpp',
'CPP/7zip/Archive/Common/MultiStream.cpp',
'CPP/7zip/Archive/Common/OutStreamWithCRC.cpp',
'CPP/7zip/Archive/Common/OutStreamWithSha1.cpp',
'CPP/7zip/Archive/Common/ParseProperties.cpp',
'CPP/7zip/Archive/CpioHandler.cpp',
'CPP/7zip/Archive/CramfsHandler.cpp',
'CPP/7zip/Archive/DeflateProps.cpp',
'CPP/7zip/Archive/DllExports2.cpp',
'CPP/7zip/Archive/DmgHandler.cpp',
'CPP/7zip/Archive/ElfHandler.cpp',
'CPP/7zip/Archive/ExtHandler.cpp',
'CPP/7zip/Archive/FatHandler.cpp',
'CPP/7zip/Archive/FlvHandler.cpp',
'CPP/7zip/Archive/GzHandler.cpp',
'CPP/7zip/Archive/GptHandler.cpp',
'CPP/7zip/Archive/HandlerCont.cpp',
'CPP/7zip/Archive/HfsHandler.cpp',
'CPP/7zip/Archive/IhexHandler.cpp',
'CPP/7zip/Archive/Iso/IsoHandler.cpp',
'CPP/7zip/Archive/Iso/IsoHeader.cpp',
'CPP/7zip/Archive/Iso/IsoIn.cpp',
'CPP/7zip/Archive/Iso/IsoRegister.cpp',
'CPP/7zip/Archive/LzhHandler.cpp',
'CPP/7zip/Archive/LzmaHandler.cpp',
'CPP/7zip/Archive/MachoHandler.cpp',
'CPP/7zip/Archive/MbrHandler.cpp',
'CPP/7zip/Archive/MslzHandler.cpp',
'CPP/7zip/Archive/MubHandler.cpp',
'CPP/7zip/Archive/Nsis/NsisDecode.cpp',
'CPP/7zip/Archive/Nsis/NsisHandler.cpp',
'CPP/7zip/Archive/Nsis/NsisIn.cpp',
'CPP/7zip/Archive/Nsis/NsisRegister.cpp',
'CPP/7zip/Archive/NtfsHandler.cpp',
'CPP/7zip/Archive/PeHandler.cpp',
'CPP/7zip/Archive/PpmdHandler.cpp',
'CPP/7zip/Archive/QcowHandler.cpp',
'CPP/7zip/Archive/Rar/RarHandler.cpp',
'CPP/7zip/Archive/Rar/Rar5Handler.cpp',
'CPP/7zip/Archive/RpmHandler.cpp',
'CPP/7zip/Archive/SplitHandler.cpp',
'CPP/7zip/Archive/SquashfsHandler.cpp',
'CPP/7zip/Archive/SwfHandler.cpp',
'CPP/7zip/Archive/Tar/TarHandler.cpp',
'CPP/7zip/Archive/Tar/TarHandlerOut.cpp',
'CPP/7zip/Archive/Tar/TarHeader.cpp',
'CPP/7zip/Archive/Tar/TarIn.cpp',
'CPP/7zip/Archive/Tar/TarOut.cpp',
'CPP/7zip/Archive/Tar/TarRegister.cpp',
'CPP/7zip/Archive/Tar/TarUpdate.cpp',
'CPP/7zip/Archive/Udf/UdfHandler.cpp',
'CPP/7zip/Archive/Udf/UdfIn.cpp',
'CPP/7zip/Archive/UefiHandler.cpp',
'CPP/7zip/Archive/VdiHandler.cpp',
'CPP/7zip/Archive/VhdHandler.cpp',
'CPP/7zip/Archive/VmdkHandler.cpp',
'CPP/7zip/Archive/Wim/WimHandler.cpp',
'CPP/7zip/Archive/Wim/WimHandlerOut.cpp',
'CPP/7zip/Archive/Wim/WimIn.cpp',
'CPP/7zip/Archive/Wim/WimRegister.cpp',
'CPP/7zip/Archive/XarHandler.cpp',
'CPP/7zip/Archive/XzHandler.cpp',
'CPP/7zip/Archive/ZHandler.cpp',
'CPP/7zip/Archive/Zip/ZipAddCommon.cpp',
'CPP/7zip/Archive/Zip/ZipHandler.cpp',
'CPP/7zip/Archive/Zip/ZipHandlerOut.cpp',
'CPP/7zip/Archive/Zip/ZipIn.cpp',
'CPP/7zip/Archive/Zip/ZipItem.cpp',
'CPP/7zip/Archive/Zip/ZipOut.cpp',
'CPP/7zip/Archive/Zip/ZipRegister.cpp',
'CPP/7zip/Archive/Zip/ZipUpdate.cpp',
'CPP/7zip/Common/CWrappers.cpp',
'CPP/7zip/Common/CreateCoder.cpp',
'CPP/7zip/Common/FilterCoder.cpp',
'CPP/7zip/Common/InBuffer.cpp',
'CPP/7zip/Common/InOutTempBuffer.cpp',
'CPP/7zip/Common/LimitedStreams.cpp',
'CPP/7zip/Common/MemBlocks.cpp',
'CPP/7zip/Common/MethodId.cpp',
'CPP/7zip/Common/MethodProps.cpp',
'CPP/7zip/Common/OffsetStream.cpp',
'CPP/7zip/Common/OutBuffer.cpp',
'CPP/7zip/Common/OutMemStream.cpp',
'CPP/7zip/Common/ProgressMt.cpp',
'CPP/7zip/Common/ProgressUtils.cpp',
'CPP/7zip/Common/PropId.cpp',
'CPP/7zip/Common/StreamBinder.cpp',
'CPP/7zip/Common/StreamObjects.cpp',
'CPP/7zip/Common/StreamUtils.cpp',
'CPP/7zip/Common/UniqBlocks.cpp',
'CPP/7zip/Common/VirtThread.cpp',
'CPP/7zip/Compress/BZip2Crc.cpp',
'CPP/7zip/Compress/BZip2Decoder.cpp',
'CPP/7zip/Compress/BZip2Encoder.cpp',
'CPP/7zip/Compress/BZip2Register.cpp',
'CPP/7zip/Compress/Bcj2Coder.cpp',
'CPP/7zip/Compress/Bcj2Register.cpp',
'CPP/7zip/Compress/BcjCoder.cpp',
'CPP/7zip/Compress/BcjRegister.cpp',
'CPP/7zip/Compress/BitlDecoder.cpp',
'CPP/7zip/Compress/BranchMisc.cpp',
'CPP/7zip/Compress/BranchRegister.cpp',
'CPP/7zip/Compress/ByteSwap.cpp',
'CPP/7zip/Compress/CodecExports.cpp',
'CPP/7zip/Compress/CopyCoder.cpp',
'CPP/7zip/Compress/CopyRegister.cpp',
'CPP/7zip/Compress/Deflate64Register.cpp',
'CPP/7zip/Compress/DeflateDecoder.cpp',
'CPP/7zip/Compress/DeflateEncoder.cpp',
'CPP/7zip/Compress/DeflateRegister.cpp',
'CPP/7zip/Compress/DeltaFilter.cpp',
'CPP/7zip/Compress/ImplodeDecoder.cpp',
'CPP/7zip/Compress/ImplodeHuffmanDecoder.cpp',
'CPP/7zip/Compress/LzOutWindow.cpp',
'CPP/7zip/Compress/LzhDecoder.cpp',
'CPP/7zip/Compress/Lzma2Decoder.cpp',
'CPP/7zip/Compress/Lzma2Encoder.cpp',
'CPP/7zip/Compress/Lzma2Register.cpp',
'CPP/7zip/Compress/LzmaDecoder.cpp',
'CPP/7zip/Compress/LzmaEncoder.cpp',
'CPP/7zip/Compress/LzmaRegister.cpp',
'CPP/7zip/Compress/LzmsDecoder.cpp',
'CPP/7zip/Compress/LzxDecoder.cpp',
'CPP/7zip/Compress/PpmdDecoder.cpp',
'CPP/7zip/Compress/PpmdEncoder.cpp',
'CPP/7zip/Compress/PpmdRegister.cpp',
'CPP/7zip/Compress/PpmdZip.cpp',
'CPP/7zip/Compress/QuantumDecoder.cpp',
'CPP/7zip/Compress/ShrinkDecoder.cpp',
'CPP/7zip/Compress/ZDecoder.cpp',
'CPP/7zip/Compress/XpressDecoder.cpp',
'CPP/7zip/Compress/ZlibDecoder.cpp',
'CPP/7zip/Compress/ZlibEncoder.cpp',
'CPP/7zip/Crypto/7zAes.cpp',
'CPP/7zip/Crypto/7zAesRegister.cpp',
'CPP/7zip/Crypto/HmacSha1.cpp',
'CPP/7zip/Crypto/HmacSha256.cpp',
'CPP/7zip/Crypto/MyAes.cpp',
'CPP/7zip/Crypto/MyAesReg.cpp',
'CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp',
'CPP/7zip/Crypto/RandGen.cpp',
'CPP/7zip/Crypto/Rar20Crypto.cpp',
'CPP/7zip/Crypto/Rar5Aes.cpp',
'CPP/7zip/Crypto/RarAes.cpp',
'CPP/7zip/Crypto/WzAes.cpp',
'CPP/7zip/Crypto/ZipCrypto.cpp',
'CPP/7zip/Crypto/ZipStrong.cpp',
'CPP/Common/CRC.cpp',
'CPP/Common/CrcReg.cpp',
'CPP/Common/DynLimBuf.cpp',
'CPP/Common/IntToString.cpp',
'CPP/Common/MyMap.cpp',
'CPP/Common/MyString.cpp',
'CPP/Common/MyVector.cpp',
'CPP/Common/MyWindows.cpp',
'CPP/Common/MyXml.cpp',
'CPP/Common/NewHandler.cpp',
'CPP/Common/Sha1Reg.cpp',
'CPP/Common/Sha256Reg.cpp',
'CPP/Common/StringConvert.cpp',
'CPP/Common/StringToInt.cpp',
'CPP/Common/UTFConvert.cpp',
'CPP/Common/Wildcard.cpp',
'CPP/Common/XzCrc64Reg.cpp',
'CPP/Windows/FileDir.cpp',
'CPP/Windows/FileFind.cpp',
'CPP/Windows/FileIO.cpp',
'CPP/Windows/FileName.cpp',
'CPP/Windows/PropVariant.cpp',
'CPP/Windows/PropVariantUtils.cpp',
'CPP/Windows/Synchronization.cpp',
'CPP/Windows/System.cpp',
'CPP/Windows/TimeUtils.cpp',
'CPP/myWindows/wine_date_and_time.cpp',
]
| 32.521739
| 49
| 0.735659
| 1,189
| 8,228
| 5.086627
| 0.224558
| 0.204365
| 0.295966
| 0.289517
| 0.208333
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034666
| 0.060404
| 8,228
| 252
| 50
| 32.650794
| 0.747639
| 0
| 0
| 0
| 0
| 0
| 0.8478
| 0.792487
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7cb87cac80ef255b1bb0c77434e76aaf694dcb2e
| 119
|
py
|
Python
|
execicios/desafio025.py
|
vinilinux/python-mundo01
|
48d7d2209e6c488baac5e666cae7cecfff2f3a72
|
[
"MIT"
] | null | null | null |
execicios/desafio025.py
|
vinilinux/python-mundo01
|
48d7d2209e6c488baac5e666cae7cecfff2f3a72
|
[
"MIT"
] | null | null | null |
execicios/desafio025.py
|
vinilinux/python-mundo01
|
48d7d2209e6c488baac5e666cae7cecfff2f3a72
|
[
"MIT"
] | null | null | null |
nome = str(input('Qual o seu nome? ')).strip()
print(f'Possui o nome silva \033[4;36m{"silva" in nome.lower()}\033[m')
| 39.666667
| 71
| 0.655462
| 23
| 119
| 3.391304
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085714
| 0.117647
| 119
| 2
| 72
| 59.5
| 0.657143
| 0
| 0
| 0
| 0
| 0.5
| 0.655462
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.