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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80dd4f7d859b7deb37d735332901a0073be92a60
| 74
|
py
|
Python
|
scripts/colorprint.py
|
apua/colorprint
|
4c8b22c21447b587dc827be83feb79084504cdaa
|
[
"WTFPL"
] | null | null | null |
scripts/colorprint.py
|
apua/colorprint
|
4c8b22c21447b587dc827be83feb79084504cdaa
|
[
"WTFPL"
] | 10
|
2015-02-10T04:00:30.000Z
|
2015-03-01T06:20:36.000Z
|
scripts/colorprint.py
|
apua/colorprint
|
4c8b22c21447b587dc827be83feb79084504cdaa
|
[
"WTFPL"
] | null | null | null |
#!/usr/bin/env python
from colorprint import commands
commands.run_cmd()
| 14.8
| 31
| 0.783784
| 11
| 74
| 5.181818
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 74
| 4
| 32
| 18.5
| 0.863636
| 0.27027
| 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
|
03b730c2127681c6369915b8466819e4a82f167b
| 46
|
py
|
Python
|
savecode/threeyears/idownclient/tools/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 2
|
2019-05-19T11:54:26.000Z
|
2019-05-19T12:03:49.000Z
|
savecode/threeyears/idownclient/tools/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 1
|
2020-11-27T07:55:15.000Z
|
2020-11-27T07:55:15.000Z
|
savecode/threeyears/idownclient/tools/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 2
|
2021-09-06T18:06:12.000Z
|
2021-12-31T07:44:43.000Z
|
from .delete_program_produce_file import DPPF
| 23
| 45
| 0.891304
| 7
| 46
| 5.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 46
| 1
| 46
| 46
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
03d67d3b753fbcd8275311802e5d7fcf8349229d
| 29
|
py
|
Python
|
kinda/nupack/__init__.py
|
DNA-and-Natural-Algorithms-Group/KinDA
|
916e341738cb9740d57de09afc3841c577cea6b6
|
[
"MIT"
] | 6
|
2018-05-02T16:44:54.000Z
|
2021-12-26T01:05:28.000Z
|
kinda/nupack/__init__.py
|
DNA-and-Natural-Algorithms-Group/KinDA
|
916e341738cb9740d57de09afc3841c577cea6b6
|
[
"MIT"
] | null | null | null |
kinda/nupack/__init__.py
|
DNA-and-Natural-Algorithms-Group/KinDA
|
916e341738cb9740d57de09afc3841c577cea6b6
|
[
"MIT"
] | 4
|
2018-05-02T16:45:03.000Z
|
2021-06-10T20:35:09.000Z
|
from nupack_wrapper import *
| 14.5
| 28
| 0.827586
| 4
| 29
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 29
| 1
| 29
| 29
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
20822846f974db2d0efa8bdaf26088251921ebe6
| 167
|
py
|
Python
|
uPVT/tests/test_fluidMcCain.py
|
Gregoryish/unifloc
|
ad2156a55f30d21855e86c9db6aee4b35e99c831
|
[
"MIT"
] | null | null | null |
uPVT/tests/test_fluidMcCain.py
|
Gregoryish/unifloc
|
ad2156a55f30d21855e86c9db6aee4b35e99c831
|
[
"MIT"
] | null | null | null |
uPVT/tests/test_fluidMcCain.py
|
Gregoryish/unifloc
|
ad2156a55f30d21855e86c9db6aee4b35e99c831
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
class TestFluidMcCain(TestCase):
# TODO тут надо написать тест для флюида по Маккейну
def test_calc(self):
self.fail()
| 20.875
| 56
| 0.718563
| 22
| 167
| 5.409091
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.221557
| 167
| 7
| 57
| 23.857143
| 0.915385
| 0.299401
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
20882ecab0cdd4f3c3ef934d6616dc6d8209b677
| 9,396
|
py
|
Python
|
plusauth_rest_py/users.py
|
DogukanBaloglu/PlusAuth
|
ce8f40f7be0ce41e402b0dcb04334bb707d68f45
|
[
"MIT"
] | null | null | null |
plusauth_rest_py/users.py
|
DogukanBaloglu/PlusAuth
|
ce8f40f7be0ce41e402b0dcb04334bb707d68f45
|
[
"MIT"
] | null | null | null |
plusauth_rest_py/users.py
|
DogukanBaloglu/PlusAuth
|
ce8f40f7be0ce41e402b0dcb04334bb707d68f45
|
[
"MIT"
] | null | null | null |
import requests
from plusauth_rest_py.base import Base
base_url=Base().url()
class UsersService():
def getAll(self , token , page = '' , itemsPerPage = '' , sortBy = '' , sortDesc = '' ):
"""
Args: \n
token:str -> You must have the access token.\n
page -> The number of records you wish to skip before selecting records \n
itemsPerPage -> Limit the number of results returned \n
sortBy -> Properties that should be ordered by \n
sortDesc -> Descending or ascending or nothing \n
Returns: List all Users
Documentation: https://docs.plusauth.com/api/core/users/listUsers
"""
headers = Base().headers_no_type(token)
payload = {'page': page, 'itemsPerPage': itemsPerPage, 'sortBy': sortBy, 'sortDesc': sortDesc}
res = requests.get(base_url + "users", params=payload, headers=headers)
res_j = res.json()
return res_j
def create(self , token , username ='' , password = '' , blocked ='' , user_details ='' ):
"""
Args:\n
token:str -> You must have the access token.\n
Returns: Create new User
Documentation: https://docs.plusauth.com/api/core/users/createUser
"""
headers = Base().headers_content_tpye_json(token)
payload = {'username': username, 'password': password, 'blocked': blocked , 'user_details': user_details}
res = requests.post(base_url + "users", data=payload, headers=headers)
res_j = res.json()
return res_j
def delete(self , token , id ):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
Returns: Delete User
Documentation: https://docs.plusauth.com/api/core/users/deleteUser
"""
headers = Base().headers_no_type(token)
self.id = id
res = requests.delete(base_url + "users/{}".format(self.id), headers=headers)
return res
def get(self , token , id ):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
Returns: Retrieve User
Documentation: https://docs.plusauth.com/api/core/users/getUser
"""
headers = Base().headers_no_type(token)
self.id = id
res = requests.get(base_url + "users/{}".format(self.id), headers=headers)
res_j=res.json()
return res_j
def update(self , token , id , username ='' , password = '' , blocked ='' , user_details ='' ):
"""
Args:\n
token:str -> You must have the access token.\n
id:str -> User id
Returns: Update User
Documentation: https://docs.plusauth.com/api/core/users/updateUser
"""
headers = Base().headers_content_tpye_json(token)
self.id = id
payload = {'username': username, 'password': password, 'blocked': blocked , 'user_details': user_details}
res = requests.patch(base_url + "users/{}".format(self,id), data=payload, headers=headers)
res_j = res.json()
return res_j
def unassignPermission(self , token , id , permissions_id = ''):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
permissions_id -> Permission Ids
Returns: Unassign directly assigned permission from User
Documentation: https://docs.plusauth.com/api/core/users/unassignDirectlyAssignedPermission
"""
headers = Base().headers_content_tpye_json(token)
self.id = id
payload ={'permissions_id': permissions_id }
res = requests.delete(base_url + "users/{}/permissions".format(self, id), data=payload, headers=headers)
return res.text
def getPermissions(self , token , id ):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
Returns: Get directly assigned permissions to user
Documentation: https://docs.plusauth.com/api/core/users/getUserPermissions
"""
headers = Base().headers_no_type(token)
self.id = id
res = requests.get(base_url + "users/{}/permissions".format(self, id), headers=headers)
res_j=res.json()
return res_j
def assignPermission(self , token , id , permissions_id = ''):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
permissions_id -> Permission Ids
Returns: Directly assign permission to User
Documentation: https://docs.plusauth.com/api/core/users/directlyAssignPermissionToUser
"""
headers = Base().headers_content_tpye_json(token)
self.id = id
payload ={'permissions_id': permissions_id }
res = requests.post(base_url + "users/{}/permissions".format(self, id), data=payload, headers=headers)
res_j =res.json()
return res_j
def unassignRoleGroups(self , token , id , role_group_id = ''):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
role_group_id -> Role Group Ids
Returns: Unassign Role Groups from User
Documentation: https://docs.plusauth.com/api/core/users/unassignRoleGroupsFromUser
"""
headers = Base().headers_content_tpye_json(token)
self.id = id
payload ={'role_group_id': role_group_id }
res = requests.delete(base_url + "users/{}/roleGroups".format(self, id), data=payload, headers=headers)
return res.text
def getRoleGroups(self , token , id ):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
Returns:Retrieve assigned Role Groups to User
Documentation: https://docs.plusauth.com/api/core/users/getAssignedRoleGroupsToUser
"""
headers = Base().headers_no_type(token)
self.id = id
res = requests.get(base_url + "users/{}/roleGroups".format(self, id), headers=headers)
res_j = res.json()
return res_j
def assignRoleGroups(self , token , id , role_group_id = ''):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
role_group_id -> Role Group Ids
Returns: Assign Role group to User
Documentation: https://docs.plusauth.com/api/core/users/assignRoleGroupToUser
"""
headers = Base().headers_content_tpye_json(token)
self.id = id
payload ={'role_group_id': role_group_id }
res = requests.post(base_url + "users/{}/roles".format(self, id), data=payload, headers=headers)
res_j = res.json()
return res_j
def unassignRoles(self , token , id , role_id = ''):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
role_group_id -> Role Ids
Returns: Unassign directly assigned Roles from user
Documentation: https://docs.plusauth.com/api/core/users/unassignDirectlyAssignedRolesFromUser
"""
headers = Base().headers_content_tpye_json(token)
self.id = id
payload ={'role_id': role_id }
res = requests.delete(base_url + "users/{}/roles".format(self, id), data=payload, headers=headers)
return res.text
def getRoles(self, token , id ):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
Returns: Retrieve Directly assigned Roles to User
Documentation: https://docs.plusauth.com/api/core/users/getDirectlyAssignedRolesToUser
"""
headers = Base().headers_no_type(token)
self.id = id
res = requests.get(base_url + "users/{}/roles".format(self, id), headers=headers)
res_j = res.json()
return res_j
def assignRole(self , token , id , role_id = ''):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
role_group_id -> Role Ids
Returns: Directly assign Role to User
Documentation: https://docs.plusauth.com/api/core/users/directlyAssignRoleToUser
"""
headers = Base().headers_content_tpye_json(token)
self.id = id
payload ={'role_id': role_id }
res = requests.post(base_url + "users/{}/roles".format(self, id), data=payload, headers=headers)
res_j = res.json()
return res_j
def getTenants(self, token , id ):
"""
Args: \n
token:str -> You must have the access token.\n
id:str -> User id
Returns: Retrieve created tenants
Documentation: https://docs.plusauth.com/api/core/users/getCreatedTenants
"""
headers = Base().headers_no_type(token)
self.id = id
res = requests.get(base_url + "users/{}/tenants".format(self, id), headers=headers)
res_j = res.json()
return res_j
| 34.291971
| 113
| 0.578863
| 1,091
| 9,396
| 4.877177
| 0.113657
| 0.029318
| 0.02819
| 0.036647
| 0.791768
| 0.782748
| 0.767149
| 0.745724
| 0.721669
| 0.684834
| 0
| 0
| 0.305662
| 9,396
| 274
| 114
| 34.291971
| 0.815604
| 0.341635
| 0
| 0.649485
| 0
| 0
| 0.075671
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.154639
| false
| 0.041237
| 0.020619
| 0
| 0.340206
| 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
|
20bbd7b3c7b6fda2c91c342da8d20522609ab72c
| 60
|
py
|
Python
|
tests/modules/submods/__init__.py
|
KyleKing/pdocs
|
50d2c2435cf09b076003bcbf78a9f2c1376eeb2e
|
[
"Unlicense"
] | 65
|
2019-09-03T20:10:18.000Z
|
2022-03-21T06:49:13.000Z
|
tests/modules/submods/__init__.py
|
KyleKing/pdocs
|
50d2c2435cf09b076003bcbf78a9f2c1376eeb2e
|
[
"Unlicense"
] | 23
|
2019-09-03T15:59:34.000Z
|
2022-03-25T11:21:14.000Z
|
tests/modules/submods/__init__.py
|
KyleKing/pdocs
|
50d2c2435cf09b076003bcbf78a9f2c1376eeb2e
|
[
"Unlicense"
] | 15
|
2019-09-03T06:16:39.000Z
|
2022-03-10T13:57:28.000Z
|
def simple():
"""
A docstring.
"""
pass
| 10
| 20
| 0.383333
| 5
| 60
| 4.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.45
| 60
| 5
| 21
| 12
| 0.69697
| 0.2
| 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
|
20c98fea3d06486036d214ee9cd1609577c250be
| 864
|
py
|
Python
|
models.py
|
Curiouspaul1/Ecolead
|
1c5008b9ad9a6611b76bf61539ae3af9da06afc5
|
[
"MIT"
] | null | null | null |
models.py
|
Curiouspaul1/Ecolead
|
1c5008b9ad9a6611b76bf61539ae3af9da06afc5
|
[
"MIT"
] | null | null | null |
models.py
|
Curiouspaul1/Ecolead
|
1c5008b9ad9a6611b76bf61539ae3af9da06afc5
|
[
"MIT"
] | null | null | null |
from enum import unique
from main.extensions import db
from datetime import datetime as dt
# User Models
class Donor(db.Model):
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.String(10))
last_name = db.Column(db.String(10))
email = db.Column(db.String(50), unique=True)
password_hash = db.Column(db.String(200))
sign_up_date = db.Column(db.Date, default=dt.utcnow())
is_verified = db.Column(db.Boolean, default=False)
# TODO: add more fields as need be
class Projects(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(20))
description = db.Column(db.Text)
donate_link = db.Column(db.String(200))
has_donate_link = db.Column(db.Boolean, default=False)
sign_up_date = db.Column(db.Date, default=dt.utcnow())
# TODO: add more fields as need be
| 30.857143
| 58
| 0.699074
| 139
| 864
| 4.251799
| 0.381295
| 0.175973
| 0.219966
| 0.162437
| 0.656514
| 0.524535
| 0.351946
| 0.267343
| 0.267343
| 0.267343
| 0
| 0.01958
| 0.172454
| 864
| 27
| 59
| 32
| 0.806993
| 0.08912
| 0
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0
| 1
| 0
| false
| 0.055556
| 0.166667
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
4551b65905fab84003ae712da11c4a742da82373
| 81
|
py
|
Python
|
mitmirror/main/config/__init__.py
|
Claayton/mitmirror-api
|
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
|
[
"MIT"
] | null | null | null |
mitmirror/main/config/__init__.py
|
Claayton/mitmirror-api
|
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
|
[
"MIT"
] | 1
|
2021-10-09T20:42:03.000Z
|
2021-10-09T20:42:03.000Z
|
mitmirror/main/config/__init__.py
|
Claayton/mitmirror-api
|
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
|
[
"MIT"
] | null | null | null |
"""Inicializaçao do modulo config"""
from .http_server_configs import create_app
| 27
| 43
| 0.814815
| 11
| 81
| 5.727273
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098765
| 81
| 2
| 44
| 40.5
| 0.863014
| 0.37037
| 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
|
456f34cfc6ce83b9875c84af46b05425a041985b
| 975
|
py
|
Python
|
test/test_journals_api.py
|
jethro-swan/om-client-library
|
252576a39af49629f838652427279ecb64a6b636
|
[
"Apache-2.0"
] | null | null | null |
test/test_journals_api.py
|
jethro-swan/om-client-library
|
252576a39af49629f838652427279ecb64a6b636
|
[
"Apache-2.0"
] | null | null | null |
test/test_journals_api.py
|
jethro-swan/om-client-library
|
252576a39af49629f838652427279ecb64a6b636
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
Openmoney API
Openmoney API # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.api.journals_api import JournalsApi # noqa: E501
from swagger_client.rest import ApiException
class TestJournalsApi(unittest.TestCase):
"""JournalsApi unit test stubs"""
def setUp(self):
self.api = swagger_client.api.journals_api.JournalsApi() # noqa: E501
def tearDown(self):
pass
def test_journals_list(self):
"""Test case for journals_list
List Journal Entries for this accountname # noqa: E501
"""
pass
def test_journals_post(self):
"""Test case for journals_post
Create a journal entry for this account # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()
| 19.897959
| 78
| 0.665641
| 120
| 975
| 5.2
| 0.466667
| 0.064103
| 0.054487
| 0.076923
| 0.160256
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025921
| 0.248205
| 975
| 48
| 79
| 20.3125
| 0.825375
| 0.379487
| 0
| 0.1875
| 1
| 0
| 0.015209
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.1875
| 0.3125
| 0
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
2fd7ad03857bf6a54cdb9efd171ac2c7c509ebb9
| 137
|
py
|
Python
|
docker_registry_client/__init__.py
|
agrrh/docker-registry-client
|
8abf6b0200a68bed986f698dcbf02d444257b75c
|
[
"Apache-2.0"
] | 49
|
2015-09-23T11:01:33.000Z
|
2022-03-09T14:02:37.000Z
|
docker_registry_client/__init__.py
|
agrrh/docker-registry-client
|
8abf6b0200a68bed986f698dcbf02d444257b75c
|
[
"Apache-2.0"
] | 32
|
2015-03-09T20:56:04.000Z
|
2022-01-25T12:37:36.000Z
|
docker_registry_client/__init__.py
|
agrrh/docker-registry-client
|
8abf6b0200a68bed986f698dcbf02d444257b75c
|
[
"Apache-2.0"
] | 58
|
2015-09-23T11:01:36.000Z
|
2021-09-08T08:05:54.000Z
|
# flake8: noqa
from __future__ import absolute_import
from .DockerRegistryClient import (DockerRegistryClient, BaseClient, Repository)
| 22.833333
| 80
| 0.839416
| 13
| 137
| 8.461538
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008197
| 0.109489
| 137
| 5
| 81
| 27.4
| 0.893443
| 0.087591
| 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
|
6404f74491f4ce9d8680cb365db9066b7716dbfd
| 106
|
py
|
Python
|
divideAndConquer/test.py
|
saai/LeetcodePythonSolutions
|
201f2054dda3f303ae6a376b40cbc7f98688322c
|
[
"MIT"
] | null | null | null |
divideAndConquer/test.py
|
saai/LeetcodePythonSolutions
|
201f2054dda3f303ae6a376b40cbc7f98688322c
|
[
"MIT"
] | null | null | null |
divideAndConquer/test.py
|
saai/LeetcodePythonSolutions
|
201f2054dda3f303ae6a376b40cbc7f98688322c
|
[
"MIT"
] | null | null | null |
from getSkyline import *
s = Solution()
s.getSkyline([[2,9,10],[3,7,15],[5,12,12],[15,20,10],[19,24,8]])
| 21.2
| 64
| 0.603774
| 22
| 106
| 2.909091
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.247423
| 0.084906
| 106
| 4
| 65
| 26.5
| 0.412371
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
64211c044f3ba46fc9b45c0cea77d6ec3be47178
| 88
|
py
|
Python
|
sources/simple_shop/adapters/shop_api/__init__.py
|
variasov/classic_demo_medium_difficulty
|
335b50f9509c85dc426a76dbef7f7f2d28603e76
|
[
"MIT"
] | 5
|
2021-10-08T08:33:03.000Z
|
2022-03-17T01:08:52.000Z
|
sources/simple_shop/adapters/shop_api/__init__.py
|
variasov/classic_demo_medium_difficulty
|
335b50f9509c85dc426a76dbef7f7f2d28603e76
|
[
"MIT"
] | null | null | null |
sources/simple_shop/adapters/shop_api/__init__.py
|
variasov/classic_demo_medium_difficulty
|
335b50f9509c85dc426a76dbef7f7f2d28603e76
|
[
"MIT"
] | 2
|
2021-10-12T03:43:13.000Z
|
2022-01-19T08:58:45.000Z
|
from .app import create_app
from .join_points import join_points
from .auth import auth
| 22
| 36
| 0.829545
| 15
| 88
| 4.666667
| 0.466667
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 88
| 3
| 37
| 29.333333
| 0.921053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
642844fa3044340b6dc3682740ce0043567aefe3
| 5,598
|
py
|
Python
|
eden/modifier/rna/structure.py
|
zaidurrehman/EDeN
|
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
|
[
"MIT"
] | null | null | null |
eden/modifier/rna/structure.py
|
zaidurrehman/EDeN
|
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
|
[
"MIT"
] | null | null | null |
eden/modifier/rna/structure.py
|
zaidurrehman/EDeN
|
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
|
[
"MIT"
] | null | null | null |
def add_stacking_base_pairs(graph_list=None):
for g in graph_list:
# iterate over nodes
for n, d in g.nodes_iter(data=True):
if d.get('position', False) == 0 or d.get('position', False) is not False:
pos = d['position']
# identify stacking neigbors
# identify all neighbors
neighbors = g.neighbors(n)
if len(neighbors) >= 2:
# identify neighbors that have a greater 'position' attribute
greater_position_neighbors = [v for v in neighbors if g.node[v].get('position', False) and g.node[v]['position'] > pos]
if len(greater_position_neighbors) >= 2: # there has to be at least a backbone vertex and a basepair vertex
# identify node that is connected by backbone edge
greater_position_neighbor_connected_by_backbone_list = [
v for v in greater_position_neighbors if g.edge[n][v]['type'] == 'backbone']
if len(greater_position_neighbor_connected_by_backbone_list) > 0:
greater_position_neighbor_connected_by_backbone = greater_position_neighbor_connected_by_backbone_list[0] # take one
# identify node that is connected by basepair edge
greater_position_neighbor_connected_by_basepair_list = [
v for v in greater_position_neighbors if g.edge[n][v]['type'] == 'basepair']
if len(greater_position_neighbor_connected_by_basepair_list) > 0:
greater_position_neighbor_connected_by_basepair = greater_position_neighbor_connected_by_basepair_list[0] # take one
# identify neighbor of greater_position_neighbor_connected_by_backbone
# that has greater position and is connected by basepair edge
greater_position_neighbor_connected_by_backbone_neighbors = g.neighbors(
greater_position_neighbor_connected_by_backbone)
if len(greater_position_neighbor_connected_by_backbone_neighbors) > 0:
greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair_list = [
v for v in greater_position_neighbor_connected_by_backbone_neighbors if g.edge[greater_position_neighbor_connected_by_backbone][v]['type'] == 'basepair']
if len(greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair_list) > 0:
greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair = greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair_list[
0] # take one
# check that
# greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair
# and greater_position_neighbor_connected_by_basepair are neighbors
if greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair in g.neighbors(greater_position_neighbor_connected_by_basepair):
# add vertex
new_id = g.number_of_nodes()
g.add_node(new_id)
g.node[new_id]['label'] = 'o'
g.node[new_id]['type'] = 'stack'
# connect vertex
g.add_edge(new_id, n)
g.edge[new_id][n]['label'] = ':'
g.edge[new_id][n]['type'] = 'stack'
g.add_edge(new_id, greater_position_neighbor_connected_by_backbone)
g.edge[new_id][greater_position_neighbor_connected_by_backbone]['label'] = ':'
g.edge[new_id][greater_position_neighbor_connected_by_backbone]['type'] = 'stack'
g.add_edge(new_id, greater_position_neighbor_connected_by_basepair)
g.edge[new_id][greater_position_neighbor_connected_by_basepair]['label'] = ':'
g.edge[new_id][greater_position_neighbor_connected_by_basepair]['type'] = 'stack'
g.add_edge(
new_id, greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair)
g.edge[new_id][greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair][
'label'] = ':'
g.edge[new_id][greater_position_neighbor_connected_by_backbone_greater_position_neighbor_connected_by_basepair][
'type'] = 'stack'
yield g
| 91.770492
| 239
| 0.555913
| 551
| 5,598
| 5.179673
| 0.125227
| 0.241766
| 0.322355
| 0.448493
| 0.783462
| 0.764191
| 0.716188
| 0.631395
| 0.623686
| 0.585144
| 0
| 0.002924
| 0.389068
| 5,598
| 60
| 240
| 93.3
| 0.831579
| 0.115398
| 0
| 0.043478
| 0
| 0
| 0.03061
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021739
| false
| 0
| 0
| 0
| 0.021739
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
643a01db4c5ce13adfbd04d40453b60c2a9f0cd8
| 18,690
|
py
|
Python
|
sensor_merge/root/sensor.py
|
juhnowski/FishingRod
|
457e7afb5cab424296dff95e1acf10ebf70d32a9
|
[
"MIT"
] | null | null | null |
sensor_merge/root/sensor.py
|
juhnowski/FishingRod
|
457e7afb5cab424296dff95e1acf10ebf70d32a9
|
[
"MIT"
] | null | null | null |
sensor_merge/root/sensor.py
|
juhnowski/FishingRod
|
457e7afb5cab424296dff95e1acf10ebf70d32a9
|
[
"MIT"
] | 1
|
2018-10-02T06:18:07.000Z
|
2018-10-02T06:18:07.000Z
|
import cgi
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
#class TaskStatus:
# def __init__(self):
# self.TASK_READY = "READY"
# self.TASK_RUNNING = "RUNNING"
# self.setReady()
# def setReady(self):
# self.change(self.TASK_READY)
# def setRunning(self):
# self.change(self.TASK_RUNNING)
# def change(self, st):
# self.task_status = st
# def get(self):
# return self.task_status
#status = "READY"
class Guestbook(webapp.RequestHandler):
def post(self):
greeting = Greeting()
if users.get_current_user():
greeting.author = users.get_current_user()
greeting.content = self.request.get('content')
greeting.put()
# application.status.setRunning()
# global status
# status = "RUNNING"
self.redirect('/')
class StopCommand(webapp.RequestHandler):
def post(self):
# application.status.setReady()
# global status
# status = "READY"
self.redirect('/')
class Greeting(db.Model):
author = db.UserProperty()
content = db.StringProperty(multiline=True)
date = db.DateTimeProperty(auto_now_add=True)
class MainPage(webapp.RequestHandler):
def get(self):
user = users.get_current_user()
self.response.out.write('<html><body>')
self.response.out.write(' <head>')
self.response.out.write(' <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />')
self.response.out.write(' </head>')
self.response.out.write('<body>')
if user and user.nickname() == "wormfarm":
# self.response.out.write('<b>Hello, ' + user.nickname()+'</b><br>Status:'+ application.status.get() +'<br><hr><br>')
self.response.out.write('<b>Hello, ' + user.nickname()+'</b><br><hr><br>')
# global status
# self.response.out.write('<b>Hello, ' + user.nickname()+'</b><br>Status:'+ status +'<br><hr><br>')
else:
self.redirect(users.create_login_url(self.request.uri))
# Write the submission form and the footer of the page
self.response.out.write("""
<form action="/sign" method="post">
<table>
<tr>
<td>
Input filename:
</td>
<td><input id="file_name" type="text" name="content"></td>
<td><input type="submit" value="Sign Task to file" onclick="startTask();"></td>
</form>
<form action="/stop" method="post">
<table>
<tr>
<td>
Please chek the latest log, and if running state press:
</td>
<td>
<input type="button" value="Stop Task" onclick="stopTask();">
</td>
</tr>
</table>
</form>
<br>""")
greetings = db.GqlQuery("SELECT * FROM Greeting ORDER BY date DESC LIMIT 10")
for greeting in greetings:
if greeting.author:
self.response.out.write('<b>%s</b> created by <b>%s</b>:' % (greeting.date,greeting.author.nickname()))
else:
self.response.out.write('Anonimus create: ')
self.response.out.write('<blockquote><table><tr>')
self.response.out.write('<td><table><tr>')
self.response.out.write('<td>Sensor Data file:</td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_data.txt">'+greeting.content+'_data.txt</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>Sensor Log file: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_log.txt">'+greeting.content+'_log.txt</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>Encoder Data file: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_encoder_data.txt">'+greeting.content+'_encoder_data.txt</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>Encoder Log file: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_encoder_log.txt">'+greeting.content+'_encoder_log.txt</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>XIMU Batt And Therm: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_CalBattAndTherm.csv">'+greeting.content+'_CalBattAndTherm.csv</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>XIMU Inertial And Mag: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_CalInertialAndMag.csv">'+greeting.content+'_CalInertialAndMag.csv</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>XIMU Date Time: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_DateTime.csv">'+greeting.content+'_DateTime.csv</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>XIMU Euler Angles: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_EulerAngles.csv">'+greeting.content+'_EulerAngles.csv</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>XIMU Quaternion: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_Quaternion.csv">'+greeting.content+'_Quaternion.csv</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a>XIMU Rotation Matrix: </a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_RotationMatrix.csv">'+greeting.content+'_RotationMatrix.csv</a></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a href="http://interactivefishing.tv:9001/'+greeting.content+'.css" target="_blank">Update Graphics</a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td></td>')
self.response.out.write('</tr><tr>')
self.response.out.write('<td><a href="http://interactivefishing.tv:9001/'+greeting.content+'.xml" target="_blank">Merge Update</a></td>')
self.response.out.write('<td><div></div></td>')
self.response.out.write('<td><a href="http://interactivefishing.tv:8080/data/'+greeting.content+'_merged.txt">'+greeting.content+'_merged.txt</a></td>')
self.response.out.write('</tr></table></td>')
self.response.out.write('<td><table><tr><td><b>Tension:</b></td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_data.png"><img src="/stylesheets/' + greeting.content + '_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td><b>Delta Encoder:</b></td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_delta_encoder_data.png"><img src="/stylesheets/' + greeting.content + '_delta_encoder_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td><b>Absolute Encoder:</b></td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_value_encoder_data.png"><img src="/stylesheets/' + greeting.content + '_value_encoder_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('</tr></table>')
self.response.out.write('<table>')
self.response.out.write('<tr>')
self.response.out.write('<td><b>Euler Angles</b></td>')
self.response.out.write('<td><b>Accelerometer</b></td>')
self.response.out.write('<td><b>Gyroscope</b></td>')
self.response.out.write('<td><b>Magnetometer</b></td>')
self.response.out.write('<td><b>Quaternion</b></td>')
self.response.out.write('<td></td>')
self.response.out.write('<td><b>RotationMatrix</b></td>')
self.response.out.write('<td></td>')
self.response.out.write('</tr>')
self.response.out.write('<tr>')
self.response.out.write('<td><table><tr><td>Pitch/Theta/Y:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_ea_pty_data.png"><img src="/stylesheets/' + greeting.content + '_ea_pty_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>x:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_ax_data.png"><img src="/stylesheets/' + greeting.content + '_im_ax_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>x:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_gx_data.png"><img src="/stylesheets/' + greeting.content + '_im_gx_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>x:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_mx_data.png"><img src="/stylesheets/' + greeting.content + '_im_mx_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 1:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_q_e1_data.png"><img src="/stylesheets/' + greeting.content + '_q_e1_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 11:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e11_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e11_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 21:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e21_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e21_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 31:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e31_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e31_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('</tr>')
self.response.out.write('<tr>')
self.response.out.write('<td><table><tr><td>Roll/Phi/X:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_ea_rpx_data.png"><img src="/stylesheets/' + greeting.content + '_ea_rpx_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>y:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_ay_data.png"><img src="/stylesheets/' + greeting.content + '_im_ay_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>y:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_gy_data.png"><img src="/stylesheets/' + greeting.content + '_im_gy_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>y:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_my_data.png"><img src="/stylesheets/' + greeting.content + '_im_my_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 2:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_q_e2_data.png"><img src="/stylesheets/' + greeting.content + '_q_e2_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 12:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e12_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e12_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 22:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e22_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e22_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 32:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e32_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e32_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('</tr>')
self.response.out.write('<tr>')
self.response.out.write('<td><table><tr><td>Yaw/Psi/Z:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_ea_ypz_data.png"><img src="/stylesheets/' + greeting.content + '_ea_ypz_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>z:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_az_data.png"><img src="/stylesheets/' + greeting.content + '_im_az_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>z:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_gz_data.png"><img src="/stylesheets/' + greeting.content + '_im_gz_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>z:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_im_mz_data.png"><img src="/stylesheets/' + greeting.content + '_im_mz_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 3:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_q_e3_data.png"><img src="/stylesheets/' + greeting.content + '_q_e3_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 13:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e13_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e13_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 23:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e23_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e23_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td>element 33:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_rm_e33_data.png"><img src="/stylesheets/' + greeting.content + '_rm_e33_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('</tr>')
self.response.out.write('<tr>')
self.response.out.write('<td><table><tr><td><b>Battery:</b></td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_b_data.png"><img src="/stylesheets/' + greeting.content + '_b_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td><table><tr><td><b>Temperature:</b></td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_th_data.png"><img src="/stylesheets/' + greeting.content + '_th_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td></td>')
self.response.out.write('<td></td>')
self.response.out.write('<td><table><tr><td>element 4:</td></tr><tr><td><a href="/stylesheets/' + greeting.content + '_q_e4_data.png"><img src="/stylesheets/' + greeting.content + '_q_e4_data.png" width="200" height="150"></a></td></tr></table></td>')
self.response.out.write('<td></td>')
self.response.out.write('<td></td>')
self.response.out.write('<td></td>')
self.response.out.write('</tr>')
self.response.out.write('</table>')
self.response.out.write('</blockquote>')
self.response.out.write("""
<div id='mySocket'/>
<script>
stopTask = function()
{
window.open('http://interactivefishing.tv:9001/stop.html','Stop command','width=300,height=100')
}
startTask = function()
{
var filename = document.getElementById("file_name").value;
if (filename.length>0)
{
window.open("http://interactivefishing.tv:9001/"+filename+".html",'Start command','width=300,height=100')
}
}
</script>
</body>
</html>""")
application = webapp.WSGIApplication(
[('/', MainPage),
('/sign', Guestbook),
('/stop', StopCommand)],
debug=True)
#application.status = TaskStatus()
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()
| 68.713235
| 331
| 0.575655
| 2,435
| 18,690
| 4.322382
| 0.101027
| 0.135677
| 0.169596
| 0.226128
| 0.777957
| 0.738052
| 0.730166
| 0.702233
| 0.581188
| 0.567981
| 0
| 0.021373
| 0.196415
| 18,690
| 271
| 332
| 68.96679
| 0.679406
| 0.048261
| 0
| 0.312821
| 0
| 0.328205
| 0.532917
| 0.217717
| 0
| 0
| 0
| 0
| 0
| 1
| 0.020513
| false
| 0
| 0.025641
| 0
| 0.082051
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ff6b395c4bd4fb3a52a72d578a64caaaeb7364fd
| 145
|
py
|
Python
|
scripts/json2yaml.py
|
fatemeh-azadi/Marian
|
8d0d88c3c358a364ac94bd5271a44a0b83b099d3
|
[
"MIT"
] | 17
|
2018-09-17T20:59:37.000Z
|
2021-12-07T02:56:09.000Z
|
scripts/json2yaml.py
|
fatemeh-azadi/Marian
|
8d0d88c3c358a364ac94bd5271a44a0b83b099d3
|
[
"MIT"
] | 9
|
2018-09-17T20:37:27.000Z
|
2020-12-13T00:00:53.000Z
|
scripts/json2yaml.py
|
lkfo415579/amun
|
462ef67e03e3cb7d4c2ce2967a6d45ea5b9a3e57
|
[
"MIT"
] | 8
|
2018-09-16T15:04:19.000Z
|
2021-07-28T11:29:25.000Z
|
import sys
import json
import yaml
yaml.safe_dump(json.load(sys.stdin), sys.stdout,
default_flow_style=False, allow_unicode=True)
| 24.166667
| 60
| 0.737931
| 22
| 145
| 4.681818
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 145
| 6
| 60
| 24.166667
| 0.858333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
441981c50abaef8ee0cffb03106eaee964eca301
| 83
|
py
|
Python
|
simulator/__init__.py
|
joristork/milovision
|
aeb09b9c75f7bc0900cb513079bbe08b3c439bbc
|
[
"MIT"
] | 8
|
2015-01-04T14:45:04.000Z
|
2021-08-31T21:32:39.000Z
|
simulator/__init__.py
|
joristork/milovision
|
aeb09b9c75f7bc0900cb513079bbe08b3c439bbc
|
[
"MIT"
] | null | null | null |
simulator/__init__.py
|
joristork/milovision
|
aeb09b9c75f7bc0900cb513079bbe08b3c439bbc
|
[
"MIT"
] | 2
|
2016-03-21T08:19:32.000Z
|
2021-10-18T03:12:40.000Z
|
#!/usr/bin/env python -tt
# encoding: utf-8
#
from simulator import GL_Simulator
| 11.857143
| 34
| 0.722892
| 13
| 83
| 4.538462
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014286
| 0.156627
| 83
| 6
| 35
| 13.833333
| 0.828571
| 0.481928
| 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
|
44496bb2dd3ac746b4c103592d52ab0ac79fa11c
| 2,163
|
py
|
Python
|
atom/nucleus/python/test/test_performance_api.py
|
sumit4-ttn/SDK
|
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
|
[
"Apache-2.0"
] | null | null | null |
atom/nucleus/python/test/test_performance_api.py
|
sumit4-ttn/SDK
|
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
|
[
"Apache-2.0"
] | null | null | null |
atom/nucleus/python/test/test_performance_api.py
|
sumit4-ttn/SDK
|
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
Hydrogen Atom API
The Hydrogen Atom API # noqa: E501
OpenAPI spec version: 1.7.0
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import nucleus_api
from nucleus_api.api.performance_api import PerformanceApi # noqa: E501
from nucleus_api.rest import ApiException
class TestPerformanceApi(unittest.TestCase):
"""PerformanceApi unit test stubs"""
def setUp(self):
self.api = nucleus_api.api.performance_api.PerformanceApi() # noqa: E501
def tearDown(self):
pass
def test_get_account_performance_using_get(self):
"""Test case for get_account_performance_using_get
Account Performance # noqa: E501
"""
pass
def test_get_allocation_performance_using_get(self):
"""Test case for get_allocation_performance_using_get
Allocation Performance # noqa: E501
"""
pass
def test_get_benchmark_performance_using_get(self):
"""Test case for get_benchmark_performance_using_get
Benchmark Performance # noqa: E501
"""
pass
def test_get_client_performance_using_get(self):
"""Test case for get_client_performance_using_get
Client Performance # noqa: E501
"""
pass
def test_get_goal_performance_using_get(self):
"""Test case for get_goal_performance_using_get
Goal Performance # noqa: E501
"""
pass
def test_get_model_performance_using_get(self):
"""Test case for get_model_performance_using_get
Model Performance # noqa: E501
"""
pass
def test_get_portfolio_performance_using_get(self):
"""Test case for get_portfolio_performance_using_get
Portfolio Performance # noqa: E501
"""
pass
def test_get_security_performance_using_get(self):
"""Test case for get_security_performance_using_get
Security Performance # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()
| 23.769231
| 81
| 0.675451
| 256
| 2,163
| 5.351563
| 0.242188
| 0.186861
| 0.221898
| 0.081752
| 0.621898
| 0.384672
| 0.384672
| 0.216058
| 0
| 0
| 0
| 0.022924
| 0.253814
| 2,163
| 90
| 82
| 24.033333
| 0.825898
| 0.424873
| 0
| 0.321429
| 1
| 0
| 0.007744
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.357143
| false
| 0.321429
| 0.178571
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
445e1988e65a55b64ddce05c7c44c56d1bb5b8e5
| 129
|
py
|
Python
|
welib/tools/tests/test_spectral.py
|
moonieann/welib
|
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
|
[
"MIT"
] | 24
|
2019-07-24T23:37:10.000Z
|
2022-03-30T20:40:40.000Z
|
welib/tools/tests/test_spectral.py
|
moonieann/welib
|
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
|
[
"MIT"
] | null | null | null |
welib/tools/tests/test_spectral.py
|
moonieann/welib
|
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
|
[
"MIT"
] | 11
|
2019-03-14T13:47:04.000Z
|
2022-03-31T15:47:27.000Z
|
import unittest
import numpy as np
from welib.tools.spectral import TestSpectral
if __name__ == '__main__':
unittest.main()
| 18.428571
| 45
| 0.767442
| 17
| 129
| 5.352941
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155039
| 129
| 6
| 46
| 21.5
| 0.834862
| 0
| 0
| 0
| 0
| 0
| 0.062016
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
922d900aed31681988be8243fdae06d1a27e6247
| 1,849
|
py
|
Python
|
app/internalapi/api.py
|
iamjohnnym/hydra_tickets
|
6a7b0be1a391375c991c8c3994aa81889529b4a6
|
[
"Apache-2.0"
] | null | null | null |
app/internalapi/api.py
|
iamjohnnym/hydra_tickets
|
6a7b0be1a391375c991c8c3994aa81889529b4a6
|
[
"Apache-2.0"
] | null | null | null |
app/internalapi/api.py
|
iamjohnnym/hydra_tickets
|
6a7b0be1a391375c991c8c3994aa81889529b4a6
|
[
"Apache-2.0"
] | null | null | null |
#-*- coding: utf-8 -*-
from requests.auth import HTTPBasicAuth
import requests
import json
class GlobalApi():
def __init__(self):
pass
def post(self, endpoint, dictionary):
url = "http://127.0.0.1:7777/api/{0}".format(endpoint)
header = {'Content-type': 'application/json'}
req = requests.post(url, data=json.dumps(dictionary), auth=('thecallbacks', 'ag5346hs3gf142g32h4h4'), headers=header).json()
print req
return req
def put(self, endpoint, case, dictionary):
url = "http://127.0.0.1:7777/api/{0}/{1}".format(endpoint,case)
header = {'Content-type': 'application/json'}
req = requests.put(url, data=json.dumps(dictionary), auth=('thecallbacks', 'ag5346hs3gf142g32h4h4'), headers=header).json()
print req
return req
def get(self, endpoint, case):
url = "http://127.0.0.1:7777/api/{0}/{1}".format(endpoint, case)
header = {'Content-type': 'application/json'}
filters = [dict(name="status", op="eq", val='New')]
params = dict(q=json.dumps(dict(filters=filters)))
raw = requests.get(url, auth=('thecallbacks', 'ag5346hs3gf142g32h4h4'), params=params, headers=header).json()
return raw
def get_all(self, endpoint):
url = "http://127.0.0.1:7777/api/{0}".format(endpoint)
header = {'Content-type': 'application/json'}
filters = [dict(name="status", op="eq", val="pending")]
params = dict(q=json.dumps(dict(filters=filters)))
payload = {'status': 'new'}
raw = requests.get(url, auth=('thecallbacks', 'ag5346hs3gf142g32h4h4'), params=params, headers=header)
#for t in raw:
# if t in endpoint:
# print raw[t][0]
# foo = json.dumps(raw[t][0])
# return foo
return raw.json()
| 39.340426
| 132
| 0.599243
| 226
| 1,849
| 4.880531
| 0.265487
| 0.010879
| 0.036265
| 0.039891
| 0.734361
| 0.734361
| 0.734361
| 0.714415
| 0.645512
| 0.645512
| 0
| 0.06807
| 0.229313
| 1,849
| 46
| 133
| 40.195652
| 0.705965
| 0.070849
| 0
| 0.424242
| 0
| 0
| 0.235397
| 0.049065
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.030303
| 0.090909
| null | null | 0.060606
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
923362b14f3607519af58543233dedd3b3788ed2
| 5,478
|
py
|
Python
|
protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py
|
alexandermiller702/modeldb
|
de793c46cd13db78bf250658252e6a2cd883885e
|
[
"Apache-2.0"
] | null | null | null |
protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py
|
alexandermiller702/modeldb
|
de793c46cd13db78bf250658252e6a2cd883885e
|
[
"Apache-2.0"
] | 1
|
2022-02-16T01:17:19.000Z
|
2022-02-16T01:17:19.000Z
|
protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py
|
alexandermiller702/modeldb
|
de793c46cd13db78bf250658252e6a2cd883885e
|
[
"Apache-2.0"
] | null | null | null |
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from ...public.modeldb import Lineage_pb2 as protos_dot_public_dot_modeldb_dot_Lineage__pb2
class LineageServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.addLineage = channel.unary_unary(
'/ai.verta.modeldb.LineageService/addLineage',
request_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.AddLineage.SerializeToString,
response_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.AddLineage.Response.FromString,
)
self.deleteLineage = channel.unary_unary(
'/ai.verta.modeldb.LineageService/deleteLineage',
request_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.DeleteLineage.SerializeToString,
response_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.DeleteLineage.Response.FromString,
)
self.findAllInputs = channel.unary_unary(
'/ai.verta.modeldb.LineageService/findAllInputs',
request_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputs.SerializeToString,
response_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputs.Response.FromString,
)
self.findAllOutputs = channel.unary_unary(
'/ai.verta.modeldb.LineageService/findAllOutputs',
request_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllOutputs.SerializeToString,
response_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllOutputs.Response.FromString,
)
self.findAllInputsOutputs = channel.unary_unary(
'/ai.verta.modeldb.LineageService/findAllInputsOutputs',
request_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputsOutputs.SerializeToString,
response_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputsOutputs.Response.FromString,
)
class LineageServiceServicer(object):
# missing associated documentation comment in .proto file
pass
def addLineage(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def deleteLineage(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def findAllInputs(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def findAllOutputs(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def findAllInputsOutputs(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_LineageServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'addLineage': grpc.unary_unary_rpc_method_handler(
servicer.addLineage,
request_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.AddLineage.FromString,
response_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.AddLineage.Response.SerializeToString,
),
'deleteLineage': grpc.unary_unary_rpc_method_handler(
servicer.deleteLineage,
request_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.DeleteLineage.FromString,
response_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.DeleteLineage.Response.SerializeToString,
),
'findAllInputs': grpc.unary_unary_rpc_method_handler(
servicer.findAllInputs,
request_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputs.FromString,
response_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputs.Response.SerializeToString,
),
'findAllOutputs': grpc.unary_unary_rpc_method_handler(
servicer.findAllOutputs,
request_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllOutputs.FromString,
response_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllOutputs.Response.SerializeToString,
),
'findAllInputsOutputs': grpc.unary_unary_rpc_method_handler(
servicer.findAllInputsOutputs,
request_deserializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputsOutputs.FromString,
response_serializer=protos_dot_public_dot_modeldb_dot_Lineage__pb2.FindAllInputsOutputs.Response.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'ai.verta.modeldb.LineageService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
| 47.634783
| 125
| 0.788244
| 586
| 5,478
| 6.953925
| 0.122867
| 0.053988
| 0.077301
| 0.092761
| 0.779141
| 0.779141
| 0.779141
| 0.677301
| 0.667975
| 0.667975
| 0
| 0.004693
| 0.144213
| 5,478
| 114
| 126
| 48.052632
| 0.864548
| 0.092552
| 0
| 0.306818
| 1
| 0
| 0.114459
| 0.053792
| 0
| 0
| 0
| 0
| 0
| 1
| 0.079545
| false
| 0.079545
| 0.022727
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
9259c2c34b44ad77cbd3d4de8e6439bfb371ad03
| 6,868
|
py
|
Python
|
SeRe/tools/data_aft/view_xt.py
|
Anny-Anny/SeRe
|
2483269c5b5b36673b8893bb026689d731226cb8
|
[
"MIT"
] | null | null | null |
SeRe/tools/data_aft/view_xt.py
|
Anny-Anny/SeRe
|
2483269c5b5b36673b8893bb026689d731226cb8
|
[
"MIT"
] | null | null | null |
SeRe/tools/data_aft/view_xt.py
|
Anny-Anny/SeRe
|
2483269c5b5b36673b8893bb026689d731226cb8
|
[
"MIT"
] | null | null | null |
import shutil
from mmseg.apis import inference_segmentor, init_segmentor, show_result_pyplot
import mmcv
from mmseg.core.evaluation import eval_hooks, eval_metrics,intersect_and_union, mean_iou
import cv2
import numpy as np
from PIL import Image
import os
def test_sig_img(config_file = '/media/xjw/data/seg_cl/myseg_cl/config/myconfig1.py',
checkpoint_file = '/media/xjw/data/seg_cl/mmsegmentation-master/ori_work_dirs/myconfig/iter_60000.pth',
img = '/media/xjw/data/seg_cl/myseg_cl/data/new_data/images/xiangtan__11__50.tif',
show = False,
save = False,
save_name= 'result'):
model = init_segmentor(config_file, checkpoint_file, device='cuda:0')
result = inference_segmentor(model, img)
if show:
show_result_pyplot(model, img, result, opacity=0.7) # only to show the result ,no save
# visualize the results in a new window
# model.show_result(img, result, show=True)
# or save the visualization results to image files
# you can change the opacity of the painted segmentation map in (0, 1].
if save:
model.show_result(img, result, out_file= save_name + '.jpg', opacity=0.7)
return result
def label(config_file = '/media/xjw/data/seg_cl/myseg_cl/config/myconfig_before.py',
checkpoint_file = '/media/xjw/data/seg_cl/mmsegmentation-master/ori_work_dirs/myconfig/iter_60000.pth',
img = '/media/xjw/data/seg_cl/myseg_cl/data/xiangtan_cjdata/images/validation/xiangtan__7__66.tif',
pngfile = '/media/xjw/data/seg_cl/myseg_cl/data/xiangtan_cjdata/annotations/validation/xiangtan__7__66.tif',
show = False,
save = False,
save_name= 'result'):
model = init_segmentor(config_file, checkpoint_file, device='cuda:0')
result = inference_segmentor(model, img)
png = [cv2.imread(pngfile,-1)]
if show:
show_result_pyplot(model, img, result, opacity=0.7) # only to show the result ,no save
# visualize the results in a new window
# model.show_result(img, result, show=True)
# or save the visualization results to image files
# you can change the opacity of the painted segmentation map in (0, 1].
if save:
model.show_result(img, result, out_file= save_name + '.jpg', opacity=0.7)
def cal_sig_aAcc(config_file,checkpoint_file,img,gt_file):
# model = init_segmentor(config_file, checkpoint_file, device='cuda:0') # 这里应该可以注释掉,不需要加载model
img = '/media/xjw/data/seg_cl/myseg_cl/data/new_data/images/xiangtan__11__50.tif' # or img = mmcv.imread(img), which will only load it once
# gt_file = '/media/xjw/data/seg_cl/myseg_cl/data/new_data/annotations/xiangtan__11__50.tif'
gt = cv2.imread(gt_file, -1)
result = test_sig_img(config_file,checkpoint_file,img)
eval_res = eval_metrics(result, gt, 9, ignore_index= 10, ) # 为什么一定要输入一个要被忽略的类别呢,感觉没啥影响是因为之前写的0类根本是NAN
# gt = gt.tolist()
# IoU = intersect_and_union(np.array(result)[0], gt, 9, ignore_index= 10, ) #不知道转成了多维数组就自动多了一个维度,所以取了[0]
# mIoU = mean_iou(np.array(result)[0], gt, 9, ignore_index= 10, )
# print("eval_res is : ", eval_res)
# print("IoU is : ", IoU)
# print("mIoU is : ", mIoU)
aAcc = eval_res['aAcc'].tolist()
return aAcc
def copy():
file = {'__7__66': 'bg',
'__105__190': 'farmland',
'__68__80': 'town',
'__79__151': 'village',
'__55__59': 'water',
'__68__192': 'forest',
'__37__179': 'grass',
'__31__145': 'road'}
for a, b in file.items():
img = '/media/xjw/data/seg_cl/myseg_cl/data/xiangtan_cjdata/images/validation/xiangtan' + a + '.tif'
current_path = os.getcwd()
print(current_path)
path = current_path + '/' + b
shutil.copy(img,path)
def save_vis():
# 测试单张图片并且可视化
file = {'__7__66': 'bg',
'__105__190': 'farmland',
'__68__80': 'town',
'__79__151': 'village',
'__55__59': 'water',
'__68__192': 'forest',
'__37__179': 'grass',
'__31__145': 'road'}
model = ['/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/ori1_work_dirs/myconfig/iter_80000.pth',
'/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/_r_20%_work_dirs/iter_16000.pth',
'/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/_union_work_dirs/iter_160000.pth',
'/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/_rp_m_uni_25%_work_dirs/epoch_20.pth']
dirname = ['static','finetune','union','sere','label']
for a,b in file.items():
img = '/media/xjw/data/seg_cl/myseg_cl/data/xiangtan_cjdata/images/validation/xiangtan' + a + '.tif'
png = '/media/xjw/data/seg_cl/myseg_cl/data/xiangtan_cjdata/annotations/validation/xiangtan' + a + '.tif'
current_path = os.getcwd()
print(current_path)
path = current_path + '/' + b
if not os.path.exists(path):
os.mkdir(path)
for i, mo in enumerate(model):
test_sig_img(config_file ='/media/xjw/data/seg_cl/myseg_cl/config/myconfig_before.py',
checkpoint_file =mo,
img = img,
show=False,
save=True,
save_name=path + '/' + dirname[i])
# label(config_file = '/media/xjw/data/seg_cl/myseg_cl/config/myconfig_before.py',
# checkpoint_file = mo,
# img = img,
# pngfile = png,
# show = False,
# save = True,
# save_name= path + '/' + dirname[-1])
# __7__66 bg
# __105__190 farmland
# __68__80 town
# __79__151 village
# __55__59 water
# __68__192 forest
# __37__179 grass
# __31__145 road
# vis_img_gr()
# save_vis()
# label()
copy()
"""
测试各种模型的图片编号
11_50(最初的,各种类型都有,有5类),10_205(耕地居多),10__208(水体居多,精度提升明显),31__41(道路居多,精度提升明显)
模型路径
/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/ori1_work_dirs/myconfig/iter_80000.pth
/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/_r_20%_work_dirs/iter_16000.pth
/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/_union_work_dirs/iter_160000.pth
/media/xjw/data/seg_cl/mmsegmentation-master/.xiangtan_work_dirs/_rp_m_uni_25%_work_dirs/epoch_20.pth
"""
#{'aAcc': array(95.36328125), 'IoU': array([ nan, 0.83421438, nan, 0.19274611, 0. ,
# 0.62170841, nan, 0.09732143, nan]), 'Acc': array([ nan, 121.27777778, nan, 19.92857143,
# nan, 97.68807339, nan, 9.90909091,
# nan])}
| 47.365517
| 144
| 0.634246
| 932
| 6,868
| 4.344421
| 0.219957
| 0.043468
| 0.065201
| 0.081502
| 0.755495
| 0.733514
| 0.733514
| 0.733514
| 0.714744
| 0.699926
| 0
| 0.062368
| 0.238934
| 6,868
| 144
| 145
| 47.694444
| 0.712263
| 0.250437
| 0
| 0.54023
| 0
| 0.057471
| 0.347618
| 0.282576
| 0
| 0
| 0
| 0
| 0
| 1
| 0.057471
| false
| 0
| 0.091954
| 0
| 0.172414
| 0.022989
| 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
|
929e81940a6b3635c8a6ee14d078a37b37a46668
| 125
|
py
|
Python
|
web/scalica/utils/misc.py
|
wkww/LSWA-13
|
db2108aef67bf1f7e75ab043c7e53ef6641e6da7
|
[
"MIT"
] | 1
|
2020-04-30T15:31:46.000Z
|
2020-04-30T15:31:46.000Z
|
web/scalica/utils/misc.py
|
wkww/LSWA-13
|
db2108aef67bf1f7e75ab043c7e53ef6641e6da7
|
[
"MIT"
] | 2
|
2017-12-03T23:04:13.000Z
|
2017-12-03T23:49:25.000Z
|
web/scalica/utils/misc.py
|
wkww/LSWA-13
|
db2108aef67bf1f7e75ab043c7e53ef6641e6da7
|
[
"MIT"
] | 3
|
2019-12-03T21:37:38.000Z
|
2020-02-12T17:29:07.000Z
|
#utils/misc.py
def custom_show_toolbar(request):
return False
#return "1" == request.COOKIES.get('DebugToolbar', False)
| 20.833333
| 59
| 0.736
| 17
| 125
| 5.294118
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009091
| 0.12
| 125
| 5
| 60
| 25
| 0.809091
| 0.552
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
92ac6d0beca89fef7cb446e3c0b1779bc2e185cd
| 62
|
py
|
Python
|
dmt/checks/__init__.py
|
dm03514/data-monitoring-toolkit
|
bca8fc54e9eb98c0cbacc67245d79dd56e128fbe
|
[
"Apache-2.0"
] | null | null | null |
dmt/checks/__init__.py
|
dm03514/data-monitoring-toolkit
|
bca8fc54e9eb98c0cbacc67245d79dd56e128fbe
|
[
"Apache-2.0"
] | null | null | null |
dmt/checks/__init__.py
|
dm03514/data-monitoring-toolkit
|
bca8fc54e9eb98c0cbacc67245d79dd56e128fbe
|
[
"Apache-2.0"
] | null | null | null |
from .storage import Storage
from .freshness import Freshness
| 20.666667
| 32
| 0.83871
| 8
| 62
| 6.5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 62
| 2
| 33
| 31
| 0.962963
| 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
|
92ad54b4a1ccfc2f942e531a647150664b0e7475
| 165
|
py
|
Python
|
_42.py
|
yash001dev/learnpython
|
d311d86e8da43abddd33c9a9c8c9015fc9e858eb
|
[
"MIT"
] | 2
|
2020-06-19T17:05:08.000Z
|
2021-04-05T18:04:25.000Z
|
_42.py
|
yash001dev/learnpython
|
d311d86e8da43abddd33c9a9c8c9015fc9e858eb
|
[
"MIT"
] | null | null | null |
_42.py
|
yash001dev/learnpython
|
d311d86e8da43abddd33c9a9c8c9015fc9e858eb
|
[
"MIT"
] | null | null | null |
#Package Is Cointer that is Collection Of Module
import ecommerce.shipping#Full Package Module Import
from ecommerce.shipping import calc_shipping
calc_shipping()
| 41.25
| 53
| 0.842424
| 23
| 165
| 5.956522
| 0.565217
| 0.175182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 165
| 4
| 54
| 41.25
| 0.944828
| 0.442424
| 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
|
2be721b103dcfe3c96ed15b46c6477b2fc916b14
| 86
|
py
|
Python
|
lib/util/error.py
|
msniveau/discord-statusbot
|
9f53e8484fcc857b10e7f1a6a0dd5180e6241f59
|
[
"MIT"
] | 3
|
2019-03-22T22:38:56.000Z
|
2019-07-28T12:31:25.000Z
|
lib/util/error.py
|
msniveau/discord-statusbot
|
9f53e8484fcc857b10e7f1a6a0dd5180e6241f59
|
[
"MIT"
] | 7
|
2018-10-22T14:09:58.000Z
|
2018-12-16T05:06:07.000Z
|
lib/util/error.py
|
msniveau/discord-statusbot
|
9f53e8484fcc857b10e7f1a6a0dd5180e6241f59
|
[
"MIT"
] | 1
|
2018-11-19T10:13:03.000Z
|
2018-11-19T10:13:03.000Z
|
class ConfigurationError(Exception):
pass
class DiscordError(Exception):
pass
| 17.2
| 36
| 0.767442
| 8
| 86
| 8.25
| 0.625
| 0.393939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162791
| 86
| 5
| 37
| 17.2
| 0.916667
| 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
| 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
|
a61aa15d0d639d51d177fc1b8b0b6021f19c4434
| 30
|
py
|
Python
|
v2-model-class/model/__init__.py
|
cclai999/pycontw2020-demo
|
2371c03b62dca2419180c0847ceb7b4584d14cd1
|
[
"MIT"
] | 1
|
2021-06-30T16:44:22.000Z
|
2021-06-30T16:44:22.000Z
|
v4-docker-w-minio/model/__init__.py
|
cclai999/pycontw2020-demo
|
2371c03b62dca2419180c0847ceb7b4584d14cd1
|
[
"MIT"
] | null | null | null |
v4-docker-w-minio/model/__init__.py
|
cclai999/pycontw2020-demo
|
2371c03b62dca2419180c0847ceb7b4584d14cd1
|
[
"MIT"
] | null | null | null |
from .myresnet import MyResnet
| 30
| 30
| 0.866667
| 4
| 30
| 6.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 30
| 1
| 30
| 30
| 0.962963
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a63467cc44bd26a49e656bf42aa4ec07062a119d
| 355
|
py
|
Python
|
frontend/basewidget.py
|
ludica-squamata/BehaviourTreeEditor
|
d7c7094cf7e1449b08ae39fab8ba94fa1c132321
|
[
"MIT"
] | null | null | null |
frontend/basewidget.py
|
ludica-squamata/BehaviourTreeEditor
|
d7c7094cf7e1449b08ae39fab8ba94fa1c132321
|
[
"MIT"
] | null | null | null |
frontend/basewidget.py
|
ludica-squamata/BehaviourTreeEditor
|
d7c7094cf7e1449b08ae39fab8ba94fa1c132321
|
[
"MIT"
] | null | null | null |
class BaseWidget:
def on_key_down(self, *args, **kwargs):
pass
def on_key_up(self, *args, **kwargs):
pass
def on_mouse_down(self, *args, **kwargs):
pass
def on_mouse_up(self, *args, **kwargs):
pass
def on_mouse_motion(self, *args, **kwargs):
pass
def on_destruction(self):
pass
| 18.684211
| 47
| 0.574648
| 47
| 355
| 4.106383
| 0.297872
| 0.15544
| 0.362694
| 0.466321
| 0.735751
| 0.735751
| 0.61658
| 0.310881
| 0
| 0
| 0
| 0
| 0.301408
| 355
| 18
| 48
| 19.722222
| 0.778226
| 0
| 0
| 0.461538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.461538
| false
| 0.461538
| 0
| 0
| 0.538462
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
a65321546979e4d9ca0ad71a4402482d9ec7899b
| 248
|
py
|
Python
|
src/demos/backtracking/polyominoes/tetrominoes.py
|
DavidLlorens/algoritmia
|
40ca0a89ea6de9b633fa5f697f0a28cae70816a2
|
[
"MIT"
] | 6
|
2018-09-15T15:09:10.000Z
|
2022-02-27T01:23:11.000Z
|
src/demos/backtracking/polyominoes/tetrominoes.py
|
JeromeIllgner/algoritmia
|
406afe7206f2411557859bf03480c16db7dcce0d
|
[
"MIT"
] | null | null | null |
src/demos/backtracking/polyominoes/tetrominoes.py
|
JeromeIllgner/algoritmia
|
406afe7206f2411557859bf03480c16db7dcce0d
|
[
"MIT"
] | 5
|
2018-07-10T20:19:55.000Z
|
2021-03-31T03:32:22.000Z
|
#coding: latin1
#< full
from algoritmia.problems.puzzles.polyominoes.backtracking import PolyominoesSolver
from algoritmia.data.tetrominoes import tetrominos
print(PolyominoesSolver().solve('.......\n ......\n.......', tetrominos))
#> full
| 31
| 83
| 0.721774
| 24
| 248
| 7.458333
| 0.708333
| 0.156425
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004484
| 0.100806
| 248
| 8
| 84
| 31
| 0.798206
| 0.104839
| 0
| 0
| 0
| 0
| 0.117371
| 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
|
a65a32a91fe115972ccf43ab9d4b897bd53ada01
| 38
|
py
|
Python
|
_solved/solutions/03-spatial-relationships-operations2.py
|
lleondia/geopandas-tutorial
|
5128fd6865bbd979a7b4e5b8cb4d0de51bead029
|
[
"BSD-3-Clause"
] | 341
|
2018-04-26T08:46:05.000Z
|
2022-03-01T08:13:39.000Z
|
_solved/solutions/03-spatial-relationships-operations2.py
|
lleondia/geopandas-tutorial
|
5128fd6865bbd979a7b4e5b8cb4d0de51bead029
|
[
"BSD-3-Clause"
] | 24
|
2020-09-30T19:57:14.000Z
|
2021-10-05T07:21:09.000Z
|
_solved/solutions/03-spatial-relationships-operations2.py
|
lleondia/geopandas-tutorial
|
5128fd6865bbd979a7b4e5b8cb4d0de51bead029
|
[
"BSD-3-Clause"
] | 128
|
2018-05-07T07:30:29.000Z
|
2022-02-19T17:53:39.000Z
|
# Print the result
print(eiffel_tower)
| 19
| 19
| 0.815789
| 6
| 38
| 5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 38
| 2
| 19
| 19
| 0.882353
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 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
|
a66bf55a9a213dce48f54d668e0e7d2ad9be713c
| 57
|
py
|
Python
|
ServerFTP/bin/__init__.py
|
Cuiqingyao/FTPDemo
|
8a008360be38e431f1d28a7cb5ae6bc2e04802de
|
[
"Apache-2.0"
] | null | null | null |
ServerFTP/bin/__init__.py
|
Cuiqingyao/FTPDemo
|
8a008360be38e431f1d28a7cb5ae6bc2e04802de
|
[
"Apache-2.0"
] | null | null | null |
ServerFTP/bin/__init__.py
|
Cuiqingyao/FTPDemo
|
8a008360be38e431f1d28a7cb5ae6bc2e04802de
|
[
"Apache-2.0"
] | null | null | null |
"""
@Time: 2018/1/8 23:14
@Author: qingyaocui
"""
| 14.25
| 25
| 0.526316
| 8
| 57
| 3.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.232558
| 0.245614
| 57
| 4
| 26
| 14.25
| 0.465116
| 0.719298
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
a6824f4dd4e98d185fd558402e3511699c29d171
| 43
|
py
|
Python
|
PP4E-Examples-1.4/Examples/PP4E/Integrate/__init__.py
|
AngelLiang/PP4E
|
3a7f63b366e1e4700b4d2524884696999a87ba9d
|
[
"MIT"
] | null | null | null |
PP4E-Examples-1.4/Examples/PP4E/Integrate/__init__.py
|
AngelLiang/PP4E
|
3a7f63b366e1e4700b4d2524884696999a87ba9d
|
[
"MIT"
] | null | null | null |
PP4E-Examples-1.4/Examples/PP4E/Integrate/__init__.py
|
AngelLiang/PP4E
|
3a7f63b366e1e4700b4d2524884696999a87ba9d
|
[
"MIT"
] | null | null | null |
# empty but required for package imports
| 14.333333
| 41
| 0.767442
| 6
| 43
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.209302
| 43
| 2
| 42
| 21.5
| 0.970588
| 0.883721
| 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
|
a6e29ab012f8e339822aec94aeeabe02f3c8d4c4
| 169
|
py
|
Python
|
src/oogeso/io/__init__.py
|
oogeso/oogeso
|
72c05fd02d62b29fc62f60daf4989370fd80cbe1
|
[
"MIT"
] | 2
|
2021-05-19T13:16:20.000Z
|
2021-11-05T11:47:11.000Z
|
src/oogeso/io/__init__.py
|
oogeso/oogeso
|
72c05fd02d62b29fc62f60daf4989370fd80cbe1
|
[
"MIT"
] | 71
|
2021-06-01T11:03:56.000Z
|
2022-03-01T09:38:37.000Z
|
src/oogeso/io/__init__.py
|
oogeso/oogeso
|
72c05fd02d62b29fc62f60daf4989370fd80cbe1
|
[
"MIT"
] | null | null | null |
from .file_io import (
read_data_from_yaml,
read_profiles_from_csv,
read_profiles_from_parquet,
read_profiles_from_xlsx,
save_profiles_to_parquet,
)
| 21.125
| 31
| 0.775148
| 24
| 169
| 4.791667
| 0.541667
| 0.313043
| 0.417391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177515
| 169
| 7
| 32
| 24.142857
| 0.827338
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.142857
| 0
| 0.142857
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
4707965222b760a3794b48691926887079cb669e
| 272
|
py
|
Python
|
tests/settings/merged/components/static.py
|
k0t3n/django-split-settings
|
f381dac01fa81eb7b9f73a0c4e7a128a5107b750
|
[
"BSD-3-Clause"
] | null | null | null |
tests/settings/merged/components/static.py
|
k0t3n/django-split-settings
|
f381dac01fa81eb7b9f73a0c4e7a128a5107b750
|
[
"BSD-3-Clause"
] | null | null | null |
tests/settings/merged/components/static.py
|
k0t3n/django-split-settings
|
f381dac01fa81eb7b9f73a0c4e7a128a5107b750
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
MEDIA_ROOT = ''
MEDIA_URL = ''
STATIC_ROOT = ''
STATIC_URL = '/static/'
STATICFILES_DIRS = ()
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
| 16
| 62
| 0.694853
| 26
| 272
| 7.038462
| 0.538462
| 0.295082
| 0.262295
| 0.338798
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00431
| 0.147059
| 272
| 16
| 63
| 17
| 0.784483
| 0.077206
| 0
| 0
| 0
| 0
| 0.457831
| 0.425703
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5b5db8be70aa0665a234a4989248893cd84f2c4d
| 53
|
py
|
Python
|
tracjanusgateway/__init__.py
|
t-kenji/trac-janus-plugin
|
db70ed431c01f3bd24ab3b117cbd90ddfbe376d3
|
[
"MIT"
] | null | null | null |
tracjanusgateway/__init__.py
|
t-kenji/trac-janus-plugin
|
db70ed431c01f3bd24ab3b117cbd90ddfbe376d3
|
[
"MIT"
] | 1
|
2017-10-06T03:18:43.000Z
|
2017-10-06T03:18:43.000Z
|
tracjanusgateway/__init__.py
|
t-kenji/trac-janus-gateway-plugin
|
db70ed431c01f3bd24ab3b117cbd90ddfbe376d3
|
[
"MIT"
] | null | null | null |
# TracJanusGatewayPlugin module
from web_ui import *
| 17.666667
| 31
| 0.830189
| 6
| 53
| 7.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132075
| 53
| 2
| 32
| 26.5
| 0.934783
| 0.54717
| 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
|
5b7065b5de397ec4baacbbe5aa801297e31c08ac
| 494
|
py
|
Python
|
getml/datasets/__init__.py
|
srnnkls/getml-python-api
|
032b2fec19a0e0a519eab480ee61e0d422d63993
|
[
"MIT"
] | null | null | null |
getml/datasets/__init__.py
|
srnnkls/getml-python-api
|
032b2fec19a0e0a519eab480ee61e0d422d63993
|
[
"MIT"
] | null | null | null |
getml/datasets/__init__.py
|
srnnkls/getml-python-api
|
032b2fec19a0e0a519eab480ee61e0d422d63993
|
[
"MIT"
] | null | null | null |
"""
The :mod:`getml.datasets` module includes utilities to load datasets,
including methods to load and fetch popular reference datasets. It also
features some artificial data generators.
"""
from .samples_generator import make_numerical
from .samples_generator import make_categorical
from .samples_generator import make_discrete
from .samples_generator import make_same_units_categorical
from .samples_generator import make_same_units_numerical
from .samples_generator import make_snowflake
| 38
| 71
| 0.856275
| 66
| 494
| 6.166667
| 0.5
| 0.162162
| 0.29484
| 0.383292
| 0.584767
| 0.511057
| 0.191646
| 0
| 0
| 0
| 0
| 0
| 0.103239
| 494
| 12
| 72
| 41.166667
| 0.918736
| 0.370445
| 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
|
5ba89cc128dc5962c20afd3a5aec3a542c45c78e
| 378
|
py
|
Python
|
tests/generic/test_barcode.py
|
Abd-Elrazek/InQRy
|
ab9d19a737a41673e8dcc419d49ca0e96476d560
|
[
"MIT"
] | 37
|
2017-05-12T02:32:26.000Z
|
2019-05-03T14:43:08.000Z
|
tests/generic/test_barcode.py
|
Abd-Elrazek/InQRy
|
ab9d19a737a41673e8dcc419d49ca0e96476d560
|
[
"MIT"
] | 11
|
2017-08-27T03:36:18.000Z
|
2018-10-28T01:31:12.000Z
|
tests/generic/test_barcode.py
|
Abd-Elrazek/InQRy
|
ab9d19a737a41673e8dcc419d49ca0e96476d560
|
[
"MIT"
] | 15
|
2019-06-13T11:29:12.000Z
|
2022-02-28T06:40:14.000Z
|
from inqry import barcode
def test_barcode_data_delayify():
assert barcode.delayify('foo') == '~dfoo'
def test_barcode_data_delayify_long():
assert barcode.delayify('foo', 2) == '~d~dfoo'
def test_barcode_data_textify():
assert barcode.textify('foo') == '~dfoo~d~t'
def test_barcode_data_listify():
assert barcode.listify('foo') == '~d\x20~dfoo~d~e~d~t'
| 21
| 58
| 0.695767
| 55
| 378
| 4.545455
| 0.345455
| 0.112
| 0.224
| 0.288
| 0.312
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009231
| 0.140212
| 378
| 17
| 59
| 22.235294
| 0.76
| 0
| 0
| 0
| 0
| 0
| 0.137566
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 1
| 0.444444
| true
| 0
| 0.111111
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5bb686920ce09001cbdaca2856d2b46c4257c1ab
| 59
|
py
|
Python
|
notebook_pv/widgets/__init__.py
|
asford/notebook_pv
|
8321153e22ad972ce7f616b4a302ec58b6ea10f4
|
[
"BSD-3-Clause"
] | null | null | null |
notebook_pv/widgets/__init__.py
|
asford/notebook_pv
|
8321153e22ad972ce7f616b4a302ec58b6ea10f4
|
[
"BSD-3-Clause"
] | null | null | null |
notebook_pv/widgets/__init__.py
|
asford/notebook_pv
|
8321153e22ad972ce7f616b4a302ec58b6ea10f4
|
[
"BSD-3-Clause"
] | null | null | null |
from .molecule_display_widget import MoleculeDisplayWidget
| 29.5
| 58
| 0.915254
| 6
| 59
| 8.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067797
| 59
| 1
| 59
| 59
| 0.945455
| 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
|
5bd2a8c6ef6c005c02b6e47c0f9390e0c27b561d
| 27
|
py
|
Python
|
packages/fderiv/build/lib/fderiv/__init__.py
|
sudhanvalalit/python
|
781967d2c3b36b8776fc8178b90559b6b195e952
|
[
"MIT"
] | null | null | null |
packages/fderiv/build/lib/fderiv/__init__.py
|
sudhanvalalit/python
|
781967d2c3b36b8776fc8178b90559b6b195e952
|
[
"MIT"
] | null | null | null |
packages/fderiv/build/lib/fderiv/__init__.py
|
sudhanvalalit/python
|
781967d2c3b36b8776fc8178b90559b6b195e952
|
[
"MIT"
] | null | null | null |
from .fderiv import fderiv
| 13.5
| 26
| 0.814815
| 4
| 27
| 5.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 27
| 1
| 27
| 27
| 0.956522
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
5be6729ea420a3c5b3b9a8c1d16887de2ec63d71
| 212
|
py
|
Python
|
src/cultionet/errors/__init__.py
|
jgrss/cultionet
|
91d2104aecaec3c8baace55915cf3a74492a3540
|
[
"Apache-2.0"
] | null | null | null |
src/cultionet/errors/__init__.py
|
jgrss/cultionet
|
91d2104aecaec3c8baace55915cf3a74492a3540
|
[
"Apache-2.0"
] | null | null | null |
src/cultionet/errors/__init__.py
|
jgrss/cultionet
|
91d2104aecaec3c8baace55915cf3a74492a3540
|
[
"Apache-2.0"
] | null | null | null |
class TopologyClipError(Exception):
"""Raised when GeoPandas clip() fails because of topology errors"""
pass
class TensorShapeError(Exception):
"""Raised when tensor shapes do not match"""
pass
| 23.555556
| 71
| 0.716981
| 24
| 212
| 6.333333
| 0.791667
| 0.197368
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188679
| 212
| 8
| 72
| 26.5
| 0.883721
| 0.471698
| 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 | 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
752d228453277c2c0af73c8eb93f30d63c6424c1
| 46
|
py
|
Python
|
tests/core/topology/__init__.py
|
a5kin/xentica
|
ca08fac9f85af71c9d6d98545a33d50323f851b3
|
[
"MIT"
] | 23
|
2018-02-24T23:38:54.000Z
|
2022-02-16T15:20:46.000Z
|
tests/core/topology/__init__.py
|
a5kin/xentica
|
ca08fac9f85af71c9d6d98545a33d50323f851b3
|
[
"MIT"
] | 39
|
2017-11-20T21:54:30.000Z
|
2020-09-01T12:43:57.000Z
|
tests/core/topology/__init__.py
|
a5kin/xentica
|
ca08fac9f85af71c9d6d98545a33d50323f851b3
|
[
"MIT"
] | 4
|
2019-04-23T03:56:44.000Z
|
2021-05-14T11:12:54.000Z
|
"""Tests for xentica.core.topology module."""
| 23
| 45
| 0.717391
| 6
| 46
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 46
| 1
| 46
| 46
| 0.785714
| 0.847826
| 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
|
754adeffecd2ac37c1e4d822b9e25cd1aae41971
| 117
|
py
|
Python
|
main/request/reset_password.py
|
nguyentranhoan/uit-mobile
|
8546312b01373d94cf00c64f7eacb769e0f4ccce
|
[
"BSD-3-Clause"
] | null | null | null |
main/request/reset_password.py
|
nguyentranhoan/uit-mobile
|
8546312b01373d94cf00c64f7eacb769e0f4ccce
|
[
"BSD-3-Clause"
] | null | null | null |
main/request/reset_password.py
|
nguyentranhoan/uit-mobile
|
8546312b01373d94cf00c64f7eacb769e0f4ccce
|
[
"BSD-3-Clause"
] | null | null | null |
from pydantic import BaseModel, EmailStr
class ResetPassword(BaseModel):
email: EmailStr
new_password: str
| 16.714286
| 40
| 0.769231
| 13
| 117
| 6.846154
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179487
| 117
| 6
| 41
| 19.5
| 0.927083
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0.25
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
7555d070456f2fae271252a2081556c076cee9a5
| 257
|
py
|
Python
|
leveleditor/SceneGraphUI.py
|
itsyaboyrocket/ttleveleditor
|
e7cf151714f5de517c6866522a26ae00feeb0b83
|
[
"BSD-3-Clause"
] | 3
|
2018-03-09T12:07:29.000Z
|
2021-02-25T06:50:25.000Z
|
direct/src/leveleditor/SceneGraphUI.py
|
Sinkay/panda3d
|
16bfd3750f726a8831771b81649d18d087917fd5
|
[
"PHP-3.01",
"PHP-3.0"
] | 1
|
2018-07-28T20:07:04.000Z
|
2018-07-30T18:28:34.000Z
|
direct/src/leveleditor/SceneGraphUI.py
|
Sinkay/panda3d
|
16bfd3750f726a8831771b81649d18d087917fd5
|
[
"PHP-3.01",
"PHP-3.0"
] | 2
|
2020-03-19T22:55:28.000Z
|
2021-02-25T06:38:42.000Z
|
"""
Defines Scene Graph tree UI
"""
from SceneGraphUIBase import *
class SceneGraphUI(SceneGraphUIBase):
def __init__(self, parent, editor):
SceneGraphUIBase.__init__(self, parent, editor)
def populateExtraMenu(self):
pass
| 21.416667
| 55
| 0.688716
| 25
| 257
| 6.76
| 0.68
| 0.094675
| 0.16568
| 0.236686
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.22179
| 257
| 11
| 56
| 23.363636
| 0.845
| 0.105058
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.166667
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
7558cb15f3e23855c62d498df1ed5a615dc200b4
| 181
|
py
|
Python
|
pokedex/api.py
|
abhishek-bharadwaj/pokebase
|
f2ecfb55a4431304f0d0d534e7ba0d8bd3b0ce5c
|
[
"BSD-3-Clause"
] | null | null | null |
pokedex/api.py
|
abhishek-bharadwaj/pokebase
|
f2ecfb55a4431304f0d0d534e7ba0d8bd3b0ce5c
|
[
"BSD-3-Clause"
] | null | null | null |
pokedex/api.py
|
abhishek-bharadwaj/pokebase
|
f2ecfb55a4431304f0d0d534e7ba0d8bd3b0ce5c
|
[
"BSD-3-Clause"
] | null | null | null |
from flask import Flask
from flask import jsonify
from pokedex import public
app = Flask(__name__)
@app.route("/")
def get_pokemons():
return jsonify(public.get_pokemons())
| 15.083333
| 41
| 0.745856
| 25
| 181
| 5.16
| 0.52
| 0.139535
| 0.232558
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154696
| 181
| 11
| 42
| 16.454545
| 0.843137
| 0
| 0
| 0
| 0
| 0
| 0.005525
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.428571
| 0.142857
| 0.714286
| 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
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
f36a0fe79d3a9571f1f7254d32fd72b51167896e
| 97
|
py
|
Python
|
enthought/chaco/abstract_plot_renderer.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/chaco/abstract_plot_renderer.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/chaco/abstract_plot_renderer.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from chaco.abstract_plot_renderer import *
| 24.25
| 42
| 0.85567
| 13
| 97
| 5.846154
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 97
| 3
| 43
| 32.333333
| 0.883721
| 0.123711
| 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
|
f36e7853141f2d28aa671690e8825abbd5f82810
| 176
|
py
|
Python
|
data_formatter.py
|
thesilencelies/tensorflow-yolo-v3
|
c5097ffcaa5479742205607ce75b8bbd521bc160
|
[
"Apache-2.0"
] | null | null | null |
data_formatter.py
|
thesilencelies/tensorflow-yolo-v3
|
c5097ffcaa5479742205607ce75b8bbd521bc160
|
[
"Apache-2.0"
] | null | null | null |
data_formatter.py
|
thesilencelies/tensorflow-yolo-v3
|
c5097ffcaa5479742205607ce75b8bbd521bc160
|
[
"Apache-2.0"
] | null | null | null |
""" pasrses the face detection dataset into a format that tensorflow can use """
import tensorflow as tf
import json
#TODO write these functions
#TODO add data augmentation
| 19.555556
| 80
| 0.778409
| 26
| 176
| 5.269231
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176136
| 176
| 9
| 81
| 19.555556
| 0.944828
| 0.715909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
f38d09857dd10d34c9409f0e0a01bd2e254be80b
| 131
|
py
|
Python
|
examples/create_logo.py
|
jtpils/optimesh
|
24a8276235b1f4e86f2fb92cf814bf81e7fdbc48
|
[
"MIT"
] | 1
|
2019-11-20T16:50:34.000Z
|
2019-11-20T16:50:34.000Z
|
examples/create_logo.py
|
jtpils/optimesh
|
24a8276235b1f4e86f2fb92cf814bf81e7fdbc48
|
[
"MIT"
] | null | null | null |
examples/create_logo.py
|
jtpils/optimesh
|
24a8276235b1f4e86f2fb92cf814bf81e7fdbc48
|
[
"MIT"
] | null | null | null |
import meshio
import meshzoo
points, cells = meshzoo.hexagon(1)
meshio.write_points_cells("hex.svg", points, {"triangle": cells})
| 21.833333
| 65
| 0.763359
| 18
| 131
| 5.444444
| 0.611111
| 0.22449
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008475
| 0.099237
| 131
| 5
| 66
| 26.2
| 0.822034
| 0
| 0
| 0
| 0
| 0
| 0.114504
| 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
|
f393860dc4d8f40166995d44a4269a5f45efbb2d
| 480
|
py
|
Python
|
mealie/schema/restore.py
|
danielpalstra/mealie
|
6c549ff99329e494bc6aad2109973e7eec6c445e
|
[
"MIT"
] | 1,927
|
2021-01-02T20:01:15.000Z
|
2022-03-31T22:49:18.000Z
|
mealie/schema/restore.py
|
danielpalstra/mealie
|
6c549ff99329e494bc6aad2109973e7eec6c445e
|
[
"MIT"
] | 545
|
2021-01-02T20:32:28.000Z
|
2022-03-31T23:37:08.000Z
|
mealie/schema/restore.py
|
danielpalstra/mealie
|
6c549ff99329e494bc6aad2109973e7eec6c445e
|
[
"MIT"
] | 254
|
2021-01-03T00:20:07.000Z
|
2022-03-23T22:37:21.000Z
|
from typing import Optional
from pydantic.main import BaseModel
class ImportBase(BaseModel):
name: str
status: bool
exception: Optional[str]
class RecipeImport(ImportBase):
slug: Optional[str]
class ThemeImport(ImportBase):
pass
class SettingsImport(ImportBase):
pass
class GroupImport(ImportBase):
pass
class UserImport(ImportBase):
pass
class CustomPageImport(ImportBase):
pass
class NotificationImport(ImportBase):
pass
| 12.631579
| 37
| 0.733333
| 49
| 480
| 7.183673
| 0.469388
| 0.238636
| 0.269886
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197917
| 480
| 37
| 38
| 12.972973
| 0.914286
| 0
| 0
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.3
| 0.5
| 0
| 1.1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
f3b5a00bc182cd7c902656c0a046d3c44e867181
| 43
|
py
|
Python
|
src/luamb/__main__.py
|
un-def/luamb
|
eec3969eda1b225e26a138c25720182754e9ec54
|
[
"MIT"
] | 16
|
2016-07-20T03:33:45.000Z
|
2021-07-23T06:05:00.000Z
|
src/luamb/__main__.py
|
un-def/luamb
|
eec3969eda1b225e26a138c25720182754e9ec54
|
[
"MIT"
] | 2
|
2016-08-20T02:47:26.000Z
|
2017-08-29T16:27:42.000Z
|
src/luamb/__main__.py
|
un-def/luamb
|
eec3969eda1b225e26a138c25720182754e9ec54
|
[
"MIT"
] | 1
|
2016-07-20T10:25:55.000Z
|
2016-07-20T10:25:55.000Z
|
from luamb._entrypoint import main
main()
| 10.75
| 34
| 0.790698
| 6
| 43
| 5.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139535
| 43
| 3
| 35
| 14.333333
| 0.891892
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
45f6d77a368c86fc9f133465e6452791a60877ad
| 60
|
py
|
Python
|
deval/device/android/__init__.py
|
47045039/deval
|
41f38584e164c436c4326da5939aa4d2ade74596
|
[
"Apache-2.0"
] | 9
|
2018-09-14T06:37:21.000Z
|
2021-12-27T02:22:33.000Z
|
deval/device/android/__init__.py
|
47045039/deval
|
41f38584e164c436c4326da5939aa4d2ade74596
|
[
"Apache-2.0"
] | 1
|
2019-05-17T06:34:33.000Z
|
2019-05-17T07:39:26.000Z
|
deval/device/android/__init__.py
|
47045039/deval
|
41f38584e164c436c4326da5939aa4d2ade74596
|
[
"Apache-2.0"
] | 7
|
2018-11-10T08:50:15.000Z
|
2021-12-27T02:25:04.000Z
|
# -*- coding: utf-8 -*-
from .android import AndroidDevice
| 15
| 34
| 0.666667
| 7
| 60
| 5.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02
| 0.166667
| 60
| 3
| 35
| 20
| 0.78
| 0.35
| 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
|
344c6308194518ad51c50b8c84fe91d49a23e0f1
| 9,390
|
py
|
Python
|
tests/api/test_api_rent.py
|
exmatrikulator/cykel
|
37f71ce7ac2ce8fb94956eed0c496b50d60b9020
|
[
"MIT"
] | null | null | null |
tests/api/test_api_rent.py
|
exmatrikulator/cykel
|
37f71ce7ac2ce8fb94956eed0c496b50d60b9020
|
[
"MIT"
] | null | null | null |
tests/api/test_api_rent.py
|
exmatrikulator/cykel
|
37f71ce7ac2ce8fb94956eed0c496b50d60b9020
|
[
"MIT"
] | null | null | null |
import pytest
from django.contrib.auth.models import Permission
from django.contrib.gis.geos import Point
from django.utils.timezone import now
from rest_framework.authtoken.models import Token
from rest_framework.test import APIClient
from bikesharing.models import Bike, Location, Lock, Rent
@pytest.fixture
def testuser_john_doe(django_user_model):
return django_user_model.objects.create(username="john", password="doe")
@pytest.fixture
def testuser_jane_canrent(django_user_model):
jane = django_user_model.objects.create(username="jane", password="canrent")
can_add_rent_permission = Permission.objects.get(name="Can add rent")
jane.user_permissions.add(can_add_rent_permission)
return jane
@pytest.fixture
def testuser_mary_canrent(django_user_model):
mary = django_user_model.objects.create(username="mary", password="canrent")
can_add_rent_permission = Permission.objects.get(name="Can add rent")
mary.user_permissions.add(can_add_rent_permission)
return mary
@pytest.fixture
def user_client_john_doe_logged_in(testuser_john_doe):
client = APIClient()
token, _ = Token.objects.get_or_create(user=testuser_john_doe)
client.credentials(HTTP_AUTHORIZATION="Token " + token.key)
return client
@pytest.fixture
def user_client_jane_canrent_logged_in(testuser_jane_canrent):
client = APIClient()
token, _ = Token.objects.get_or_create(user=testuser_jane_canrent)
client.credentials(HTTP_AUTHORIZATION="Token " + token.key)
return client
@pytest.fixture
def user_client_mary_canrent_logged_in(testuser_mary_canrent):
client = APIClient()
token, _ = Token.objects.get_or_create(user=testuser_mary_canrent)
client.credentials(HTTP_AUTHORIZATION="Token " + token.key)
return client
@pytest.fixture
def lock():
return Lock.objects.create(unlock_key="000000")
@pytest.fixture
def another_lock():
return Lock.objects.create(unlock_key="000000")
@pytest.fixture
def available_bike(lock):
return Bike.objects.create(availability_status="AV", bike_number="1337", lock=lock)
@pytest.fixture
def disabled_bike():
return Bike.objects.create(availability_status="DI", bike_number="2342")
@pytest.fixture
def inuse_bike(another_lock):
return Bike.objects.create(
availability_status="IU", bike_number="8080", lock=another_lock
)
@pytest.fixture
def rent_jane_running(testuser_jane_canrent, inuse_bike):
return Rent.objects.create(
rent_start=now(), user=testuser_jane_canrent, bike=inuse_bike,
)
@pytest.mark.django_db
def test_get_rents_logged_in_with_renting_rights(
testuser_jane_canrent, user_client_jane_canrent_logged_in, rent_jane_running
):
response = user_client_jane_canrent_logged_in.get("/api/rent")
assert response.status_code == 200, response.content
assert len(response.json()) == 1
assert response.json()[0]["id"] == rent_jane_running.id
assert (
response.json()[0]["bike"]["bike_number"] == rent_jane_running.bike.bike_number
)
@pytest.mark.django_db
def test_start_rent_logged_in_without_renting_rights(
testuser_john_doe, user_client_john_doe_logged_in, available_bike
):
data = {"bike": available_bike.bike_number}
response = user_client_john_doe_logged_in.post("/api/rent", data)
assert response.status_code == 403, response.content
available_bike.refresh_from_db()
assert available_bike.availability_status == "AV"
@pytest.mark.django_db
def test_start_rent_logged_out(available_bike):
data = {"bike": available_bike.bike_number}
client = APIClient()
response = client.post("/api/rent", data)
assert response.status_code == 401, response.content
available_bike.refresh_from_db()
assert available_bike.availability_status == "AV"
@pytest.mark.django_db
def test_start_rent_logged_in_with_renting_rights(
testuser_jane_canrent, user_client_jane_canrent_logged_in, available_bike
):
data = {"bike": available_bike.bike_number}
response = user_client_jane_canrent_logged_in.post("/api/rent", data)
assert response.status_code == 201, response.content
assert response.json()["bike"]["lock"]["unlock_key"] == "000000"
available_bike.refresh_from_db()
assert available_bike.availability_status == "IU"
@pytest.mark.django_db
def test_start_rent_inuse_bike_logged_in_with_renting_rights(
testuser_jane_canrent, user_client_jane_canrent_logged_in, inuse_bike
):
data = {"bike": inuse_bike.bike_number}
response = user_client_jane_canrent_logged_in.post("/api/rent", data)
assert response.status_code == 400, response.content
@pytest.mark.django_db
def test_start_rent_other_inuse_bike_logged_in_with_renting_rights(
testuser_mary_canrent,
user_client_mary_canrent_logged_in,
rent_jane_running,
inuse_bike,
):
data = {"bike": inuse_bike.bike_number}
response = user_client_mary_canrent_logged_in.post("/api/rent", data)
assert response.status_code == 400, response.content
@pytest.mark.django_db
def test_start_rent_unknown_bike_logged_in_with_renting_rights(
testuser_jane_canrent, user_client_jane_canrent_logged_in
):
data = {"bike": 404}
response = user_client_jane_canrent_logged_in.post("/api/rent", data)
assert response.status_code == 400, response.content
@pytest.mark.django_db
def test_start_rent_logged_in_with_renting_rights_and_location_from_client(
testuser_jane_canrent, user_client_jane_canrent_logged_in, available_bike
):
data = {"bike": available_bike.bike_number, "lat": -99.99, "lng": -89.99}
response = user_client_jane_canrent_logged_in.post("/api/rent", data)
assert response.status_code == 201, response.content
assert response.json()["bike"]["lock"]["unlock_key"] == "000000"
rent_id = response.json()["id"]
available_bike.refresh_from_db()
assert available_bike.availability_status == "IU"
rent = Rent.objects.get(id=rent_id)
assert rent.start_position is not None
assert rent.start_position.x == -89.99
assert rent.start_position.y == -99.99
@pytest.mark.django_db
def test_end_rent_logged_in_with_renting_rights(
testuser_jane_canrent,
user_client_jane_canrent_logged_in,
rent_jane_running,
inuse_bike,
):
data = {}
response = user_client_jane_canrent_logged_in.post(
"/api/rent/{}/finish".format(rent_jane_running.id), data
)
assert response.status_code == 200, response.content
assert response.json()["success"] is True
rent_jane_running.refresh_from_db()
assert rent_jane_running.rent_end is not None
inuse_bike.refresh_from_db()
assert inuse_bike.availability_status == "AV"
@pytest.mark.django_db
def test_end_rent_logged_in_with_renting_rights_and_location_from_bike(
testuser_jane_canrent,
user_client_jane_canrent_logged_in,
rent_jane_running,
inuse_bike,
):
loc = Location.objects.create(bike=inuse_bike, source="TR", reported_at=now())
loc.geo = Point(-89.99, -99.99, srid=4326)
loc.save()
data = {}
response = user_client_jane_canrent_logged_in.post(
"/api/rent/{}/finish".format(rent_jane_running.id), data
)
assert response.status_code == 200, response.content
rent_jane_running.refresh_from_db()
assert rent_jane_running.rent_end is not None
assert rent_jane_running.end_position.x == -89.99
assert rent_jane_running.end_position.y == -99.99
inuse_bike.refresh_from_db()
assert inuse_bike.availability_status == "AV"
assert inuse_bike.public_geolocation().source == "TR"
assert inuse_bike.public_geolocation().geo.x == -89.99
assert inuse_bike.public_geolocation().geo.y == -99.99
@pytest.mark.django_db
def test_end_rent_logged_in_with_renting_rights_and_location_from_client(
testuser_jane_canrent,
user_client_jane_canrent_logged_in,
rent_jane_running,
inuse_bike,
):
data = {"lat": -99.99, "lng": -89.99}
response = user_client_jane_canrent_logged_in.post(
"/api/rent/{}/finish".format(rent_jane_running.id), data
)
assert response.status_code == 200, response.content
assert response.json()["success"] is True
rent_jane_running.refresh_from_db()
assert rent_jane_running.rent_end is not None
assert rent_jane_running.end_position.x == -89.99
assert rent_jane_running.end_position.y == -99.99
inuse_bike.refresh_from_db()
assert inuse_bike.availability_status == "AV"
assert inuse_bike.public_geolocation().source == "US"
assert inuse_bike.public_geolocation().geo.x == -89.99
assert inuse_bike.public_geolocation().geo.y == -99.99
@pytest.mark.django_db
def test_end_rent_logged_out(
rent_jane_running, inuse_bike,
):
client = APIClient()
data = {}
response = client.post("/api/rent/{}/finish".format(rent_jane_running.id), data)
assert response.status_code == 401, response.content
rent_jane_running.refresh_from_db()
assert rent_jane_running.rent_end is None
inuse_bike.refresh_from_db()
assert inuse_bike.availability_status == "IU"
@pytest.mark.django_db
def test_end_rent_unknown_logged_in_with_renting_rights(
testuser_jane_canrent, user_client_jane_canrent_logged_in,
):
data = {}
response = user_client_jane_canrent_logged_in.post(
"/api/rent/{}/finish".format(99), data
)
assert response.status_code == 404, response.content
| 32.604167
| 87
| 0.758466
| 1,316
| 9,390
| 5.025836
| 0.096505
| 0.043544
| 0.056698
| 0.060327
| 0.812821
| 0.795434
| 0.749773
| 0.730572
| 0.687028
| 0.682492
| 0
| 0.018651
| 0.137806
| 9,390
| 287
| 88
| 32.71777
| 0.798295
| 0
| 0
| 0.596413
| 0
| 0
| 0.04377
| 0
| 0
| 0
| 0
| 0
| 0.201794
| 1
| 0.112108
| false
| 0.013453
| 0.03139
| 0.03139
| 0.197309
| 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
|
345326c7f2812b4e88b2d4f94fcad01e6dfcc108
| 12,041
|
py
|
Python
|
koku/api/report/test/util/baker_recipes.py
|
rubik-ai/koku
|
3255d1c217b7b6685cb2e130bf4e025946e76fac
|
[
"Apache-2.0"
] | null | null | null |
koku/api/report/test/util/baker_recipes.py
|
rubik-ai/koku
|
3255d1c217b7b6685cb2e130bf4e025946e76fac
|
[
"Apache-2.0"
] | 3
|
2020-04-20T21:42:22.000Z
|
2022-03-18T19:34:12.000Z
|
koku/api/report/test/util/baker_recipes.py
|
rubik-ai/koku
|
3255d1c217b7b6685cb2e130bf4e025946e76fac
|
[
"Apache-2.0"
] | null | null | null |
#
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
from itertools import cycle
from faker import Faker
from model_bakery.recipe import foreign_key
from model_bakery.recipe import Recipe
from api.report.test.util.constants import AWS_CONSTANTS
from api.report.test.util.constants import AWS_GEOG
from api.report.test.util.constants import AZURE_CONSTANTS
from api.report.test.util.constants import GCP_CONSTANTS
from api.report.test.util.constants import OCP_CONSTANTS
fake = Faker()
def decimal_yielder():
while True:
yield fake.pydecimal(left_digits=13, right_digits=8, positive=True)
billing_source = Recipe("ProviderBillingSource", data_source={})
provider = Recipe("Provider", billing_source=foreign_key(billing_source))
aws_daily_summary = Recipe(
"AWSCostEntryLineItemDailySummary",
product_code=cycle(AWS_CONSTANTS["product_codes"]),
product_family=cycle(AWS_CONSTANTS["product_families"]),
instance_type=cycle(AWS_CONSTANTS["instance_types"]),
resource_count=cycle(AWS_CONSTANTS["resource_counts"]),
resource_ids=cycle(AWS_CONSTANTS["resource_ids"]),
unit=cycle(AWS_CONSTANTS["units"]),
region=cycle(AWS_GEOG["regions"]),
availability_zone=cycle(AWS_GEOG["availability_zones"]),
_fill_optional=True,
_quantity=AWS_CONSTANTS.length,
)
azure_daily_summary = Recipe(
"AzureCostEntryLineItemDailySummary",
service_name=cycle(AZURE_CONSTANTS["service_names"]),
instance_type=cycle(AZURE_CONSTANTS["instance_types"]),
instance_ids=cycle(AZURE_CONSTANTS["instance_ids"]),
instance_count=cycle(AZURE_CONSTANTS["instance_counts"]),
unit_of_measure=cycle(AZURE_CONSTANTS["units_of_measure"]),
resource_location="US East",
_fill_optional=True,
_quantity=AZURE_CONSTANTS.length,
)
gcp_daily_summary = Recipe(
"GCPCostEntryLineItemDailySummary",
service_id=cycle(GCP_CONSTANTS["service_ids"]),
service_alias=cycle(GCP_CONSTANTS["service_aliases"]),
sku_id=cycle(GCP_CONSTANTS["service_ids"]),
sku_alias=cycle(GCP_CONSTANTS["sku_aliases"]),
unit=cycle(GCP_CONSTANTS["units"]),
usage_amount=cycle(decimal_yielder()),
unblended_cost=cycle(decimal_yielder()),
markup_cost=cycle(decimal_yielder()),
credit_amount=cycle(decimal_yielder()),
_fill_optional=True,
_quantity=GCP_CONSTANTS.length,
)
ocp_usage_pod = Recipe( # Pod data_source
"OCPUsageLineItemDailySummary",
data_source="Pod",
node=cycle(f"node_{i}" for i in range(OCP_CONSTANTS.length - 1)),
resource_id=cycle(f"i-000000{i}" for i in range(OCP_CONSTANTS.length - 1)),
namespace=cycle(OCP_CONSTANTS["namespaces"]),
pod_limit_cpu_core_hours=cycle(decimal_yielder()),
pod_usage_cpu_core_hours=cycle(decimal_yielder()),
pod_request_cpu_core_hours=cycle(decimal_yielder()),
pod_effective_usage_cpu_core_hours=cycle(decimal_yielder()),
pod_limit_memory_gigabyte_hours=cycle(decimal_yielder()),
pod_usage_memory_gigabyte_hours=cycle(decimal_yielder()),
pod_request_memory_gigabyte_hours=cycle(decimal_yielder()),
pod_effective_usage_memory_gigabyte_hours=cycle(decimal_yielder()),
node_capacity_cpu_cores=cycle(decimal_yielder()),
node_capacity_cpu_core_hours=cycle(decimal_yielder()),
node_capacity_memory_gigabytes=cycle(decimal_yielder()),
node_capacity_memory_gigabyte_hours=cycle(decimal_yielder()),
cluster_capacity_cpu_core_hours=cycle(decimal_yielder()),
cluster_capacity_memory_gigabyte_hours=cycle(decimal_yielder()),
pod_labels=cycle(OCP_CONSTANTS["pod_labels"]),
_fill_optional=False,
_quantity=OCP_CONSTANTS.length,
)
ocp_usage_storage = Recipe( # Storage data_source
"OCPUsageLineItemDailySummary",
data_source="Storage",
node=cycle(f"node_{i}" for i in range(OCP_CONSTANTS.length - 1)),
resource_id=cycle(f"i-000000{i}" for i in range(OCP_CONSTANTS.length - 1)),
namespace=cycle(OCP_CONSTANTS["namespaces"]),
persistentvolumeclaim=cycle(f"pvc_{i}" for i in range(OCP_CONSTANTS.length - 1)),
persistentvolume=cycle(f"pv_{i}" for i in range(OCP_CONSTANTS.length - 1)),
storageclass=cycle(OCP_CONSTANTS["storage_classes"]),
persistentvolumeclaim_capacity_gigabyte=cycle(decimal_yielder()),
persistentvolumeclaim_capacity_gigabyte_months=cycle(decimal_yielder()),
volume_request_storage_gigabyte_months=cycle(decimal_yielder()),
persistentvolumeclaim_usage_gigabyte_months=cycle(decimal_yielder()),
node_capacity_cpu_cores=cycle(decimal_yielder()),
node_capacity_cpu_core_hours=cycle(decimal_yielder()),
node_capacity_memory_gigabytes=cycle(decimal_yielder()),
node_capacity_memory_gigabyte_hours=cycle(decimal_yielder()),
cluster_capacity_cpu_core_hours=cycle(decimal_yielder()),
cluster_capacity_memory_gigabyte_hours=cycle(decimal_yielder()),
volume_labels=cycle(OCP_CONSTANTS["pvc_labels"]),
_fill_optional=False,
_quantity=OCP_CONSTANTS.length,
)
ocp_on_aws_daily_summary = Recipe(
"OCPAWSCostLineItemDailySummary",
node=cycle(f"aws_node_{i}" for i in range(AWS_CONSTANTS.length - 1)),
resource_id=cycle(f"i-0000{i}{i}{i}" for i in range(AWS_CONSTANTS.length - 1)),
namespace=cycle([ns] for ns in OCP_CONSTANTS["namespaces"]),
instance_type=cycle(AWS_CONSTANTS["instance_types"]),
product_code=cycle(AWS_CONSTANTS["product_codes"]),
product_family=cycle(AWS_CONSTANTS["product_families"]),
unit=cycle(AWS_CONSTANTS["units"]),
_fill_optional=True,
_quantity=min(AWS_CONSTANTS.length, 9),
)
ocp_on_aws_project_daily_summary_pod = Recipe( # Pod data_source
"OCPAWSCostLineItemProjectDailySummary",
data_source="Pod",
node=cycle(f"aws_node_{i}" for i in range(AWS_CONSTANTS.length - 1)),
resource_id=cycle(f"i-0000{i}{i}{i}" for i in range(AWS_CONSTANTS.length - 1)),
namespace=cycle(OCP_CONSTANTS["namespaces"]),
pod_labels=cycle(OCP_CONSTANTS["pod_labels"]),
persistentvolumeclaim=None,
persistentvolume=None,
storageclass=None,
instance_type=cycle(AWS_CONSTANTS["instance_types"]),
product_code=cycle(AWS_CONSTANTS["product_codes"]),
product_family=cycle(AWS_CONSTANTS["product_families"]),
unit=cycle(AWS_CONSTANTS["units"]),
_fill_optional=True,
_quantity=min(AWS_CONSTANTS.length, 9),
)
ocp_on_aws_project_daily_summary_storage = Recipe( # Storage data_source
"OCPAWSCostLineItemProjectDailySummary",
data_source="Storage",
node=cycle(f"aws_node_{i}" for i in range(AWS_CONSTANTS.length - 1)),
resource_id=cycle(f"i-0000{i}{i}{i}" for i in range(AWS_CONSTANTS.length - 1)),
namespace=cycle(OCP_CONSTANTS["namespaces"]),
persistentvolumeclaim=cycle(f"pvc_aws_{i}" for i in range(AWS_CONSTANTS.length - 1)),
persistentvolume=cycle(f"pv_aws_{i}" for i in range(AWS_CONSTANTS.length - 1)),
storageclass=cycle(OCP_CONSTANTS["storage_classes"]),
instance_type=cycle(AWS_CONSTANTS["instance_types"]),
product_code=cycle(AWS_CONSTANTS["product_codes"]),
product_family=cycle(AWS_CONSTANTS["product_families"]),
unit=cycle(AWS_CONSTANTS["units"]),
_fill_optional=True,
_quantity=min(AWS_CONSTANTS.length, 9),
)
ocp_on_azure_daily_summary = Recipe(
"OCPAzureCostLineItemDailySummary",
node=cycle(f"azure_node_{i}" for i in range(AZURE_CONSTANTS.length - 1)),
resource_id=cycle(f"i-000{i}{i}{i}{i}" for i in range(AZURE_CONSTANTS.length - 1)),
namespace=cycle([ns] for ns in OCP_CONSTANTS["namespaces"]),
service_name=cycle(AZURE_CONSTANTS["service_names"]),
instance_type=cycle(AZURE_CONSTANTS["instance_types"]),
unit_of_measure=cycle(AZURE_CONSTANTS["units_of_measure"]),
resource_location="US East",
_fill_optional=True,
_quantity=min(AZURE_CONSTANTS.length, 9),
)
ocp_on_azure_project_daily_summary_pod = Recipe( # Pod data_source
"OCPAzureCostLineItemProjectDailySummary",
data_source="Pod",
node=cycle(f"azure_node_{i}" for i in range(AZURE_CONSTANTS.length - 1)),
resource_id=cycle(f"i-000{i}{i}{i}{i}" for i in range(AZURE_CONSTANTS.length - 1)),
namespace=cycle(OCP_CONSTANTS["namespaces"]),
pod_labels=cycle(OCP_CONSTANTS["pod_labels"]),
persistentvolumeclaim=None,
persistentvolume=None,
storageclass=None,
service_name=cycle(AZURE_CONSTANTS["service_names"]),
instance_type=cycle(AZURE_CONSTANTS["instance_types"]),
unit_of_measure=cycle(AZURE_CONSTANTS["units_of_measure"]),
_fill_optional=True,
_quantity=min(AZURE_CONSTANTS.length, 9),
)
ocp_on_azure_project_daily_summary_storage = Recipe( # Storage data_source
"OCPAzureCostLineItemProjectDailySummary",
data_source="Storage",
node=cycle(f"azure_node_{i}" for i in range(AZURE_CONSTANTS.length - 1)),
resource_id=cycle(f"i-000{i}{i}{i}{i}" for i in range(AZURE_CONSTANTS.length - 1)),
namespace=cycle(OCP_CONSTANTS["namespaces"]),
persistentvolumeclaim=cycle(f"pvc_azure_{i}" for i in range(AZURE_CONSTANTS.length - 1)),
persistentvolume=cycle(f"pv_azure{i}" for i in range(AZURE_CONSTANTS.length - 1)),
storageclass=cycle(OCP_CONSTANTS["storage_classes"]),
service_name=cycle(AZURE_CONSTANTS["service_names"]),
instance_type=cycle(AZURE_CONSTANTS["instance_types"]),
unit_of_measure=cycle(AZURE_CONSTANTS["units_of_measure"]),
_fill_optional=True,
_quantity=min(AZURE_CONSTANTS.length, 9),
)
ocp_on_gcp_daily_summary = Recipe(
"OCPGCPCostLineItemDailySummaryP",
namespace=cycle([ns] for ns in OCP_CONSTANTS["namespaces"]),
node=cycle(f"gcp_node_{i}" for i in range(GCP_CONSTANTS.length - 1)),
resource_id=cycle(f"i-{i}{i}{i}{i}{i}{i}{i}" for i in range(GCP_CONSTANTS.length - 1)),
project_id=cycle(OCP_CONSTANTS["namespaces"]),
project_name=cycle(OCP_CONSTANTS["storage_classes"]), # maybe this can change, idk
service_id=cycle(GCP_CONSTANTS["service_ids"]),
service_alias=cycle(GCP_CONSTANTS["service_aliases"]),
unit=cycle(GCP_CONSTANTS["units"]),
_fill_optional=True,
_quantity=min(GCP_CONSTANTS.length, 9),
)
ocp_on_gcp_project_daily_summary_pod = Recipe( # Pod data_source
"OCPGCPCostLineItemProjectDailySummaryP",
data_source="Pod",
namespace=cycle(OCP_CONSTANTS["namespaces"]),
node=cycle(f"gcp_node_{i}" for i in range(GCP_CONSTANTS.length - 1)),
resource_id=cycle(f"i-{i}{i}{i}{i}{i}{i}{i}" for i in range(GCP_CONSTANTS.length - 1)),
project_id=cycle(OCP_CONSTANTS["namespaces"]),
project_name=cycle(OCP_CONSTANTS["storage_classes"]), # maybe this can change, idk
pod_labels=cycle(OCP_CONSTANTS["pod_labels"]),
persistentvolumeclaim=None,
persistentvolume=None,
storageclass=None,
service_id=cycle(GCP_CONSTANTS["service_ids"]),
service_alias=cycle(GCP_CONSTANTS["service_aliases"]),
sku_id=cycle(GCP_CONSTANTS["service_ids"]),
sku_alias=cycle(GCP_CONSTANTS["sku_aliases"]),
unit=cycle(GCP_CONSTANTS["units"]),
_fill_optional=True,
_quantity=min(GCP_CONSTANTS.length, 9),
)
ocp_on_gcp_project_daily_summary_storage = Recipe( # Storage data_source
"OCPGCPCostLineItemProjectDailySummaryP",
data_source="Storage",
namespace=cycle(OCP_CONSTANTS["namespaces"]),
node=cycle(f"gcp_node_{i}" for i in range(GCP_CONSTANTS.length - 1)),
resource_id=cycle(f"i-{i}{i}{i}{i}{i}{i}{i}" for i in range(GCP_CONSTANTS.length - 1)),
project_id=cycle(OCP_CONSTANTS["namespaces"]),
project_name=cycle(OCP_CONSTANTS["storage_classes"]), # maybe this can change, idk
persistentvolumeclaim=cycle(f"pvc_gcp_{i}" for i in range(GCP_CONSTANTS.length - 1)),
persistentvolume=cycle(f"pv_gcp{i}" for i in range(GCP_CONSTANTS.length - 1)),
storageclass=cycle(OCP_CONSTANTS["storage_classes"]),
service_id=cycle(GCP_CONSTANTS["service_ids"]),
service_alias=cycle(GCP_CONSTANTS["service_aliases"]),
sku_id=cycle(GCP_CONSTANTS["service_ids"]),
sku_alias=cycle(GCP_CONSTANTS["sku_aliases"]),
unit=cycle(GCP_CONSTANTS["units"]),
_fill_optional=True,
_quantity=min(GCP_CONSTANTS.length, 9),
)
| 45.097378
| 93
| 0.755004
| 1,597
| 12,041
| 5.355667
| 0.093926
| 0.077166
| 0.017538
| 0.024553
| 0.843447
| 0.783117
| 0.770022
| 0.718461
| 0.670408
| 0.637905
| 0
| 0.00761
| 0.11602
| 12,041
| 266
| 94
| 45.266917
| 0.795941
| 0.023918
| 0
| 0.654167
| 0
| 0
| 0.160262
| 0.048138
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004167
| false
| 0
| 0.0375
| 0
| 0.041667
| 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
|
346f289bad9997a48f96e7a2fb37d10219fb6bfe
| 262
|
py
|
Python
|
pushy/exceptions.py
|
rakanalh/django-pushy
|
5a38d13c16d5797bcb086eda8645bc96f93ecbaf
|
[
"MIT"
] | 94
|
2015-02-06T09:37:56.000Z
|
2020-10-29T10:42:16.000Z
|
pushy/exceptions.py
|
rakanalh/django-pushy
|
5a38d13c16d5797bcb086eda8645bc96f93ecbaf
|
[
"MIT"
] | 34
|
2015-02-04T14:55:16.000Z
|
2017-12-29T03:09:30.000Z
|
pushy/exceptions.py
|
rakanalh/django-pushy
|
5a38d13c16d5797bcb086eda8645bc96f93ecbaf
|
[
"MIT"
] | 20
|
2015-01-26T09:43:56.000Z
|
2020-03-08T09:06:02.000Z
|
class PushException(Exception):
pass
class PushAuthException(PushException):
pass
class PushInvalidTokenException(PushException):
pass
class PushInvalidDataException(PushException):
pass
class PushServerException(PushException):
pass
| 13.789474
| 47
| 0.778626
| 20
| 262
| 10.2
| 0.4
| 0.176471
| 0.323529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164122
| 262
| 18
| 48
| 14.555556
| 0.931507
| 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
| 1
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
cac2701c1cdd55c1e7a7f2e5c684e81ffa4d892c
| 462
|
py
|
Python
|
examples/withDummy/__init__.py
|
adinatan/xrt
|
75b884c0cba7e1aac15b30f2d0d803597328a208
|
[
"MIT"
] | 71
|
2016-07-04T06:40:52.000Z
|
2022-03-31T10:03:07.000Z
|
examples/withDummy/__init__.py
|
adinatan/xrt
|
75b884c0cba7e1aac15b30f2d0d803597328a208
|
[
"MIT"
] | 99
|
2016-07-10T16:39:05.000Z
|
2022-03-28T07:50:10.000Z
|
examples/withDummy/__init__.py
|
adinatan/xrt
|
75b884c0cba7e1aac15b30f2d0d803597328a208
|
[
"MIT"
] | 30
|
2016-07-08T17:12:30.000Z
|
2022-03-30T06:54:21.000Z
|
r"""
Logo
----
Uses :mod:`dummy` backend.
File: `\\examples\\withDummy\\logo_xrt.py`
:mod:`xrt` logo (on the right, in two versions) created from a "flat" python
logo (on the left).
|ini_image| --------------> |logo_image| |logo_image_inv|
.. |ini_image| imagezoom:: _images/logo-python.*
:scale: 50 %
.. |logo_image| imagezoom:: _images/logo-xrt.*
:scale: 50 %
.. |logo_image_inv| imagezoom:: _images/logo-xrt-inv.*
:scale: 50 %
"""
pass
| 19.25
| 76
| 0.625541
| 64
| 462
| 4.328125
| 0.484375
| 0.129964
| 0.205776
| 0.173285
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015504
| 0.162338
| 462
| 23
| 77
| 20.086957
| 0.700258
| 0.965368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
cacc9b8e72536974906e6ad735f500712acd7fe3
| 128
|
py
|
Python
|
lesson3_work/Ex8.py
|
NaychukAnastasiya/goiteens-python3-naychuk
|
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
|
[
"MIT"
] | null | null | null |
lesson3_work/Ex8.py
|
NaychukAnastasiya/goiteens-python3-naychuk
|
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
|
[
"MIT"
] | null | null | null |
lesson3_work/Ex8.py
|
NaychukAnastasiya/goiteens-python3-naychuk
|
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
|
[
"MIT"
] | null | null | null |
pensil_box = ["pen","pensil","eraser","candy","gum"]
print(pensil_box)
pensil_box.append("betmen_statue")
print(pensil_box)
| 25.6
| 53
| 0.71875
| 18
| 128
| 4.833333
| 0.555556
| 0.413793
| 0.321839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078125
| 128
| 4
| 54
| 32
| 0.737288
| 0
| 0
| 0.5
| 0
| 0
| 0.290323
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
caf9cfb9b1a4071ca1e37603dac9a06ef87a4069
| 85
|
py
|
Python
|
bills/admin.py
|
TriedAngle/project_planner
|
2d2ce91bad111ff1f2c192f060099cb7036ee86d
|
[
"Apache-2.0"
] | null | null | null |
bills/admin.py
|
TriedAngle/project_planner
|
2d2ce91bad111ff1f2c192f060099cb7036ee86d
|
[
"Apache-2.0"
] | 9
|
2021-03-09T16:58:51.000Z
|
2022-03-02T05:29:41.000Z
|
bills/admin.py
|
strobl-net/project_planner
|
2d2ce91bad111ff1f2c192f060099cb7036ee86d
|
[
"Apache-2.0"
] | 1
|
2020-04-07T05:56:06.000Z
|
2020-04-07T05:56:06.000Z
|
from django.contrib import admin
from .models import Bill
admin.site.register(Bill)
| 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
|
cafcdc375232050723054245a2e301e27756a568
| 36
|
py
|
Python
|
Flights/xplane.py
|
siddharthbharthulwar/Synthetic-Vision-System
|
b6cbfdcd474639538f0d60eb4ba1d45a7fec0b44
|
[
"MIT"
] | null | null | null |
Flights/xplane.py
|
siddharthbharthulwar/Synthetic-Vision-System
|
b6cbfdcd474639538f0d60eb4ba1d45a7fec0b44
|
[
"MIT"
] | 4
|
2020-02-02T16:04:56.000Z
|
2020-02-03T06:12:55.000Z
|
Flights/xplane.py
|
siddharthbharthulwar/Synthetic-Vision-System
|
b6cbfdcd474639538f0d60eb4ba1d45a7fec0b44
|
[
"MIT"
] | null | null | null |
import pandas as pd
import string
| 9
| 20
| 0.777778
| 6
| 36
| 4.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 36
| 3
| 21
| 12
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
1b5bf3bd042f937432a8d66a18b2809e6d6db41b
| 314
|
py
|
Python
|
backend/edw/utils/set_helpers.py
|
MMotionMan/django-edw
|
0f686429d29e0f40409a3b2318664973b2844c08
|
[
"BSD-3-Clause"
] | 4
|
2019-09-18T05:51:12.000Z
|
2020-10-23T08:50:00.000Z
|
backend/edw/utils/set_helpers.py
|
Vvvnukova/django-edw
|
18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f
|
[
"BSD-3-Clause"
] | 10
|
2020-04-29T11:46:44.000Z
|
2022-03-11T23:38:27.000Z
|
backend/edw/utils/set_helpers.py
|
Vvvnukova/django-edw
|
18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f
|
[
"BSD-3-Clause"
] | 13
|
2020-04-09T07:49:48.000Z
|
2022-03-02T07:06:28.000Z
|
# -*- coding: utf-8 -*-
#==============================================================================
# uniq
#==============================================================================
def uniq(seq):
seen = set()
seen_add = seen.add
return [x for x in seq if x not in seen and not seen_add(x)]
| 28.545455
| 79
| 0.283439
| 29
| 314
| 3
| 0.551724
| 0.241379
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003717
| 0.143312
| 314
| 10
| 80
| 31.4
| 0.319703
| 0.579618
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1b6ce36f01043ada18e5871470aeb35f9c58f6da
| 96
|
py
|
Python
|
venv/lib/python3.8/site-packages/numpy/lib/format.py
|
Retraces/UkraineBot
|
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
|
[
"MIT"
] | 2
|
2022-03-13T01:58:52.000Z
|
2022-03-31T06:07:54.000Z
|
venv/lib/python3.8/site-packages/numpy/lib/format.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | 19
|
2021-11-20T04:09:18.000Z
|
2022-03-23T15:05:55.000Z
|
venv/lib/python3.8/site-packages/numpy/lib/format.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | null | null | null |
/home/runner/.cache/pip/pool/7d/93/77/f3639ed1e4ffde7cfce66754e504cb0aa7d5b0d4c9c47ab3d95df2b240
| 96
| 96
| 0.895833
| 9
| 96
| 9.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.364583
| 0
| 96
| 1
| 96
| 96
| 0.53125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1b8804630ae7ef3eeffcb86a3d2685174c24bc01
| 122
|
py
|
Python
|
core/admin.py
|
Neelamegam2000/QRcode-for-license
|
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
|
[
"MIT"
] | null | null | null |
core/admin.py
|
Neelamegam2000/QRcode-for-license
|
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
|
[
"MIT"
] | null | null | null |
core/admin.py
|
Neelamegam2000/QRcode-for-license
|
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Document
admin.site.register(Document)
# Register your models here.
| 20.333333
| 32
| 0.811475
| 17
| 122
| 5.823529
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122951
| 122
| 5
| 33
| 24.4
| 0.925234
| 0.213115
| 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
|
942de9870d0894ced33f9f6560f36cf70b189368
| 75
|
py
|
Python
|
lib/hex_to_rgb.py
|
code-whits/code-whits-python
|
9bfa6464c2cd90d0bf3b60daa93d07ee80042f5c
|
[
"BSD-3-Clause"
] | null | null | null |
lib/hex_to_rgb.py
|
code-whits/code-whits-python
|
9bfa6464c2cd90d0bf3b60daa93d07ee80042f5c
|
[
"BSD-3-Clause"
] | null | null | null |
lib/hex_to_rgb.py
|
code-whits/code-whits-python
|
9bfa6464c2cd90d0bf3b60daa93d07ee80042f5c
|
[
"BSD-3-Clause"
] | null | null | null |
def hex_to_rgb(hex):
return tuple(int(hex[i:i+2], 16) for i in (0, 2, 4))
| 25
| 53
| 0.626667
| 19
| 75
| 2.368421
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 0.16
| 75
| 2
| 54
| 37.5
| 0.619048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
942f0581abead7eb7af3f1c952a0a0a754eb3684
| 490
|
py
|
Python
|
prep_and_learning/python/linkedlist/listinterface.py
|
adityaka/misc_scripts
|
b28f71eb9b7eb429b44aeb9cb34f12355023125e
|
[
"BSD-3-Clause"
] | 1
|
2018-01-16T18:21:07.000Z
|
2018-01-16T18:21:07.000Z
|
prep_and_learning/python/linkedlist/listinterface.py
|
adityaka/misc_scripts
|
b28f71eb9b7eb429b44aeb9cb34f12355023125e
|
[
"BSD-3-Clause"
] | 1
|
2017-05-09T07:13:52.000Z
|
2017-06-12T05:24:08.000Z
|
prep_and_learning/python/linkedlist/listinterface.py
|
adityaka/misc_scripts
|
b28f71eb9b7eb429b44aeb9cb34f12355023125e
|
[
"BSD-3-Clause"
] | 1
|
2021-09-03T14:17:00.000Z
|
2021-09-03T14:17:00.000Z
|
from abc import ABC, abstractmethod
class List(ABC):
def __init__(self):
self._head = None
self._tail = None
self._len = 0
self._currentNode = None
@abstractmethod
def __len__(self):
pass
@abstractmethod
def __next__(self):
pass
@abstractmethod
def __getitem__(self, key):
pass
@abstractmethod
def __setitem__(self, key):
pass
@abstractmethod
def __iter__(self):
pass
| 16.896552
| 35
| 0.587755
| 50
| 490
| 5.2
| 0.42
| 0.326923
| 0.323077
| 0.192308
| 0.215385
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003077
| 0.336735
| 490
| 28
| 36
| 17.5
| 0.796923
| 0
| 0
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0.227273
| 0.045455
| 0
| 0.363636
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
94695febfb746cdc6e566f4c5dacfa34f883b357
| 216
|
py
|
Python
|
app-tasks/rf/src/rf/models/__init__.py
|
pomadchin/raster-foundry
|
f778120cd7f70a2b833597dffe2f134b37b0c364
|
[
"Apache-2.0"
] | 112
|
2017-07-28T15:58:38.000Z
|
2021-12-19T21:08:07.000Z
|
app-tasks/rf/src/rf/models/__init__.py
|
pomadchin/raster-foundry
|
f778120cd7f70a2b833597dffe2f134b37b0c364
|
[
"Apache-2.0"
] | 2,393
|
2017-07-28T15:15:41.000Z
|
2022-03-15T18:00:35.000Z
|
app-tasks/rf/src/rf/models/__init__.py
|
pomadchin/raster-foundry
|
f778120cd7f70a2b833597dffe2f134b37b0c364
|
[
"Apache-2.0"
] | 34
|
2017-08-01T04:35:11.000Z
|
2021-10-03T19:46:29.000Z
|
from .annotation_project import AnnotationProject
from .band import Band
from .thumbnail import Thumbnail
from .footprint import Footprint
from .image import Image
from .scene import Scene
from .upload import Upload
| 27
| 49
| 0.837963
| 29
| 216
| 6.206897
| 0.37931
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 216
| 7
| 50
| 30.857143
| 0.957447
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.142857
| 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
|
947c12dc4820e0b0739db1c7b3ceec2327136ef3
| 203
|
py
|
Python
|
twitoff/routes/error_routes.py
|
hurshd0/TwitOff
|
4ee598fca3b4266eed6a91265985fbcabe9f3582
|
[
"MIT"
] | null | null | null |
twitoff/routes/error_routes.py
|
hurshd0/TwitOff
|
4ee598fca3b4266eed6a91265985fbcabe9f3582
|
[
"MIT"
] | 1
|
2022-01-13T01:43:07.000Z
|
2022-01-13T01:43:07.000Z
|
twitoff/routes/error_routes.py
|
hurshd0/TwitOff
|
4ee598fca3b4266eed6a91265985fbcabe9f3582
|
[
"MIT"
] | 1
|
2019-09-20T13:35:04.000Z
|
2019-09-20T13:35:04.000Z
|
from flask import Blueprint, render_template
error_routes = Blueprint("error_routes", __name__)
@error_routes.app_errorhandler(404)
def error_404(error):
return render_template("error.html"), 404
| 22.555556
| 50
| 0.793103
| 27
| 203
| 5.555556
| 0.555556
| 0.22
| 0.253333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.049724
| 0.108374
| 203
| 8
| 51
| 25.375
| 0.779006
| 0
| 0
| 0
| 0
| 0
| 0.108374
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0.4
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
84735b2a152e2295dde727bce0e33afb9258340e
| 177
|
py
|
Python
|
python/7kyu/vowel_changer.py
|
Sigmanificient/codewars
|
b34df4bf55460d312b7ddf121b46a707b549387a
|
[
"MIT"
] | 3
|
2021-06-08T01:57:13.000Z
|
2021-06-26T10:52:47.000Z
|
python/7kyu/vowel_changer.py
|
Sigmanificient/codewars
|
b34df4bf55460d312b7ddf121b46a707b549387a
|
[
"MIT"
] | null | null | null |
python/7kyu/vowel_changer.py
|
Sigmanificient/codewars
|
b34df4bf55460d312b7ddf121b46a707b549387a
|
[
"MIT"
] | 2
|
2021-06-10T21:20:13.000Z
|
2021-06-30T10:13:26.000Z
|
"""Kata url: https://www.codewars.com/kata/597754ba62f8a19c98000030."""
def vowel_change(txt: str, vow: str) -> str:
return txt.translate(str.maketrans('aeiou', vow * 5))
| 29.5
| 71
| 0.694915
| 24
| 177
| 5.083333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128205
| 0.118644
| 177
| 5
| 72
| 35.4
| 0.653846
| 0.367232
| 0
| 0
| 0
| 0
| 0.04717
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
84970230f3ec3adc4e8e7e4551d5f526d5ee4393
| 182
|
py
|
Python
|
turnout_election_schemes/schemes/errors.py
|
devfort/turnout-election-schemes
|
d9097f6f6241ebc8f5b17b03f09d2bc34189f2cc
|
[
"MIT"
] | null | null | null |
turnout_election_schemes/schemes/errors.py
|
devfort/turnout-election-schemes
|
d9097f6f6241ebc8f5b17b03f09d2bc34189f2cc
|
[
"MIT"
] | null | null | null |
turnout_election_schemes/schemes/errors.py
|
devfort/turnout-election-schemes
|
d9097f6f6241ebc8f5b17b03f09d2bc34189f2cc
|
[
"MIT"
] | null | null | null |
class IncompleteVoteError(Exception):
pass
class NoWinnerError(Exception):
pass
class InvalidVoteError(Exception):
pass
class FailedElectionError(Exception):
pass
| 15.166667
| 37
| 0.763736
| 16
| 182
| 8.6875
| 0.4375
| 0.374101
| 0.388489
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17033
| 182
| 11
| 38
| 16.545455
| 0.92053
| 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
|
849f7318c3226bb042d92e00caa532b8c5819e2f
| 65
|
py
|
Python
|
python_c_extension_test/test1/python_test/main.py
|
xdr940/utils
|
c4b7b1479956475a7feee90a723541904ec82306
|
[
"MIT"
] | null | null | null |
python_c_extension_test/test1/python_test/main.py
|
xdr940/utils
|
c4b7b1479956475a7feee90a723541904ec82306
|
[
"MIT"
] | null | null | null |
python_c_extension_test/test1/python_test/main.py
|
xdr940/utils
|
c4b7b1479956475a7feee90a723541904ec82306
|
[
"MIT"
] | null | null | null |
from add_pkg.calc import add,sub
print(add(1,2))
print(sub(3,4))
| 16.25
| 32
| 0.723077
| 15
| 65
| 3.066667
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067797
| 0.092308
| 65
| 3
| 33
| 21.666667
| 0.711864
| 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
|
84b7d663900b260d9c579c3727b2eacbedd5461b
| 189
|
py
|
Python
|
crypto_backend/app/handlers/basic.py
|
IlinValery/hppl_final_project
|
06ac468387c27deaedafb38eea54a0bf6bd82360
|
[
"MIT"
] | null | null | null |
crypto_backend/app/handlers/basic.py
|
IlinValery/hppl_final_project
|
06ac468387c27deaedafb38eea54a0bf6bd82360
|
[
"MIT"
] | 20
|
2020-12-05T19:33:11.000Z
|
2020-12-10T06:53:30.000Z
|
crypto_backend/app/handlers/basic.py
|
IlinValery/hppl_final_project
|
06ac468387c27deaedafb38eea54a0bf6bd82360
|
[
"MIT"
] | 1
|
2020-12-10T07:57:11.000Z
|
2020-12-10T07:57:11.000Z
|
from aiohttp import web
import asyncio
async def test_connection(request):
await asyncio.sleep(0.5)
return web.json_response({"data": "Test connection successfully"}, status=200)
| 23.625
| 82
| 0.756614
| 26
| 189
| 5.423077
| 0.807692
| 0.198582
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030864
| 0.142857
| 189
| 7
| 83
| 27
| 0.839506
| 0
| 0
| 0
| 0
| 0
| 0.169312
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
84ea6ad440f5ffdb9c25ec76f79e6ed4915cc5f2
| 71
|
py
|
Python
|
sharpy-sc2/sharpy/managers/core/roles/__init__.py
|
ProfessorQu/Sharpy-Bot
|
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
|
[
"MIT"
] | 48
|
2019-11-25T20:02:27.000Z
|
2022-02-28T00:16:21.000Z
|
sharpy-sc2/sharpy/managers/core/roles/__init__.py
|
ProfessorQu/Sharpy-Bot
|
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
|
[
"MIT"
] | 48
|
2020-03-10T17:08:04.000Z
|
2022-02-22T08:21:12.000Z
|
sharpy-sc2/sharpy/managers/core/roles/__init__.py
|
ProfessorQu/Sharpy-Bot
|
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
|
[
"MIT"
] | 25
|
2019-12-01T18:14:54.000Z
|
2022-03-24T01:14:53.000Z
|
from .unit_task import UnitTask
from .units_in_role import UnitsInRole
| 23.666667
| 38
| 0.859155
| 11
| 71
| 5.272727
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112676
| 71
| 2
| 39
| 35.5
| 0.920635
| 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
|
ca8555e71d127603824a39cf03a1ba5b2e840a19
| 26
|
py
|
Python
|
Tests/Python_Basic/002_Multiset_Implementation.py
|
o-silva-1/HackerRank
|
be5241c1439e7ed54fe4a1847984a9ac79c6e2a9
|
[
"MIT"
] | null | null | null |
Tests/Python_Basic/002_Multiset_Implementation.py
|
o-silva-1/HackerRank
|
be5241c1439e7ed54fe4a1847984a9ac79c6e2a9
|
[
"MIT"
] | null | null | null |
Tests/Python_Basic/002_Multiset_Implementation.py
|
o-silva-1/HackerRank
|
be5241c1439e7ed54fe4a1847984a9ac79c6e2a9
|
[
"MIT"
] | null | null | null |
# Forgot to copy the Code
| 13
| 25
| 0.730769
| 5
| 26
| 3.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 26
| 1
| 26
| 26
| 0.95
| 0.884615
| 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
|
ca86e90516a25c1893258e0380363967f52c076a
| 112
|
py
|
Python
|
modules/__init__.py
|
nzediegwu1/atm-machine
|
3def7ecd81bd32dd033e68adea616e74082c55b4
|
[
"MIT"
] | 1
|
2018-11-21T12:14:14.000Z
|
2018-11-21T12:14:14.000Z
|
modules/__init__.py
|
nzediegwu1/atm-machine
|
3def7ecd81bd32dd033e68adea616e74082c55b4
|
[
"MIT"
] | null | null | null |
modules/__init__.py
|
nzediegwu1/atm-machine
|
3def7ecd81bd32dd033e68adea616e74082c55b4
|
[
"MIT"
] | null | null | null |
from .balance import Balance
from .deposit import Deposit
from .withdraw import Withdraw
from .quit import Quit
| 22.4
| 30
| 0.821429
| 16
| 112
| 5.75
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 112
| 4
| 31
| 28
| 0.958333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ca8783123580a9dab876bf7b9d9dcbfac7e44e2d
| 948
|
py
|
Python
|
03 - PokeAPI/a_apiviacep.py
|
vnnstar/atividades_API_e_Microservicos
|
307b7069f148f982ff70ff35996d88b35caeaf2f
|
[
"MIT"
] | null | null | null |
03 - PokeAPI/a_apiviacep.py
|
vnnstar/atividades_API_e_Microservicos
|
307b7069f148f982ff70ff35996d88b35caeaf2f
|
[
"MIT"
] | null | null | null |
03 - PokeAPI/a_apiviacep.py
|
vnnstar/atividades_API_e_Microservicos
|
307b7069f148f982ff70ff35996d88b35caeaf2f
|
[
"MIT"
] | null | null | null |
import requests
cep = '03732-010'
url = f'http://viacep.com.br/ws/{cep}/json'
retorno = requests.get(url) # conecetei na url e baixei o que tinha
dici = retorno.json() # pega o conteudo, se for um json, carrega ele para o
# python > criando um dicionário ou lista, dependendo da informação que >
# continha no endereço
logradouro = dici['logradouro']
cidade = dici['localidade']
print(f'{logradouro} - {cidade}')
retorno.status_code
# Exemplo apenas
def pega_rua(cep):
url = f'http://viacep.com.br/ws/{cep}/json'
resultado = requests.get(url) # conecetei na url e baixei o que tinha
if resultado.status_code != 200:
return 'deu ruim'
dici = resultado.json() # pega o conteudo, se for um json, carrega ele
# para o python > criando um dicionário ou lista, dependendo da informação que
# continha no endereço
logradouro = dici['logradouro']
cidade = dici['localidade']
print(f'{logradouro} - {cidade}')
| 33.857143
| 79
| 0.696203
| 138
| 948
| 4.76087
| 0.42029
| 0.097412
| 0.024353
| 0.042618
| 0.7793
| 0.7793
| 0.7793
| 0.7793
| 0.7793
| 0.694064
| 0
| 0.014249
| 0.185654
| 948
| 27
| 80
| 35.111111
| 0.836788
| 0.401899
| 0
| 0.444444
| 0
| 0
| 0.307002
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055556
| false
| 0
| 0.055556
| 0
| 0.166667
| 0.111111
| 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
|
047e33c261e2b5cbcb04ae1edf102bdfffd688c1
| 201
|
py
|
Python
|
pysapets/__init__.py
|
cfginn/sap-simulation-package
|
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
|
[
"MIT"
] | null | null | null |
pysapets/__init__.py
|
cfginn/sap-simulation-package
|
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
|
[
"MIT"
] | null | null | null |
pysapets/__init__.py
|
cfginn/sap-simulation-package
|
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
|
[
"MIT"
] | null | null | null |
from .animal import Animal
from .battle import Battle
from .ant import Ant
from .cricket import Cricket
from .mosquito import Mosquito
from .horse import Horse
from .zombie_cricket import ZombieCricket
| 28.714286
| 41
| 0.830846
| 29
| 201
| 5.724138
| 0.344828
| 0.156627
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134328
| 201
| 7
| 41
| 28.714286
| 0.954023
| 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
|
048796036c20b7d7d9256347a7a94c692781522b
| 22
|
py
|
Python
|
dummy/pybricks/tools.py
|
spockbots/city
|
80957650195267473ce1b1ea2312924ff25eb040
|
[
"Apache-2.0"
] | null | null | null |
dummy/pybricks/tools.py
|
spockbots/city
|
80957650195267473ce1b1ea2312924ff25eb040
|
[
"Apache-2.0"
] | null | null | null |
dummy/pybricks/tools.py
|
spockbots/city
|
80957650195267473ce1b1ea2312924ff25eb040
|
[
"Apache-2.0"
] | null | null | null |
def wait (x):
pass
| 11
| 13
| 0.545455
| 4
| 22
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.318182
| 22
| 2
| 14
| 11
| 0.8
| 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
|
04ac13d3ffb1c2c8d4cbc8dcd87abf4f31859877
| 119
|
py
|
Python
|
formatting/admin.py
|
simple-coder25/django-analysis
|
9213bcb85cccfd7340c96ef87c9a10f36b7367ed
|
[
"MIT"
] | null | null | null |
formatting/admin.py
|
simple-coder25/django-analysis
|
9213bcb85cccfd7340c96ef87c9a10f36b7367ed
|
[
"MIT"
] | 5
|
2020-06-05T23:29:03.000Z
|
2022-02-10T08:41:14.000Z
|
formatting/admin.py
|
simple-coder25/django-analysis
|
9213bcb85cccfd7340c96ef87c9a10f36b7367ed
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from formatting.models import ValidationModel
admin.site.register(ValidationModel)
| 17
| 45
| 0.848739
| 14
| 119
| 7.214286
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10084
| 119
| 6
| 46
| 19.833333
| 0.943925
| 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
|
04d2761540834a4f375f102a9eb31369deea3860
| 171
|
py
|
Python
|
class_binding/test.py
|
AtsushiSakai/pybind11sample
|
4871868ce57a7f779e2e933d42fb2ebd071d607f
|
[
"MIT"
] | 3
|
2017-03-26T08:27:31.000Z
|
2021-12-28T15:40:09.000Z
|
class_binding/test.py
|
AtsushiSakai/pybind11sample
|
4871868ce57a7f779e2e933d42fb2ebd071d607f
|
[
"MIT"
] | null | null | null |
class_binding/test.py
|
AtsushiSakai/pybind11sample
|
4871868ce57a7f779e2e933d42fb2ebd071d607f
|
[
"MIT"
] | null | null | null |
#! /usr/bin/python
# -*- coding: utf-8 -*-
import cpplib
pet = cpplib.Pet("pochi")
print(pet.getName())
pet.setName("tama")
print(pet.getName())
print(pet.getClassName())
| 19
| 25
| 0.672515
| 24
| 171
| 4.791667
| 0.625
| 0.208696
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006452
| 0.093567
| 171
| 8
| 26
| 21.375
| 0.735484
| 0.22807
| 0
| 0.333333
| 0
| 0
| 0.069231
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
04dc046de0d07ef3c9573da074fa012211a41132
| 14
|
py
|
Python
|
test.py
|
wndtrwhyn/ADSB-WINDA
|
cec553e478f1af24199c5406a716203a029cd02f
|
[
"MIT"
] | null | null | null |
test.py
|
wndtrwhyn/ADSB-WINDA
|
cec553e478f1af24199c5406a716203a029cd02f
|
[
"MIT"
] | null | null | null |
test.py
|
wndtrwhyn/ADSB-WINDA
|
cec553e478f1af24199c5406a716203a029cd02f
|
[
"MIT"
] | null | null | null |
print (Hallo)
| 7
| 13
| 0.714286
| 2
| 14
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 14
| 1
| 14
| 14
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
b6cb98d1dd8977dd0187474d45cef4d7d0a51edc
| 63
|
py
|
Python
|
filer/image_effects.py
|
digi604/django-filer
|
cabe6c21c4d23c53df76a8f4d96bf8df9105cf2b
|
[
"MIT"
] | 1
|
2015-09-28T10:08:03.000Z
|
2015-09-28T10:08:03.000Z
|
filer/image_effects.py
|
digi604/django-filer
|
cabe6c21c4d23c53df76a8f4d96bf8df9105cf2b
|
[
"MIT"
] | null | null | null |
filer/image_effects.py
|
digi604/django-filer
|
cabe6c21c4d23c53df76a8f4d96bf8df9105cf2b
|
[
"MIT"
] | null | null | null |
try:
from PIL import ImageOps
except:
import ImageOps
| 10.5
| 28
| 0.698413
| 8
| 63
| 5.5
| 0.75
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.269841
| 63
| 5
| 29
| 12.6
| 0.956522
| 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
|
b6e12d2a67f76d50a6b527fa2e2f5f2ea6fb2380
| 90
|
py
|
Python
|
python/ovs/db/PaxHeaders.127271/types.py
|
ictyangye/ovs-c2ratelimiter
|
c0e1ada35b3b5f2524fbba6324c9e996e84ac9bc
|
[
"Apache-2.0"
] | null | null | null |
python/ovs/db/PaxHeaders.127271/types.py
|
ictyangye/ovs-c2ratelimiter
|
c0e1ada35b3b5f2524fbba6324c9e996e84ac9bc
|
[
"Apache-2.0"
] | null | null | null |
python/ovs/db/PaxHeaders.127271/types.py
|
ictyangye/ovs-c2ratelimiter
|
c0e1ada35b3b5f2524fbba6324c9e996e84ac9bc
|
[
"Apache-2.0"
] | null | null | null |
30 mtime=1527291425.661873739
30 atime=1527291425.777874152
30 ctime=1527291454.685972704
| 22.5
| 29
| 0.866667
| 12
| 90
| 6.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.75
| 0.066667
| 90
| 3
| 30
| 30
| 0.178571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8e15d01699448af5da3038e97e4ae5dc75a5f7d3
| 74
|
py
|
Python
|
hello.py
|
liukuan127/HelloGitHub
|
54802e44e3feae5d292d9b68817ce4d9107d214a
|
[
"Apache-2.0"
] | null | null | null |
hello.py
|
liukuan127/HelloGitHub
|
54802e44e3feae5d292d9b68817ce4d9107d214a
|
[
"Apache-2.0"
] | null | null | null |
hello.py
|
liukuan127/HelloGitHub
|
54802e44e3feae5d292d9b68817ce4d9107d214a
|
[
"Apache-2.0"
] | null | null | null |
# Hello verybody!
# today is sunny day!~
print("I am a boy,is good man~")
| 18.5
| 32
| 0.662162
| 14
| 74
| 3.5
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189189
| 74
| 4
| 32
| 18.5
| 0.816667
| 0.486486
| 0
| 0
| 0
| 0
| 0.638889
| 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
|
8e38b8a1a96819b3278a4b29767955ca38e6144a
| 169
|
py
|
Python
|
holobot/discord/bot/bot_service_interface.py
|
rexor12/holobot
|
89b7b416403d13ccfeee117ef942426b08d3651d
|
[
"MIT"
] | 1
|
2021-05-24T00:17:46.000Z
|
2021-05-24T00:17:46.000Z
|
holobot/discord/bot/bot_service_interface.py
|
rexor12/holobot
|
89b7b416403d13ccfeee117ef942426b08d3651d
|
[
"MIT"
] | 41
|
2021-03-24T22:50:09.000Z
|
2021-12-17T12:15:13.000Z
|
holobot/discord/bot/bot_service_interface.py
|
rexor12/holobot
|
89b7b416403d13ccfeee117ef942426b08d3651d
|
[
"MIT"
] | null | null | null |
class BotServiceInterface:
async def start(self) -> None:
raise NotImplementedError
async def stop(self) -> None:
raise NotImplementedError
| 24.142857
| 34
| 0.668639
| 16
| 169
| 7.0625
| 0.625
| 0.141593
| 0.230089
| 0.566372
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.266272
| 169
| 6
| 35
| 28.166667
| 0.91129
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8e45596ecbd9a51c8f56d2635af0c686553ea810
| 39
|
py
|
Python
|
tests/__init__.py
|
jason-at-scroll/gitleaves
|
8b74f3d0158cc46fb6ec4efd243bcfc9de2d141e
|
[
"MIT"
] | 2
|
2021-12-07T11:53:15.000Z
|
2022-02-05T17:12:54.000Z
|
tests/__init__.py
|
jason-at-scroll/gitleaves
|
8b74f3d0158cc46fb6ec4efd243bcfc9de2d141e
|
[
"MIT"
] | 1
|
2021-12-07T13:10:28.000Z
|
2021-12-08T01:21:33.000Z
|
tests/__init__.py
|
jason-at-scroll/gitleaves
|
8b74f3d0158cc46fb6ec4efd243bcfc9de2d141e
|
[
"MIT"
] | 3
|
2021-11-03T08:52:43.000Z
|
2021-12-16T06:42:27.000Z
|
"""Unit test package for gitleaves."""
| 19.5
| 38
| 0.692308
| 5
| 39
| 5.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128205
| 39
| 1
| 39
| 39
| 0.794118
| 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
|
6d08596802cfee41179064acb746927d11db8649
| 140
|
py
|
Python
|
tutorial/urls.py
|
radugaf/django-grpc
|
eedd569db76e601768620ce859092598af535882
|
[
"MIT"
] | null | null | null |
tutorial/urls.py
|
radugaf/django-grpc
|
eedd569db76e601768620ce859092598af535882
|
[
"MIT"
] | null | null | null |
tutorial/urls.py
|
radugaf/django-grpc
|
eedd569db76e601768620ce859092598af535882
|
[
"MIT"
] | null | null | null |
from blog.handlers import grpc_handlers as blog_grpc_handlers
urlpatterns = []
def grpc_handlers(server):
blog_grpc_handlers(server)
| 17.5
| 61
| 0.8
| 19
| 140
| 5.578947
| 0.473684
| 0.45283
| 0.301887
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135714
| 140
| 7
| 62
| 20
| 0.876033
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ed8e02680847b1563aaf3dd7cc7e9aa687e12f4b
| 2,233
|
py
|
Python
|
crome_synthesis/tools/persistence.py
|
pierg/crome-synthesis
|
c4392e69176e67e99c4bbacf8affbd949acebd2a
|
[
"MIT"
] | null | null | null |
crome_synthesis/tools/persistence.py
|
pierg/crome-synthesis
|
c4392e69176e67e99c4bbacf8affbd949acebd2a
|
[
"MIT"
] | null | null | null |
crome_synthesis/tools/persistence.py
|
pierg/crome-synthesis
|
c4392e69176e67e99c4bbacf8affbd949acebd2a
|
[
"MIT"
] | null | null | null |
# type: ignore
import os
from pathlib import Path
import dill as dill
from crome_synthesis.controller import Controller
from crome_synthesis.pcontrollers import PControllers
from crome_synthesis.tools import persistence_path
def _make_path(folder_name: Path = ""):
if not os.path.exists(persistence_path / folder_name):
os.makedirs(persistence_path / folder_name)
def dump_mono_controller(controller: Controller, folder_name: Path = "",
absolute_folder_path: Path = ""):
if absolute_folder_path == "":
folder_path = persistence_path / folder_name
else:
folder_path = absolute_folder_path
_make_path(folder_path)
with open(folder_path / f"{controller.name}_s.dat", "wb") as stream:
dill.dump(controller, stream)
def load_mono_controller(folder_name: str = "", absolute_folder_path: Path = "",
controller_name: str = "") -> Controller | None:
if absolute_folder_path == "":
file_path = persistence_path / folder_name / f"{controller_name}_s.dat"
else:
file_path = absolute_folder_path / f"{controller_name}_s.dat"
if not os.path.exists(file_path):
return None
with open(file_path, "rb") as stream:
controller = dill.load(stream)
return controller
def dump_parallel_controller(controller: PControllers, folder_name: Path = "", absolute_folder_path: Path = ""):
if absolute_folder_path == "":
folder_path = persistence_path / folder_name
else:
folder_path = absolute_folder_path
_make_path(folder_path)
with open(folder_path / f"{controller.name}_p.dat", "wb") as stream:
dill.dump(controller, stream)
def load_parallel_controller(folder_name: str = "", absolute_folder_path: Path = "",
controller_name: str = "") -> PControllers | None:
if absolute_folder_path == "":
file_path = persistence_path / folder_name / f"{controller_name}_p.dat"
else:
file_path = absolute_folder_path / f"{controller_name}_p.dat"
if not os.path.exists(file_path):
return None
with open(file_path, "rb") as stream:
controller = dill.load(stream)
return controller
| 31.9
| 112
| 0.678907
| 278
| 2,233
| 5.140288
| 0.151079
| 0.139958
| 0.151155
| 0.104969
| 0.721484
| 0.708188
| 0.708188
| 0.705388
| 0.705388
| 0.705388
| 0
| 0
| 0.223466
| 2,233
| 69
| 113
| 32.362319
| 0.824106
| 0.005374
| 0
| 0.541667
| 0
| 0
| 0.065795
| 0.06219
| 0
| 0
| 0
| 0
| 0
| 1
| 0.104167
| false
| 0
| 0.125
| 0
| 0.3125
| 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
|
edab823b2e6d5d47195951532685e7c0b0b6c6f0
| 132
|
py
|
Python
|
app/admin.py
|
pygroot/Interviews
|
b070542ab1f215855f08c07993e0effb7a58850a
|
[
"Apache-2.0"
] | null | null | null |
app/admin.py
|
pygroot/Interviews
|
b070542ab1f215855f08c07993e0effb7a58850a
|
[
"Apache-2.0"
] | null | null | null |
app/admin.py
|
pygroot/Interviews
|
b070542ab1f215855f08c07993e0effb7a58850a
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from . models import Person, Employee
admin.site.register(Person)
admin.site.register(Employee)
| 16.5
| 37
| 0.80303
| 18
| 132
| 5.888889
| 0.555556
| 0.169811
| 0.320755
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113636
| 132
| 7
| 38
| 18.857143
| 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
|
ede8984e42461817f72b6429968d3fb36fc0eff4
| 176
|
py
|
Python
|
hparams/__init__.py
|
maxdel/CipherGAN
|
367be620d56a0cdc88a49bcdc5123d5bc5e6f122
|
[
"MIT"
] | 131
|
2018-01-15T17:13:44.000Z
|
2022-03-01T09:57:40.000Z
|
hparams/__init__.py
|
maxdel/CipherGAN
|
367be620d56a0cdc88a49bcdc5123d5bc5e6f122
|
[
"MIT"
] | 13
|
2018-06-01T12:40:24.000Z
|
2022-02-09T23:26:52.000Z
|
hparams/__init__.py
|
maxdel/CipherGAN
|
367be620d56a0cdc88a49bcdc5123d5bc5e6f122
|
[
"MIT"
] | 29
|
2018-01-16T11:47:02.000Z
|
2022-03-01T10:16:45.000Z
|
__all__ = [
"cipher", "defaults", "gan", "registry", "user"
]
from .cipher import *
from .defaults import *
from .gan import *
from .registry import *
from .user import *
| 17.6
| 51
| 0.653409
| 21
| 176
| 5.285714
| 0.380952
| 0.36036
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193182
| 176
| 9
| 52
| 19.555556
| 0.78169
| 0
| 0
| 0
| 0
| 0
| 0.164773
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.625
| 0
| 0.625
| 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
|
edf3e5b189d97067a2c1977604d341157c8683ef
| 198
|
py
|
Python
|
model/setup.py
|
MLOps-Demo/production-optimization
|
0051666bd12ce523aaed1d231e83750202d9121f
|
[
"MIT"
] | 129
|
2021-01-03T06:01:35.000Z
|
2022-03-27T16:26:48.000Z
|
model/setup.py
|
MLOps-Demo/production-optimization
|
0051666bd12ce523aaed1d231e83750202d9121f
|
[
"MIT"
] | 5
|
2021-05-05T13:27:51.000Z
|
2021-12-06T03:00:54.000Z
|
model/setup.py
|
MLOps-Demo/production-optimization
|
0051666bd12ce523aaed1d231e83750202d9121f
|
[
"MIT"
] | 29
|
2021-01-12T11:02:33.000Z
|
2022-02-09T15:29:15.000Z
|
from setuptools import find_packages, setup
setup(
name="model",
version="0.1",
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
install_requires=[],
)
| 22
| 81
| 0.631313
| 22
| 198
| 5.545455
| 0.681818
| 0.245902
| 0.245902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011976
| 0.156566
| 198
| 8
| 82
| 24.75
| 0.718563
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.142857
| 0
| 0.142857
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
edfb7158531c5c9c5f994f566f3a033420396e26
| 45
|
py
|
Python
|
nlptasks/task_representation_bert_as_service.py
|
allenwind/tf2bert
|
9820223559543529d4dcc703e2742ab8fd14d58e
|
[
"Apache-2.0"
] | 4
|
2021-06-16T02:26:18.000Z
|
2021-09-24T11:06:51.000Z
|
nlptasks/task_representation_bert_as_service.py
|
allenwind/tf2bert
|
9820223559543529d4dcc703e2742ab8fd14d58e
|
[
"Apache-2.0"
] | null | null | null |
nlptasks/task_representation_bert_as_service.py
|
allenwind/tf2bert
|
9820223559543529d4dcc703e2742ab8fd14d58e
|
[
"Apache-2.0"
] | null | null | null |
# https://github.com/hanxiao/bert-as-service
| 22.5
| 44
| 0.755556
| 7
| 45
| 4.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044444
| 45
| 1
| 45
| 45
| 0.790698
| 0.933333
| 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
|
61181730ff6433c9aba34ba48973e1521155f9b7
| 47
|
py
|
Python
|
martial/apps/__init__.py
|
Harrymissi/management_system
|
3223d847e7d5b7f17a7db60990dc743eb33b3fb2
|
[
"Apache-2.0"
] | 2
|
2019-02-25T23:17:34.000Z
|
2019-03-04T07:01:04.000Z
|
martial/apps/__init__.py
|
Harrymissi/management_system
|
3223d847e7d5b7f17a7db60990dc743eb33b3fb2
|
[
"Apache-2.0"
] | null | null | null |
martial/apps/__init__.py
|
Harrymissi/management_system
|
3223d847e7d5b7f17a7db60990dc743eb33b3fb2
|
[
"Apache-2.0"
] | null | null | null |
_auther_ = 'Harry'
_date_ = '3/16/2018 9:38 PM'
| 23.5
| 28
| 0.659574
| 9
| 47
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.148936
| 47
| 2
| 28
| 23.5
| 0.425
| 0
| 0
| 0
| 0
| 0
| 0.458333
| 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
|
61259673d5cd2bcbaded28e7aa61ac0b78ae97b9
| 45,420
|
py
|
Python
|
livechat/agent/rtm/client.py
|
livechat/lc-sdk-python
|
536483590b9600ef1bc86fe36a1f810368b85a9d
|
[
"Apache-2.0"
] | 5
|
2021-03-22T19:22:05.000Z
|
2022-01-18T13:38:22.000Z
|
livechat/agent/rtm/client.py
|
livechat/lc-sdk-python
|
536483590b9600ef1bc86fe36a1f810368b85a9d
|
[
"Apache-2.0"
] | 5
|
2021-10-05T14:44:33.000Z
|
2022-02-16T07:33:51.000Z
|
livechat/agent/rtm/client.py
|
livechat/lc-sdk-python
|
536483590b9600ef1bc86fe36a1f810368b85a9d
|
[
"Apache-2.0"
] | null | null | null |
''' Agent RTM client implementation. '''
# pylint: disable=W0613,W0622,C0103,R0913,R0903,W0107,W0221
from __future__ import annotations
import typing
from abc import ABCMeta
from livechat.utils.helpers import prepare_payload
from livechat.utils.ws_client import WebsocketClient
class AgentRTM:
''' Main class that gets specific client. '''
@staticmethod
def get_client(version: str = '3.3',
base_url: str = 'api.livechatinc.com') -> AgentRTMInterface:
''' Returns client for specific Agent RTM version.
Args:
version (str): API's version. Defaults to `3.3`.
base_url (str): API's base url. Defaults to `api.livechatinc.com`.
Returns:
AgentRTMInterface: API client object for specified version.
Raises:
ValueError: If the specified version does not exist.
'''
client = {
'3.3': AgentRTM33(version, base_url),
'3.4': AgentRTM34(version, base_url)
}.get(version)
if not client:
raise ValueError('Provided version does not exist.')
return client
class AgentRTMInterface(metaclass=ABCMeta):
''' AgentRTM interface class. '''
def __init__(self, version: str, url: str) -> AgentRTMInterface:
self.ws = WebsocketClient(url=f'wss://{url}/v{version}/agent/rtm/ws')
def open_connection(self) -> None:
''' Opens WebSocket connection. '''
self.ws.open()
def close_connection(self) -> None:
''' Closes WebSocket connection. '''
self.ws.close()
# Chats
def add_user_to_chat(self,
chat_id: str = None,
user_id: str = None,
user_type: str = None,
require_active_thread: bool = None,
payload: dict = None) -> dict:
''' Adds a user to the chat. You can't add more than
one customer user type to the chat.
Args:
chat_id (str): Chat ID.
user_id (str): ID of the user that will be added to the chat.
user_type (str): Possible values: agent or customer.
require_active_thread (bool): A flag. If True, it adds a user to a chat
only if that chat has an active thread; default False.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'add_user_to_chat', 'payload': payload})
def list_chats(self,
filters: dict = None,
sort_order: str = None,
limit: int = None,
page_id: str = None,
payload: dict = None) -> dict:
''' Returns summaries of the chats an Agent has access to.
Args:
filters (dict): Possible request filters. Mustn't change between requests for subsequent pages.
Otherwise, the behavior is undefined.
sort_order (str): Possible values: asc, desc (default). Chat summaries are sorted by the
creation date of its last thread.
limit (int): Chats limit per page. Default: 10, maximum: 100.
page_id (str): Page ID.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'list_chats', 'payload': payload})
def list_threads(self,
chat_id: str = None,
sort_order: str = None,
limit: int = None,
page_id: str = None,
min_events_count: int = None,
filters: dict = None,
payload: dict = None) -> dict:
''' Returns threads that the current Agent has access to in a given chat.
Args:
chat_id (str): Chat ID to get threads from.
sort_order (str): Possible values: asc - oldest threads first and desc -
newest threads first (default).
limit (int): Default: 3, maximum: 100.
page_id (str): Page ID.
min_events_count (int): Range: 1-100; Specifies the minimum number of
events to be returned in the response.
filters (dict): Filters object.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'list_threads', 'payload': payload})
def get_chat(self,
chat_id: str = None,
thread_id: str = None,
payload: dict = None) -> dict:
''' Returns a thread that the current Agent has access to in a given chat.
Args:
chat_id (str): ID of a chat to get.
thread_id (str): Thread ID to get. Default: the latest thread (if exists).
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'get_chat', 'payload': payload})
def list_archives(self,
filters: dict = None,
page_id: str = None,
sort_order: str = None,
limit: int = None,
highlights: dict = None,
payload: dict = None) -> dict:
''' Returns a list of the chats an Agent has access to.
Args:
filters (dict): Filters object.
page_id (str): Page ID.
sort_order (str): Possible values: asc - oldest threads first and desc -
newest threads first (default).
limit (int): Default: 10, minimum: 1, maximum: 100.
highlights (dict): Use it to highlight the match of filters.query.
To enable highlights with default parameters, pass an empty object.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'list_archives', 'payload': payload})
def start_chat(self,
chat: dict = None,
active: bool = None,
continuous: bool = None,
payload: dict = None) -> dict:
''' Starts a chat.
Args:
chat (dict): Chat object.
active (bool): When set to False, creates an inactive thread; default: True.
continuous (bool): Starts chat as continuous (online group is not required); default: False.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'start_chat', 'payload': payload})
def resume_chat(self,
chat: dict = None,
active: bool = None,
continuous: bool = None,
payload: dict = None) -> dict:
''' Restarts an archived chat.
Args:
chat (dict): Chat object.
active (bool): When set to False, creates an inactive thread; default: True.
continuous (bool): Sets a chat to the continuous mode. When unset, leaves the mode unchanged.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'resume_chat', 'payload': payload})
def deactivate_chat(self, id: str = None, payload: dict = None) -> dict:
''' Deactivates a chat by closing the currently open thread.
Args:
id (str): Chat ID to deactivate.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'deactivate_chat', 'payload': payload})
def follow_chat(self, id: str = None, payload: dict = None) -> dict:
''' Marks a chat as followed.
Args:
id (str): Chat ID to follow.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'follow_chat', 'payload': payload})
def unfollow_chat(self, id: str = None, payload: dict = None) -> dict:
''' Removes the requester from the chat followers.
Args:
id (str): Chat ID to unfollow.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'unfollow_chat', 'payload': payload})
# Chat access
def transfer_chat(self,
id: str = None,
target: dict = None,
force: bool = None,
payload: dict = None) -> dict:
''' Transfers a chat to an agent or a group.
Args:
id (str): Chat ID.
target (dict): Target object. If missing, the chat will be
transferred within the current group.
force (bool): A flag. If True, always transfers chats.
Otherwise, fails when unable to assign any agent
from the requested groups; default False.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'transfer_chat', 'payload': payload})
# Chat users
def remove_user_from_chat(self,
chat_id: str = None,
user_id: str = None,
user_type: str = None,
payload: dict = None) -> dict:
''' Removes a user from chat.
Args:
chat_id (str): Chat ID.
user_id (str): ID of the user that will be added to the chat.
user_type (str): Possible values: agent or customer.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'remove_user_from_chat',
'payload': payload
})
# Events
def send_event(self,
chat_id: str = None,
event: dict = None,
attach_to_last_thread: bool = None,
payload: dict = None) -> dict:
''' Sends an Event object.
Args:
chat_id (str): ID of the chat you want to send the message to.
event (dict): Event object.
attach_to_last_thread (bool): Flag which states if event object should be added to last thread.
The flag is ignored for active chats.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'send_event', 'payload': payload})
def send_rich_message_postback(self,
chat_id: str = None,
thread_id: str = None,
event_id: str = None,
postback: dict = None,
payload: dict = None) -> dict:
''' Sends rich message postback.
Args:
chat_id (str): ID of the chat to send a rich message to.
thread_id (str): ID of the thread.
event_id (str): ID of the event.
postback (dict): Postback object.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'send_rich_message_postback',
'payload': payload
})
# Properties
def update_chat_properties(self,
id: str = None,
properties: dict = None,
payload: dict = None) -> dict:
''' Updates chat properties.
Args:
id (str): ID of the chat you to set a property for.
properties (dict): Chat properties to set.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'update_chat_properties',
'payload': payload
})
def delete_chat_properties(self,
id: str = None,
properties: dict = None,
payload: dict = None) -> dict:
''' Deletes chat properties.
Args:
id (str): ID of the chat you want to delete properties of.
properties (dict): Chat properties to delete.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'delete_chat_properties',
'payload': payload
})
def update_thread_properties(self,
chat_id: str = None,
thread_id: str = None,
properties: dict = None,
payload: dict = None) -> dict:
''' Updates thread properties.
Args:
chat_id (str): ID of the chat you want to set properties for.
thread_id (str): ID of the thread you want to set properties for.
properties (dict): Chat properties to set.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'update_thread_properties',
'payload': payload
})
def delete_thread_properties(self,
chat_id: str = None,
thread_id: str = None,
properties: dict = None,
payload: dict = None) -> dict:
''' Deletes thread properties.
Args:
chat_id (str): ID of the chat you want to delete the properties of.
thread_id (str): ID of the thread you want to delete the properties of.
properties (dict): Thread properties to delete.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'delete_thread_properties',
'payload': payload
})
def update_event_properties(self,
chat_id: str = None,
thread_id: str = None,
event_id: str = None,
properties: dict = None,
payload: dict = None) -> dict:
''' Updates event properties.
Args:
chat_id (str): ID of the chat you want to set properties for.
thread_id (str): ID of the thread you want to set properties for.
event_id (str): ID of the event you want to set properties for.
properties (dict): Chat properties to set.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'update_event_properties',
'payload': payload
})
def delete_event_properties(self,
chat_id: str = None,
thread_id: str = None,
event_id: str = None,
properties: dict = None,
payload: dict = None) -> dict:
''' Deletes event properties.
Args:
chat_id (str): ID of the chat you want to delete the properties of.
thread_id (str): ID of the thread you want to delete the properties of.
event_id (str): ID of the event you want to delete the properties of.
properties (dict): Event properties to delete.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'delete_event_properties',
'payload': payload
})
# Thread tags
def tag_thread(self,
chat_id: str = None,
thread_id: str = None,
tag: str = None,
payload: dict = None) -> dict:
''' Tags thread.
Args:
chat_id (str): ID of the chat you want to add a tag to.
thread_id (str): ID of the thread you want to add a tag to.
tag (str): Tag name.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'tag_thread', 'payload': payload})
def untag_thread(self,
chat_id: str = None,
thread_id: str = None,
tag: str = None,
payload: dict = None) -> dict:
''' Untags thread.
Args:
chat_id (str): ID of the chat you want to remove a tag from.
thread_id (str): ID of the thread you want to remove a tag from.
tag (str): Tag name.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'untag_thread', 'payload': payload})
# Customers
def get_customer(self, id: str = None, payload: dict = None) -> dict:
''' Returns the info about the Customer with a given ID.
Args:
id (str): ID of the Customer.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'get_customer', 'payload': payload})
def list_customers(self,
page_id: str = None,
limit: int = None,
sort_order: str = None,
sort_by: str = None,
filters: dict = None,
payload: dict = None) -> dict:
''' Returns the list of Customers.
Args:
page_id (str): Page ID.
limit (int): Customers limit. Default: 10, maximum: 100.
sort_order (str): Possible values: asc, desc (default). Customers are sorted
by the creation date.
sort_by (str): Possible values: created_at (default), threads_count, visits_count,
agent_last_event or customer_last_event.
filters (dict): Filters object.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'list_customers', 'payload': payload})
def create_customer(self,
name: str = None,
email: str = None,
avatar: str = None,
session_fields: list = None,
payload: dict = None) -> dict:
''' Creates a new Customer user type.
Args:
name (str): Customer's name.
email (str): Customer's email.
avatar (str): URL of the Customer's avatar.
session_fields (list): An array of custom object-enclosed key:value pairs.
Respects the order of items.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'create_customer', 'payload': payload})
def update_customer(self,
id: str = None,
name: str = None,
email: str = None,
avatar: str = None,
session_fields: list = None,
payload: dict = None) -> dict:
''' Updates Customer's properties.
Args:
id (str): ID of the Customer. UUID v4 format is required.
name (str): Customer's name.
email (str): Customer's email.
avatar (str): URL of the Customer's avatar.
session_fields (list): An array of custom object-enclosed key:value pairs.
Respects the order of items.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'update_customer', 'payload': payload})
def ban_customer(self,
id: str = None,
ban: dict = None,
payload: dict = None) -> dict:
''' Bans the customer for a specific period of time.
Args:
id (str): ID of the Customer. UUID v4 format is required.
ban (dict): Ban object containing the number of days that
the Customer will be banned.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'ban_customer', 'payload': payload})
def follow_customer(self, id: str = None, payload: dict = None) -> dict:
''' Marks a customer as followed.
Args:
id (str): ID of the Customer. UUID v4 format is required.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'follow_customer', 'payload': payload})
def unfollow_customer(self, id: str = None, payload: dict = None) -> dict:
''' Removes the agent from the list of customer's followers.
Args:
id (str): ID of the Customer. UUID v4 format is required.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'unfollow_customer',
'payload': payload
})
# Status
def login(self,
token: str = None,
timezone: str = None,
reconnect: bool = None,
push_notifications: dict = None,
application: dict = None,
away: bool = None,
customer_push_level: str = None,
pushes: dict = None,
payload: dict = None) -> dict:
''' Logs in agent.
Args:
token (str): OAuth token from the Agent's account.
timezone (str): Agent's timezone.
reconnect (bool): Reconnecting sets the status to the
last known state instead of the default one.
push_notifications (dict): Push notifications for the requested token.
application (dict): Object containing information related to
the application's name and version.
away (bool): When True, the connection is set to the away state.
Defaults to False.
customer_push_level (str): Possible values: my, engaged, online.
Defaults to my if login creates the first session;
otherwise it preserves the current customer_push_level.
pushes (dict): Use case: when you want to receive only specific pushes.
By default, it's set to all for the version of your currently established RTM connection.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'login', 'payload': payload})
def change_push_notifications(self,
firebase_token: str = None,
platform: str = None,
enabled: bool = None,
payload: dict = None) -> dict:
''' Changes the firebase push notifications properties.
Args:
firebase_token (str): Firebase device token.
platform (str): OS platform. Possible values: ios, android.
enabled (bool): Enable or disable push notifications for the requested token.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'change_push_notifications',
'payload': payload
})
def set_routing_status(self,
status: str = None,
agent_id: str = None,
payload: dict = None) -> dict:
''' Changes the status of an Agent or a Bot Agent.
Args:
status (str): For Agents: accepting_chats or not_accepting_chats.
For Bot Agents: accepting_chats, not_accepting_chats, or offline.
agent_id (str): If not specified, the requester's status will be updated.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'set_routing_status',
'payload': payload
})
def set_away_status(self, away: bool = None, payload: dict = None) -> dict:
''' Sets an Agent's connection to the away state.
Args:
away (bool): A flag.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'set_away_status', 'payload': payload})
def logout(self, payload: dict = None) -> dict:
''' Logs out agent.
Args:
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
return self.ws.send({
'action': 'logout',
'payload': {} if payload is None else payload
})
def list_routing_statuses(self,
filters: dict = None,
payload: dict = None) -> dict:
''' Returns the current routing status of each agent selected by the provided filters.
Args:
filters (dict): Filters object.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'list_routing_statuses',
'payload': payload
})
# Other
def mark_events_as_seen(self,
chat_id: str = None,
seen_up_to: str = None,
payload: dict = None) -> dict:
''' Marks events as seen by agent.
Args:
chat_id (str): Chat to mark events.
seen_up_to (str): Date up to which mark events - RFC 3339 date-time format.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'mark_events_as_seen',
'payload': payload
})
def send_typing_indicator(self,
chat_id: str = None,
recipients: str = None,
is_typing: bool = None,
payload: dict = None) -> dict:
''' Sends a typing indicator.
Args:
chat_id (str): ID of the chat you want to send the typing indicator to.
recipients (str): Possible values: all (default), agents.
is_typing (bool): A flag that indicates if you are typing.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'send_typing_indicator',
'payload': payload
})
def multicast(self,
recipients: dict = None,
content: typing.Any = None,
type: str = None,
payload: dict = None) -> dict:
''' Sends a multicast (chat-unrelated communication).
Args:
recipients (object): Object containing filters related to multicast recipients.
content (typing.Any): A JSON message to be sent.
type (str): Multicast message type.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'multicast', 'payload': payload})
def list_agents_for_transfer(self,
chat_id: str = None,
payload: dict = None) -> dict:
''' Returns the list of Agents you can transfer a chat to.
Args:
chat_id (str): ID of the chat you want to transfer.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'list_agents_for_transfer',
'payload': payload
})
class AgentRTM33(AgentRTMInterface):
''' Agent RTM version 3.3 class. '''
# Chat access
def grant_chat_access(self,
id: str = None,
access: dict = None,
payload: dict = None) -> dict:
''' Grants access to a new chat without overwriting the existing ones.
Args:
id (str): Chat ID.
access (dict): Access object.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'grant_chat_access',
'payload': payload
})
def revoke_chat_access(self,
id: str = None,
access: dict = None,
payload: dict = None) -> dict:
''' Revokes access to a chat.
Args:
id (str): Chat ID.
access (dict): Access object.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'revoke_chat_access',
'payload': payload
})
class AgentRTM34(AgentRTMInterface):
''' Agent RTM version 3.4 class. '''
# Chats
def add_user_to_chat(self,
chat_id: str = None,
user_id: str = None,
user_type: str = None,
visibility: str = None,
ignore_requester_presence: bool = None,
payload: dict = None) -> dict:
''' Adds a user to the chat. You can't add more than
one customer user type to the chat.
Args:
chat_id (str): Chat ID.
user_id (str): ID of the user that will be added to the chat.
user_type (str): Possible values: agent or customer.
visibility (str): Determines the visibility of events sent by
the agent. Possible values: `all` or `agents`.
ignore_requester_presence (bool): If `True`, allows requester to add user to chat
without being present in the chat's users list.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for
the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'add_user_to_chat', 'payload': payload})
def deactivate_chat(self,
id: str = None,
ignore_requester_presence: bool = None,
payload: dict = None) -> dict:
''' Deactivates a chat by closing the currently open thread.
Args:
id (str): Chat ID to deactivate.
ignore_requester_presence (bool): If `True`, allows requester to deactivate chat
without being present in the chat's users list.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'deactivate_chat', 'payload': payload})
# Chat access
def transfer_chat(self,
id: str = None,
target: dict = None,
ignore_agents_availability: bool = None,
ignore_requester_presence: bool = None,
payload: dict = None) -> dict:
''' Transfers a chat to an agent or a group.
Args:
id (str): Chat ID.
target (dict): Target object. If missing, the chat will be
transferred within the current group.
ignore_agents_availability (bool): If `True`, always transfers chats. Otherwise, fails
when unable to assign any agent from the requested groups.
ignore_requester_presence (bool): If `True`, allows requester to transfer chat
without being present in the chat's users list.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({'action': 'transfer_chat', 'payload': payload})
# Chat users
def remove_user_from_chat(self,
chat_id: str = None,
user_id: str = None,
user_type: str = None,
ignore_requester_presence: bool = None,
payload: dict = None) -> dict:
''' Removes a user from chat.
Args:
chat_id (str): Chat ID.
user_id (str): ID of the user that will be added to the chat.
user_type (str): Possible values: agent or customer.
ignore_requester_presence (bool): If `True`, allows requester to remove user from chat
without being present in the chat's users list.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'remove_user_from_chat',
'payload': payload
})
# Other
def send_typing_indicator(self,
chat_id: str = None,
visibility: str = None,
is_typing: bool = None,
payload: dict = None) -> dict:
''' Sends a typing indicator.
Args:
chat_id (str): ID of the chat you want to send the typing indicator to.
visibility (str): Possible values: `all`, `agents`.
is_typing (bool): A flag that indicates if you are typing.
payload (dict): Custom payload to be used as request's data.
It overrides all other parameters provided for the method.
Returns:
dict: Dictionary with response.
'''
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({
'action': 'send_typing_indicator',
'payload': payload
})
| 40.589812
| 111
| 0.515103
| 4,832
| 45,420
| 4.765935
| 0.075331
| 0.023014
| 0.020713
| 0.037952
| 0.75926
| 0.731208
| 0.717226
| 0.701333
| 0.693343
| 0.666421
| 0
| 0.002983
| 0.409511
| 45,420
| 1,118
| 112
| 40.626118
| 0.855667
| 0.454117
| 0
| 0.702326
| 0
| 0
| 0.07424
| 0.018378
| 0
| 0
| 0
| 0
| 0
| 1
| 0.116279
| false
| 0
| 0.011628
| 0
| 0.246512
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 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
|
b63096d32f1212ca741148e3060c29809a1f625f
| 122
|
py
|
Python
|
home/admin.py
|
SebastinSanty/cte
|
3d1a9758d96a7cfce59f5007bed55c34e56600ac
|
[
"CNRI-Python"
] | null | null | null |
home/admin.py
|
SebastinSanty/cte
|
3d1a9758d96a7cfce59f5007bed55c34e56600ac
|
[
"CNRI-Python"
] | null | null | null |
home/admin.py
|
SebastinSanty/cte
|
3d1a9758d96a7cfce59f5007bed55c34e56600ac
|
[
"CNRI-Python"
] | null | null | null |
from django.contrib import admin
from .models import Profile
# Register your models here.
admin.site.register([Profile])
| 20.333333
| 32
| 0.795082
| 17
| 122
| 5.705882
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122951
| 122
| 6
| 33
| 20.333333
| 0.906542
| 0.213115
| 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
|
b63543ec5b538a5125b0ee6872f827bef83a064e
| 57
|
py
|
Python
|
topo.py
|
jennyqsun/EEG-Decision-SincNet
|
6612a02ff05757b7bcbf67c81f923e01d6d64fd0
|
[
"MIT"
] | 1
|
2022-02-22T08:04:44.000Z
|
2022-02-22T08:04:44.000Z
|
topo.py
|
jennyqsun/EEG-Decision-SincNet
|
6612a02ff05757b7bcbf67c81f923e01d6d64fd0
|
[
"MIT"
] | null | null | null |
topo.py
|
jennyqsun/EEG-Decision-SincNet
|
6612a02ff05757b7bcbf67c81f923e01d6d64fd0
|
[
"MIT"
] | null | null | null |
# Created on 11/22/21 at 6:46 AM
# Author: Jenny Sun
| 11.4
| 33
| 0.631579
| 12
| 57
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214286
| 0.263158
| 57
| 4
| 34
| 14.25
| 0.642857
| 0.859649
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b645b11489e1ad92dfa51efd55a3df336a7192a4
| 87
|
py
|
Python
|
naturerate/photos/admin.py
|
DCapella/rateure
|
d322551f747f650da2f15df6048e6f8fb989a302
|
[
"MIT"
] | null | null | null |
naturerate/photos/admin.py
|
DCapella/rateure
|
d322551f747f650da2f15df6048e6f8fb989a302
|
[
"MIT"
] | null | null | null |
naturerate/photos/admin.py
|
DCapella/rateure
|
d322551f747f650da2f15df6048e6f8fb989a302
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Photo
admin.site.register(Photo)
| 17.4
| 32
| 0.816092
| 13
| 87
| 5.461538
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114943
| 87
| 5
| 33
| 17.4
| 0.922078
| 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
|
b6670fca2e5fd2101c5421264cf88fa20f3afed7
| 772
|
py
|
Python
|
tests/test_filename.py
|
pawel-slowik/htmlpdf
|
d6c37412f58dbd7f891f39be2901795b20e0476e
|
[
"MIT"
] | null | null | null |
tests/test_filename.py
|
pawel-slowik/htmlpdf
|
d6c37412f58dbd7f891f39be2901795b20e0476e
|
[
"MIT"
] | null | null | null |
tests/test_filename.py
|
pawel-slowik/htmlpdf
|
d6c37412f58dbd7f891f39be2901795b20e0476e
|
[
"MIT"
] | null | null | null |
"""tests for create_output_filename"""
# pylint: disable=missing-docstring
import string
import re
from htmlpdf import create_output_filename
def test_letters() -> None:
assert create_output_filename(string.ascii_letters) == string.ascii_letters + ".pdf"
def test_numbers() -> None:
assert create_output_filename(string.digits) == string.digits + ".pdf"
def test_space() -> None:
assert create_output_filename(" ") == "_.pdf"
def test_punctuation() -> None:
assert re.search(r"^_+\.pdf$", create_output_filename(string.punctuation))
def test_lowercase_accents() -> None:
assert create_output_filename("ęóąśłżźćń") == "eoaslzzcn.pdf"
def test_uppercase_accents() -> None:
assert create_output_filename("ĘÓĄŚŁŻŹĆŃ") == "EOASLZZCN.pdf"
| 23.393939
| 88
| 0.733161
| 94
| 772
| 5.723404
| 0.340426
| 0.178439
| 0.297398
| 0.204461
| 0.405204
| 0.349442
| 0.215613
| 0.215613
| 0.215613
| 0
| 0
| 0
| 0.13601
| 772
| 32
| 89
| 24.125
| 0.806597
| 0.086788
| 0
| 0
| 0
| 0
| 0.095851
| 0
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0.4
| true
| 0
| 0.2
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
b6866bfc8cbe6ed601dbff7d21dbed1236988a87
| 454
|
py
|
Python
|
toqito/matrices/__init__.py
|
paniash/toqito
|
ab67c2a3fca77b3827be11d1e79531042ea62b82
|
[
"MIT"
] | 76
|
2020-01-28T17:02:01.000Z
|
2022-02-14T18:02:15.000Z
|
toqito/matrices/__init__.py
|
paniash/toqito
|
ab67c2a3fca77b3827be11d1e79531042ea62b82
|
[
"MIT"
] | 82
|
2020-05-31T20:09:38.000Z
|
2022-03-28T17:13:59.000Z
|
toqito/matrices/__init__.py
|
paniash/toqito
|
ab67c2a3fca77b3827be11d1e79531042ea62b82
|
[
"MIT"
] | 30
|
2020-04-02T16:07:11.000Z
|
2022-02-05T13:39:22.000Z
|
"""Matrices."""
from toqito.matrices.clock import clock
from toqito.matrices.shift import shift
from toqito.matrices.cnot import cnot
from toqito.matrices.fourier import fourier
from toqito.matrices.gell_mann import gell_mann
from toqito.matrices.gen_gell_mann import gen_gell_mann
from toqito.matrices.gen_pauli import gen_pauli
from toqito.matrices.hadamard import hadamard
from toqito.matrices.iden import iden
from toqito.matrices.pauli import pauli
| 37.833333
| 55
| 0.85022
| 69
| 454
| 5.478261
| 0.202899
| 0.26455
| 0.47619
| 0.095238
| 0.153439
| 0.153439
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090308
| 454
| 11
| 56
| 41.272727
| 0.915254
| 0.019824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
b69a06c31f6504af552e52235d3425e1e8ed883b
| 221
|
py
|
Python
|
backend/api/admin.py
|
EmileSchneider/cityrepo
|
fc9d84016342f7cc83231aab9853b89c37d542f9
|
[
"MIT"
] | null | null | null |
backend/api/admin.py
|
EmileSchneider/cityrepo
|
fc9d84016342f7cc83231aab9853b89c37d542f9
|
[
"MIT"
] | null | null | null |
backend/api/admin.py
|
EmileSchneider/cityrepo
|
fc9d84016342f7cc83231aab9853b89c37d542f9
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import LandingPage, WorkExperience, Education
# Register your models here.
admin.site.register(LandingPage)
admin.site.register(WorkExperience)
admin.site.register(Education)
| 31.571429
| 58
| 0.837104
| 27
| 221
| 6.851852
| 0.481481
| 0.145946
| 0.275676
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081448
| 221
| 6
| 59
| 36.833333
| 0.91133
| 0.117647
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 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
|
b6b5b9be98234639a1d440aa83bec8c5fe342e72
| 302
|
py
|
Python
|
snmpagent_unity/unity_impl/StorageProcessorCacheDirtySize.py
|
factioninc/snmp-unity-agent
|
3525dc0fac60d1c784dcdd7c41693544bcbef843
|
[
"Apache-2.0"
] | 2
|
2019-03-01T11:14:59.000Z
|
2019-10-02T17:47:59.000Z
|
snmpagent_unity/unity_impl/StorageProcessorCacheDirtySize.py
|
factioninc/snmp-unity-agent
|
3525dc0fac60d1c784dcdd7c41693544bcbef843
|
[
"Apache-2.0"
] | 2
|
2019-03-01T11:26:29.000Z
|
2019-10-11T18:56:54.000Z
|
snmpagent_unity/unity_impl/StorageProcessorCacheDirtySize.py
|
factioninc/snmp-unity-agent
|
3525dc0fac60d1c784dcdd7c41693544bcbef843
|
[
"Apache-2.0"
] | 1
|
2019-10-03T21:09:17.000Z
|
2019-10-03T21:09:17.000Z
|
class StorageProcessorCacheDirtySize(object):
def read_get(self, name, idx_name, unity_client):
return unity_client.get_sp_cache_dirty_size(idx_name)
class StorageProcessorCacheDirtySizeColumn(object):
def get_idx(self, name, idx, unity_client):
return unity_client.get_sps()
| 33.555556
| 61
| 0.774834
| 38
| 302
| 5.815789
| 0.473684
| 0.199095
| 0.099548
| 0.199095
| 0.280543
| 0.280543
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145695
| 302
| 8
| 62
| 37.75
| 0.856589
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
fcca6905896abcf0d657ab92f2e34ede005b13de
| 65
|
py
|
Python
|
acq4/devices/SerialMouse/__init__.py
|
aleonlein/acq4
|
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
|
[
"MIT"
] | 47
|
2015-01-05T16:18:10.000Z
|
2022-03-16T13:09:30.000Z
|
acq4/devices/SerialMouse/__init__.py
|
aleonlein/acq4
|
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
|
[
"MIT"
] | 48
|
2015-04-19T16:51:41.000Z
|
2022-03-31T14:48:16.000Z
|
acq4/devices/SerialMouse/__init__.py
|
sensapex/acq4
|
9561ba73caff42c609bd02270527858433862ad8
|
[
"MIT"
] | 32
|
2015-01-15T14:11:49.000Z
|
2021-07-15T13:44:52.000Z
|
from __future__ import print_function
from .SerialMouse import *
| 21.666667
| 37
| 0.846154
| 8
| 65
| 6.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123077
| 65
| 2
| 38
| 32.5
| 0.877193
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
fccdf14c9863831a785323302c4ad692c5f275f6
| 8,242
|
py
|
Python
|
tests/test_menu.py
|
wipfli/ballometer
|
db86abe4f9dd541c96c58110579ae9dec729d119
|
[
"MIT"
] | null | null | null |
tests/test_menu.py
|
wipfli/ballometer
|
db86abe4f9dd541c96c58110579ae9dec729d119
|
[
"MIT"
] | 6
|
2020-09-26T06:42:30.000Z
|
2021-02-17T17:12:47.000Z
|
tests/test_menu.py
|
wipfli/ballometer
|
db86abe4f9dd541c96c58110579ae9dec729d119
|
[
"MIT"
] | null | null | null |
import time
import ballometer.menu
class LCD:
cursor_pos = (0, 0)
columns = 16
cursor_mode = 'hide'
def clear(self):
pass
def write_string(self, message='hi'):
pass
def get_ip():
return '10.0.0.58'
def scan():
return []
def decode_name(name):
return name
def add(ssid, password):
pass
def known():
return []
def remove(ssid):
pass
def reset():
pass
class Buttons:
def __init__(self):
self._tic = time.time()
def await_unclick(self):
while self.yes or self.no or self.up or self.down:
time.sleep(0.001)
@property
def a(self):
return False
@property
def b(self):
return False
@property
def up(self):
return False
@property
def down(self):
return False
@property
def left(self):
return False
@property
def right(self):
return False
@property
def yes(self):
return self.right or self.a
@property
def no(self):
return self.left or self.b
@property
def any(self):
return self.up or self.down or self.left or self.right or \
self.a or self.b
class UpdateError(Exception):
pass
def get_releases():
return []
def install(release='v1.0.0', update_callback=lambda text: ()):
pass
def test_startup(mocker):
mocker.patch('ballometer.update.get_current_release')
fn, _ = ballometer.menu.startup({'lcd': LCD()})
assert fn == ballometer.menu.home
def test_home():
class B(Buttons):
@property
def a(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.home({'lcd': LCD(), 'buttons': B()})
assert fn == ballometer.menu.menu
def test_menu():
class B1(Buttons):
@property
def a(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.menu({'lcd': LCD(), 'buttons': B1()})
assert fn == ballometer.menu.rec
class B2(Buttons):
@property
def down(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
@property
def a(self):
return self._tic + 0.5 < time.time() < self._tic + 0.6
fn, _ = ballometer.menu.menu({'lcd': LCD(), 'buttons': B2()})
assert fn == ballometer.menu.wifi
class B3(Buttons):
@property
def left(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.menu({'lcd': LCD(), 'buttons': B3()})
assert fn == ballometer.menu.home
def test_rec():
class B1(Buttons):
@property
def right(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.rec({'lcd': LCD(), 'buttons': B1()})
assert fn == ballometer.menu.home
class B2(Buttons):
@property
def b(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.rec({'lcd': LCD(), 'buttons': B2()})
assert fn == ballometer.menu.menu
def test_wifi():
class B1(Buttons):
@property
def right(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.wifi({'lcd': LCD(), 'buttons': B1()})
assert fn == ballometer.menu.wifi_add
class B2(Buttons):
@property
def down(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
@property
def right(self):
return self._tic + 0.3 < time.time() < self._tic + 0.4
fn, _ = ballometer.menu.wifi({'lcd': LCD(), 'buttons': B2()})
assert fn == ballometer.menu.wifi_delete
class B3(Buttons):
@property
def b(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.wifi({'lcd': LCD(), 'buttons': B3()})
assert fn == ballometer.menu.menu
class B4(Buttons):
@property
def down(self):
return (self._tic + 0.1 < time.time() < self._tic + 0.2) or \
(self._tic + 0.3 < time.time() < self._tic + 0.4)
@property
def right(self):
return self._tic + 0.5 < time.time() < self._tic + 0.6
fn, _ = ballometer.menu.wifi({'lcd': LCD(), 'buttons': B4()})
assert fn == ballometer.menu.wifi_reset
def test_wifi_add(mocker):
class B1(Buttons):
@property
def right(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.wifi_add({'lcd': LCD(), 'buttons': B1()})
assert fn == ballometer.menu.wifi
mocker.patch('ballometer.wifi.scan', return_value=['ssid1', 'ssid2'])
class B2(Buttons):
@property
def down(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
@property
def right(self):
return self._tic + 0.3 < time.time() < self._tic + 0.4
fn, params_out = ballometer.menu.wifi_add({'lcd': LCD(), 'buttons': B2()})
assert fn == ballometer.menu.wifi_password
assert params_out['ssid'] == 'ssid2'
class B3(Buttons):
@property
def left(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.wifi_add({'lcd': LCD(), 'buttons': B3()})
assert fn == ballometer.menu.wifi
def test_wifi_password(mocker):
class B1(Buttons):
@property
def a(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
mocker.patch('ballometer.wifi.add')
fn, _ = ballometer.menu.wifi_password(
{'lcd': LCD(), 'buttons': B1(), 'ssid': 'ssid1'})
assert fn == ballometer.menu.home
class B2(Buttons):
@property
def down(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
@property
def a(self):
return self._tic + 0.3 < time.time() < self._tic + 0.4
fn, _ = ballometer.menu.wifi_password(
{'lcd': LCD(), 'buttons': B2(), 'ssid': 'ssid1'})
assert fn == ballometer.menu.home
def test_wifi_delete(mocker):
class B1(Buttons):
@property
def down(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
@property
def a(self):
return self._tic + 0.3 < time.time() < self._tic + 0.4
mocker.patch('ballometer.wifi.remove')
mocker.patch('ballometer.wifi.known', return_value=['ssid1', 'ssid2'])
fn, _ = ballometer.menu.wifi_delete({'lcd': LCD(), 'buttons': B1()})
assert fn == ballometer.menu.home
class B2(Buttons):
@property
def b(self):
return self._tic + 0.3 < time.time() < self._tic + 0.4
fn, _ = ballometer.menu.wifi_delete({'lcd': LCD(), 'buttons': B2()})
assert fn == ballometer.menu.wifi
def test_wifi_reset(mocker):
mocker.patch('ballometer.wifi.reset')
class B1(Buttons):
@property
def b(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.wifi_reset({'lcd': LCD(), 'buttons': B1()})
assert fn == ballometer.menu.wifi
class B2(Buttons):
@property
def a(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
fn, _ = ballometer.menu.wifi_reset({'lcd': LCD(), 'buttons': B2()})
assert fn == ballometer.menu.wifi
class B3(Buttons):
@property
def down(self):
return self._tic + 0.1 < time.time() < self._tic + 0.2
@property
def a(self):
return self._tic + 0.3 < time.time() < self._tic + 0.4
fn, _ = ballometer.menu.wifi_reset({'lcd': LCD(), 'buttons': B3()})
assert fn == ballometer.menu.home
def test_update(mocker):
mocker.patch('ballometer.update.get_current_release',
return_value='v1.0.0')
mocker.patch('ballometer.update.get_releases',
return_value=['v1.0.0', 'v1.0.1'])
class B1(Buttons):
@property
def b(self):
return self._tic + 2.3 < time.time() < self._tic + 2.4
fn, _ = ballometer.menu.update({'lcd': LCD(), 'buttons': B1()})
assert fn == ballometer.menu.menu
| 24.384615
| 78
| 0.558602
| 1,094
| 8,242
| 4.088665
| 0.083181
| 0.092332
| 0.100156
| 0.09725
| 0.790074
| 0.703555
| 0.696848
| 0.658842
| 0.575229
| 0.528951
| 0
| 0.03211
| 0.285853
| 8,242
| 337
| 79
| 24.456973
| 0.727829
| 0
| 0
| 0.632911
| 0
| 0
| 0.061393
| 0.020383
| 0
| 0
| 0
| 0
| 0.097046
| 1
| 0.253165
| false
| 0.050633
| 0.008439
| 0.177215
| 0.552743
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
1e29f3392442f99148528793ca5ece7d09054ba6
| 27
|
py
|
Python
|
statsmodels/tsa/interp/__init__.py
|
toobaz/statsmodels
|
5286dd713a809b0630232508bf9ad5104aae1980
|
[
"BSD-3-Clause"
] | 10
|
2016-05-18T11:46:33.000Z
|
2018-12-23T04:52:27.000Z
|
statsmodels/tsa/interp/__init__.py
|
AnaMP/statsmodels
|
2d4aad9a14619ce0c84d4c7bca9dacd66b2be566
|
[
"BSD-3-Clause"
] | 1
|
2021-09-11T14:30:32.000Z
|
2021-09-11T14:30:32.000Z
|
statsmodels/tsa/interp/__init__.py
|
AnaMP/statsmodels
|
2d4aad9a14619ce0c84d4c7bca9dacd66b2be566
|
[
"BSD-3-Clause"
] | 3
|
2015-04-01T08:26:54.000Z
|
2020-02-14T14:34:10.000Z
|
from denton import dentonm
| 13.5
| 26
| 0.851852
| 4
| 27
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 27
| 1
| 27
| 27
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
1e923b93270682142bc386b7e24c0e81921e85ae
| 12
|
py
|
Python
|
myia/__init__.py
|
libing4752/myia
|
3bfb8ac20468bfc7be34128a396f79f2e03b24a1
|
[
"MIT"
] | null | null | null |
myia/__init__.py
|
libing4752/myia
|
3bfb8ac20468bfc7be34128a396f79f2e03b24a1
|
[
"MIT"
] | null | null | null |
myia/__init__.py
|
libing4752/myia
|
3bfb8ac20468bfc7be34128a396f79f2e03b24a1
|
[
"MIT"
] | null | null | null |
"""Myia."""
| 6
| 11
| 0.333333
| 1
| 12
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 12
| 1
| 12
| 12
| 0.363636
| 0.416667
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.